fix
Showing
6 changed files
with
32 additions
and
25 deletions
| ... | @@ -180,7 +180,7 @@ const getTableBtns = (row) => { | ... | @@ -180,7 +180,7 @@ const getTableBtns = (row) => { |
| 180 | const approveState = row.approveVO.approveState || null; | 180 | const approveState = row.approveVO.approveState || null; |
| 181 | const approveStaffGuids = approveVO.approveStaffGuids || []; | 181 | const approveStaffGuids = approveVO.approveStaffGuids || []; |
| 182 | const staffGuid = approveVO.staffGuid || ''; | 182 | const staffGuid = approveVO.staffGuid || ''; |
| 183 | const bizApproveState = row.bizApproveState; | 183 | const bizApproveState = row.approveState; |
| 184 | const currentStaffGuid = userData.staffGuid | 184 | const currentStaffGuid = userData.staffGuid |
| 185 | let isShowCancel = false; | 185 | let isShowCancel = false; |
| 186 | let flowState; | 186 | let flowState; | ... | ... |
| ... | @@ -346,8 +346,8 @@ const handleWindowResize = () => { | ... | @@ -346,8 +346,8 @@ const handleWindowResize = () => { |
| 346 | </div> | 346 | </div> |
| 347 | <div class="table_panel_wrap" :style="{ height: `calc(100% - ${tableToolsHeight + 60}px)` }"> | 347 | <div class="table_panel_wrap" :style="{ height: `calc(100% - ${tableToolsHeight + 60}px)` }"> |
| 348 | <div class="data-content" v-loading="listDataLoading" :style="{ height: `calc(100% - ${tableToolsHeight}px)` }"> | 348 | <div class="data-content" v-loading="listDataLoading" :style="{ height: `calc(100% - ${tableToolsHeight}px)` }"> |
| 349 | <div class="v-add" @click.stop="handleCreate" v-if="listData.length"> | 349 | <div class="v-add" @click.stop="handleCreate"> |
| 350 | <div class="add-img"></div> | 350 | <div class=" add-img"></div> |
| 351 | <div class="add-titile"> | 351 | <div class="add-titile"> |
| 352 | 新增数据产品 | 352 | 新增数据产品 |
| 353 | </div> | 353 | </div> |
| ... | @@ -430,10 +430,10 @@ const handleWindowResize = () => { | ... | @@ -430,10 +430,10 @@ const handleWindowResize = () => { |
| 430 | </div> | 430 | </div> |
| 431 | </div> | 431 | </div> |
| 432 | </div> | 432 | </div> |
| 433 | <div v-if="!listData.length" class="card-noData"> | 433 | <!-- <div v-if="listData.length" class="card-noData"> |
| 434 | <img src="../../assets/images/no-data.png" :style="{ width: '96px', height: '96px' }" /> | 434 | <img src="../../assets/images/no-data.png" :style="{ width: '96px', height: '96px' }" /> |
| 435 | <span>暂无数据资源目录</span> | 435 | <span>暂无数据资源目录</span> |
| 436 | </div> | 436 | </div> --> |
| 437 | </div> | 437 | </div> |
| 438 | 438 | ||
| 439 | </div> | 439 | </div> |
| ... | @@ -467,6 +467,8 @@ const handleWindowResize = () => { | ... | @@ -467,6 +467,8 @@ const handleWindowResize = () => { |
| 467 | position: relative; | 467 | position: relative; |
| 468 | 468 | ||
| 469 | .card-noData { | 469 | .card-noData { |
| 470 | height: 100%; | ||
| 471 | width: 100%; | ||
| 470 | background: #fafafa; | 472 | background: #fafafa; |
| 471 | display: flex; | 473 | display: flex; |
| 472 | flex-direction: column; | 474 | flex-direction: column; |
| ... | @@ -506,6 +508,7 @@ const handleWindowResize = () => { | ... | @@ -506,6 +508,7 @@ const handleWindowResize = () => { |
| 506 | justify-content: center; | 508 | justify-content: center; |
| 507 | align-items: center; | 509 | align-items: center; |
| 508 | flex-direction: column; | 510 | flex-direction: column; |
| 511 | z-index: 10; | ||
| 509 | 512 | ||
| 510 | &:hover { | 513 | &:hover { |
| 511 | box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); | 514 | box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); | ... | ... |
| ... | @@ -267,7 +267,7 @@ const getTableBtns = (row) => { | ... | @@ -267,7 +267,7 @@ const getTableBtns = (row) => { |
| 267 | const approveState = row.approveVO.approveState || null; | 267 | const approveState = row.approveVO.approveState || null; |
| 268 | const approveStaffGuids = approveVO.approveStaffGuids || []; | 268 | const approveStaffGuids = approveVO.approveStaffGuids || []; |
| 269 | const staffGuid = approveVO.staffGuid || ''; | 269 | const staffGuid = approveVO.staffGuid || ''; |
| 270 | const bizApproveState = row.bizApproveState; | 270 | const bizApproveState = row.approveState; |
| 271 | const currentStaffGuid = userData.staffGuid | 271 | const currentStaffGuid = userData.staffGuid |
| 272 | let isShowCancel = false; | 272 | let isShowCancel = false; |
| 273 | let flowState; | 273 | let flowState; | ... | ... |
| ... | @@ -44,26 +44,27 @@ const CgDirTreeList = ref(); | ... | @@ -44,26 +44,27 @@ const CgDirTreeList = ref(); |
| 44 | const getCgDirTreeData = async () => { | 44 | const getCgDirTreeData = async () => { |
| 45 | treeInfo.value.loading = true; | 45 | treeInfo.value.loading = true; |
| 46 | const params = { | 46 | const params = { |
| 47 | execGuid: execGuidInfo.value.execGuid | 47 | execGuid: execGuidInfo.value?.execGuid |
| 48 | } | 48 | } |
| 49 | const res: any = await getTaskExeTreeList(params); | 49 | const res: any = await getTaskExeTreeList(params); |
| 50 | if (res.code == proxy.$passCode) { | 50 | if (res.code == proxy.$passCode) { |
| 51 | 51 | ||
| 52 | const transformedData: any = [{ | 52 | const transformedData: any = [{ |
| 53 | classifyDetailGuid: execGuidInfo.value.guid, // 新增字段 GUID | 53 | classifyDetailGuid: execGuidInfo.value?.guid, // 新增字段 GUID |
| 54 | classifyName: execGuidInfo.value.cgDirName, // 新增字段目录名称 | 54 | classifyName: execGuidInfo.value?.cgDirName, // 新增字段目录名称 |
| 55 | children: res.data, // 将原始数据放入 children | 55 | children: res.data, // 将原始数据放入 children |
| 56 | }]; | 56 | }]; |
| 57 | CgDirTreeList.value = transformedData; | 57 | CgDirTreeList.value = transformedData; |
| 58 | treeInfo.value.data = transformedData; | 58 | treeInfo.value.data = transformedData; |
| 59 | currentPath.value = [transformedData[0].classifyName]; | 59 | currentPath.value = [transformedData[0]?.classifyName]; |
| 60 | treeInfo.value.expandedKey.push(transformedData[0].classifyDetailGuid); | 60 | treeInfo.value.expandedKey.push(transformedData[0]?.classifyDetailGuid); |
| 61 | treeInfo.value.currentNodeKey = transformedData[0].classifyDetailGuid; | 61 | treeInfo.value.currentNodeKey = transformedData[0]?.classifyDetailGuid; |
| 62 | // classifyDetailGuidInfo.value = res.data[0].classifyDetailGuid; | 62 | // classifyDetailGuidInfo.value = res.data[0].classifyDetailGuid; |
| 63 | searchItemList.value[0].options = res.data || []; | 63 | searchItemList.value[0].options = res.data || []; |
| 64 | refGradeGuid.value = res.data[0].refGradeGuid || ''; | 64 | refGradeGuid.value = res.data[0]?.refGradeGuid || ''; |
| 65 | treeInfo.value.loading = false; | 65 | treeInfo.value.loading = false; |
| 66 | } else { | 66 | } else { |
| 67 | treeInfo.value.loading = false; | ||
| 67 | proxy.$ElMessage.error(res.msg); | 68 | proxy.$ElMessage.error(res.msg); |
| 68 | } | 69 | } |
| 69 | } | 70 | } |
| ... | @@ -143,7 +144,7 @@ onMounted(async () => { | ... | @@ -143,7 +144,7 @@ onMounted(async () => { |
| 143 | await getExecGuid(); | 144 | await getExecGuid(); |
| 144 | await getCgDirTreeData(); | 145 | await getCgDirTreeData(); |
| 145 | await getCgDirFieldPage({ | 146 | await getCgDirFieldPage({ |
| 146 | execGuid: execGuidInfo.value.execGuid, | 147 | execGuid: execGuidInfo.value?.execGuid, |
| 147 | classifyDetail: classifyDetailGuidInfo.value | 148 | classifyDetail: classifyDetailGuidInfo.value |
| 148 | }); | 149 | }); |
| 149 | // getDictionaryList(); | 150 | // getDictionaryList(); |
| ... | @@ -1280,8 +1281,8 @@ const getDataBaseTreeData = async () => { | ... | @@ -1280,8 +1281,8 @@ const getDataBaseTreeData = async () => { |
| 1280 | if (localStorage.getItem("shouldReloadData")) { | 1281 | if (localStorage.getItem("shouldReloadData")) { |
| 1281 | dataBaseTreeInfo.value.expandedKey = []; | 1282 | dataBaseTreeInfo.value.expandedKey = []; |
| 1282 | const info = JSON.parse(localStorage.getItem("onActiveInfo") || '{}'); | 1283 | const info = JSON.parse(localStorage.getItem("onActiveInfo") || '{}'); |
| 1283 | dataBaseTreeInfo.value.expandedKey.push(dataArray[info.dbindex].guid); | 1284 | dataBaseTreeInfo.value.expandedKey.push(dataArray[info.dbindex]?.guid); |
| 1284 | dataBaseTreeInfo.value.currentNodeKey = dataArray[info.dbindex].guid; | 1285 | dataBaseTreeInfo.value.currentNodeKey = dataArray[info.dbindex]?.guid; |
| 1285 | dataBaseGuid.value = dataArray[info?.dbindex].databaseGuid; | 1286 | dataBaseGuid.value = dataArray[info?.dbindex].databaseGuid; |
| 1286 | currentDatabasePath.value = info?.path; | 1287 | currentDatabasePath.value = info?.path; |
| 1287 | if (dataArray[info?.dbindex].dicType === 1) { | 1288 | if (dataArray[info?.dbindex].dicType === 1) { |
| ... | @@ -1323,6 +1324,7 @@ const getDataBaseTreeData = async () => { | ... | @@ -1323,6 +1324,7 @@ const getDataBaseTreeData = async () => { |
| 1323 | 1324 | ||
| 1324 | dataBaseTreeInfo.value.loading = false; | 1325 | dataBaseTreeInfo.value.loading = false; |
| 1325 | } else { | 1326 | } else { |
| 1327 | dataBaseTreeInfo.value.loading = true; | ||
| 1326 | proxy.$ElMessage.error(res.msg); | 1328 | proxy.$ElMessage.error(res.msg); |
| 1327 | } | 1329 | } |
| 1328 | }; | 1330 | }; | ... | ... |
| ... | @@ -29,16 +29,16 @@ const getClassifyGradeTree = async () => { | ... | @@ -29,16 +29,16 @@ const getClassifyGradeTree = async () => { |
| 29 | classGradeTreeData.value = transformedData || []; | 29 | classGradeTreeData.value = transformedData || []; |
| 30 | treeInfo.value.data = classGradeTreeData.value; | 30 | treeInfo.value.data = classGradeTreeData.value; |
| 31 | // 默认展开第一级 | 31 | // 默认展开第一级 |
| 32 | expandedKey.value = classGradeTreeData.value[0].guid; | 32 | expandedKey.value = classGradeTreeData.value[0]?.guid; |
| 33 | treeInfo.value.expandedKey.push(classGradeTreeData.value[0].guid); | 33 | treeInfo.value.expandedKey.push(classGradeTreeData.value[0]?.guid); |
| 34 | // 寻找第一children中guid | 34 | // 寻找第一children中guid |
| 35 | if (classGradeTreeData.value[0].children) { | 35 | if (classGradeTreeData.value[0].children) { |
| 36 | treeInfo.value.currentNodeKey = classGradeTreeData.value[0].children[0].guid; | 36 | treeInfo.value.currentNodeKey = classGradeTreeData.value[0].children[0]?.guid; |
| 37 | // 分类明细guid | 37 | // 分类明细guid |
| 38 | classifyDetailGuid.value = classGradeTreeData.value[0].children[0].guid; | 38 | classifyDetailGuid.value = classGradeTreeData.value[0].children[0]?.guid; |
| 39 | } | 39 | } |
| 40 | // 分别赋值 分类guid | 40 | // 分别赋值 分类guid |
| 41 | classifyGuid.value = classGradeTreeData.value[0].guid; | 41 | classifyGuid.value = classGradeTreeData.value[0]?.guid; |
| 42 | console.log('getClassifyGradeTree', transformedData); | 42 | console.log('getClassifyGradeTree', transformedData); |
| 43 | newCreateGradeFormItems.value[1].options = transformDataForTree([transformedData[0]]) | 43 | newCreateGradeFormItems.value[1].options = transformDataForTree([transformedData[0]]) |
| 44 | treeInfo.value.loading = false; | 44 | treeInfo.value.loading = false; | ... | ... |
| ... | @@ -848,7 +848,7 @@ const formInfo = ref<any>({ | ... | @@ -848,7 +848,7 @@ const formInfo = ref<any>({ |
| 848 | <el-button type="primary" @click="toPatn1('add', 'add1')" v-preReClick>新建</el-button> | 848 | <el-button type="primary" @click="toPatn1('add', 'add1')" v-preReClick>新建</el-button> |
| 849 | </div> --> | 849 | </div> --> |
| 850 | </div> | 850 | </div> |
| 851 | <div class="list-content"> | 851 | <div class="list-content" v-if="demandListData.length > 0"> |
| 852 | <div class="card-content" v-for="item in demandListData" :key="item.guid"> | 852 | <div class="card-content" v-for="item in demandListData" :key="item.guid"> |
| 853 | <div class="header"> | 853 | <div class="header"> |
| 854 | <img class="left-img" :src="(item.picUrl && typeof item.picUrl == 'string') ? item.picUrl : defaultItemLogo" | 854 | <img class="left-img" :src="(item.picUrl && typeof item.picUrl == 'string') ? item.picUrl : defaultItemLogo" |
| ... | @@ -868,12 +868,14 @@ const formInfo = ref<any>({ | ... | @@ -868,12 +868,14 @@ const formInfo = ref<any>({ |
| 868 | </div> | 868 | </div> |
| 869 | </div> | 869 | </div> |
| 870 | <div class="operator-btn" @click="btnClick(item)"> | 870 | <div class="operator-btn" @click="btnClick(item)"> |
| 871 | <!-- <div class="left-btn borderRight" @click="btnClick(item)">更新模板</div> --> | 871 | |
| 872 | <div class="left-btn">资产登记</div> | 872 | <div class="left-btn">资产登记</div> |
| 873 | </div> | 873 | </div> |
| 874 | </div> | 874 | </div> |
| 875 | </div> | 875 | </div> |
| 876 | <div class="table_panel_wrap"> | 876 | <div class="table_panel_wrap" :style="{ |
| 877 | height: demandListData.length > 0 ? 'calc(100% - 230px)' : 'calc(100% - 54px)' | ||
| 878 | }"> | ||
| 877 | <Table :tableInfo="tableInfo" @tableBtnClick="tableBtnClick" @tablePageChange="tablePageChange" | 879 | <Table :tableInfo="tableInfo" @tableBtnClick="tableBtnClick" @tablePageChange="tablePageChange" |
| 878 | @tableSwitchBeforeChange="tableSwitchBeforeChange" /> | 880 | @tableSwitchBeforeChange="tableSwitchBeforeChange" /> |
| 879 | </div> | 881 | </div> |
| ... | @@ -910,7 +912,7 @@ const formInfo = ref<any>({ | ... | @@ -910,7 +912,7 @@ const formInfo = ref<any>({ |
| 910 | 912 | ||
| 911 | .table_panel_wrap { | 913 | .table_panel_wrap { |
| 912 | width: 100%; | 914 | width: 100%; |
| 913 | height: calc(100% - 230px); | 915 | // height: calc(100% - 54px); |
| 914 | padding: 0px 8px 0; | 916 | padding: 0px 8px 0; |
| 915 | } | 917 | } |
| 916 | 918 | ... | ... |
-
Please register or sign in to post a comment