From 8be054f172ee803aa3044d635b036e352e17f864 Mon Sep 17 00:00:00 2001 From: yzj <2239426921@qq.com> Date: Thu, 30 Jun 2022 15:51:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E9=80=89=E6=96=87=E4=BB=B6=E7=B1=BB?= =?UTF-8?q?=E5=88=AB=E4=BF=AE=E6=94=B9=E4=B8=8B=E6=8B=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/const/crud/archives/zxArchiveRecordinfo.js | 13 +++++++++++++ src/views/archives/catalog/index.vue | 11 ++++++++++- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/src/const/crud/archives/zxArchiveRecordinfo.js b/src/const/crud/archives/zxArchiveRecordinfo.js index 7b0bab2..ed3b0c9 100644 --- a/src/const/crud/archives/zxArchiveRecordinfo.js +++ b/src/const/crud/archives/zxArchiveRecordinfo.js @@ -163,6 +163,19 @@ export const zxTableOption = { { label: '文件类别', prop: 'recordType', + type: 'tree', + filter:false, + parent:false, + props: { + label: 'label', + value: 'id' + }, + dicUrl: process.env.VUE_APP_BASE_API+`/archives/categoryInfo/treeSonselect?code=ZX`, + rules: [{ + required: true, + message: '请选择文件类别', + trigger: 'change' + }], }, { label: '年度', diff --git a/src/views/archives/catalog/index.vue b/src/views/archives/catalog/index.vue index a07b156..953426a 100644 --- a/src/views/archives/catalog/index.vue +++ b/src/views/archives/catalog/index.vue @@ -9,7 +9,7 @@ :data="caOptions" default-expand-all @node-click="handleNodeClick" - node-key="code" + node-key="id" :expand-on-click-node="false" > @@ -612,6 +612,15 @@ export default { pageSize: page.pageSize, }, params, this.paramsSearch)).then(response => { this.tableData = response.rows + //增选项目文件类型改为字典值 + if (this.code==='ZX'){ + this.tableData.forEach(item=>{ + if (item.recordType){ + item.recordType=Number(item.recordType) + } + + }) + } this.page.total = response.total.toString() this.page.currentPage=page.currentPage this.page.pageSize=page.pageSize