From bc8563651544caac12b99573eeed77dba94b34f0 Mon Sep 17 00:00:00 2001
From: lideqin <694785430@qq.com>
Date: Fri, 19 Apr 2024 15:28:41 +0800
Subject: [PATCH] =?UTF-8?q?[update]=20=E7=BB=91=E5=AE=9A=E9=9B=B6=E9=83=A8?=
=?UTF-8?q?=E4=BB=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/api.js | 2 +-
.../selection/ClauseSelectionModal.vue | 4 ++--
.../selection/SplitStandardSelectionModal.vue | 20 +++++++++----------
.../modules/BingingPartsModal.vue | 4 ++++
4 files changed, 17 insertions(+), 13 deletions(-)
diff --git a/src/api/api.js b/src/api/api.js
index ee015028..9475a37b 100644
--- a/src/api/api.js
+++ b/src/api/api.js
@@ -141,7 +141,7 @@ const getEnterpriseLevelMapList = (params) => getAction('/sys/lawsGrade/list', p
// 绑定零部件-获取拆分标准
const getSplitStandardList = (params) => getAction('/laws/bindPart/selectStandard', params)
// 绑定零部件-获取条款目录树
-const getClauseTree = (params) => getAction('/laws/bindPart/selectClause', params)
+const getClauseTree = (params) => getAction('/laws/bindPart/clauseTree', params)
// 根据标准拆分id获取条款列表
const getClauseListByStandardInfoId = (params) => postAction('/laws/bindPart/selectClause', params)
diff --git a/src/components/selection/ClauseSelectionModal.vue b/src/components/selection/ClauseSelectionModal.vue
index 84bd99d0..efe89e5e 100644
--- a/src/components/selection/ClauseSelectionModal.vue
+++ b/src/components/selection/ClauseSelectionModal.vue
@@ -15,13 +15,13 @@
+ v-model="queryParam.item_num">
+ v-model="queryParam.item_title">
-
- {{ record.source === '3' ? (record.esStandardState_dictText || global.emptyLine) : (record.standardState_dictText || global.emptyLine) }}
- {{ record.source === '3' ? (record.esStandardState_dictText || global.emptyLine) : (record.standardState_dictText || global.emptyLine) }}
+ {{ record.standardType === '3' ? (record.esStandardState_dictText || global.emptyLine) : (record.standardState_dictText || global.emptyLine) }}
+ {{ record.standardType === '3' ? (record.esStandardState_dictText || global.emptyLine) : (record.standardState_dictText || global.emptyLine) }}
@@ -198,7 +198,7 @@ export default {
this.queryParam = {}
this.initDict()
this.$nextTick(() => {
- this.source ? this.queryParam.source = this.source : this.queryParam = {}
+ this.source ? this.queryParam.standardType = this.source : this.queryParam = {}
this.replacePage()
})
},
@@ -222,8 +222,8 @@ export default {
pageSize: this.ipagination.pageSize
}
// 清空在可选范围内进行查询
- if (!query.source && this.canSelectedSource.length < 3) {
- query.source = this.canSelectedSource.join(',')
+ if (!query.standardType && this.canSelectedSource.length < 3) {
+ query.standardType = this.canSelectedSource.join(',')
}
// this.selectedRowKeys = []
this.loading = true
@@ -245,7 +245,7 @@ export default {
searchReset () {
// 如果禁用来源,就不重置来源
if (this.disabledSourceSearch) {
- this.queryParam = { source: this.source }
+ this.queryParam = { standardType: this.source }
} else {
this.queryParam = {}
}
@@ -330,11 +330,11 @@ export default {
handleGoDetail (record) {
let path = ''
// 需要先判断是哪种标准
- if (record.source === '1') {
+ if (record.standardType === '1') {
path = '/standardRegulationLibrary/DomesticStandardDetail'
- } else if (record.source === '2') {
+ } else if (record.standardType === '2') {
path = '/standardRegulationLibrary/OverseasStandardDetail'
- } else if (record.source === '3') {
+ } else if (record.standardType === '3') {
path = '/enterpriseStandardLibrary/enterpriseStandardDetail'
}
this.$openPageNewSheet({
diff --git a/src/views/system/bindingParts/modules/BingingPartsModal.vue b/src/views/system/bindingParts/modules/BingingPartsModal.vue
index 9a02163b..7931bbf0 100644
--- a/src/views/system/bindingParts/modules/BingingPartsModal.vue
+++ b/src/views/system/bindingParts/modules/BingingPartsModal.vue
@@ -152,6 +152,10 @@ export default {
handleStandardChange (value) {
this.sarFileSplitInfoId = value[0].infoId
this.model.docSplitId = value[0].infoId
+ this.model.standardId = value[0].id
+ this.model.standardType = value[0].standardType
+ this.form.resetFields(['clauseIds'])
+ this.model.clauseNos = ''
this.$nextTick(() => {
this.form.setFieldsValue(pick(value[0], 'standardName'))
})