update : 更新看板
Showing
13 changed files
with
104 additions
and
53 deletions
| ... | @@ -50,6 +50,10 @@ VITE_API_DATA_SYNC = ms-swzl-data-sync-service | ... | @@ -50,6 +50,10 @@ VITE_API_DATA_SYNC = ms-swzl-data-sync-service |
| 50 | #消息接口 | 50 | #消息接口 |
| 51 | VITE_API_MESSAGE = ms-swzl-message-notification-service | 51 | VITE_API_MESSAGE = ms-swzl-message-notification-service |
| 52 | 52 | ||
| 53 | #新门户接口 | ||
| 54 | VITE_API_NEW_PORTAL = ms-daop-zcgl-asset-dam-service | ||
| 55 | |||
| 56 | |||
| 53 | # 是否在打包时生成 sourcemap | 57 | # 是否在打包时生成 sourcemap |
| 54 | VITE_BUILD_SOURCEMAP = false | 58 | VITE_BUILD_SOURCEMAP = false |
| 55 | # 是否在打包时开启压缩,支持 gzip 和 brotli | 59 | # 是否在打包时开启压缩,支持 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", | ... | ... |
This diff is collapsed.
Click to expand it.
| ... | @@ -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,33 +19,33 @@ watch( | ... | @@ -19,33 +19,33 @@ 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 | } |
| 45 | 45 | ||
| 46 | } | 46 | } |
| 47 | } | 47 | } |
| 48 | // isExist.length == 0 && list.push(newRouter); | 48 | // isExist.length == 0 && list.push(newRouter); |
| 49 | list.map(item => { | 49 | list.map(item => { |
| 50 | if (combPath == 'app-scenes') { | 50 | if (combPath == 'app-scenes') { |
| 51 | item.visible = item.fullPath == '/' | 51 | item.visible = item.fullPath == '/' |
| ... | @@ -90,7 +90,7 @@ const removeTab = (targetName) => { | ... | @@ -90,7 +90,7 @@ const removeTab = (targetName) => { |
| 90 | visibleTabs.value.splice(tabIndex, 1); | 90 | visibleTabs.value.splice(tabIndex, 1); |
| 91 | if (activeTab && router.currentRoute.value.fullPath != targetName) { | 91 | if (activeTab && router.currentRoute.value.fullPath != targetName) { |
| 92 | keepAliveStore.remove(activeTab.meta.reuse ? activeTab.fullPath : activeTab.matched.at(-1)?.components?.default?.name) | 92 | keepAliveStore.remove(activeTab.meta.reuse ? activeTab.fullPath : activeTab.matched.at(-1)?.components?.default?.name) |
| 93 | } | 93 | } |
| 94 | } | 94 | } |
| 95 | nextTick(() => { | 95 | nextTick(() => { |
| 96 | nextTab.name && router.push({ name: nextTab.name, query: nextTab.query }); | 96 | nextTab.name && router.push({ name: nextTab.name, query: nextTab.query }); |
| ... | @@ -166,13 +166,13 @@ onMounted(() => { | ... | @@ -166,13 +166,13 @@ onMounted(() => { |
| 166 | <svg-icon name="bar-home" /> | 166 | <svg-icon name="bar-home" /> |
| 167 | </el-icon> | 167 | </el-icon> |
| 168 | <ellipsis-tooltip :content="item.meta?.title" class-name="w100f" | 168 | <ellipsis-tooltip :content="item.meta?.title" class-name="w100f" |
| 169 | :refName="'tooltipOver' + item.meta?.title"></ellipsis-tooltip> | 169 | :refName="'tooltipOver' + item.meta?.title"></ellipsis-tooltip> |
| 170 | </span> | 170 | </span> |
| 171 | </template> | 171 | </template> |
| 172 | <template #label v-else> | 172 | <template #label v-else> |
| 173 | <span class="custom-tabs-label"> | 173 | <span class="custom-tabs-label"> |
| 174 | <ellipsis-tooltip :content="item.meta?.title" class-name="w100f" | 174 | <ellipsis-tooltip :content="item.meta?.title" class-name="w100f" |
| 175 | :refName="'tooltipOver' + item.meta?.title"></ellipsis-tooltip> | 175 | :refName="'tooltipOver' + item.meta?.title"></ellipsis-tooltip> |
| 176 | </span> | 176 | </span> |
| 177 | </template> | 177 | </template> |
| 178 | </el-tab-pane> | 178 | </el-tab-pane> |
| ... | @@ -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 | ||
| ... | @@ -252,9 +253,10 @@ onMounted(() => { | ... | @@ -252,9 +253,10 @@ onMounted(() => { |
| 252 | background: #fff; | 253 | background: #fff; |
| 253 | border-radius: 4px 4px 0 0; | 254 | border-radius: 4px 4px 0 0; |
| 254 | color: var(--el-color-primary); | 255 | color: var(--el-color-primary); |
| 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 | } | ... | ... |
src/router/modules/assetIndex.ts
0 → 100644
| 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 |
This diff is collapsed.
Click to expand it.
| ... | @@ -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 | ... | ... |
| ... | @@ -78,20 +78,12 @@ const labelPageList = ref<any>() | ... | @@ -78,20 +78,12 @@ 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) { | 82 | pageIndex: page.value.curr, |
| 83 | params = { | 83 | pageSize: page.value.limit, |
| 84 | pageIndex: page.value.curr, | 84 | classifyGuid: classifyGuid.value, |
| 85 | pageSize: page.value.limit, | 85 | detailGuid: classifyDetailGuid.value, |
| 86 | classifyGuid: classifyGuid.value, | 86 | guids: guids.value |
| 87 | detailGuid: classifyDetailGuid.value | ||
| 88 | } | ||
| 89 | } else { | ||
| 90 | params = { | ||
| 91 | pageIndex: page.value.curr, | ||
| 92 | pageSize: page.value.limit, | ||
| 93 | guids: guids.value | ||
| 94 | } | ||
| 95 | } | 87 | } |
| 96 | 88 | ||
| 97 | const res: any = await getLabelPageList(params); | 89 | const res: any = await getLabelPageList(params); |
| ... | @@ -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); | ... | ... |
src/views/indexNewBigScreen.vue
0 → 100644
This diff is collapsed.
Click to expand it.
src/views/platformIndexNewBigScreen.vue
0 → 100644
This diff is collapsed.
Click to expand it.
-
Please register or sign in to post a comment