结果确认界面调整
Showing
5 changed files
with
28 additions
and
17 deletions
src/assets/icons/icon-tip.svg
0 → 100644
| 1 | <?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg class="icon" width="32px" height="32.00px" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"><path d="M512 40.533333C251.613867 40.533333 40.533333 251.613867 40.533333 512S251.613867 983.466667 512 983.466667 983.466667 772.386133 983.466667 512 772.386133 40.533333 512 40.533333z m26.581333 724.2496c-8.7296 8.004267-18.926933 12.381867-31.300266 12.381867-12.381867 0-22.5792-4.386133-31.325867-12.381867-8.772267-8.746667-12.381867-18.935467-12.381867-31.3344 0-12.381867 3.6096-22.5792 12.381867-30.583466 8.738133-8.746667 18.944-12.381867 31.325867-12.381867 12.373333 0 23.287467 3.6352 32.0256 12.381867 8.021333 8.004267 12.373333 18.2016 12.373333 30.583466 0 13.115733-4.343467 23.3216-13.098667 31.3344z m104.891734-291.387733c-7.287467 8.7296-26.9312 27.665067-58.9824 56.072533-16.034133 13.8496-26.965333 26.965333-34.2528 40.081067-9.454933 16.017067-13.841067 33.518933-13.841067 53.162667v16.768H478.122667v-16.768c0-24.029867 4.386133-45.149867 13.124266-63.368534 10.180267-21.853867 34.218667-49.544533 73.565867-84.5056 11.639467-11.648 20.386133-20.4032 24.763733-26.2144 14.574933-18.218667 21.870933-37.154133 21.870934-57.5488 0-29.149867-8.763733-51.720533-24.763734-67.746133-16.776533-17.4848-40.797867-25.4976-71.3984-25.4976-36.420267 0-63.3856 11.665067-80.8704 35.703467-16.0256 20.394667-24.021333 48.085333-24.021333 83.7632h-57.5744c0-50.986667 13.866667-91.784533 42.999467-122.376534 29.149867-32.059733 69.9136-48.0768 122.3936-48.0768 46.609067 0 83.754667 12.381867 112.1792 38.596267 26.9312 24.763733 40.797867 59.008 40.797866 102.715733-0.008533 32.785067-9.480533 61.184-27.716266 85.239467z" fill="#8a8a8a" /></svg> | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| ... | @@ -58,10 +58,13 @@ const routes: RouteRecordRaw[] = [ | ... | @@ -58,10 +58,13 @@ const routes: RouteRecordRaw[] = [ |
| 58 | activeMenu: '/data-inventory/classify-grade-manage/task-config' | 58 | activeMenu: '/data-inventory/classify-grade-manage/task-config' |
| 59 | }, | 59 | }, |
| 60 | beforeEnter: (to, from) => { | 60 | beforeEnter: (to, from) => { |
| 61 | if (to.query.type == 'confirm') { | 61 | const taksExecGuid = sessionStorage.getItem('taksExecGuid') || ''; |
| 62 | to.meta.title = `${to.query.name}-结果确认`; | 62 | if(taksExecGuid){ |
| 63 | to.meta.title = `${to.query.name}-${to.query.status == 'Y'?'查看结果':'结果确认'}`; | ||
| 64 | to.meta.editPage = to.query.status == 'Y'? false: true; | ||
| 63 | } else { | 65 | } else { |
| 64 | to.meta.title = `${to.query.name}-结果修改`; | 66 | to.meta.title = `${to.query.name}-${to.query.type == 'confirm'?'结果确认':'结果修改'}`; |
| 67 | to.meta.editPage = true; | ||
| 65 | } | 68 | } |
| 66 | } | 69 | } |
| 67 | }, | 70 | }, | ... | ... |
| ... | @@ -160,12 +160,13 @@ const toPath = (type) => { | ... | @@ -160,12 +160,13 @@ const toPath = (type) => { |
| 160 | }, | 160 | }, |
| 161 | }); | 161 | }); |
| 162 | } else if (type == 'confirm' || type == 'modify') { | 162 | } else if (type == 'confirm' || type == 'modify') { |
| 163 | sessionStorage.setItem('taksExecGuid', ''); | ||
| 163 | router.push({ | 164 | router.push({ |
| 164 | name: "taskDetail", | 165 | name: "taskDetail", |
| 165 | query: { | 166 | query: { |
| 166 | guid: currTableData.value.guid, | 167 | guid: currTableData.value.guid, |
| 167 | name: currTableData.value.taskName, | 168 | name: currTableData.value.taskName, |
| 168 | execGuid: currTableData.value.execGuid, | 169 | status: currTableData.value.confirmStatus, |
| 169 | type | 170 | type |
| 170 | }, | 171 | }, |
| 171 | }); | 172 | }); |
| ... | @@ -227,7 +228,7 @@ onBeforeMount(() => { | ... | @@ -227,7 +228,7 @@ onBeforeMount(() => { |
| 227 | <span>分类分级任务</span> | 228 | <span>分类分级任务</span> |
| 228 | <div class="title_tool"> | 229 | <div class="title_tool"> |
| 229 | <el-button @click="getTableData" v-preReClick>刷新结果</el-button> | 230 | <el-button @click="getTableData" v-preReClick>刷新结果</el-button> |
| 230 | <span class="tips_text">请及时刷新查看最终结果</span> | 231 | <span class="tips_text">刷新查看任务最新执行结果</span> |
| 231 | </div> | 232 | </div> |
| 232 | </div> | 233 | </div> |
| 233 | </div> | 234 | </div> | ... | ... |
| ... | @@ -31,9 +31,10 @@ const route = useRoute(); | ... | @@ -31,9 +31,10 @@ const route = useRoute(); |
| 31 | const userStore = useUserStore(); | 31 | const userStore = useUserStore(); |
| 32 | const fullPath = route.fullPath; | 32 | const fullPath = route.fullPath; |
| 33 | const assetStore = useDataAssetStore(); | 33 | const assetStore = useDataAssetStore(); |
| 34 | const showBtns = route.meta.editPage; | ||
| 35 | const execGuid = sessionStorage.getItem('taksExecGuid'); | ||
| 34 | 36 | ||
| 35 | const loading = ref(false); | 37 | const loading = ref(false); |
| 36 | const showBtns = ref(true); | ||
| 37 | const gradeList = ref([]); | 38 | const gradeList = ref([]); |
| 38 | const treeData = ref([ | 39 | const treeData = ref([ |
| 39 | { | 40 | { |
| ... | @@ -396,7 +397,7 @@ const getTaskDetail = (param) => { | ... | @@ -396,7 +397,7 @@ const getTaskDetail = (param) => { |
| 396 | loading.value = false; | 397 | loading.value = false; |
| 397 | if (res.code == proxy.$passCode) { | 398 | if (res.code == proxy.$passCode) { |
| 398 | taskDetail.value = res.data || {}; | 399 | taskDetail.value = res.data || {}; |
| 399 | taskDetail.value.confirmStatus != 'Y' && (showBtns.value = true); | 400 | // taskDetail.value.confirmStatus != 'Y' && (showBtns.value = true); |
| 400 | getFieldCount() | 401 | getFieldCount() |
| 401 | getSheetFieldList({ type: 1 }); | 402 | getSheetFieldList({ type: 1 }); |
| 402 | getFieldTree() | 403 | getFieldTree() |
| ... | @@ -868,9 +869,8 @@ onActivated(() => { | ... | @@ -868,9 +869,8 @@ onActivated(() => { |
| 868 | }) | 869 | }) |
| 869 | 870 | ||
| 870 | onBeforeMount(() => { | 871 | onBeforeMount(() => { |
| 871 | if (route.query.type == 'log') { | 872 | if (execGuid) { |
| 872 | showBtns.value = false; | 873 | getTaskDetail({ guid: route.query.guid, execGuid: execGuid }); |
| 873 | getTaskDetail({ guid: route.query.guid, execGuid: route.query.execGuid }); | ||
| 874 | } else { | 874 | } else { |
| 875 | getTaskDetail({ guid: route.query.guid }); | 875 | getTaskDetail({ guid: route.query.guid }); |
| 876 | } | 876 | } |
| ... | @@ -969,12 +969,17 @@ onMounted(() => { | ... | @@ -969,12 +969,17 @@ onMounted(() => { |
| 969 | @selectChange="selectChange" @cascaderChange="cascaderChange" @search="searchField" /> | 969 | @selectChange="selectChange" @cascaderChange="cascaderChange" @search="searchField" /> |
| 970 | <div class="tools_btns"> | 970 | <div class="tools_btns"> |
| 971 | <div class="btns"> | 971 | <div class="btns"> |
| 972 | <el-button type="primary" plain @click="btnClick({ value: 'batch' })">批量变更分类分级</el-button> | 972 | <el-button v-if="showBtns" type="primary" plain @click="btnClick({ value: 'batch' })">批量变更分类分级</el-button> |
| 973 | <el-button type="primary" plain @click="btnClick({ value: 'status' })">批量确认</el-button> | 973 | <el-button v-if="showBtns" type="primary" plain @click="btnClick({ value: 'status' })">批量确认</el-button> |
| 974 | <el-button plain @click="btnClick({ value: 'export' })">导出</el-button> | 974 | <!-- <el-button plain @click="btnClick({ value: 'export' })">导出</el-button> --> |
| 975 | </div> | 975 | </div> |
| 976 | <div class="checkboxs"> | 976 | <div class="checkboxs"> |
| 977 | <el-checkbox v-model="checked1" @change="getFieldTableData()">仅看多分类</el-checkbox> | 977 | <el-checkbox v-model="checked1" @change="getFieldTableData()">仅看多分类</el-checkbox> |
| 978 | <el-tooltip effect="light" placement="top" content="一个字段只能有一个分类,多分类的字段需要人工确定分类"> | ||
| 979 | <el-icon style="margin-left: 8px;"> | ||
| 980 | <svg-icon name="icon-tip" /> | ||
| 981 | </el-icon> | ||
| 982 | </el-tooltip> | ||
| 978 | </div> | 983 | </div> |
| 979 | </div> | 984 | </div> |
| 980 | </div> | 985 | </div> |
| ... | @@ -1020,7 +1025,7 @@ onMounted(() => { | ... | @@ -1020,7 +1025,7 @@ onMounted(() => { |
| 1020 | </span> | 1025 | </span> |
| 1021 | </template> | 1026 | </template> |
| 1022 | </el-table-column> | 1027 | </el-table-column> |
| 1023 | <el-table-column label="操作" :width="fieldTableInfo.actionInfo.width" fixed="right"> | 1028 | <el-table-column label="操作" :width="fieldTableInfo.actionInfo.width" fixed="right" v-if="showBtns"> |
| 1024 | <template #default="scope"> | 1029 | <template #default="scope"> |
| 1025 | <span class="text_btn" | 1030 | <span class="text_btn" |
| 1026 | @click="tableBtnClick(scope, { value: scope.row['STATE'] === 'Running' ? 'save' : 'edit' })" | 1031 | @click="tableBtnClick(scope, { value: scope.row['STATE'] === 'Running' ? 'save' : 'edit' })" | ... | ... |
| ... | @@ -46,7 +46,7 @@ const tableInfo = ref({ | ... | @@ -46,7 +46,7 @@ const tableInfo = ref({ |
| 46 | label: "结果状态", field: "status", width: TableColumnWidth.STATE, align: 'center', type: "tag", getName: (scope) => { | 46 | label: "结果状态", field: "status", width: TableColumnWidth.STATE, align: 'center', type: "tag", getName: (scope) => { |
| 47 | return filterVal(scope.row.status, 'confirmStatus'); | 47 | return filterVal(scope.row.status, 'confirmStatus'); |
| 48 | }, tagType: (scope) => { | 48 | }, tagType: (scope) => { |
| 49 | return scope.row.confirmStatus == 'Y' ? 'success' : 'warning'; | 49 | return scope.row.status == 'Y' ? 'success' : 'warning'; |
| 50 | } | 50 | } |
| 51 | }, | 51 | }, |
| 52 | ], | 52 | ], |
| ... | @@ -100,13 +100,14 @@ const tableBtnClick = (scope, btn) => { | ... | @@ -100,13 +100,14 @@ const tableBtnClick = (scope, btn) => { |
| 100 | }; | 100 | }; |
| 101 | 101 | ||
| 102 | const toPath = (type) => { | 102 | const toPath = (type) => { |
| 103 | sessionStorage.setItem('taksExecGuid', currTableData.value.guid); | ||
| 103 | router.push({ | 104 | router.push({ |
| 104 | name: "taskDetail", | 105 | name: "taskDetail", |
| 105 | query: { | 106 | query: { |
| 106 | guid: currTableData.value.taskGuid, | 107 | guid: currTableData.value.taskGuid, |
| 107 | name: currTableData.value.taskName, | 108 | name: currTableData.value.taskName, |
| 108 | execGuid: currTableData.value.guid, | 109 | status: currTableData.value.status, |
| 109 | type | 110 | type: currTableData.value.status == 'Y'? 'modify':'confirm' |
| 110 | }, | 111 | }, |
| 111 | }); | 112 | }); |
| 112 | } | 113 | } | ... | ... |
-
Please register or sign in to post a comment