|
@@ -20,46 +20,35 @@
|
|
<FormList :form-list="formValue.formList" />
|
|
<FormList :form-list="formValue.formList" />
|
|
</n-scrollbar>
|
|
</n-scrollbar>
|
|
</div>
|
|
</div>
|
|
- <n-modal
|
|
|
|
- v-model:show="modal.showModal"
|
|
|
|
- :show-icon="false"
|
|
|
|
- preset="dialog"
|
|
|
|
- :title="modal.title"
|
|
|
|
- @close="onCloseModal"
|
|
|
|
- >
|
|
|
|
- <n-upload
|
|
|
|
- list-type="image-card"
|
|
|
|
- :default-upload="false"
|
|
|
|
- :max="1"
|
|
|
|
- @change="handleChange"
|
|
|
|
- v-if="modal.title === '上传验证'"
|
|
|
|
- >
|
|
|
|
|
|
+ <n-modal style="width: 60%" v-model:show="modal.showModal" :show-icon="false" preset="dialog" :title="modal.title" @close="onCloseModal">
|
|
|
|
+ <n-upload list-type="image-card" :default-upload="false" :max="1" @change="handleChange"
|
|
|
|
+ v-if="modal.title === '上传验证'">
|
|
上传文件
|
|
上传文件
|
|
</n-upload>
|
|
</n-upload>
|
|
<template v-else>
|
|
<template v-else>
|
|
<n-card embedded :bordered="false">
|
|
<n-card embedded :bordered="false">
|
|
<template #header>
|
|
<template #header>
|
|
<div class="flex justify-center">
|
|
<div class="flex justify-center">
|
|
- <n-progress
|
|
|
|
- :status="
|
|
|
|
- keyInfo.Code === 600
|
|
|
|
- ? 'default'
|
|
|
|
- : keyInfo.Code === 601
|
|
|
|
|
|
+ <n-progress :status="keyInfo.Code === 600
|
|
|
|
+ ? 'default'
|
|
|
|
+ : keyInfo.Code === 601
|
|
? 'success'
|
|
? 'success'
|
|
: 'error'
|
|
: 'error'
|
|
- "
|
|
|
|
- type="line"
|
|
|
|
- gap-position="bottom"
|
|
|
|
- :percentage="keyInfo.Schedule"
|
|
|
|
- />
|
|
|
|
|
|
+ " type="line" gap-position="bottom" :percentage="keyInfo.Schedule" />
|
|
</div>
|
|
</div>
|
|
- </template>
|
|
|
|
- <div class=" pis" style="overflow:auto;height:200px;" ref="scrollbarRef" >
|
|
|
|
- <div class="flex" v-for="(item, index) of items" :key="index"> <!-- items -->
|
|
|
|
|
|
+
|
|
|
|
+ </template>
|
|
|
|
+ <div class=" pis" v-show="loadingFun==false" style="overflow:auto;height:400px;" ref="scrollbarRef">
|
|
|
|
+ <div class="flex" v-for="(item, index) of items" :key="index"> <!-- items -->
|
|
<n-badge class="mr-5" type="info" :value="index + 1" />
|
|
<n-badge class="mr-5" type="info" :value="index + 1" />
|
|
<span>{{ item }}</span>
|
|
<span>{{ item }}</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
+ <n-spin v-show="loadingFun==true" :show="true">
|
|
|
|
+ <n-alert title="请等待..." type="success">
|
|
|
|
+ 服务器正在处理中,请等待...
|
|
|
|
+ </n-alert>
|
|
|
|
+ </n-spin>
|
|
</n-card>
|
|
</n-card>
|
|
</template>
|
|
</template>
|
|
<template #action>
|
|
<template #action>
|
|
@@ -67,13 +56,7 @@
|
|
<n-button @click="modal.showModal = false">取消</n-button>
|
|
<n-button @click="modal.showModal = false">取消</n-button>
|
|
<n-button type="primary" @click="editTaskInfo">确认</n-button>
|
|
<n-button type="primary" @click="editTaskInfo">确认</n-button>
|
|
</n-space>
|
|
</n-space>
|
|
- <n-button
|
|
|
|
- v-else
|
|
|
|
- type="primary"
|
|
|
|
- :disabled="!keyInfo.Code === 601"
|
|
|
|
- @click="handleDownload"
|
|
|
|
- >下载文件</n-button
|
|
|
|
- >
|
|
|
|
|
|
+ <n-button v-else type="primary" :disabled="!keyInfo.Code === 601" @click="handleDownload">下载文件</n-button>
|
|
</template>
|
|
</template>
|
|
</n-modal>
|
|
</n-modal>
|
|
</template>
|
|
</template>
|
|
@@ -91,7 +74,7 @@ import {
|
|
import * as qiniu from 'qiniu-js';
|
|
import * as qiniu from 'qiniu-js';
|
|
import { getToken } from '@/utils/storage/sessionToken';
|
|
import { getToken } from '@/utils/storage/sessionToken';
|
|
import { getFileToken } from '@/common';
|
|
import { getFileToken } from '@/common';
|
|
-import { NButton,useMessage } from 'naive-ui';
|
|
|
|
|
|
+import { NButton, useMessage } from 'naive-ui';
|
|
import { useWindowSize } from '@vueuse/core';
|
|
import { useWindowSize } from '@vueuse/core';
|
|
import { onBeforeUnmount } from 'vue';
|
|
import { onBeforeUnmount } from 'vue';
|
|
import FormList from '@/components/FormList.vue';
|
|
import FormList from '@/components/FormList.vue';
|
|
@@ -100,7 +83,7 @@ import { useStore } from 'vuex';
|
|
const { height } = useWindowSize();
|
|
const { height } = useWindowSize();
|
|
|
|
|
|
const message = useMessage();
|
|
const message = useMessage();
|
|
-
|
|
|
|
|
|
+const loadingFun = ref(false)
|
|
const scrollbarRef = ref(null);
|
|
const scrollbarRef = ref(null);
|
|
|
|
|
|
const task = window.sessionStorage.getItem('task')
|
|
const task = window.sessionStorage.getItem('task')
|
|
@@ -130,25 +113,25 @@ const modal = reactive({
|
|
});
|
|
});
|
|
const store = useStore()
|
|
const store = useStore()
|
|
//复制
|
|
//复制
|
|
-const setCopy = ()=>{
|
|
|
|
|
|
+const setCopy = () => {
|
|
message.success("复制成功")
|
|
message.success("复制成功")
|
|
- store.commit('setTaskId',queryData.T_task_id)
|
|
|
|
-
|
|
|
|
|
|
+ store.commit('setTaskId', queryData.T_task_id)
|
|
|
|
+
|
|
}
|
|
}
|
|
//粘贴
|
|
//粘贴
|
|
-const setPaste = async ()=>{
|
|
|
|
- console.log('粘贴',store.state.TaskId,queryData.T_task_id)
|
|
|
|
- if(store.state.TaskId==''){
|
|
|
|
|
|
+const setPaste = async () => {
|
|
|
|
+ console.log('粘贴', store.state.TaskId, queryData.T_task_id)
|
|
|
|
+ if (store.state.TaskId == '') {
|
|
message.error('请先复制模板,在进行粘贴哦')
|
|
message.error('请先复制模板,在进行粘贴哦')
|
|
return
|
|
return
|
|
}
|
|
}
|
|
const resIt = await TempCopy({
|
|
const resIt = await TempCopy({
|
|
T_copy_task_id: store.state.TaskId,
|
|
T_copy_task_id: store.state.TaskId,
|
|
T_paste_task_id: queryData.T_task_id,
|
|
T_paste_task_id: queryData.T_task_id,
|
|
- T_source:1
|
|
|
|
|
|
+ T_source: 1
|
|
})
|
|
})
|
|
- if(resIt.data.Code==200){
|
|
|
|
- message.success('粘贴成功')
|
|
|
|
|
|
+ if (resIt.data.Code == 200) {
|
|
|
|
+ message.success('粘贴成功')
|
|
getTemplateList()
|
|
getTemplateList()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -208,16 +191,29 @@ const editTaskInfo = async () => {
|
|
console.log(e);
|
|
console.log(e);
|
|
}
|
|
}
|
|
};
|
|
};
|
|
-
|
|
|
|
|
|
+const obsData = reactive({
|
|
|
|
+ obj: {}
|
|
|
|
+})
|
|
// 验证报告生成 方案
|
|
// 验证报告生成 方案
|
|
const generateSchemeInfo = async (obj) => {
|
|
const generateSchemeInfo = async (obj) => {
|
|
|
|
+ obsData.obj = obj
|
|
|
|
+ var times = null
|
|
const { data: res } = await generateScheme({
|
|
const { data: res } = await generateScheme({
|
|
T_task_id: task.T_task_id,
|
|
T_task_id: task.T_task_id,
|
|
T_VerifyTemplate_id: task.T_VerifyTemplate_id,
|
|
T_VerifyTemplate_id: task.T_VerifyTemplate_id,
|
|
...obj,
|
|
...obj,
|
|
});
|
|
});
|
|
if (res.Code === 200) {
|
|
if (res.Code === 200) {
|
|
|
|
+ loadingFun.value = false
|
|
generateKeyInfo(res.Data);
|
|
generateKeyInfo(res.Data);
|
|
|
|
+ } else if (res.Code == 501) {
|
|
|
|
+ loadingFun.value = true
|
|
|
|
+ times = setTimeout(() => {
|
|
|
|
+ generateSchemeInfo(obsData.obj);
|
|
|
|
+ }, 1000);
|
|
|
|
+ } else {
|
|
|
|
+ loadingFun.value = true
|
|
|
|
+ clearTimeout(times);
|
|
}
|
|
}
|
|
};
|
|
};
|
|
|
|
|
|
@@ -225,12 +221,12 @@ let timer = 0;
|
|
const keyInfo = ref({});
|
|
const keyInfo = ref({});
|
|
|
|
|
|
const items = computed(() => {
|
|
const items = computed(() => {
|
|
- if(keyInfo.value.Item){
|
|
|
|
- nextTick(()=>{
|
|
|
|
|
|
+ if (keyInfo.value.Item) {
|
|
|
|
+ nextTick(() => {
|
|
scrollbarRef.value.scrollTop = scrollbarRef.value.scrollHeight
|
|
scrollbarRef.value.scrollTop = scrollbarRef.value.scrollHeight
|
|
})
|
|
})
|
|
- return keyInfo.value.Item.split('\n').filter((item) => item)
|
|
|
|
- }else{
|
|
|
|
|
|
+ return keyInfo.value.Item.split('\n').filter((item) => item)
|
|
|
|
+ } else {
|
|
return [];
|
|
return [];
|
|
}
|
|
}
|
|
});
|
|
});
|
|
@@ -270,34 +266,34 @@ const handleDownload = () => {
|
|
* 生成报告
|
|
* 生成报告
|
|
* @returns {Promise<void>}
|
|
* @returns {Promise<void>}
|
|
*/
|
|
*/
|
|
- const putTemplateData = async () => {
|
|
|
|
|
|
+const putTemplateData = async () => {
|
|
try {
|
|
try {
|
|
const arr = toRaw(formValue.formList);
|
|
const arr = toRaw(formValue.formList);
|
|
- // return
|
|
|
|
- const VerifyTemplateMapData = arr.map((item,i) => {
|
|
|
|
|
|
+ // return
|
|
|
|
+ const VerifyTemplateMapData = arr.map((item, i) => {
|
|
if (item.T_label === 3) {
|
|
if (item.T_label === 3) {
|
|
- console.log('等于3',item.T_value,item.T_label,i)
|
|
|
|
|
|
+ console.log('等于3', item.T_value, item.T_label, i)
|
|
return {
|
|
return {
|
|
T_VerifyTemplateMap_id: item.T_VerifyTemplateMap_id,
|
|
T_VerifyTemplateMap_id: item.T_VerifyTemplateMap_id,
|
|
- T_value: item.T_value.length!=0?item.T_value.join('|'):'',
|
|
|
|
|
|
+ T_value: item.T_value.length != 0 ? item.T_value.join('|') : '',
|
|
T_source: item.T_source,
|
|
T_source: item.T_source,
|
|
T_flow_sort: item.T_flow_sort,
|
|
T_flow_sort: item.T_flow_sort,
|
|
T_max_time: item.T_max_time,
|
|
T_max_time: item.T_max_time,
|
|
T_min_time: item.T_min_time,
|
|
T_min_time: item.T_min_time,
|
|
};
|
|
};
|
|
} else if (item.T_label === 9) {
|
|
} else if (item.T_label === 9) {
|
|
- console.log('等于9',item.T_value,item.T_label,i)
|
|
|
|
|
|
+ console.log('等于9', item.T_value, item.T_label, i)
|
|
return {
|
|
return {
|
|
T_VerifyTemplateMap_id: item.T_VerifyTemplateMap_id,
|
|
T_VerifyTemplateMap_id: item.T_VerifyTemplateMap_id,
|
|
- T_value: item.T_value!=null?item.T_value.join('|'):'',
|
|
|
|
|
|
+ T_value: item.T_value != null ? item.T_value.join('|') : '',
|
|
T_source: item.T_source,
|
|
T_source: item.T_source,
|
|
T_flow_sort: item.T_flow_sort,
|
|
T_flow_sort: item.T_flow_sort,
|
|
T_max_time: item.T_max_time,
|
|
T_max_time: item.T_max_time,
|
|
T_min_time: item.T_min_time,
|
|
T_min_time: item.T_min_time,
|
|
};
|
|
};
|
|
} else if (item.T_label === 12) {
|
|
} else if (item.T_label === 12) {
|
|
- console.log('等于12',item.T_value,item.T_label,i)
|
|
|
|
- if(item.T_value[0]==null && item.T_value[1]==null){
|
|
|
|
|
|
+ console.log('等于12', item.T_value, item.T_label, i)
|
|
|
|
+ if (item.T_value[0] == null && item.T_value[1] == null) {
|
|
return {
|
|
return {
|
|
T_VerifyTemplateMap_id: item.T_VerifyTemplateMap_id,
|
|
T_VerifyTemplateMap_id: item.T_VerifyTemplateMap_id,
|
|
T_value: '',
|
|
T_value: '',
|
|
@@ -306,8 +302,8 @@ const handleDownload = () => {
|
|
T_max_time: item.T_max_time,
|
|
T_max_time: item.T_max_time,
|
|
T_min_time: item.T_min_time,
|
|
T_min_time: item.T_min_time,
|
|
};
|
|
};
|
|
- }else{
|
|
|
|
- if(item.T_value[0]!=null){
|
|
|
|
|
|
+ } else {
|
|
|
|
+ if (item.T_value[0] != null) {
|
|
return {
|
|
return {
|
|
T_VerifyTemplateMap_id: item.T_VerifyTemplateMap_id,
|
|
T_VerifyTemplateMap_id: item.T_VerifyTemplateMap_id,
|
|
T_value: `${item.T_value[0]}/${item.T_value[1]}`,
|
|
T_value: `${item.T_value[0]}/${item.T_value[1]}`,
|
|
@@ -316,7 +312,7 @@ const handleDownload = () => {
|
|
T_max_time: item.T_max_time,
|
|
T_max_time: item.T_max_time,
|
|
T_min_time: item.T_min_time,
|
|
T_min_time: item.T_min_time,
|
|
};
|
|
};
|
|
- }else{
|
|
|
|
|
|
+ } else {
|
|
return {
|
|
return {
|
|
T_VerifyTemplateMap_id: item.T_VerifyTemplateMap_id,
|
|
T_VerifyTemplateMap_id: item.T_VerifyTemplateMap_id,
|
|
T_value: `/${item.T_value[1]}`,
|
|
T_value: `/${item.T_value[1]}`,
|
|
@@ -326,12 +322,12 @@ const handleDownload = () => {
|
|
T_min_time: item.T_min_time,
|
|
T_min_time: item.T_min_time,
|
|
};
|
|
};
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
} else if (item.T_label === 13) {
|
|
} else if (item.T_label === 13) {
|
|
- console.log('等于13',item.T_value,item.T_label,i)
|
|
|
|
- if(item.T_value[0]==null && item.T_value[1]==null){
|
|
|
|
|
|
+ console.log('等于13', item.T_value, item.T_label, i)
|
|
|
|
+ if (item.T_value[0] == null && item.T_value[1] == null) {
|
|
return {
|
|
return {
|
|
T_VerifyTemplateMap_id: item.T_VerifyTemplateMap_id,
|
|
T_VerifyTemplateMap_id: item.T_VerifyTemplateMap_id,
|
|
T_value: '',
|
|
T_value: '',
|
|
@@ -340,8 +336,8 @@ const handleDownload = () => {
|
|
T_max_time: item.T_max_time,
|
|
T_max_time: item.T_max_time,
|
|
T_min_time: item.T_min_time,
|
|
T_min_time: item.T_min_time,
|
|
};
|
|
};
|
|
- }else{
|
|
|
|
- if(item.T_value[0]!=null){
|
|
|
|
|
|
+ } else {
|
|
|
|
+ if (item.T_value[0] != null) {
|
|
return {
|
|
return {
|
|
T_VerifyTemplateMap_id: item.T_VerifyTemplateMap_id,
|
|
T_VerifyTemplateMap_id: item.T_VerifyTemplateMap_id,
|
|
T_value: `${item.T_value[0].join('|')}/${item.T_value[1]}`,
|
|
T_value: `${item.T_value[0].join('|')}/${item.T_value[1]}`,
|
|
@@ -350,7 +346,7 @@ const handleDownload = () => {
|
|
T_max_time: item.T_max_time,
|
|
T_max_time: item.T_max_time,
|
|
T_min_time: item.T_min_time,
|
|
T_min_time: item.T_min_time,
|
|
}
|
|
}
|
|
- }else{
|
|
|
|
|
|
+ } else {
|
|
return {
|
|
return {
|
|
T_VerifyTemplateMap_id: item.T_VerifyTemplateMap_id,
|
|
T_VerifyTemplateMap_id: item.T_VerifyTemplateMap_id,
|
|
T_value: `/${item.T_value[1]}`,
|
|
T_value: `/${item.T_value[1]}`,
|
|
@@ -360,13 +356,13 @@ const handleDownload = () => {
|
|
T_min_time: item.T_min_time,
|
|
T_min_time: item.T_min_time,
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
- console.log('等于其他',item.T_value,item.T_label,i)
|
|
|
|
|
|
+ console.log('等于其他', item.T_value, item.T_label, i)
|
|
return {
|
|
return {
|
|
T_VerifyTemplateMap_id: item.T_VerifyTemplateMap_id,
|
|
T_VerifyTemplateMap_id: item.T_VerifyTemplateMap_id,
|
|
- T_value: item.T_value!=null?item.T_value + '':'',
|
|
|
|
|
|
+ T_value: item.T_value != null ? item.T_value + '' : '',
|
|
T_source: item.T_source,
|
|
T_source: item.T_source,
|
|
T_flow_sort: item.T_flow_sort,
|
|
T_flow_sort: item.T_flow_sort,
|
|
T_max_time: item.T_max_time,
|
|
T_max_time: item.T_max_time,
|
|
@@ -374,7 +370,7 @@ const handleDownload = () => {
|
|
};
|
|
};
|
|
}
|
|
}
|
|
});
|
|
});
|
|
- console.log('提交参数',VerifyTemplateMapData)
|
|
|
|
|
|
+ console.log('提交参数', VerifyTemplateMapData)
|
|
// return
|
|
// return
|
|
const token = getToken();
|
|
const token = getToken();
|
|
const { data: res } = await putVerifyTemplateMapData({
|
|
const { data: res } = await putVerifyTemplateMapData({
|
|
@@ -384,41 +380,41 @@ const handleDownload = () => {
|
|
T_VerifyTemplate_id: queryData.T_VerifyTemplate_id,
|
|
T_VerifyTemplate_id: queryData.T_VerifyTemplate_id,
|
|
VerifyTemplateMapData,
|
|
VerifyTemplateMapData,
|
|
});
|
|
});
|
|
-
|
|
|
|
|
|
+
|
|
if (res.Code === 200) {
|
|
if (res.Code === 200) {
|
|
const obj = {};
|
|
const obj = {};
|
|
- console.log('打印arr',arr)
|
|
|
|
|
|
+ console.log('打印arr', arr)
|
|
for (let i of arr) {
|
|
for (let i of arr) {
|
|
- if (i.T_label === 3 || i.T_label === 9) {
|
|
|
|
- obj[i.T_name] = i.T_value!=null?i.T_value.join('|'):'';
|
|
|
|
- } else if (i.T_label === 12 ) {
|
|
|
|
- console.log('打印12',i.T_value)
|
|
|
|
- if(i.T_value[0]== null && i.T_value[1]==''){
|
|
|
|
- console.log('12',i.T_value)
|
|
|
|
|
|
+ if (i.T_label === 3 || i.T_label === 9) {
|
|
|
|
+ obj[i.T_name] = i.T_value != null ? i.T_value.join('|') : '';
|
|
|
|
+ } else if (i.T_label === 12) {
|
|
|
|
+ console.log('打印12', i.T_value)
|
|
|
|
+ if (i.T_value[0] == null && i.T_value[1] == '') {
|
|
|
|
+ console.log('12', i.T_value)
|
|
obj[i.T_name] = ''
|
|
obj[i.T_name] = ''
|
|
- }else{
|
|
|
|
- if(i.T_value[0]==null && i.T_value[1]!=null){
|
|
|
|
- obj[i.T_name] = ''+ '/' + i.T_value[1]
|
|
|
|
- }else if(i.T_value[0]!=null && i.T_value[1]==null){
|
|
|
|
|
|
+ } else {
|
|
|
|
+ if (i.T_value[0] == null && i.T_value[1] != null) {
|
|
|
|
+ obj[i.T_name] = '' + '/' + i.T_value[1]
|
|
|
|
+ } else if (i.T_value[0] != null && i.T_value[1] == null) {
|
|
obj[i.T_name] = i.T_value[0] + '/' + ''
|
|
obj[i.T_name] = i.T_value[0] + '/' + ''
|
|
- }else{
|
|
|
|
|
|
+ } else {
|
|
obj[i.T_name] = i.T_value[0] + '/' + i.T_value[1]
|
|
obj[i.T_name] = i.T_value[0] + '/' + i.T_value[1]
|
|
}
|
|
}
|
|
- console.log('打印arr22222',obj[i.T_name])
|
|
|
|
|
|
+ console.log('打印arr22222', obj[i.T_name])
|
|
}
|
|
}
|
|
- } else if (i.T_label === 13) {
|
|
|
|
- if(i.T_value[0]!=null && i.T_value[1]!=null){
|
|
|
|
|
|
+ } else if (i.T_label === 13) {
|
|
|
|
+ if (i.T_value[0] != null && i.T_value[1] != null) {
|
|
obj[i.T_name] = ''
|
|
obj[i.T_name] = ''
|
|
- }else{
|
|
|
|
- obj[i.T_name] = `${i.T_value[0]==null?'':i.T_value[0].join('|')+'/'+i.T_value[1]==null?'':i.T_value[1]}`;
|
|
|
|
- }
|
|
|
|
|
|
+ } else {
|
|
|
|
+ obj[i.T_name] = `${i.T_value[0] == null ? '' : i.T_value[0].join('|') + '/' + i.T_value[1] == null ? '' : i.T_value[1]}`;
|
|
|
|
+ }
|
|
} else {
|
|
} else {
|
|
obj[i.T_name] = i.T_value;
|
|
obj[i.T_name] = i.T_value;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
modal.title = '生成报告';
|
|
modal.title = '生成报告';
|
|
- modal.showModal = true;
|
|
|
|
|
|
+ modal.showModal = true;
|
|
generateSchemeInfo(obj);
|
|
generateSchemeInfo(obj);
|
|
}
|
|
}
|
|
} catch (e) {
|
|
} catch (e) {
|
|
@@ -449,41 +445,41 @@ const getClassList = async () => {
|
|
const getTemplateList = async () => {
|
|
const getTemplateList = async () => {
|
|
try {
|
|
try {
|
|
const { data: res } = await getVerifyTemplateMapDataList(queryData);
|
|
const { data: res } = await getVerifyTemplateMapDataList(queryData);
|
|
- console.log('999999999999999',res)
|
|
|
|
|
|
+ console.log('999999999999999', res)
|
|
// return
|
|
// return
|
|
formValue.formList = res.Data;
|
|
formValue.formList = res.Data;
|
|
|
|
|
|
formValue.formList.forEach(item => {
|
|
formValue.formList.forEach(item => {
|
|
- if (item.T_label === 3){
|
|
|
|
- if(item.T_value=='' || item.T_value==null){
|
|
|
|
|
|
+ if (item.T_label === 3) {
|
|
|
|
+ if (item.T_value == '' || item.T_value == null) {
|
|
item.T_value = []
|
|
item.T_value = []
|
|
- }else{
|
|
|
|
|
|
+ } else {
|
|
item.T_value = item.T_value.split('|')
|
|
item.T_value = item.T_value.split('|')
|
|
}
|
|
}
|
|
- }else if(item.T_label == 9){
|
|
|
|
- if(item.T_value=='' || item.T_value==null){
|
|
|
|
|
|
+ } else if (item.T_label == 9) {
|
|
|
|
+ if (item.T_value == '' || item.T_value == null) {
|
|
item.T_value = null
|
|
item.T_value = null
|
|
- }else{
|
|
|
|
|
|
+ } else {
|
|
item.T_value = item.T_value.split('|')
|
|
item.T_value = item.T_value.split('|')
|
|
}
|
|
}
|
|
- }else if (item.T_label === 12) {
|
|
|
|
- if(item.T_value=='' || item.T_value==null){
|
|
|
|
- item.T_value = [null,null]
|
|
|
|
- }else{
|
|
|
|
- if(item.T_value.split('/')[0]==""){
|
|
|
|
|
|
+ } else if (item.T_label === 12) {
|
|
|
|
+ if (item.T_value == '' || item.T_value == null) {
|
|
|
|
+ item.T_value = [null, null]
|
|
|
|
+ } else {
|
|
|
|
+ if (item.T_value.split('/')[0] == "") {
|
|
item.T_value = [null, item.T_value.split('/')[1]]
|
|
item.T_value = [null, item.T_value.split('/')[1]]
|
|
- }else{
|
|
|
|
|
|
+ } else {
|
|
item.T_value = [item.T_value.split('/')[0], item.T_value.split('/')[1]]
|
|
item.T_value = [item.T_value.split('/')[0], item.T_value.split('/')[1]]
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
} else if (item.T_label === 13) {
|
|
} else if (item.T_label === 13) {
|
|
- if(item.T_value=='' || item.T_value==null){
|
|
|
|
- item.T_value = [null,null]
|
|
|
|
- }else{
|
|
|
|
- if(item.T_value.split('/')[0]==""){//前面时间区间没选
|
|
|
|
|
|
+ if (item.T_value == '' || item.T_value == null) {
|
|
|
|
+ item.T_value = [null, null]
|
|
|
|
+ } else {
|
|
|
|
+ if (item.T_value.split('/')[0] == "") {//前面时间区间没选
|
|
item.T_value = [null, item.T_value.split('/')[1]]
|
|
item.T_value = [null, item.T_value.split('/')[1]]
|
|
- }else{//前面时间区间已经选
|
|
|
|
|
|
+ } else {//前面时间区间已经选
|
|
item.T_value = [item.T_value.split('/')[0].split('|'), item.T_value.split('/')[1]]
|
|
item.T_value = [item.T_value.split('/')[0].split('|'), item.T_value.split('/')[1]]
|
|
}
|
|
}
|
|
}
|
|
}
|