数据使用页面部分开发
Showing
5 changed files
with
87 additions
and
7 deletions
| ... | @@ -44,6 +44,25 @@ const routes: RouteRecordRaw[] = [ | ... | @@ -44,6 +44,25 @@ const routes: RouteRecordRaw[] = [ |
| 44 | cache: true | 44 | cache: true |
| 45 | }, | 45 | }, |
| 46 | }, | 46 | }, |
| 47 | { | ||
| 48 | path: 'data-usage-detail', | ||
| 49 | name: 'dataUsageDetail', | ||
| 50 | component: () => import('@/views/data_asset/dataUsageDetail.vue'), | ||
| 51 | meta: { | ||
| 52 | title: '详情-', | ||
| 53 | sidebar: false, | ||
| 54 | breadcrumb: false, | ||
| 55 | cache: true, | ||
| 56 | editPage: true, | ||
| 57 | reuse: true | ||
| 58 | }, | ||
| 59 | beforeEnter: (to, from) => { | ||
| 60 | if (to.query.name) { | ||
| 61 | to.meta.title = `详情-${to.query.name}`; | ||
| 62 | return; | ||
| 63 | } | ||
| 64 | } | ||
| 65 | } | ||
| 47 | ], | 66 | ], |
| 48 | }, | 67 | }, |
| 49 | ] | 68 | ] | ... | ... |
| ... | @@ -159,4 +159,8 @@ onBeforeMount(() => { | ... | @@ -159,4 +159,8 @@ onBeforeMount(() => { |
| 159 | </div> | 159 | </div> |
| 160 | </template> | 160 | </template> |
| 161 | 161 | ||
| 162 | <style lang="scss" scoped></style> | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 162 | <style lang="scss" scoped> | ||
| 163 | .container_wrap { | ||
| 164 | padding: 0px 16px; | ||
| 165 | } | ||
| 166 | </style> | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
src/views/data_asset/dataUsageDetail.vue
0 → 100644
| 1 | <script lang="ts" setup name="dataUsageDetail"> | ||
| 2 | import { changeNum } from '@/utils/common'; | ||
| 3 | |||
| 4 | |||
| 5 | const fullscreenloading = ref(false); | ||
| 6 | |||
| 7 | const tableInfo = ref({ | ||
| 8 | id: 'dataset-table', | ||
| 9 | rowKey: 'guid', | ||
| 10 | loading: false, | ||
| 11 | fields: [ { label: "序号", type: "index", width: 56, align: "center" }, | ||
| 12 | { label: "表中文名称", field: "tableChName", width: 150, align: "left" }, | ||
| 13 | { label: "表英文名称", field: "tableName", width: 150, align: "left" }, | ||
| 14 | { | ||
| 15 | label: "表数据总数(条)", field: "dataCount", width: 150, align: "right", getName: (scope) => { | ||
| 16 | return scope.row["dataCount"] == null ? '--' : changeNum(scope.row["dataCount"], 0) | ||
| 17 | } | ||
| 18 | }, | ||
| 19 | { label: "描述", field: "description", width: 240 }, | ||
| 20 | { label: "修改人", field: "updateUserName", width: 140 }, | ||
| 21 | { label: "修改时间", field: "updateTime", width: 180 },], | ||
| 22 | data: [], | ||
| 23 | showPage: false, | ||
| 24 | actionInfo: { | ||
| 25 | label: "操作", | ||
| 26 | type: "btn", | ||
| 27 | width: 160, | ||
| 28 | btns: (scope) => { | ||
| 29 | let btns: any = []; | ||
| 30 | //TODO。根据返回值显示按钮 | ||
| 31 | btns.push({ label: '查看', value: 'view' }); | ||
| 32 | return btns; | ||
| 33 | } | ||
| 34 | } | ||
| 35 | }); | ||
| 36 | |||
| 37 | onBeforeMount(() => { | ||
| 38 | |||
| 39 | }) | ||
| 40 | |||
| 41 | </script> | ||
| 42 | |||
| 43 | <template> | ||
| 44 | <div class="container_wrap" v-loading="fullscreenloading"> | ||
| 45 | <div class="table_panel_wrap" style="height: calc(100% - 44px);"> | ||
| 46 | <Table :tableInfo="tableInfo" /> | ||
| 47 | </div> | ||
| 48 | </div> | ||
| 49 | </template> | ||
| 50 | |||
| 51 | <style lang="scss" scoped> | ||
| 52 | |||
| 53 | .container_wrap { | ||
| 54 | padding: 0px 16px; | ||
| 55 | } | ||
| 56 | |||
| 57 | </style> | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| ... | @@ -187,7 +187,7 @@ const tableInfo = ref({ | ... | @@ -187,7 +187,7 @@ const tableInfo = ref({ |
| 187 | const getTableBtns = (row, includeDetail = true) => { | 187 | const getTableBtns = (row, includeDetail = true) => { |
| 188 | let btnsArr: any[] = []; | 188 | let btnsArr: any[] = []; |
| 189 | const currentStaffGuid = userData.userGuid | 189 | const currentStaffGuid = userData.userGuid |
| 190 | const approveState = row.approveState; | 190 | const approveState = row.bizApproveState; |
| 191 | const staffGuid = row.createUserId || ''; | 191 | const staffGuid = row.createUserId || ''; |
| 192 | let flowState; | 192 | let flowState; |
| 193 | if (approveState == 'N' && staffGuid == currentStaffGuid) { | 193 | if (approveState == 'N' && staffGuid == currentStaffGuid) { | ... | ... |
| ... | @@ -36,7 +36,7 @@ const searchItemList = ref([ | ... | @@ -36,7 +36,7 @@ const searchItemList = ref([ |
| 36 | { | 36 | { |
| 37 | type: 'select', | 37 | type: 'select', |
| 38 | label: '', | 38 | label: '', |
| 39 | field: 'approveState', | 39 | field: 'bizApproveState', |
| 40 | default: '', | 40 | default: '', |
| 41 | placeholder: '审核状态', | 41 | placeholder: '审核状态', |
| 42 | options: [ | 42 | options: [ |
| ... | @@ -130,7 +130,7 @@ const page = ref({ | ... | @@ -130,7 +130,7 @@ const page = ref({ |
| 130 | { label: "200", value: 200 }, | 130 | { label: "200", value: 200 }, |
| 131 | ], | 131 | ], |
| 132 | connectorName: '', | 132 | connectorName: '', |
| 133 | approveState: '' | 133 | bizApproveState: '' |
| 134 | }); | 134 | }); |
| 135 | const currTableData: any = ref({}); | 135 | const currTableData: any = ref({}); |
| 136 | const tableInfo = ref({ | 136 | const tableInfo = ref({ |
| ... | @@ -197,10 +197,10 @@ const toSearch = (val: any, clear: boolean = false) => { | ... | @@ -197,10 +197,10 @@ const toSearch = (val: any, clear: boolean = false) => { |
| 197 | if (clear) { | 197 | if (clear) { |
| 198 | searchItemList.value.map((item) => (item.default = "")); | 198 | searchItemList.value.map((item) => (item.default = "")); |
| 199 | page.value.connectorName = ''; | 199 | page.value.connectorName = ''; |
| 200 | page.value.approveState = ""; | 200 | page.value.bizApproveState = ""; |
| 201 | } else { | 201 | } else { |
| 202 | page.value.connectorName = val.connectorName; | 202 | page.value.connectorName = val.connectorName; |
| 203 | page.value.approveState = val.approveState; | 203 | page.value.bizApproveState = val.bizApproveState; |
| 204 | } | 204 | } |
| 205 | getTableData(); | 205 | getTableData(); |
| 206 | updateCheckConnector(); | 206 | updateCheckConnector(); |
| ... | @@ -212,7 +212,7 @@ const getTableData = () => { | ... | @@ -212,7 +212,7 @@ const getTableData = () => { |
| 212 | pageIndex: page.value.curr, | 212 | pageIndex: page.value.curr, |
| 213 | pageSize: page.value.limit, | 213 | pageSize: page.value.limit, |
| 214 | connectorName: page.value.connectorName, | 214 | connectorName: page.value.connectorName, |
| 215 | approveState: page.value.approveState, | 215 | bizApproveState: page.value.bizApproveState, |
| 216 | currentStaffGuid: userData.staffGuid | 216 | currentStaffGuid: userData.staffGuid |
| 217 | }).then((res: any) => { | 217 | }).then((res: any) => { |
| 218 | if (res?.code == proxy.$passCode) { | 218 | if (res?.code == proxy.$passCode) { | ... | ... |
-
Please register or sign in to post a comment