数据使用
Showing
10 changed files
with
216 additions
and
42 deletions
| ... | @@ -38,4 +38,11 @@ export const getDataUsePageList = (params) => request({ | ... | @@ -38,4 +38,11 @@ export const getDataUsePageList = (params) => request({ |
| 38 | url: `${import.meta.env.VITE_APP_DIGITAL_CONTRACT_URL}/contract-use/page-list`, | 38 | url: `${import.meta.env.VITE_APP_DIGITAL_CONTRACT_URL}/contract-use/page-list`, |
| 39 | method: 'post', | 39 | method: 'post', |
| 40 | data: params | 40 | data: params |
| 41 | }) | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 41 | }) | ||
| 42 | |||
| 43 | /** 删除数据使用 */ | ||
| 44 | export const deleteDataUse = (params) => request({ | ||
| 45 | url: `${import.meta.env.VITE_APP_DIGITAL_CONTRACT_URL}/contract-use/delete`, | ||
| 46 | method: 'delete', | ||
| 47 | data: params | ||
| 48 | }); | ... | ... |
| ... | @@ -179,8 +179,8 @@ onMounted(() => { | ... | @@ -179,8 +179,8 @@ onMounted(() => { |
| 179 | 179 | ||
| 180 | </template> | 180 | </template> |
| 181 | <template v-else-if="item.type == 'date-time'"> | 181 | <template v-else-if="item.type == 'date-time'"> |
| 182 | <el-date-picker v-model="formInline[item.field]" type="datetimerange" start-placeholder="开始时间" | 182 | <el-date-picker v-model="formInline[item.field]" type="datetimerange" :start-placeholder="item.startPlaceholder ?? '开始时间'" |
| 183 | end-placeholder="结束时间" /> | 183 | :default-time="item.defaultTime ?? [item.defaultStartTime, item.defaultEndTime]" :end-placeholder="item.endPlaceholder ?? '结束时间'" /> |
| 184 | </template> | 184 | </template> |
| 185 | <template v-else-if="item.type == 'date-range'"> | 185 | <template v-else-if="item.type == 'date-range'"> |
| 186 | <el-date-picker v-model="formInline[item.field]" type="daterange" :start-placeholder="item.startPlaceholder ?? '开始日期'" format="YYYY-MM-DD" value-format="YYYY-MM-DD" | 186 | <el-date-picker v-model="formInline[item.field]" type="daterange" :start-placeholder="item.startPlaceholder ?? '开始日期'" format="YYYY-MM-DD" value-format="YYYY-MM-DD" | ... | ... |
| ... | @@ -69,7 +69,7 @@ const routes: RouteRecordRaw[] = [ | ... | @@ -69,7 +69,7 @@ const routes: RouteRecordRaw[] = [ |
| 69 | name: 'apiDetail', | 69 | name: 'apiDetail', |
| 70 | component: () => import('@/views/data_asset/detail_serviceApi.vue'), | 70 | component: () => import('@/views/data_asset/detail_serviceApi.vue'), |
| 71 | meta: { | 71 | meta: { |
| 72 | title: '流程详情', | 72 | title: '详情-', |
| 73 | sidebar: false, | 73 | sidebar: false, |
| 74 | breadcrumb: false, | 74 | breadcrumb: false, |
| 75 | cache: true, | 75 | cache: true, | ... | ... |
| ... | @@ -62,6 +62,42 @@ const routes: RouteRecordRaw[] = [ | ... | @@ -62,6 +62,42 @@ const routes: RouteRecordRaw[] = [ |
| 62 | return; | 62 | return; |
| 63 | } | 63 | } |
| 64 | } | 64 | } |
| 65 | }, | ||
| 66 | { | ||
| 67 | path: 'usage-register-catalog-detail', | ||
| 68 | name: 'usageCatalogDetail', | ||
| 69 | component: () => import('@/views/data_asset/registerCatalogDetail.vue'), | ||
| 70 | meta: { | ||
| 71 | title: '详情-', | ||
| 72 | sidebar: false, | ||
| 73 | breadcrumb: false, | ||
| 74 | cache: true, | ||
| 75 | reuse: true | ||
| 76 | } | ||
| 77 | }, | ||
| 78 | { | ||
| 79 | path: 'usage-api-detail', | ||
| 80 | name: 'usageApiDetail', | ||
| 81 | component: () => import('@/views/data_asset/detail_serviceApi.vue'), | ||
| 82 | meta: { | ||
| 83 | title: '详情-', | ||
| 84 | sidebar: false, | ||
| 85 | breadcrumb: false, | ||
| 86 | cache: true, | ||
| 87 | reuse: true | ||
| 88 | } | ||
| 89 | }, | ||
| 90 | { | ||
| 91 | path: 'data-usage-log', | ||
| 92 | name: 'dataUsageLog', | ||
| 93 | component: () => import('@/views/data_asset/dataUsageLog.vue'), | ||
| 94 | meta: { | ||
| 95 | title: '使用日志-', | ||
| 96 | sidebar: false, | ||
| 97 | breadcrumb: false, | ||
| 98 | cache: true, | ||
| 99 | reuse: true | ||
| 100 | } | ||
| 65 | } | 101 | } |
| 66 | ], | 102 | ], |
| 67 | }, | 103 | }, | ... | ... |
| ... | @@ -234,7 +234,7 @@ const tableInfo = ref({ | ... | @@ -234,7 +234,7 @@ const tableInfo = ref({ |
| 234 | } | 234 | } |
| 235 | // 交付只有核验通过有。 | 235 | // 交付只有核验通过有。 |
| 236 | let verifySatus = row.verifySatus; | 236 | let verifySatus = row.verifySatus; |
| 237 | (verifySatus == 1 || verifySatus == 4) && !row.isRefresh && btns.push({ | 237 | (deliveryStatus == 3 || verifySatus == 1 || verifySatus == 4) && !row.isRefresh && btns.push({ |
| 238 | value: 'refresh', label: '刷新', click: (scope) => { | 238 | value: 'refresh', label: '刷新', click: (scope) => { |
| 239 | scope.row.isRefresh = true; | 239 | scope.row.isRefresh = true; |
| 240 | //只刷新当前这一条数据 | 240 | //只刷新当前这一条数据 |
| ... | @@ -273,7 +273,7 @@ const tableInfo = ref({ | ... | @@ -273,7 +273,7 @@ const tableInfo = ref({ |
| 273 | }); | 273 | }); |
| 274 | } | 274 | } |
| 275 | //已通过且未交付时,有交付按钮 | 275 | //已通过且未交付时,有交付按钮 |
| 276 | verifySatus == 3 && deliveryStatus != 2 && btns.push({ | 276 | verifySatus == 3 && deliveryStatus != 2 && deliveryStatus != 3 && btns.push({ |
| 277 | value: 'delivery', label: '交付', click: (scope) => { | 277 | value: 'delivery', label: '交付', click: (scope) => { |
| 278 | deliveryContract(scope.row.guid).then((res: any) => { | 278 | deliveryContract(scope.row.guid).then((res: any) => { |
| 279 | if (res?.code == proxy.$passCode) { | 279 | if (res?.code == proxy.$passCode) { | ... | ... |
| ... | @@ -3,9 +3,11 @@ import TableTools from "@/components/Tools/table_tools.vue"; | ... | @@ -3,9 +3,11 @@ import TableTools from "@/components/Tools/table_tools.vue"; |
| 3 | import { commonPageConfig, TableColumnWidth } from '@/utils/enum'; | 3 | import { commonPageConfig, TableColumnWidth } from '@/utils/enum'; |
| 4 | import { | 4 | import { |
| 5 | getDataUsePageList, | 5 | getDataUsePageList, |
| 6 | 6 | deleteDataUse, | |
| 7 | } from "@/api/modules/dataDelivery"; | 7 | } from "@/api/modules/dataDelivery"; |
| 8 | import { useValidator } from "@/hooks/useValidator"; | ||
| 8 | 9 | ||
| 10 | const { required } = useValidator(); | ||
| 9 | const router = useRouter(); | 11 | const router = useRouter(); |
| 10 | const route = useRoute(); | 12 | const route = useRoute(); |
| 11 | const { proxy } = getCurrentInstance() as any; | 13 | const { proxy } = getCurrentInstance() as any; |
| ... | @@ -40,22 +42,20 @@ const page = ref({ | ... | @@ -40,22 +42,20 @@ const page = ref({ |
| 40 | const tableFields = ref([ | 42 | const tableFields = ref([ |
| 41 | { label: "序号", type: "index", width: 56, align: "center" }, | 43 | { label: "序号", type: "index", width: 56, align: "center" }, |
| 42 | { | 44 | { |
| 43 | label: "数据产品名称", field: "dataProductName", width: 150, type: "text_btn", columClass: 'text_btn', value: "detail", click: (scope) => { | 45 | label: "数据产品名称", field: "dataProductName", width: 160, type: "text_btn", columClass: 'text_btn', value: "detail", click: (scope) => { |
| 44 | //TODO.是在数据使用方使用的 | ||
| 45 | router.push({ | 46 | router.push({ |
| 46 | path: '/data-asset/register-catalog/register-catalog-detail', | 47 | name: 'usageCatalogDetail', |
| 47 | query: { | 48 | query: { |
| 48 | guid: scope.row.dataProductGuid, | 49 | guid: scope.row.dataProductGuid, |
| 49 | type: 'detail', | 50 | type: 'detail', |
| 50 | dataSources: 2, | 51 | foundMode: 'use', |
| 51 | foundMode: 1, | ||
| 52 | name: scope.row.dataProductName, | 52 | name: scope.row.dataProductName, |
| 53 | } | 53 | } |
| 54 | }); | 54 | }); |
| 55 | } | 55 | } |
| 56 | }, | 56 | }, |
| 57 | { | 57 | { |
| 58 | label: "合约名称", field: "contractName", width: 160, type: "text_btn", columClass: 'text_btn', value: "detail1", click: (scope) => { | 58 | label: "合约名称", field: "contractName", width: 170, type: "text_btn", columClass: 'text_btn', value: "detail1", click: (scope) => { |
| 59 | //履约中的合约状态 | 59 | //履约中的合约状态 |
| 60 | router.push({ | 60 | router.push({ |
| 61 | name: 'smartContractDetail', | 61 | name: 'smartContractDetail', |
| ... | @@ -73,7 +73,7 @@ const tableFields = ref([ | ... | @@ -73,7 +73,7 @@ const tableFields = ref([ |
| 73 | return scope.row.deliveryMethod == 1 ? '文件' : 'API'; | 73 | return scope.row.deliveryMethod == 1 ? '文件' : 'API'; |
| 74 | } | 74 | } |
| 75 | }, | 75 | }, |
| 76 | { label: "交付方", field: "deliveryPartyName", width: 240 }, | 76 | { label: "交付方", field: "deliveryPartyName", width: 220 }, |
| 77 | { label: "交付时间", field: "deliveryTime", width: 170 }, | 77 | { label: "交付时间", field: "deliveryTime", width: 170 }, |
| 78 | ]); | 78 | ]); |
| 79 | 79 | ||
| ... | @@ -92,16 +92,75 @@ const tableInfo = ref({ | ... | @@ -92,16 +92,75 @@ const tableInfo = ref({ |
| 92 | actionInfo: { | 92 | actionInfo: { |
| 93 | label: "操作", | 93 | label: "操作", |
| 94 | type: "btn", | 94 | type: "btn", |
| 95 | width: 160, | 95 | width: 230, |
| 96 | btns: (scope) => { | 96 | btns: (scope) => { |
| 97 | let btns: any = []; | 97 | let actions = scope.row.actions || {}; |
| 98 | //TODO。根据返回值显示按钮 | 98 | let arrBtns: any = []; |
| 99 | btns.push({ label: '日志', value: 'log' }); | 99 | for (let action in actions) { |
| 100 | return btns; | 100 | arrBtns.push({ label: actions[action], value: action, click: btnHanldesMap[action] }); |
| 101 | } | ||
| 102 | arrBtns.push({ label: '日志', value: 'log', click: btnHanldesMap['log'] }); | ||
| 103 | return arrBtns; | ||
| 101 | } | 104 | } |
| 102 | } | 105 | } |
| 103 | }); | 106 | }); |
| 104 | 107 | ||
| 108 | const btnHanldesMap = { | ||
| 109 | /** 查看产品详情 */ | ||
| 110 | read: (scope) => { | ||
| 111 | router.push({ | ||
| 112 | name: 'usageCatalogDetail', | ||
| 113 | query: { | ||
| 114 | guid: scope.row.dataProductGuid, | ||
| 115 | type: 'detail', | ||
| 116 | foundMode: 'read', | ||
| 117 | name: scope.row.dataProductName, | ||
| 118 | } | ||
| 119 | }); | ||
| 120 | }, | ||
| 121 | download: (scope) => { //下载 | ||
| 122 | router.push({ | ||
| 123 | name: 'usageCatalogDetail', | ||
| 124 | query: { | ||
| 125 | guid: scope.row.dataProductGuid, | ||
| 126 | type: 'detail', | ||
| 127 | foundMode: 'download', | ||
| 128 | name: scope.row.dataProductName, | ||
| 129 | } | ||
| 130 | }); | ||
| 131 | }, | ||
| 132 | distribute: (scope) => { //分发 | ||
| 133 | currTableData.value = scope.row; | ||
| 134 | tenantDialogInfo.value.visible = true; | ||
| 135 | templateFormItems.value[0].options = currTableData.value.deliveryNodes || []; | ||
| 136 | templateFormItems.value[0].default = ''; | ||
| 137 | }, | ||
| 138 | delete: (scope) => {//删除 | ||
| 139 | proxy.$openMessageBox('确定要删除该数据使用吗?', () => { | ||
| 140 | deleteDataUse([scope.row.guid]).then((res: any) => { | ||
| 141 | if (res.code == proxy.$passCode) { | ||
| 142 | page.value.curr = 1; | ||
| 143 | getTableData(); | ||
| 144 | proxy.$ElMessage.success("删除成功"); | ||
| 145 | } else { | ||
| 146 | proxy.$ElMessage.error(res.msg); | ||
| 147 | } | ||
| 148 | }); | ||
| 149 | }, () => { | ||
| 150 | proxy.$ElMessage.info("已取消"); | ||
| 151 | }) | ||
| 152 | }, | ||
| 153 | log: (scope) => { //日志 | ||
| 154 | router.push({ | ||
| 155 | name: 'dataUsageLog', | ||
| 156 | query: { | ||
| 157 | contractGuid: scope.row.contractGuid, | ||
| 158 | contractName: scope.row.contractName | ||
| 159 | } | ||
| 160 | }); | ||
| 161 | } | ||
| 162 | } | ||
| 163 | |||
| 105 | const toSearch = (val: any, clear: boolean = false) => { | 164 | const toSearch = (val: any, clear: boolean = false) => { |
| 106 | if (clear) { | 165 | if (clear) { |
| 107 | searchItemList.value.map((item) => (item.default = "")); | 166 | searchItemList.value.map((item) => (item.default = "")); |
| ... | @@ -149,6 +208,51 @@ onBeforeMount(() => { | ... | @@ -149,6 +208,51 @@ onBeforeMount(() => { |
| 149 | toSearch({}); | 208 | toSearch({}); |
| 150 | }); | 209 | }); |
| 151 | 210 | ||
| 211 | const templateFormItems = ref([{ | ||
| 212 | type: 'select', | ||
| 213 | label: '分发连接器', | ||
| 214 | field: 'tenantGuids', | ||
| 215 | default: '', | ||
| 216 | block: true, | ||
| 217 | placeholder: '请选择', | ||
| 218 | options: [], | ||
| 219 | props: { | ||
| 220 | value: 'guid', | ||
| 221 | label: 'tenantName' | ||
| 222 | }, | ||
| 223 | filterable: true, | ||
| 224 | multiple: true, | ||
| 225 | clearable: true, | ||
| 226 | required: true | ||
| 227 | }]); | ||
| 228 | |||
| 229 | const templateFormRules = ref({ | ||
| 230 | tenantGuids: [required('请选择分发连接器')] | ||
| 231 | }); | ||
| 232 | |||
| 233 | const tenantDialogInfo = ref({ | ||
| 234 | visible: false, | ||
| 235 | size: 480, | ||
| 236 | title: "选择分发连接器", | ||
| 237 | type: 'edit', | ||
| 238 | formInfo: { | ||
| 239 | id: 'copy-form', | ||
| 240 | items: templateFormItems.value, | ||
| 241 | rules: templateFormRules.value | ||
| 242 | }, | ||
| 243 | submitBtnLoading: false, | ||
| 244 | btns: { | ||
| 245 | submit: (btn, info) => { | ||
| 246 | tenantDialogInfo.value.submitBtnLoading = true; | ||
| 247 | |||
| 248 | tenantDialogInfo.value.visible = false; | ||
| 249 | }, | ||
| 250 | cancel: () => { | ||
| 251 | tenantDialogInfo.value.visible = false; | ||
| 252 | } | ||
| 253 | } | ||
| 254 | }); | ||
| 255 | |||
| 152 | </script> | 256 | </script> |
| 153 | 257 | ||
| 154 | <template> | 258 | <template> |
| ... | @@ -159,6 +263,8 @@ onBeforeMount(() => { | ... | @@ -159,6 +263,8 @@ onBeforeMount(() => { |
| 159 | <div class="table_panel_wrap" style="height: calc(100% - 44px);"> | 263 | <div class="table_panel_wrap" style="height: calc(100% - 44px);"> |
| 160 | <Table :tableInfo="tableInfo" @tablePageChange="tablePageChange" /> | 264 | <Table :tableInfo="tableInfo" @tablePageChange="tablePageChange" /> |
| 161 | </div> | 265 | </div> |
| 266 | <!-- 选择分发企业的对话框 --> | ||
| 267 | <Dialog_form :dialogConfigInfo="tenantDialogInfo" /> | ||
| 162 | </div> | 268 | </div> |
| 163 | </template> | 269 | </template> |
| 164 | 270 | ... | ... |
src/views/data_asset/dataUsageLog.vue
0 → 100644
This diff is collapsed.
Click to expand it.
| ... | @@ -40,6 +40,8 @@ const evaGuid = route.query.evaGuid; | ... | @@ -40,6 +40,8 @@ const evaGuid = route.query.evaGuid; |
| 40 | const costAssessGuid = route.query.costAssessGuid; | 40 | const costAssessGuid = route.query.costAssessGuid; |
| 41 | const certificateGuid = route.query.certificateGuid; | 41 | const certificateGuid = route.query.certificateGuid; |
| 42 | const detailType = ref(route.query.type); | 42 | const detailType = ref(route.query.type); |
| 43 | const dataSources = ref(route.query.dataSources || 2) | ||
| 44 | const foundMode = ref(route.query.foundMode); | ||
| 43 | 45 | ||
| 44 | const { proxy } = getCurrentInstance() as any; | 46 | const { proxy } = getCurrentInstance() as any; |
| 45 | /** 当前主要类型的详情信息。 */ | 47 | /** 当前主要类型的详情信息。 */ |
| ... | @@ -174,7 +176,7 @@ const registerDetailTableInfo = ref({ | ... | @@ -174,7 +176,7 @@ const registerDetailTableInfo = ref({ |
| 174 | }); | 176 | }); |
| 175 | } else if (row.type == 'trade') { | 177 | } else if (row.type == 'trade') { |
| 176 | router.push({ | 178 | router.push({ |
| 177 | path: route.query.dataSources == '1' ? '/data-asset/authordata-catalog/register-catalog-transaction-detail' : '/data-asset/register-catalog/register-catalog-transaction-detail', | 179 | path: dataSources.value == '1' ? '/data-asset/authordata-catalog/register-catalog-transaction-detail' : '/data-asset/register-catalog/register-catalog-transaction-detail', |
| 178 | //name: 'transactionManagement' | 180 | //name: 'transactionManagement' |
| 179 | query: { | 181 | query: { |
| 180 | guid: row.guid, | 182 | guid: row.guid, |
| ... | @@ -340,7 +342,24 @@ const productTableInfo = ref({ | ... | @@ -340,7 +342,24 @@ const productTableInfo = ref({ |
| 340 | data: [], | 342 | data: [], |
| 341 | showPage: false, | 343 | showPage: false, |
| 342 | actionInfo: { | 344 | actionInfo: { |
| 343 | show: false | 345 | label: "操作", |
| 346 | type: "btn", | ||
| 347 | isMore: false, | ||
| 348 | width: 130, | ||
| 349 | btns: (scope) => { | ||
| 350 | let arrBtns: any = []; | ||
| 351 | //若是使用方,则换一个api地址 | ||
| 352 | arrBtns.push({ | ||
| 353 | label: '查看', value: 'view', click: (scope) => { | ||
| 354 | router.push({ | ||
| 355 | name: (route.query.foundMode == 'read' || route.query.foundMode == 'download') ? 'useApiDetail' : 'apiDetail', | ||
| 356 | query: { guid: scope.row.guid, apiName: scope.row.apiName } | ||
| 357 | }); | ||
| 358 | } | ||
| 359 | }) | ||
| 360 | // 是否显示下载等。 | ||
| 361 | return arrBtns; | ||
| 362 | } | ||
| 344 | }, | 363 | }, |
| 345 | loading: false | 364 | loading: false |
| 346 | }); | 365 | }); |
| ... | @@ -354,10 +373,10 @@ onBeforeMount(() => { | ... | @@ -354,10 +373,10 @@ onBeforeMount(() => { |
| 354 | onActivated(() => { | 373 | onActivated(() => { |
| 355 | if (detailInfo.value?.damName) { | 374 | if (detailInfo.value?.damName) { |
| 356 | if (fullPath === route.fullPath) { | 375 | if (fullPath === route.fullPath) { |
| 357 | document.title = `详情-${detailInfo.value?.damName}`; | 376 | document.title = foundMode.value == 'download' ? `下载详情-${detailInfo.value?.damName}` : (foundMode.value == 'read' ? `查看详情-${detailInfo.value?.damName}` : `详情-${detailInfo.value?.damName}`); |
| 358 | let tab: any = userStore.tabbar.find((tab: any) => tab.fullPath === fullPath); | 377 | let tab: any = userStore.tabbar.find((tab: any) => tab.fullPath === fullPath); |
| 359 | if (tab) { | 378 | if (tab) { |
| 360 | tab.meta.title = `详情-${detailInfo.value?.damName}`; | 379 | tab.meta.title = foundMode.value == 'download' ? `下载详情-${detailInfo.value?.damName}` : (foundMode.value == 'read' ? `查看详情-${detailInfo.value?.damName}` : `详情-${detailInfo.value?.damName}`); |
| 361 | } | 380 | } |
| 362 | } | 381 | } |
| 363 | } | 382 | } |
| ... | @@ -416,7 +435,7 @@ const handleTableViewData = (scope) => { | ... | @@ -416,7 +435,7 @@ const handleTableViewData = (scope) => { |
| 416 | let row = scope.row; | 435 | let row = scope.row; |
| 417 | router.push({ | 436 | router.push({ |
| 418 | // name: 'damTableDataView', | 437 | // name: 'damTableDataView', |
| 419 | path: route.query.dataSources == '1' ? '/data-asset/authordata-catalog/damTableDataView' : '/data-asset/register-catalog/damTableDataView', | 438 | path: dataSources.value == '1' ? '/data-asset/authordata-catalog/damTableDataView' : '/data-asset/register-catalog/damTableDataView', |
| 420 | query: { | 439 | query: { |
| 421 | guid: row.guid, | 440 | guid: row.guid, |
| 422 | name: row.tableChName, | 441 | name: row.tableChName, |
| ... | @@ -425,6 +444,11 @@ const handleTableViewData = (scope) => { | ... | @@ -425,6 +444,11 @@ const handleTableViewData = (scope) => { |
| 425 | }); | 444 | }); |
| 426 | } | 445 | } |
| 427 | 446 | ||
| 447 | /** 下载数据 */ | ||
| 448 | const handleTableViewDataDown = (scope) => { | ||
| 449 | //TODO | ||
| 450 | } | ||
| 451 | |||
| 428 | const toolBtns: any = computed(() => { | 452 | const toolBtns: any = computed(() => { |
| 429 | let btnsArr: any = [{ | 453 | let btnsArr: any = [{ |
| 430 | label: "关闭", value: "cancel", plain: true | 454 | label: "关闭", value: "cancel", plain: true |
| ... | @@ -452,7 +476,7 @@ const btnClick = (btn) => { | ... | @@ -452,7 +476,7 @@ const btnClick = (btn) => { |
| 452 | console.log('detailType', detailType.value); | 476 | console.log('detailType', detailType.value); |
| 453 | if (detailType.value == 'asset') { | 477 | if (detailType.value == 'asset') { |
| 454 | router.push({ | 478 | router.push({ |
| 455 | path: route.query.dataSources == '1' ? '/data-asset/authordata-catalog' : '/data-asset/register-catalog', | 479 | path: dataSources.value == '1' ? '/data-asset/authordata-catalog' : '/data-asset/register-catalog', |
| 456 | //name: 'registerCatalogManagement', | 480 | //name: 'registerCatalogManagement', |
| 457 | query: {} | 481 | query: {} |
| 458 | }); | 482 | }); |
| ... | @@ -1103,16 +1127,16 @@ const formattedAmount = computed(() => { | ... | @@ -1103,16 +1127,16 @@ const formattedAmount = computed(() => { |
| 1103 | 1127 | ||
| 1104 | const handleClick = () => { | 1128 | const handleClick = () => { |
| 1105 | // 跳转到 apiDetail 页面 | 1129 | // 跳转到 apiDetail 页面 |
| 1106 | if (detailInfo.value.foundMode == '2') { | 1130 | // if (detailInfo.value.foundMode == '2') { |
| 1107 | router.push({ | 1131 | // router.push({ |
| 1108 | path: route.query.dataSources == '1' ? '/data-asset/authordata-catalog/api-detail' : '/data-asset/register-catalog/api-detail', | 1132 | // path: route.query.dataSources == '1' ? '/data-asset/authordata-catalog/api-detail' : '/data-asset/register-catalog/api-detail', |
| 1109 | //name: 'apiDetail', | 1133 | // //name: 'apiDetail', |
| 1110 | query: { | 1134 | // query: { |
| 1111 | guid: detailInfo.value.guid, | 1135 | // guid: detailInfo.value.guid, |
| 1112 | type: 'detaile', | 1136 | // type: 'detaile', |
| 1113 | } | 1137 | // } |
| 1114 | }); | 1138 | // }); |
| 1115 | } | 1139 | // } |
| 1116 | }; | 1140 | }; |
| 1117 | 1141 | ||
| 1118 | const deliverySpanMethod = ({ | 1142 | const deliverySpanMethod = ({ |
| ... | @@ -1215,7 +1239,7 @@ const respParamsTableInfo = ref({ | ... | @@ -1215,7 +1239,7 @@ const respParamsTableInfo = ref({ |
| 1215 | <div class="right-main"> | 1239 | <div class="right-main"> |
| 1216 | <div class="asset-title"> | 1240 | <div class="asset-title"> |
| 1217 | <div style="display: flex;align-items: center;width: 100%"> | 1241 | <div style="display: flex;align-items: center;width: 100%"> |
| 1218 | <div @click="handleClick" :class="{ 'foundMode': detailInfo.foundMode == '2', 'title1': true }"><ellipsis-tooltip :content="detailInfo.damName ?? '--'" | 1242 | <div :class="{ 'title1': true }"><ellipsis-tooltip :content="detailInfo.damName ?? '--'" |
| 1219 | class-name="w100f" :refName="'tooltipOver' + 'damName'"></ellipsis-tooltip></div> | 1243 | class-name="w100f" :refName="'tooltipOver' + 'damName'"></ellipsis-tooltip></div> |
| 1220 | <div class="dataLabel">{{ detailInfo.damTypeName }}</div> | 1244 | <div class="dataLabel">{{ detailInfo.damTypeName }}</div> |
| 1221 | <div class="dataLabel" v-show="detailInfo.domainName">{{ detailInfo.domainName }}</div> | 1245 | <div class="dataLabel" v-show="detailInfo.domainName">{{ detailInfo.domainName }}</div> |
| ... | @@ -1434,9 +1458,10 @@ const respParamsTableInfo = ref({ | ... | @@ -1434,9 +1458,10 @@ const respParamsTableInfo = ref({ |
| 1434 | <span>{{ scope.row["updateTime"] || '--' }}</span> | 1458 | <span>{{ scope.row["updateTime"] || '--' }}</span> |
| 1435 | </template> | 1459 | </template> |
| 1436 | </el-table-column> | 1460 | </el-table-column> |
| 1437 | <el-table-column label="操作" v-if="!detailInfo.nodeId" minWidth="120px" align="left" fixed="right" show-overflow-tooltip> | 1461 | <el-table-column label="操作" v-if="!detailInfo.nodeId || foundMode == 'download'" minWidth="120px" align="left" fixed="right" show-overflow-tooltip> |
| 1438 | <template #default="scope"> | 1462 | <template #default="scope"> |
| 1439 | <span class="text_btn" @click="handleTableViewData(scope)">查看样例数据</span> | 1463 | <span class="text_btn" @click="handleTableViewData(scope)">查看样例数据</span> |
| 1464 | <span class="text_btn" @click="handleTableViewDataDown(scope)">下载数据</span> | ||
| 1440 | </template> | 1465 | </template> |
| 1441 | </el-table-column> | 1466 | </el-table-column> |
| 1442 | </el-table> | 1467 | </el-table> | ... | ... |
| ... | @@ -196,10 +196,10 @@ const tableInfo = ref({ | ... | @@ -196,10 +196,10 @@ const tableInfo = ref({ |
| 196 | btns: (scope) => { | 196 | btns: (scope) => { |
| 197 | const { row } = scope; | 197 | const { row } = scope; |
| 198 | let list: any = []; | 198 | let list: any = []; |
| 199 | list.push({ label: "编辑", disabled: row.apiState == 1, value: "edit", click: apiManageTableBtnMap.EDIT }); | 199 | list.push({ label: "编辑", disabled: row.apiState == 1 || !!row.nodeId, value: "edit", click: apiManageTableBtnMap.EDIT }); |
| 200 | list.push({ label: "删除", disabled: row.apiState == 1, value: "del", click: apiManageTableBtnMap.DELETE }); | 200 | list.push({ label: "删除", disabled: row.apiState == 1 || !!row.nodeId, value: "del", click: apiManageTableBtnMap.DELETE }); |
| 201 | list.push({ label: "详情", value: "detail", click: apiManageTableBtnMap.DETAIL }); | 201 | list.push({ label: "详情", value: "detail", click: apiManageTableBtnMap.DETAIL }); |
| 202 | list.push({ label: "复制", value: "copy", click: apiManageTableBtnMap.COPY }) | 202 | list.push({ label: "复制", value: "copy", disabled: !!row.nodeId, click: apiManageTableBtnMap.COPY }) |
| 203 | return list; | 203 | return list; |
| 204 | // const approveVO = row.approveVO || {}; | 204 | // const approveVO = row.approveVO || {}; |
| 205 | // if (!approveVO && row.isApprove == 'N') { | 205 | // if (!approveVO && row.isApprove == 'N') { | ... | ... |
| ... | @@ -64,8 +64,8 @@ const processTableSearchItemList = ref([{ | ... | @@ -64,8 +64,8 @@ const processTableSearchItemList = ref([{ |
| 64 | default: [], | 64 | default: [], |
| 65 | defaultStartTime: new Date(2000, 1, 1, 0, 0, 0), | 65 | defaultStartTime: new Date(2000, 1, 1, 0, 0, 0), |
| 66 | defaultEndTime: new Date(2000, 1, 1, 23, 59, 59), | 66 | defaultEndTime: new Date(2000, 1, 1, 23, 59, 59), |
| 67 | startPlaceholder: '操作开始时间', | 67 | startPlaceholder: '执行开始时间', |
| 68 | endPlaceholder: '操作结束时间', | 68 | endPlaceholder: '执行结束时间', |
| 69 | clearable: true | 69 | clearable: true |
| 70 | }, { | 70 | }, { |
| 71 | type: 'select', | 71 | type: 'select', | ... | ... |
-
Please register or sign in to post a comment