61c64f38 by xukangle

Merge branch 'dev_20241202_xukangle' into develop

2 parents 56798cde 23cc819c
...@@ -53,6 +53,10 @@ VITE_API_DATA_SYNC = ms-swzl-data-sync-service ...@@ -53,6 +53,10 @@ VITE_API_DATA_SYNC = ms-swzl-data-sync-service
53 #消息接口 53 #消息接口
54 VITE_API_MESSAGE = ms-swzl-message-notification-service 54 VITE_API_MESSAGE = ms-swzl-message-notification-service
55 55
56 #新门户接口
57 VITE_API_NEW_PORTAL = ms-daop-zcgl-asset-dam-service
58
59
56 # 是否在打包时生成 sourcemap 60 # 是否在打包时生成 sourcemap
57 VITE_BUILD_SOURCEMAP = false 61 VITE_BUILD_SOURCEMAP = false
58 # 是否在打包时开启压缩,支持 gzip 和 brotli 62 # 是否在打包时开启压缩,支持 gzip 和 brotli
......
...@@ -55,6 +55,7 @@ ...@@ -55,6 +55,7 @@
55 "@iconify-json/ep": "^1.1.10", 55 "@iconify-json/ep": "^1.1.10",
56 "@iconify/vue": "^4.1.1", 56 "@iconify/vue": "^4.1.1",
57 "@types/md5": "^2.3.2", 57 "@types/md5": "^2.3.2",
58 "@types/moment": "^2.13.0",
58 "@types/nprogress": "^0.2.0", 59 "@types/nprogress": "^0.2.0",
59 "@types/path-browserify": "^1.0.0", 60 "@types/path-browserify": "^1.0.0",
60 "@types/qs": "^6.9.7", 61 "@types/qs": "^6.9.7",
......
...@@ -2,81 +2,81 @@ import request from "@/utils/request"; ...@@ -2,81 +2,81 @@ import request from "@/utils/request";
2 2
3 /** 获取首页组织机构信息 */ 3 /** 获取首页组织机构信息 */
4 export const getHomeServiceInfo = () => request({ 4 export const getHomeServiceInfo = () => request({
5 url: `${import.meta.env.VITE_API_ASSET_BASEURL}/home/company/service-info`, 5 url: `${import.meta.env.VITE_API_NEW_PORTAL}/home/company/service-info`,
6 method: 'get', 6 method: 'get',
7 }) 7 })
8 8
9 /** 获取首页资产统计信息 */ 9 /** 获取首页资产统计信息 */
10 export const getStatisticsInfo = () => request({ 10 export const getStatisticsInfo = () => request({
11 url: `${import.meta.env.VITE_API_ASSET_BASEURL}/home/company/statistics-info`, 11 url: `${import.meta.env.VITE_API_NEW_PORTAL}/home/company/statistics-info`,
12 method: 'get', 12 method: 'get',
13 }) 13 })
14 14
15 /** 获取首页资产登记情况 */ 15 /** 获取首页资产登记情况 */
16 export const getRegisterInfo = (params) => request({ 16 export const getRegisterInfo = (params) => request({
17 url: `${import.meta.env.VITE_API_ASSET_BASEURL}/home/company/register-info`, 17 url: `${import.meta.env.VITE_API_NEW_PORTAL}/home/company/register-info`,
18 method: 'post', 18 method: 'post',
19 data: params 19 data: params
20 }) 20 })
21 21
22 /** 获取首页资产质量情况 */ 22 /** 获取首页资产质量情况 */
23 export const getQualityInfo = () => request({ 23 export const getQualityInfo = () => request({
24 url: `${import.meta.env.VITE_API_ASSET_BASEURL}/home/company/quality-info`, 24 url: `${import.meta.env.VITE_API_NEW_PORTAL}/home/company/quality-info`,
25 method: 'get', 25 method: 'get',
26 }) 26 })
27 27
28 /** 获取首页资产交易情况 */ 28 /** 获取首页资产交易情况 */
29 export const getDaTradeInfo = (params) => request({ 29 export const getDaTradeInfo = (params) => request({
30 url: `${import.meta.env.VITE_API_ASSET_BASEURL}/da-trade/page-list`, 30 url: `${import.meta.env.VITE_API_NEW_PORTAL}/da-trade/page-list`,
31 method: 'post', 31 method: 'post',
32 data: params 32 data: params
33 }) 33 })
34 34
35 /** 获取资产融资情况 */ 35 /** 获取资产融资情况 */
36 export const getFinanceInfo = (params) => request({ 36 export const getFinanceInfo = (params) => request({
37 url: `${import.meta.env.VITE_API_ASSET_BASEURL}/da-financing/page-list`, 37 url: `${import.meta.env.VITE_API_NEW_PORTAL}/da-financing/page-list`,
38 method: 'post', 38 method: 'post',
39 data: params 39 data: params
40 }) 40 })
41 41
42 /** 获取资产证件照url */ 42 /** 获取资产证件照url */
43 export const getRegisterUrl = () => request({ 43 export const getRegisterUrl = () => request({
44 url: `${import.meta.env.VITE_API_ASSET_BASEURL}/home/company/list-doc-url`, 44 url: `${import.meta.env.VITE_API_NEW_PORTAL}/home/company/list-doc-url`,
45 method: 'get', 45 method: 'get',
46 }) 46 })
47 47
48 /** 获取资产行业类型分布 */ 48 /** 获取资产行业类型分布 */
49 export const getIndustryInfo = () => request({ 49 export const getIndustryInfo = () => request({
50 url: `${import.meta.env.VITE_API_ASSET_BASEURL}/home/platform/industry-statistics`, 50 url: `${import.meta.env.VITE_API_NEW_PORTAL}/home/platform/industry-statistics`,
51 method: 'get', 51 method: 'get',
52 }) 52 })
53 53
54 /** 获取平台授信主体金额分布 */ 54 /** 获取平台授信主体金额分布 */
55 export const getCreditMoneyInfo = () => request({ 55 export const getCreditMoneyInfo = () => request({
56 url: `${import.meta.env.VITE_API_ASSET_BASEURL}/home/platform/credit-money-statistics`, 56 url: `${import.meta.env.VITE_API_NEW_PORTAL}/home/platform/credit-money-statistics`,
57 method: 'get', 57 method: 'get',
58 }) 58 })
59 59
60 /** 获取平台资产统计信息 */ 60 /** 获取平台资产统计信息 */
61 export const getPlatformStatisticsInfo = () => request({ 61 export const getPlatformStatisticsInfo = () => request({
62 url: `${import.meta.env.VITE_API_ASSET_BASEURL}/home/platform/statistics-info`, 62 url: `${import.meta.env.VITE_API_NEW_PORTAL}/home/platform/statistics-info`,
63 method: 'get', 63 method: 'get',
64 }) 64 })
65 65
66 /** 获取平台服务企业地区分布 */ 66 /** 获取平台服务企业地区分布 */
67 export const getPlatformService = () => request({ 67 export const getPlatformService = () => request({
68 url: `${import.meta.env.VITE_API_ASSET_BASEURL}/home/platform/service-statistics`, 68 url: `${import.meta.env.VITE_API_NEW_PORTAL}/home/platform/service-statistics`,
69 method: 'get', 69 method: 'get',
70 }) 70 })
71 71
72 /** 获取平台服务企业地区分布-按省 */ 72 /** 获取平台服务企业地区分布-按省 */
73 export const getPlatformProvinceService = () => request({ 73 export const getPlatformProvinceService = () => request({
74 url: `${import.meta.env.VITE_API_ASSET_BASEURL}/home/platform/service-statistics-province`, 74 url: `${import.meta.env.VITE_API_NEW_PORTAL}/home/platform/service-statistics-province`,
75 method: 'get', 75 method: 'get',
76 }) 76 })
77 77
78 /** 获取平台数据资产登记趋势 */ 78 /** 获取平台数据资产登记趋势 */
79 export const getPlatformMonth = () => request({ 79 export const getPlatformMonth = () => request({
80 url: `${import.meta.env.VITE_API_ASSET_BASEURL}/home/platform/register-month-statistics`, 80 url: `${import.meta.env.VITE_API_NEW_PORTAL}/home/platform/register-month-statistics`,
81 method: 'get', 81 method: 'get',
82 }) 82 })
......
...@@ -175,10 +175,14 @@ const rowClassName = (rowObj) => { ...@@ -175,10 +175,14 @@ const rowClassName = (rowObj) => {
175 return "edit_row"; 175 return "edit_row";
176 } 176 }
177 const row = rowObj.row; 177 const row = rowObj.row;
178
178 let className = ""; 179 let className = "";
179 if (row.ROWID && row.STATUS === "edit" && row.STATE === "Running") { 180 if (row.ROWID && row.STATUS === "edit" && row.STATE === "Running") {
180 className = "edit_row"; 181 className = "edit_row";
181 } 182 }
183 if (row.guid === currentRowKey.value) {
184 className += "current-row";
185 }
182 return className; 186 return className;
183 }; 187 };
184 188
...@@ -232,10 +236,11 @@ onMounted(() => { ...@@ -232,10 +236,11 @@ onMounted(() => {
232 :show-header="props.tableInfo.showHeader ?? true" stripe :border="props.tableInfo.border 236 :show-header="props.tableInfo.showHeader ?? true" stripe :border="props.tableInfo.border
233 ?? true" :height="props.tableInfo.height === null ? null : (props.tableInfo.height ?? '100%')" 237 ?? true" :height="props.tableInfo.height === null ? null : (props.tableInfo.height ?? '100%')"
234 :max-height="maxHeight" :row-key="rowKey" :current-row-key="currentRowKey" :row-class-name="rowClassName" 238 :max-height="maxHeight" :row-key="rowKey" :current-row-key="currentRowKey" :row-class-name="rowClassName"
235 v-loading="tableDataLoading" @row-click="rowClick" @row-dblclick="rowDblClick" @selection-change="selectionChange" 239 :expand-row-keys="props.tableInfo.expandRowKeys" v-loading="tableDataLoading" @row-click="rowClick"
236 @select="tableCheckboxSelectChange" @select-all="tableCheckboxAllSelectChange" 240 @row-dblclick="rowDblClick" @selection-change="selectionChange" @select="tableCheckboxSelectChange"
237 style="width: 100%; display: inline-block" :style="{ 'min-height': props.tableInfo.minHeight ?? '200px' }" 241 @select-all="tableCheckboxAllSelectChange" style="width: 100%; display: inline-block"
238 tooltip-effect="light" :tooltip-options="{ placement: 'top', popperClass: 'table_cell_tooltip' }" 242 :style="{ 'min-height': props.tableInfo.minHeight ?? '200px' }" tooltip-effect="light"
243 :tooltip-options="{ placement: 'top', popperClass: 'table_cell_tooltip' }"
239 :show-summary="props.tableInfo.showSummary ?? false"> 244 :show-summary="props.tableInfo.showSummary ?? false">
240 <el-table-column type="selection" :width="32" align="center" v-if="multiple" :selectable="rowSelectable" 245 <el-table-column type="selection" :width="32" align="center" v-if="multiple" :selectable="rowSelectable"
241 :fixed="fixedSelection" /> 246 :fixed="fixedSelection" />
......
...@@ -19,26 +19,26 @@ watch( ...@@ -19,26 +19,26 @@ watch(
19 const combPath = pathArr[1] || 'app-scenes' 19 const combPath = pathArr[1] || 'app-scenes'
20 const toPath = pathArr[2] 20 const toPath = pathArr[2]
21 const routerLength = pathArr.length 21 const routerLength = pathArr.length
22 const jionPath = pathArr.slice(0,3).join("/") 22 const jionPath = pathArr.slice(0, 3).join("/")
23 let list: any = userStore.tabbar; 23 let list: any = userStore.tabbar;
24 let pathIndex = ref(-1) 24 let pathIndex = ref(-1)
25 const isExist = list.filter((tab: any,index) => { 25 const isExist = list.filter((tab: any, index) => {
26 if(tab.fullPath.includes(jionPath)) { 26 if (tab.fullPath.includes(jionPath)) {
27 pathIndex.value = index 27 pathIndex.value = index
28 } 28 }
29 return tab.fullPath === newRouter.fullPath 29 return tab.fullPath === newRouter.fullPath
30 }); 30 });
31 if(isExist.length == 0) { 31 if (isExist.length == 0) {
32 if( pathIndex.value!=-1 && routerLength > 3 ) { 32 if (pathIndex.value != -1 && routerLength > 3) {
33 list.splice(pathIndex.value+1,0,newRouter) 33 list.splice(pathIndex.value + 1, 0, newRouter)
34 } else { 34 } else {
35 let pathIndex = -1 35 let pathIndex = -1
36 const option = list.find((item,index)=>{ 36 const option = list.find((item, index) => {
37 pathIndex = index 37 pathIndex = index
38 return item.path===newRouter.path 38 return item.path === newRouter.path
39 }) 39 })
40 if(option){ 40 if (option) {
41 list.splice(pathIndex,1,newRouter); 41 list.splice(pathIndex, 1, newRouter);
42 } else { 42 } else {
43 list.push(newRouter) 43 list.push(newRouter)
44 } 44 }
...@@ -226,6 +226,7 @@ onMounted(() => { ...@@ -226,6 +226,7 @@ onMounted(() => {
226 226
227 .custom-tabs-label { 227 .custom-tabs-label {
228 max-width: 280px; 228 max-width: 280px;
229
229 .el-icon { 230 .el-icon {
230 color: #999; 231 color: #999;
231 232
...@@ -255,6 +256,7 @@ onMounted(() => { ...@@ -255,6 +256,7 @@ onMounted(() => {
255 256
256 .custom-tabs-label { 257 .custom-tabs-label {
257 max-width: 280px; 258 max-width: 280px;
259
258 .el-icon { 260 .el-icon {
259 color: var(--el-color-primary); 261 color: var(--el-color-primary);
260 } 262 }
......
1 import type { RouteRecordRaw } from 'vue-router'
2 function Layout() {
3 return import('@/layouts/index.vue')
4 }
5 const routes: RouteRecordRaw[] = [
6 {
7 path: '/data-asset-index',
8 component: Layout,
9 meta: {
10 title: '首页',
11 icon: 'sidebar-videos',
12 },
13 children: [{
14 path: '',
15 name: 'assetIndex',
16 component: () => import('@/views/indexNewBigScreen.vue'),
17 meta: {
18 title: '首页',
19 sidebar: false,
20 breadcrumb: false,
21 cache: true
22 },
23 }]
24 },
25 ]
26 export default routes
...@@ -5,6 +5,7 @@ import DataAssess from './modules/dataAsset'; ...@@ -5,6 +5,7 @@ import DataAssess from './modules/dataAsset';
5 import DataMeta from './modules/dataMeta'; 5 import DataMeta from './modules/dataMeta';
6 import DataQuality from './modules/dataQuality'; 6 import DataQuality from './modules/dataQuality';
7 import DataInventory from './modules/dataInventory'; 7 import DataInventory from './modules/dataInventory';
8 import AssetIndex from './modules/assetIndex';
8 9
9 import type { Route } from '#/global' 10 import type { Route } from '#/global'
10 import useSettingsStore from '@/store/modules/settings' 11 import useSettingsStore from '@/store/modules/settings'
...@@ -105,6 +106,7 @@ const asyncRoutes: Route.recordMainRaw[] = [ ...@@ -105,6 +106,7 @@ const asyncRoutes: Route.recordMainRaw[] = [
105 title: '首页', 106 title: '首页',
106 }, 107 },
107 children: [ 108 children: [
109 ...AssetIndex,
108 ], 110 ],
109 }, 111 },
110 { 112 {
......
...@@ -77,7 +77,7 @@ const levelMap = { ...@@ -77,7 +77,7 @@ const levelMap = {
77 } 77 }
78 const currTableInfo = ref<any>({}); 78 const currTableInfo = ref<any>({});
79 const drawerRef = ref<any>(''); 79 const drawerRef = ref<any>('');
80 const currentRowKey = ref<any>(null); 80 const heightlightRow = ref<any>('');
81 const scopeRow = ref<any>(null); 81 const scopeRow = ref<any>(null);
82 const tableInfo = ref({ 82 const tableInfo = ref({
83 id: "data-class-standard-table", 83 id: "data-class-standard-table",
...@@ -110,6 +110,7 @@ const tableInfo = ref({ ...@@ -110,6 +110,7 @@ const tableInfo = ref({
110 data: [], 110 data: [],
111 rowKey: 'guid', 111 rowKey: 'guid',
112 currentRowKey: '', 112 currentRowKey: '',
113 expandedKeys: [] as any,
113 showPage: false, 114 showPage: false,
114 actionInfo: { 115 actionInfo: {
115 label: "操作", 116 label: "操作",
...@@ -118,6 +119,8 @@ const tableInfo = ref({ ...@@ -118,6 +119,8 @@ const tableInfo = ref({
118 btns: [ 119 btns: [
119 { 120 {
120 label: "编辑", value: "edit", click: (scope) => { 121 label: "编辑", value: "edit", click: (scope) => {
122 tableInfo.value.currentRowKey = scope.row.guid;
123 heightlightRow.value = scope.row.guid;
121 scopeRow.value = scope.row; 124 scopeRow.value = scope.row;
122 currentEditingGuid.value = scope.row.guid; 125 currentEditingGuid.value = scope.row.guid;
123 selectParentEdit(scope.row.guid); 126 selectParentEdit(scope.row.guid);
...@@ -308,6 +311,8 @@ const drawerBtnClick = async (btn, info) => { ...@@ -308,6 +311,8 @@ const drawerBtnClick = async (btn, info) => {
308 const res: any = await saveClassify(params); 311 const res: any = await saveClassify(params);
309 if (res.code == proxy.$passCode) { 312 if (res.code == proxy.$passCode) {
310 proxy.$ElMessage.success('添加规则成功!'); 313 proxy.$ElMessage.success('添加规则成功!');
314 tableInfo.value.currentRowKey = res.data;
315 heightlightRow.value = res.data;
311 drawerInfo.value.visible = false; 316 drawerInfo.value.visible = false;
312 getTreeListData(); 317 getTreeListData();
313 drawerInfo.value.footer.btns.map((item: any) => delete item.disabled); 318 drawerInfo.value.footer.btns.map((item: any) => delete item.disabled);
...@@ -332,6 +337,7 @@ const drawerBtnClick = async (btn, info) => { ...@@ -332,6 +337,7 @@ const drawerBtnClick = async (btn, info) => {
332 drawerInfo.value.footer.btns.map((item: any) => delete item.disabled); 337 drawerInfo.value.footer.btns.map((item: any) => delete item.disabled);
333 getTreeListData(); 338 getTreeListData();
334 // 清空当前编辑的guid 339 // 清空当前编辑的guid
340 tableInfo.value.currentRowKey = heightlightRow.value
335 currentEditingGuid.value = ''; 341 currentEditingGuid.value = '';
336 nextTick(() => { 342 nextTick(() => {
337 console.log('tableRef进来了吗', scopeRow.value.guid); 343 console.log('tableRef进来了吗', scopeRow.value.guid);
...@@ -813,6 +819,17 @@ onActivated(() => { ...@@ -813,6 +819,17 @@ onActivated(() => {
813 } 819 }
814 }); 820 });
815 821
822 const handleTableRowClick = (row, id) => {
823 tableInfo.value.currentRowKey = row.guid;
824 }
825
826 const drawerSelectChange = (val, row, info) => {
827 const tree = tableRef.value.tableRef;
828 console.log(val, row, info, tree);
829 tableInfo.value.expandedKeys.push(val);
830 console.log(tableInfo.value.expandedKeys);
831 }
832
816 </script> 833 </script>
817 834
818 <template> 835 <template>
...@@ -830,7 +847,8 @@ onActivated(() => { ...@@ -830,7 +847,8 @@ onActivated(() => {
830 <!-- <el-button class="show-change-btn" @click="changeShowMethod">{{ '图形展示' }}</el-button> --> 847 <!-- <el-button class="show-change-btn" @click="changeShowMethod">{{ '图形展示' }}</el-button> -->
831 </div> 848 </div>
832 <div class="table_panel"> 849 <div class="table_panel">
833 <Table v-show="dataShowMethod == 'table'" :tableInfo="tableInfo" ref="tableRef" /> 850 <Table v-show="dataShowMethod == 'table'" :tableInfo="tableInfo" ref="tableRef"
851 @tableRowClick="handleTableRowClick" />
834 </div> 852 </div>
835 <div ref="shapeMain" class="shape-main" v-show="dataShowMethod != 'table'"></div> 853 <div ref="shapeMain" class="shape-main" v-show="dataShowMethod != 'table'"></div>
836 <div v-if="showNodeDetails" class="node-details-popup" 854 <div v-if="showNodeDetails" class="node-details-popup"
...@@ -857,7 +875,8 @@ onActivated(() => { ...@@ -857,7 +875,8 @@ onActivated(() => {
857 <el-button @click="cancel">取消</el-button> 875 <el-button @click="cancel">取消</el-button>
858 <el-button type="primary" @click="saveUpdate" :loading="saveLoading">保存修改</el-button> 876 <el-button type="primary" @click="saveUpdate" :loading="saveLoading">保存修改</el-button>
859 </div> 877 </div>
860 <Drawer :drawerInfo="drawerInfo" @drawerBtnClick="drawerBtnClick" ref="drawerRef" /> 878 <Drawer :drawerInfo="drawerInfo" @drawerBtnClick="drawerBtnClick" ref="drawerRef"
879 @drawerSelectChange='drawerSelectChange' />
861 </div> 880 </div>
862 </template> 881 </template>
863 882
......
...@@ -336,7 +336,11 @@ const tableInfo = ref({ ...@@ -336,7 +336,11 @@ const tableInfo = ref({
336 { label: "序号", type: "index", width: 56, align: "center" }, 336 { label: "序号", type: "index", width: 56, align: "center" },
337 { label: "字段名", field: "fieldName", width: 140 }, 337 { label: "字段名", field: "fieldName", width: 140 },
338 { label: "字段中文名", field: "fieldChName", width: 180 }, 338 { label: "字段中文名", field: "fieldChName", width: 180 },
339 { label: "分类", field: "classifyDetailName", width: 120 }, 339 {
340 label: "分类", field: "classifyDetailNameRoutes", width: 120, getName: (scope) => {
341 return scope.row.classifyDetailNameRoutes.join('/');
342 }
343 },
340 { label: "分级", field: "gradeDetailName", width: 80 }, 344 { label: "分级", field: "gradeDetailName", width: 80 },
341 { label: "标签", field: "label", width: 140 }, 345 { label: "标签", field: "label", width: 140 },
342 { label: "规则", field: "ruleDetail", width: 180 }, 346 { label: "规则", field: "ruleDetail", width: 180 },
...@@ -416,7 +420,7 @@ const dataBaseTreeInfo = ref<any>({ ...@@ -416,7 +420,7 @@ const dataBaseTreeInfo = ref<any>({
416 editTreeItem: false, 420 editTreeItem: false,
417 queryValue: "", 421 queryValue: "",
418 className: 'tree-list', 422 className: 'tree-list',
419 queryPlaceholder: "输入标准集名称搜索", 423 queryPlaceholder: "输入名称搜索",
420 props: { 424 props: {
421 label: "name", 425 label: "name",
422 value: "guid", 426 value: "guid",
...@@ -913,14 +917,23 @@ const dataBaseTablePageChange = (info) => { ...@@ -913,14 +917,23 @@ const dataBaseTablePageChange = (info) => {
913 } 917 }
914 918
915 919
920 // 字段信息分页
921 const dataFieldTablePageChange = (info) => {
922 dataFieldPage.value.curr = Number(info.curr);
923 dataFieldPage.value.limit = Number(info.limit);
924 getDataBaseFieldData({
925 pageIndex: info.curr,
926 pageSize: info.limit
927 });
928 }
916 // 获取字段信息getDbDirFieldPageList 929 // 获取字段信息getDbDirFieldPageList
917 const tableFieldsLoading = ref(false); 930 const tableFieldsLoading = ref(false);
918 const tableFieldsData = ref([]); 931 const tableFieldsData = ref([]);
919 const getDataBaseFieldData = async (params = {}) => { 932 const getDataBaseFieldData = async (params = {}) => {
920 tableFieldsDataInfo.value.loading = true; 933 tableFieldsDataInfo.value.loading = true;
921 const dataBaseParams = { 934 const dataBaseParams = {
922 pageIndex: 1, 935 pageIndex: dataFieldPage.value.curr,
923 pageSize: -1, 936 pageSize: dataFieldPage.value.limit,
924 tableGuid: "", 937 tableGuid: "",
925 execGuid: execGuidInfo.value.execGuid, 938 execGuid: execGuidInfo.value.execGuid,
926 databaseGuid: "", 939 databaseGuid: "",
...@@ -932,12 +945,28 @@ const getDataBaseFieldData = async (params = {}) => { ...@@ -932,12 +945,28 @@ const getDataBaseFieldData = async (params = {}) => {
932 if (res.code == proxy.$passCode) { 945 if (res.code == proxy.$passCode) {
933 tableFieldsData.value = res.data.records; 946 tableFieldsData.value = res.data.records;
934 tableFieldsDataInfo.value.data = res.data.records; 947 tableFieldsDataInfo.value.data = res.data.records;
948 tableFieldsDataInfo.value.page.rows = res.data.totalRows;
949 tableFieldsDataInfo.value.page.limit = res.data.pageSize
950 tableFieldsDataInfo.value.page.curr = res.data.pageIndex
935 } else { 951 } else {
936 proxy.$ElMessage.error(res.msg); 952 proxy.$ElMessage.error(res.msg);
937 } 953 }
938 tableFieldsDataInfo.value.loading = false; 954 tableFieldsDataInfo.value.loading = false;
939 }; 955 };
940 956
957
958
959 const dataFieldPage = ref({
960 limit: 50,
961 curr: 1,
962 sizes: [
963 { label: "10", value: 10 },
964 { label: "50", value: 50 },
965 { label: "100", value: 100 },
966 { label: "150", value: 150 },
967 { label: "200", value: 200 },
968 ],
969 });
941 const tableFieldsDataInfo = ref({ 970 const tableFieldsDataInfo = ref({
942 id: "data-field-table", 971 id: "data-field-table",
943 multiple: false, 972 multiple: false,
...@@ -955,11 +984,10 @@ const tableFieldsDataInfo = ref({ ...@@ -955,11 +984,10 @@ const tableFieldsDataInfo = ref({
955 { label: "标签", field: "label", width: 120, align: 'center' }, 984 { label: "标签", field: "label", width: 120, align: 'center' },
956 ], 985 ],
957 data: [], 986 data: [],
958 showPage: false,
959 page: { 987 page: {
960 // type: "normal", 988 type: "normal",
961 // rows: 0, 989 rows: 0,
962 // ...dataBasePage.value, 990 ...dataFieldPage.value,
963 991
964 }, 992 },
965 actionInfo: { 993 actionInfo: {
...@@ -1392,13 +1420,13 @@ onActivated(async () => { ...@@ -1392,13 +1420,13 @@ onActivated(async () => {
1392 </div> 1420 </div>
1393 </div> 1421 </div>
1394 <div class="table_panel_wrap_database" v-if="!tableGuid && activeTab === 'table'" 1422 <div class="table_panel_wrap_database" v-if="!tableGuid && activeTab === 'table'"
1395 :style="{ height: `calc(100% - ${tipHeight1}px)`, minHeight: '210px' }"> 1423 :style="{ height: '483px', minHeight: '210px' }">
1396 <Table :tableInfo="dataBaseTableInfo" @tablePageChange="dataBaseTablePageChange" 1424 <Table :tableInfo="dataBaseTableInfo" @tablePageChange="dataBaseTablePageChange"
1397 @tableSwitchBeforeChange="tableSwitchBeforeChange" /> 1425 @tableSwitchBeforeChange="tableSwitchBeforeChange" />
1398 </div> 1426 </div>
1399 <div class="table_field" v-if="tableGuid || activeTab === 'word'" 1427 <div class="table_field" v-if="tableGuid || activeTab === 'word'"
1400 :style="{ height: `calc(100% - ${tipHeight}px)`, minHeight: '210px' }"> 1428 :style="{ height: '523px', minHeight: '210px' }">
1401 <Table :tableInfo="tableFieldsDataInfo" /> 1429 <Table :tableInfo="tableFieldsDataInfo" @tablePageChange="dataFieldTablePageChange" />
1402 </div> 1430 </div>
1403 </div> 1431 </div>
1404 <Drawer :drawerInfo="drawerInfo" @drawerBtnClick="drawerBtnClick" class="v-drawer" /> 1432 <Drawer :drawerInfo="drawerInfo" @drawerBtnClick="drawerBtnClick" class="v-drawer" />
...@@ -1470,6 +1498,7 @@ onActivated(async () => { ...@@ -1470,6 +1498,7 @@ onActivated(async () => {
1470 1498
1471 .main_wrap { 1499 .main_wrap {
1472 padding: 11px 16px 0 16px; 1500 padding: 11px 16px 0 16px;
1501 height: 100%;
1473 1502
1474 .top-tool-tip { 1503 .top-tool-tip {
1475 display: flex; 1504 display: flex;
...@@ -1534,7 +1563,7 @@ onActivated(async () => { ...@@ -1534,7 +1563,7 @@ onActivated(async () => {
1534 1563
1535 .table_panel_wrap { 1564 .table_panel_wrap {
1536 width: 100%; 1565 width: 100%;
1537 height: calc(100% - 117px); 1566 height: 520px;
1538 min-height: 210px; 1567 min-height: 210px;
1539 overflow: visible; 1568 overflow: visible;
1540 } 1569 }
......
...@@ -78,21 +78,13 @@ const labelPageList = ref<any>() ...@@ -78,21 +78,13 @@ const labelPageList = ref<any>()
78 const getLabelPageData = async () => { 78 const getLabelPageData = async () => {
79 refCount.value++; 79 refCount.value++;
80 tableInfo.value.loading = true; 80 tableInfo.value.loading = true;
81 let params = {} 81 const params = {
82 if (guids.value.length == 0) {
83 params = {
84 pageIndex: page.value.curr, 82 pageIndex: page.value.curr,
85 pageSize: page.value.limit, 83 pageSize: page.value.limit,
86 classifyGuid: classifyGuid.value, 84 classifyGuid: classifyGuid.value,
87 detailGuid: classifyDetailGuid.value 85 detailGuid: classifyDetailGuid.value,
88 }
89 } else {
90 params = {
91 pageIndex: page.value.curr,
92 pageSize: page.value.limit,
93 guids: guids.value 86 guids: guids.value
94 } 87 }
95 }
96 88
97 const res: any = await getLabelPageList(params); 89 const res: any = await getLabelPageList(params);
98 if (res.code == proxy.$passCode) { 90 if (res.code == proxy.$passCode) {
...@@ -743,13 +735,13 @@ const searchClass = async (val: any, clear: boolean = false) => { ...@@ -743,13 +735,13 @@ const searchClass = async (val: any, clear: boolean = false) => {
743 } 735 }
744 if (val?.labelName?.length !== 0 || refCount.value >= 1) { 736 if (val?.labelName?.length !== 0 || refCount.value >= 1) {
745 tableInfo.value.loading = true; 737 tableInfo.value.loading = true;
746 classifyGuid.value = '';
747 classifyDetailGuid.value = '';
748 treeInfo.value.expandedKey = []; 738 treeInfo.value.expandedKey = [];
749 treeInfo.value.currentNodeKey = ''; 739 treeInfo.value.currentNodeKey = '';
750 const params = { 740 const params = {
751 pageIndex: 1, 741 pageIndex: 1,
752 pageSize: 50, 742 pageSize: 50,
743 classifyGuid: classifyGuid.value,
744 detailGuid: classifyDetailGuid.value,
753 guids: guids.value, 745 guids: guids.value,
754 } 746 }
755 const res: any = await getLabelPageList(params); 747 const res: any = await getLabelPageList(params);
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!