fix: 惠州政务系统需求
This commit is contained in:
parent
39ff2f8a74
commit
2bf5b1c2b1
@ -2,12 +2,12 @@
|
|||||||
NODE_ENV = 'development'
|
NODE_ENV = 'development'
|
||||||
|
|
||||||
# 本地环境接口地址(/api/index.ts文件中使用)
|
# 本地环境接口地址(/api/index.ts文件中使用)
|
||||||
# VITE_API_URL = 'http://192.168.34.155:6688'
|
VITE_API_URL = 'http://192.168.34.155:6688'
|
||||||
# VITE_API_URL = 'http://183.63.230.59:6090'
|
# VITE_API_URL = 'http://183.63.230.59:6090'
|
||||||
# VITE_API_URL = 'http://2xliv7gs.shenzhuo.vip:55296'
|
# VITE_API_URL = 'http://2xliv7gs.shenzhuo.vip:55296'
|
||||||
VITE_WPAPI_URL = "http://jxjzw.zhgdyun.com:8081"
|
VITE_WPAPI_URL = "http://jxjzw.zhgdyun.com:8081"
|
||||||
# VITE_API_URL = "http://jxjzw.zhgdyun.com:9013"
|
# VITE_API_URL = "http://jxjzw.zhgdyun.com:9013"
|
||||||
VITE_API_URL = 'https://xmglcs.hyjgxt.cn:6090'
|
# VITE_API_URL = 'https://xmglcs.hyjgxt.cn:6090'
|
||||||
|
|
||||||
# 上传
|
# 上传
|
||||||
# VITE_ULD_API_URL = 'http://192.168.34.155:8012/onlinePreview?url='
|
# VITE_ULD_API_URL = 'http://192.168.34.155:8012/onlinePreview?url='
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
/* GlobalState */
|
/* GlobalState */
|
||||||
export interface GlobalState {
|
export interface GlobalState {
|
||||||
Message: Object | null;
|
Message: Object | null;
|
||||||
|
isDraft: Boolean | false;
|
||||||
token: string | null;
|
token: string | null;
|
||||||
userInfo: any | null;
|
userInfo: any | null;
|
||||||
accountType: number | undefined;
|
accountType: number | undefined;
|
||||||
|
|||||||
@ -93,6 +93,21 @@ const next = async (data: { [key: string]: OverviewForm }, isTemporary: any, isS
|
|||||||
addRepostData.value.annexFiles = annexFileList.value.filter(v => !map.has(v.fileUrl) && map.set(v.fileUrl, v));
|
addRepostData.value.annexFiles = annexFileList.value.filter(v => !map.has(v.fileUrl) && map.set(v.fileUrl, v));
|
||||||
console.log(annexFileList.value, 111222);
|
console.log(annexFileList.value, 111222);
|
||||||
console.log(addRepostData.value, 111222);
|
console.log(addRepostData.value, 111222);
|
||||||
|
delete addRepostData.value.engineeringSingles;
|
||||||
|
console.info(isTemporary, "isTemporary");
|
||||||
|
|
||||||
|
addRepostData.value.engineeringStageEightList?.map(item => {
|
||||||
|
let eightAnnexFileList: AnnexFile[] = [];
|
||||||
|
item.engineeringSingles.forEach((data: any) => {
|
||||||
|
if (data.files.length) {
|
||||||
|
eightAnnexFileList.push(...data.files);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
const map = new Map();
|
||||||
|
item.annexFiles = eightAnnexFileList.filter(v => !map.has(v.fileUrl) && map.set(v.fileUrl, v));
|
||||||
|
delete item.engineeringSingles;
|
||||||
|
});
|
||||||
|
|
||||||
if (isTemporary) {
|
if (isTemporary) {
|
||||||
await temporarySave();
|
await temporarySave();
|
||||||
return;
|
return;
|
||||||
|
|||||||
@ -144,7 +144,7 @@
|
|||||||
<FileUpload v-model="showFilesUpload" @update:files="handlechange" :files="current.files" :reset="true" />
|
<FileUpload v-model="showFilesUpload" @update:files="handlechange" :files="current.files" :reset="true" />
|
||||||
</div>
|
</div>
|
||||||
<footer class="footer">
|
<footer class="footer">
|
||||||
<el-button type="primary" @click="next(ruleFormRef, !store.Message ? true : false, true)">保存</el-button>
|
<el-button type="primary" @click="next(ruleFormRef, store.isDraft ? true : false, true)">保存</el-button>
|
||||||
<el-button type="primary" @click="next(ruleFormRef)">下一步</el-button>
|
<el-button type="primary" @click="next(ruleFormRef)">下一步</el-button>
|
||||||
</footer>
|
</footer>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -116,7 +116,7 @@
|
|||||||
<FileUpload v-model="showFilesUpload" @update:files="handlechange" :files="current.files" :reset="true" />
|
<FileUpload v-model="showFilesUpload" @update:files="handlechange" :files="current.files" :reset="true" />
|
||||||
</div>
|
</div>
|
||||||
<footer class="footer">
|
<footer class="footer">
|
||||||
<el-button type="primary" @click="next(ruleFormRef, !store.Message ? true : false, true)">保存</el-button>
|
<el-button type="primary" @click="next(ruleFormRef, store.isDraft ? true : false, true)">保存</el-button>
|
||||||
<el-button type="primary" @click="prev">上一步</el-button>
|
<el-button type="primary" @click="prev">上一步</el-button>
|
||||||
<el-button type="primary" @click="next(ruleFormRef)">下一步</el-button>
|
<el-button type="primary" @click="next(ruleFormRef)">下一步</el-button>
|
||||||
</footer>
|
</footer>
|
||||||
|
|||||||
@ -154,7 +154,7 @@
|
|||||||
<FileUpload v-model="showFilesUpload" @update:files="handlechange" :files="current.files" :reset="true" />
|
<FileUpload v-model="showFilesUpload" @update:files="handlechange" :files="current.files" :reset="true" />
|
||||||
</div>
|
</div>
|
||||||
<footer class="footer">
|
<footer class="footer">
|
||||||
<el-button type="primary" @click="next(ruleFormRef, !store.Message ? true : false, true)">保存</el-button>
|
<el-button type="primary" @click="next(ruleFormRef, store.isDraft ? true : false, true)">保存</el-button>
|
||||||
<el-button type="primary" @click="prev">上一步</el-button>
|
<el-button type="primary" @click="prev">上一步</el-button>
|
||||||
<el-button type="primary" @click="next(ruleFormRef)">下一步</el-button>
|
<el-button type="primary" @click="next(ruleFormRef)">下一步</el-button>
|
||||||
</footer>
|
</footer>
|
||||||
|
|||||||
@ -78,7 +78,7 @@
|
|||||||
<FileUpload v-model="showFilesUpload" @update:files="handlechange" :files="current.files" :reset="true" />
|
<FileUpload v-model="showFilesUpload" @update:files="handlechange" :files="current.files" :reset="true" />
|
||||||
</div>
|
</div>
|
||||||
<footer class="footer">
|
<footer class="footer">
|
||||||
<el-button type="primary" @click="next(ruleFormRef, !store.Message ? true : false, true)">保存</el-button>
|
<el-button type="primary" @click="next(ruleFormRef, store.isDraft ? true : false, true)">保存</el-button>
|
||||||
<el-button type="primary" @click="prev">上一步</el-button>
|
<el-button type="primary" @click="prev">上一步</el-button>
|
||||||
<el-button type="primary" @click="next(ruleFormRef)">下一步</el-button>
|
<el-button type="primary" @click="next(ruleFormRef)">下一步</el-button>
|
||||||
</footer>
|
</footer>
|
||||||
|
|||||||
@ -105,7 +105,7 @@
|
|||||||
<FileUpload v-model="showFilesUpload" @update:files="handlechange" :files="current.files" :reset="true" />
|
<FileUpload v-model="showFilesUpload" @update:files="handlechange" :files="current.files" :reset="true" />
|
||||||
</div>
|
</div>
|
||||||
<footer class="footer">
|
<footer class="footer">
|
||||||
<el-button type="primary" @click="next(ruleFormRef, !store.Message ? true : false, true)">保存</el-button>
|
<el-button type="primary" @click="next(ruleFormRef, store.isDraft ? true : false, true)">保存</el-button>
|
||||||
<el-button type="primary" @click="prev">上一步</el-button>
|
<el-button type="primary" @click="prev">上一步</el-button>
|
||||||
<el-button type="primary" @click="next(ruleFormRef)">下一步</el-button>
|
<el-button type="primary" @click="next(ruleFormRef)">下一步</el-button>
|
||||||
</footer>
|
</footer>
|
||||||
|
|||||||
@ -102,7 +102,7 @@
|
|||||||
<FileUpload v-model="showFilesUpload" @update:files="handlechange" :files="current.files" :reset="true" />
|
<FileUpload v-model="showFilesUpload" @update:files="handlechange" :files="current.files" :reset="true" />
|
||||||
</div>
|
</div>
|
||||||
<footer class="footer">
|
<footer class="footer">
|
||||||
<el-button type="primary" @click="next(ruleFormRef, !store.Message ? true : false, true)">保存</el-button>
|
<el-button type="primary" @click="next(ruleFormRef, store.isDraft ? true : false, true)">保存</el-button>
|
||||||
<el-button type="primary" @click="prev">上一步</el-button>
|
<el-button type="primary" @click="prev">上一步</el-button>
|
||||||
<el-button type="primary" @click="next(ruleFormRef)">下一步</el-button>
|
<el-button type="primary" @click="next(ruleFormRef)">下一步</el-button>
|
||||||
</footer>
|
</footer>
|
||||||
|
|||||||
@ -86,7 +86,7 @@
|
|||||||
<FileUpload v-model="showFilesUpload" @update:files="handlechange" :files="current.files" :reset="true" />
|
<FileUpload v-model="showFilesUpload" @update:files="handlechange" :files="current.files" :reset="true" />
|
||||||
</div>
|
</div>
|
||||||
<footer class="footer">
|
<footer class="footer">
|
||||||
<el-button type="primary" @click="next(ruleFormRef, !store.Message ? true : false, true)">保存</el-button>
|
<el-button type="primary" @click="next(ruleFormRef, store.isDraft ? true : false, true)">保存</el-button>
|
||||||
<el-button type="primary" @click="prev">上一步</el-button>
|
<el-button type="primary" @click="prev">上一步</el-button>
|
||||||
<el-button type="primary" @click="next(ruleFormRef)">下一步</el-button>
|
<el-button type="primary" @click="next(ruleFormRef)">下一步</el-button>
|
||||||
</footer>
|
</footer>
|
||||||
|
|||||||
@ -632,7 +632,7 @@ onMounted(async () => {
|
|||||||
name: curr.fileName,
|
name: curr.fileName,
|
||||||
size: +curr.fileSize,
|
size: +curr.fileSize,
|
||||||
type: "image/png",
|
type: "image/png",
|
||||||
response: { ...curr }
|
response: { ...curr, contentType: "image/png" }
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
j.files = files;
|
j.files = files;
|
||||||
|
|||||||
@ -243,6 +243,7 @@ const confirmReform = () => {
|
|||||||
// 新增项目
|
// 新增项目
|
||||||
const handleAddItem = async () => {
|
const handleAddItem = async () => {
|
||||||
store.Message = null;
|
store.Message = null;
|
||||||
|
store.isDraft = true;
|
||||||
const res: any = await getQueryUnSubmitApi({});
|
const res: any = await getQueryUnSubmitApi({});
|
||||||
console.info(res, "----res---");
|
console.info(res, "----res---");
|
||||||
if (res.result) {
|
if (res.result) {
|
||||||
@ -255,6 +256,7 @@ const handleAddItem = async () => {
|
|||||||
const onEdit = async (row: any) => {
|
const onEdit = async (row: any) => {
|
||||||
const res: any = await getPreIdEngApproveList({ id: row.id });
|
const res: any = await getPreIdEngApproveList({ id: row.id });
|
||||||
store.Message = res.result;
|
store.Message = res.result;
|
||||||
|
store.isDraft = false;
|
||||||
approvalTitle.value = "编辑";
|
approvalTitle.value = "编辑";
|
||||||
detailsDialog.value = true;
|
detailsDialog.value = true;
|
||||||
// relativeId.value = row.id;
|
// relativeId.value = row.id;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user