a29377c5 by lxs

Merge branch 'release-test' of http://117.78.60.236:8000/csbr-daop/fe-data-asset…

…-management into release-test
2 parents 49d1accb 7f57de30
...@@ -4,7 +4,9 @@ VITE_APP_TITLE = 数据资产管理系统 ...@@ -4,7 +4,9 @@ VITE_APP_TITLE = 数据资产管理系统
4 # VITE_API_BASEURL = https://www.zgsjzc.com/api 4 # VITE_API_BASEURL = https://www.zgsjzc.com/api
5 # VITE_API_BASEURL = https://swzl-test.csbr.cn/api 5 # VITE_API_BASEURL = https://swzl-test.csbr.cn/api
6 # VITE_API_BASEURL = http://localhost:9000 6 # VITE_API_BASEURL = http://localhost:9000
7 VITE_API_BASEURL = http://192.168.6.20:28052/ 7 VITE_API_BASEURL = https://daop-zcgl-test.zgsjzc.com/
8
9 VITE_IDASS_BASEURL = https://daop-test.zgsjzc.com/portalLogin
8 10
9 # 平台用户 接口请地址 11 # 平台用户 接口请地址
10 VITE_APP_USER_API_BASEURL = gateway-server 12 VITE_APP_USER_API_BASEURL = gateway-server
...@@ -80,12 +82,12 @@ VITE_APP_ATTACHMENT_TEMPLATE = ms-daop-personel-service ...@@ -80,12 +82,12 @@ VITE_APP_ATTACHMENT_TEMPLATE = ms-daop-personel-service
80 VITE_APP_PERSONAL_URL = 'ms-daop-personel-service' 82 VITE_APP_PERSONAL_URL = 'ms-daop-personel-service'
81 83
82 #流通平台地址 84 #流通平台地址
83 VITE_APP_CIRCULATION = http://192.168.6.20:18052/ 85 VITE_APP_CIRCULATION = https://daop-lt-test.zgsjzc.com/
84 # 测试环境访问地址 86 # 测试环境访问地址
85 VITE_API_CIRCULATION_URL = http://192.168.6.22:29900/circulation 87 # VITE_API_CIRCULATION_URL = http://192.168.6.22:29900/circulation
86 88
87 #数据加工交付 89 #数据加工交付
88 VITE_APP_DATA_DELIVERY = http://192.168.6.20:38052/ 90 VITE_APP_DATA_DELIVERY = https://daop-jgjf-test.zgsjzc.com/
89 91
90 92
91 # 本地访问地址 93 # 本地访问地址
......
1 # 页面标题 1 # 页面标题
2 VITE_APP_TITLE = 数据资产管理系统 2 VITE_APP_TITLE = 数据资产管理系统
3 # 接口域名 3 # 接口域名
4 VITE_API_BASEURL = http://192.168.6.20:28052/ 4 VITE_API_BASEURL = https://daop-zcgl-test.zgsjzc.com/
5 # VITE_API_BASEURL = http://49.4.26.201:31709/ 5 # VITE_API_BASEURL = http://49.4.26.201:31709/
6 6
7 VITE_IDASS_BASEURL = https://daop-test.zgsjzc.com/portalLogin
8
7 # # 平台用户 接口请地址 9 # # 平台用户 接口请地址
8 # VITE_APP_USER_API_BASEURL = gateway-server 10 # VITE_APP_USER_API_BASEURL = gateway-server
9 11
...@@ -115,9 +117,9 @@ VITE_API_MESSAGE = ms-daop-message-service ...@@ -115,9 +117,9 @@ VITE_API_MESSAGE = ms-daop-message-service
115 VITE_APP_PERSONAL_URL = ms-daop-personel-service 117 VITE_APP_PERSONAL_URL = ms-daop-personel-service
116 118
117 #流通平台接口地址 119 #流通平台接口地址
118 VITE_APP_CIRCULATION = http://192.168.6.20:18052/ 120 VITE_APP_CIRCULATION = https://daop-lt-test.zgsjzc.com/
119 #数据加工交付 121 #数据加工交付
120 VITE_APP_DATA_DELIVERY = http://192.168.6.20:38052/ 122 VITE_APP_DATA_DELIVERY = https://daop-jgjf-test.zgsjzc.com/
121 123
122 # 是否在打包时生成 sourcemap 124 # 是否在打包时生成 sourcemap
123 VITE_BUILD_SOURCEMAP = false 125 VITE_BUILD_SOURCEMAP = false
......
...@@ -424,7 +424,7 @@ export const getApiDetail = (params) => request({ ...@@ -424,7 +424,7 @@ export const getApiDetail = (params) => request({
424 // url:`${import.meta.env.VITE_APP_SERVICE_BASEURL}/api-base-info/detail`, 424 // url:`${import.meta.env.VITE_APP_SERVICE_BASEURL}/api-base-info/detail`,
425 // url: `http://localhost:9000/circulation/ms-data-circulation-portal-service/enterprise/detail-by-name`, 425 // url: `http://localhost:9000/circulation/ms-data-circulation-portal-service/enterprise/detail-by-name`,
426 // url: `http://localhost:9000/delivery/ms-daop-jgjf-data-open-service/api-base-info/detail/${params}`, 426 // url: `http://localhost:9000/delivery/ms-daop-jgjf-data-open-service/api-base-info/detail/${params}`,
427 url: `http://192.168.6.22:29900/delivery/ms-daop-jgjf-data-open-service/api-base-info/detail/${params}`, 427 url: `https://daop-zcgl-test.zgsjzc.com/delivery/ms-daop-jgjf-data-open-service/api-base-info/detail/${params}`,
428 method: 'get', 428 method: 'get',
429 }) 429 })
430 430
......
...@@ -86,7 +86,7 @@ export const getProduct = (params) => request({ ...@@ -86,7 +86,7 @@ export const getProduct = (params) => request({
86 export const getTenantInfo = (params) => request({ 86 export const getTenantInfo = (params) => request({
87 // url: `${import.meta.env.VITE_APP_PERSONAL_URL}/tenant/getByGuid/${params}`, 87 // url: `${import.meta.env.VITE_APP_PERSONAL_URL}/tenant/getByGuid/${params}`,
88 // url: `http://localhost:9000/circulation/ms-data-circulation-portal-service/enterprise/detail-by-name`, 88 // url: `http://localhost:9000/circulation/ms-data-circulation-portal-service/enterprise/detail-by-name`,
89 url: `http://192.168.6.22:29900/circulation/ms-data-circulation-portal-service/enterprise/detail-by-name`, 89 url: `https://daop-zcgl-test.zgsjzc.com/circulation/ms-data-circulation-portal-service/enterprise/detail-by-name`,
90 method: 'get', 90 method: 'get',
91 params 91 params
92 }) 92 })
......

8.96 KB | W: | H:

9.52 KB | W: | H:

src/assets/images/logo.png
src/assets/images/logo.png
src/assets/images/logo.png
src/assets/images/logo.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -346,6 +346,12 @@ onMounted(() => { ...@@ -346,6 +346,12 @@ onMounted(() => {
346 <template #default="scope" v-else-if="item.type == 'input'"> 346 <template #default="scope" v-else-if="item.type == 'input'">
347 <el-input v-model.trim="scope.row[item.field]" placeholder="请输入" :maxlength="item.maxlength ?? ''"></el-input> 347 <el-input v-model.trim="scope.row[item.field]" placeholder="请输入" :maxlength="item.maxlength ?? ''"></el-input>
348 </template> 348 </template>
349 <template #default="scope" v-else-if="item.type == 'approveTag'">
350 <el-tag v-if="scope.row[item.field]" :type="tagType(scope.row.approveVO, 'approveState')">{{
351 tagMethod(scope.row.approveVO, 'approveState')
352 }}</el-tag>
353 <span v-else>{{ '--' }}</span>
354 </template>
349 <template #default="scope" v-else-if="item.type == 'tooltip'"> 355 <template #default="scope" v-else-if="item.type == 'tooltip'">
350 <el-tooltip :placement="item.placement ?? 'bottom-start'" effect="light" popper-class="table_tooltip" 356 <el-tooltip :placement="item.placement ?? 'bottom-start'" effect="light" popper-class="table_tooltip"
351 :trigger="item.trigger"> 357 :trigger="item.trigger">
......
...@@ -149,8 +149,8 @@ header { ...@@ -149,8 +149,8 @@ header {
149 background-color: inherit; 149 background-color: inherit;
150 150
151 .logo { 151 .logo {
152 width: auto; 152 width: 180px;
153 height: 30px; 153 height: 48px;
154 } 154 }
155 155
156 span { 156 span {
...@@ -278,5 +278,4 @@ header { ...@@ -278,5 +278,4 @@ header {
278 height: 18px; 278 height: 18px;
279 } 279 }
280 } 280 }
281
282 </style> 281 </style>
......
...@@ -256,8 +256,12 @@ const messageAllRead = () => { ...@@ -256,8 +256,12 @@ const messageAllRead = () => {
256 } 256 }
257 257
258 const createServerConnect = () => { 258 const createServerConnect = () => {
259 const websocketUrl = '192.168.6.20:29203'; //测试环境的 259 let websocketUrl = 'ws://192.168.6.20:39203';
260 const ws = new WebSocket(`ws://${websocketUrl}/websocket/${userData.staffGuid}`); 260 //测试环境
261 if (location.origin == 'https://daop-zcgl-test.zgsjzc.com') {
262 websocketUrl = 'wss://daop-zcgl-test.zgsjzc.com/websocket'
263 }
264 const ws = new WebSocket(`${websocketUrl}/websocket/${userData.staffGuid}`);
261 ws.onopen = function () { 265 ws.onopen = function () {
262 console.log('Connected to server.'); 266 console.log('Connected to server.');
263 }; 267 };
......
...@@ -27,12 +27,13 @@ const useUserStore = defineStore( ...@@ -27,12 +27,13 @@ const useUserStore = defineStore(
27 const isLogin = ref(token.value ? true : false);//退出登录。 27 const isLogin = ref(token.value ? true : false);//退出登录。
28 const getTokenPromise: any = ref(null); 28 const getTokenPromise: any = ref(null);
29 /* idass的登录页面url,退出登录需要跳转到登录页。*/ 29 /* idass的登录页面url,退出登录需要跳转到登录页。*/
30 const idassLoginUrl = 'https://idaas-test.csbr.cn/login'; 30 const idassLoginUrl = import.meta.env.VITE_IDASS_BASEURL;
31 const timer: any = ref(null); 31 const timer: any = ref(null);
32 //获取token. 32 //获取token.
33 function getToken(data, state) { 33 function getToken(data, state) {
34 data.platformGuid = "7f16f697aec111ef8656fa163e60becd"; 34 data.platformGuid = "7f16f697aec111ef8656fa163e60becd";
35 data.userType = 2; 35 data.userType = 2;
36 data.appKey = '672c2c38e4b0cac8732a6106';
36 data.validateUri = location.origin == 'http://localhost:9000' ? 'http://localhost:9000/' : location.origin + '/'; 37 data.validateUri = location.origin == 'http://localhost:9000' ? 'http://localhost:9000/' : location.origin + '/';
37 return getTokenPromise.value = getTokenByCode(data).then((res: any) => { 38 return getTokenPromise.value = getTokenByCode(data).then((res: any) => {
38 getTokenPromise.value = null; 39 getTokenPromise.value = null;
......
...@@ -723,7 +723,7 @@ export const tagMethod = (row, type) => { ...@@ -723,7 +723,7 @@ export const tagMethod = (row, type) => {
723 tag = '已撤销' 723 tag = '已撤销'
724 break; 724 break;
725 default: 725 default:
726 tag = row['dataState'] === 1 ? '已提交' : '草稿中' 726 tag = '--'
727 break; 727 break;
728 } 728 }
729 } else if (type == 'standardType') { 729 } else if (type == 'standardType') {
......
...@@ -36,7 +36,7 @@ const tableFields = ref([ ...@@ -36,7 +36,7 @@ const tableFields = ref([
36 { label: "登记时间", field: "registerTime", width: 120 }, 36 { label: "登记时间", field: "registerTime", width: 120 },
37 // { label: "企业名称", field: "tenantName", width: 240, align: "left" }, 37 // { label: "企业名称", field: "tenantName", width: 240, align: "left" },
38 { label: "评估机构", field: "issuingEntityName", width: 250, align: "left" }, 38 { label: "评估机构", field: "issuingEntityName", width: 250, align: "left" },
39 { label: "状态", field: "approveState", type: "tag", width: 96, align: 'center' }, 39 { label: "审批状态", field: "approveVO", type: "approveTag", width: 96, align: 'center' },
40 ]); 40 ]);
41 41
42 const deploymentId = ref(''); 42 const deploymentId = ref('');
...@@ -177,10 +177,10 @@ const tableInfo = ref({ ...@@ -177,10 +177,10 @@ const tableInfo = ref({
177 const getTableBtns = (row) => { 177 const getTableBtns = (row) => {
178 let btnsArr: any[] = []; 178 let btnsArr: any[] = [];
179 const approveVO = row.approveVO || {}; 179 const approveVO = row.approveVO || {};
180 const approveState = row.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);
......
...@@ -46,7 +46,7 @@ const tableFields = ref([ ...@@ -46,7 +46,7 @@ const tableFields = ref([
46 // { label: "企业名称", field: "tenantName", width: 240, align: "left" }, 46 // { label: "企业名称", field: "tenantName", width: 240, align: "left" },
47 { label: "评估机构", field: "issuingEntityName", width: 250, align: "left" }, 47 { label: "评估机构", field: "issuingEntityName", width: 250, align: "left" },
48 { 48 {
49 label: "状态", field: "approveState", type: "tag", width: 96, align: 'center', getName: (scope) => { 49 label: "审批状态", field: "approveState", type: "tag", width: 96, align: 'center', getName: (scope) => {
50 const approveVO = scope.row.approveVO || {} 50 const approveVO = scope.row.approveVO || {}
51 switch (approveVO.approveState) { 51 switch (approveVO.approveState) {
52 case 'N': 52 case 'N':
...@@ -264,10 +264,10 @@ const tableInfo = ref({ ...@@ -264,10 +264,10 @@ const tableInfo = ref({
264 const getTableBtns = (row) => { 264 const getTableBtns = (row) => {
265 let btnsArr: any[] = []; 265 let btnsArr: any[] = [];
266 const approveVO = row.approveVO || {}; 266 const approveVO = row.approveVO || {};
267 const approveState = row.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,31 @@ const CgDirTreeList = ref(); ...@@ -44,26 +44,31 @@ 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 }
49 if (!execGuidInfo.value?.execGuid || !execGuidInfo.value?.execGuid) {
50 treeInfo.value.loading = false;
51 return;
48 } 52 }
49 const res: any = await getTaskExeTreeList(params); 53 const res: any = await getTaskExeTreeList(params);
50 if (res.code == proxy.$passCode) { 54 if (res.code == proxy.$passCode) {
51 55
52 const transformedData: any = [{ 56 const transformedData: any = [{
53 classifyDetailGuid: execGuidInfo.value.guid, // 新增字段 GUID 57 classifyDetailGuid: execGuidInfo.value?.guid, // 新增字段 GUID
54 classifyName: execGuidInfo.value.cgDirName, // 新增字段目录名称 58 classifyName: execGuidInfo.value?.cgDirName, // 新增字段目录名称
55 children: res.data, // 将原始数据放入 children 59 children: res.data, // 将原始数据放入 children
56 }]; 60 }];
57 CgDirTreeList.value = transformedData; 61 CgDirTreeList.value = transformedData;
58 treeInfo.value.data = transformedData; 62 treeInfo.value.data = transformedData;
59 currentPath.value = [transformedData[0].classifyName]; 63 currentPath.value = [transformedData[0]?.classifyName];
60 treeInfo.value.expandedKey.push(transformedData[0].classifyDetailGuid); 64 treeInfo.value.expandedKey.push(transformedData[0]?.classifyDetailGuid);
61 treeInfo.value.currentNodeKey = transformedData[0].classifyDetailGuid; 65 treeInfo.value.currentNodeKey = transformedData[0]?.classifyDetailGuid;
62 // classifyDetailGuidInfo.value = res.data[0].classifyDetailGuid; 66 // classifyDetailGuidInfo.value = res.data[0].classifyDetailGuid;
63 searchItemList.value[0].options = res.data || []; 67 searchItemList.value[0].options = res.data || [];
64 refGradeGuid.value = res.data[0].refGradeGuid || ''; 68 refGradeGuid.value = res.data[0]?.refGradeGuid || '';
65 treeInfo.value.loading = false; 69 treeInfo.value.loading = false;
66 } else { 70 } else {
71 treeInfo.value.loading = false;
67 proxy.$ElMessage.error(res.msg); 72 proxy.$ElMessage.error(res.msg);
68 } 73 }
69 } 74 }
...@@ -143,7 +148,7 @@ onMounted(async () => { ...@@ -143,7 +148,7 @@ onMounted(async () => {
143 await getExecGuid(); 148 await getExecGuid();
144 await getCgDirTreeData(); 149 await getCgDirTreeData();
145 await getCgDirFieldPage({ 150 await getCgDirFieldPage({
146 execGuid: execGuidInfo.value.execGuid, 151 execGuid: execGuidInfo.value?.execGuid,
147 classifyDetail: classifyDetailGuidInfo.value 152 classifyDetail: classifyDetailGuidInfo.value
148 }); 153 });
149 // getDictionaryList(); 154 // getDictionaryList();
...@@ -1269,6 +1274,10 @@ const dataBaseTreeData = ref<any>(); ...@@ -1269,6 +1274,10 @@ const dataBaseTreeData = ref<any>();
1269 const getDataBaseTreeData = async () => { 1274 const getDataBaseTreeData = async () => {
1270 dataBaseTreeInfo.value.loading = true; 1275 dataBaseTreeInfo.value.loading = true;
1271 const res: any = await getDbDirTreeList({}); 1276 const res: any = await getDbDirTreeList({});
1277 if (res.data.length === 0 || !res.data) {
1278 dataBaseTreeInfo.value.loading = false;
1279 return;
1280 }
1272 if (res.code == proxy.$passCode) { 1281 if (res.code == proxy.$passCode) {
1273 const dataArray = res.data; 1282 const dataArray = res.data;
1274 // 遍历并添加 GUIDs 1283 // 遍历并添加 GUIDs
...@@ -1280,8 +1289,8 @@ const getDataBaseTreeData = async () => { ...@@ -1280,8 +1289,8 @@ const getDataBaseTreeData = async () => {
1280 if (localStorage.getItem("shouldReloadData")) { 1289 if (localStorage.getItem("shouldReloadData")) {
1281 dataBaseTreeInfo.value.expandedKey = []; 1290 dataBaseTreeInfo.value.expandedKey = [];
1282 const info = JSON.parse(localStorage.getItem("onActiveInfo") || '{}'); 1291 const info = JSON.parse(localStorage.getItem("onActiveInfo") || '{}');
1283 dataBaseTreeInfo.value.expandedKey.push(dataArray[info.dbindex].guid); 1292 dataBaseTreeInfo.value.expandedKey.push(dataArray[info.dbindex]?.guid);
1284 dataBaseTreeInfo.value.currentNodeKey = dataArray[info.dbindex].guid; 1293 dataBaseTreeInfo.value.currentNodeKey = dataArray[info.dbindex]?.guid;
1285 dataBaseGuid.value = dataArray[info?.dbindex].databaseGuid; 1294 dataBaseGuid.value = dataArray[info?.dbindex].databaseGuid;
1286 currentDatabasePath.value = info?.path; 1295 currentDatabasePath.value = info?.path;
1287 if (dataArray[info?.dbindex].dicType === 1) { 1296 if (dataArray[info?.dbindex].dicType === 1) {
...@@ -1309,20 +1318,21 @@ const getDataBaseTreeData = async () => { ...@@ -1309,20 +1318,21 @@ const getDataBaseTreeData = async () => {
1309 dataBaseTreeInfo.value.loading = false; 1318 dataBaseTreeInfo.value.loading = false;
1310 return; 1319 return;
1311 } 1320 }
1312 dataBaseTreeInfo.value.expandedKey.push(dataArray[0].guid); 1321 dataBaseTreeInfo.value.expandedKey.push(dataArray[0]?.guid);
1313 dataBaseTreeInfo.value.currentNodeKey = dataArray[0].guid; 1322 dataBaseTreeInfo.value.currentNodeKey = dataArray[0]?.guid;
1314 dataBaseGuid.value = dataArray[0].databaseGuid; 1323 dataBaseGuid.value = dataArray[0].databaseGuid;
1315 currentDatabasePath.value = [dataArray[0].name]; 1324 currentDatabasePath.value = [dataArray[0]?.name];
1316 selectedA.value = dataArray[0].databaseGuid; 1325 selectedA.value = dataArray[0].databaseGuid;
1317 if (dataArray[0].dicType === 1) { 1326 if (dataArray[0]?.dicType === 1) {
1318 isShowCreateBtn.value = true; 1327 isShowCreateBtn.value = true;
1319 } 1328 }
1320 if (dataArray[0].dicType === 2) { 1329 if (dataArray[0]?.dicType === 2) {
1321 isShowCreateBtn.value = false; 1330 isShowCreateBtn.value = false;
1322 } 1331 }
1323 1332
1324 dataBaseTreeInfo.value.loading = false; 1333 dataBaseTreeInfo.value.loading = false;
1325 } else { 1334 } else {
1335 dataBaseTreeInfo.value.loading = true;
1326 proxy.$ElMessage.error(res.msg); 1336 proxy.$ElMessage.error(res.msg);
1327 } 1337 }
1328 }; 1338 };
......
...@@ -24,22 +24,29 @@ const getClassifyGradeTree = async () => { ...@@ -24,22 +24,29 @@ const getClassifyGradeTree = async () => {
24 treeInfo.value.loading = true; 24 treeInfo.value.loading = true;
25 const res: any = await getClassifyGradeTreeList(); 25 const res: any = await getClassifyGradeTreeList();
26 if (res.code == proxy.$passCode) { 26 if (res.code == proxy.$passCode) {
27 27 if (!res.data || res.data.length === 0) {
28 treeInfo.value.loading = false;
29 return;
30 }
28 const transformedData = transformData(res.data); 31 const transformedData = transformData(res.data);
29 classGradeTreeData.value = transformedData || []; 32 classGradeTreeData.value = transformedData || [];
30 treeInfo.value.data = classGradeTreeData.value; 33 treeInfo.value.data = classGradeTreeData.value;
31 // 默认展开第一级 34 // 默认展开第一级
32 expandedKey.value = classGradeTreeData.value[0].guid; 35 expandedKey.value = classGradeTreeData.value[0]?.guid;
33 treeInfo.value.expandedKey.push(classGradeTreeData.value[0].guid); 36 treeInfo.value.expandedKey.push(classGradeTreeData.value[0]?.guid);
34 // 寻找第一children中guid 37 // 寻找第一children中guid
35 if (classGradeTreeData.value[0].children) { 38 if (classGradeTreeData.value[0].children) {
36 treeInfo.value.currentNodeKey = classGradeTreeData.value[0].children[0].guid; 39 treeInfo.value.currentNodeKey = classGradeTreeData.value[0].children[0]?.guid;
37 // 分类明细guid 40 // 分类明细guid
38 classifyDetailGuid.value = classGradeTreeData.value[0].children[0].guid; 41 classifyDetailGuid.value = classGradeTreeData.value[0].children[0]?.guid;
39 } 42 }
40 // 分别赋值 分类guid 43 // 分别赋值 分类guid
41 classifyGuid.value = classGradeTreeData.value[0].guid; 44 classifyGuid.value = classGradeTreeData.value[0]?.guid;
42 console.log('getClassifyGradeTree', transformedData); 45 console.log('getClassifyGradeTree', transformedData);
46 if (transformedData.length == 0) {
47 treeInfo.value.loading = false;
48 return;
49 }
43 newCreateGradeFormItems.value[1].options = transformDataForTree([transformedData[0]]) 50 newCreateGradeFormItems.value[1].options = transformDataForTree([transformedData[0]])
44 treeInfo.value.loading = false; 51 treeInfo.value.loading = false;
45 isAddDisabled.value = false; 52 isAddDisabled.value = false;
...@@ -104,8 +111,15 @@ const LabelListData = ref<any>([]); ...@@ -104,8 +111,15 @@ const LabelListData = ref<any>([]);
104 const getLabelListData = async () => { 111 const getLabelListData = async () => {
105 const res: any = await getLabelList({ label: '' }); 112 const res: any = await getLabelList({ label: '' });
106 if (res.code == proxy.$passCode) { 113 if (res.code == proxy.$passCode) {
114 // 判空
115 if (!res.data || res.data.length === 0) {
116 return;
117 }
107 LabelListData.value = res.data; 118 LabelListData.value = res.data;
108 const data = res.data 119 const data = res.data
120 if (data.length == 0) {
121 return;
122 }
109 data.map(item => { 123 data.map(item => {
110 item.label = item.label 124 item.label = item.label
111 item.value = item.guid 125 item.value = item.guid
......
...@@ -80,7 +80,7 @@ const tableInfo = ref({ ...@@ -80,7 +80,7 @@ const tableInfo = ref({
80 }, 80 },
81 { 81 {
82 label: "审核状态", field: "approveState", width: TableColumnWidth.STATE, align: 'center', type: "tag", getName: (scope) => { 82 label: "审核状态", field: "approveState", width: TableColumnWidth.STATE, align: 'center', type: "tag", getName: (scope) => {
83 return filterVal(scope.row.approveState, 'approveState'); 83 return filterVal(scope.row.approveVO.approveState, 'approveState');
84 } 84 }
85 }, 85 },
86 { 86 {
...@@ -105,7 +105,7 @@ const tableInfo = ref({ ...@@ -105,7 +105,7 @@ const tableInfo = ref({
105 const { row } = scope; 105 const { row } = scope;
106 const approveVO = row.approveVO || {}; 106 const approveVO = row.approveVO || {};
107 const currentStaffGuid = userData.staffGuid 107 const currentStaffGuid = userData.staffGuid
108 const bizApproveState = row.bizApproveState; 108 const bizApproveState = row.approveState;
109 const approveState = approveVO.approveState || null; 109 const approveState = approveVO.approveState || null;
110 const approveStaffGuids = approveVO.approveStaffGuids || []; 110 const approveStaffGuids = approveVO.approveStaffGuids || [];
111 const staffGuid = approveVO.staffGuid || ''; 111 const staffGuid = approveVO.staffGuid || '';
...@@ -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
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!