diff --git a/src/api/api.js b/src/api/api.js
index 91257895..ee015028 100644
--- a/src/api/api.js
+++ b/src/api/api.js
@@ -140,6 +140,8 @@ const getEnterpriseLevelMapList = (params) => getAction('/sys/lawsGrade/list', p
// 绑定零部件-获取拆分标准
const getSplitStandardList = (params) => getAction('/laws/bindPart/selectStandard', params)
+// 绑定零部件-获取条款目录树
+const getClauseTree = (params) => getAction('/laws/bindPart/selectClause', params)
// 根据标准拆分id获取条款列表
const getClauseListByStandardInfoId = (params) => postAction('/laws/bindPart/selectClause', params)
@@ -231,6 +233,7 @@ export {
getEnterpriseLevelMapList,
getSplitStandardList,
+ getClauseTree,
getClauseListByStandardInfoId,
getSSOUserInfo,
diff --git a/src/components/selection/ClauseSelectionModal.vue b/src/components/selection/ClauseSelectionModal.vue
index b2faddd6..f82b88e8 100644
--- a/src/components/selection/ClauseSelectionModal.vue
+++ b/src/components/selection/ClauseSelectionModal.vue
@@ -119,21 +119,21 @@ export default {
columns: [
{ // 条款号
title: this.$t('clauseSelect.clauseNumber'),
- dataIndex: 'clauseNumber',
+ dataIndex: 'item_num',
align: 'center',
width: 150,
scopedSlots: { customRender: 'text' }
},
{ // 条款名称
title: this.$t('clauseSelect.clauseName'),
- dataIndex: 'clauseName',
+ dataIndex: 'item_title',
align: 'center',
width: 150,
scopedSlots: { customRender: 'text' }
},
{ // 条款内容
title: this.$t('clauseSelect.clauseContent'),
- dataIndex: 'clauseContent',
+ dataIndex: 'item_content',
align: 'center',
width: 150,
scopedSlots: { customRender: 'clauseContent' }
diff --git a/src/views/system/bindingParts/BindingParts.vue b/src/views/system/bindingParts/BindingParts.vue
index 625c8e99..6a2f20f5 100644
--- a/src/views/system/bindingParts/BindingParts.vue
+++ b/src/views/system/bindingParts/BindingParts.vue
@@ -199,32 +199,32 @@ export default {
methods: {
// 使用绑定关系
useBindingRelationship () {
- if (this.selectedRowKeys.length <= 0) {
- this.$message.warning(this.$t('selectARecord'))
- } else {
- const ids = this.selectedRowKeys.join(',')
- const that = this
- this.$confirm({
- title: this.$t('system.bindingParts.confirmUseBindRelationship'),
- content: this.$t('system.bindingParts.isUseBindRelationship'),
- onOk: () => {
- that.loading = true
- postAction(that.url.useBindingRelationship, { ids: ids }).then((res) => {
- if (res.success) {
- // 重新计算分页问题
- that.reCalculatePage(that.selectedRowKeys.length)
- that.$message.success(res.message)
- that.loadData()
- that.onClearSelected()
- } else {
- that.$message.warning(res.message)
- }
- }).finally(() => {
- that.loading = false
- })
- }
- })
- }
+ // if (this.selectedRowKeys.length <= 0) {
+ // this.$message.warning(this.$t('selectARecord'))
+ // } else {
+ // const ids = this.selectedRowKeys.join(',')
+ // const that = this
+ // this.$confirm({
+ // title: this.$t('system.bindingParts.confirmUseBindRelationship'),
+ // content: this.$t('system.bindingParts.isUseBindRelationship'),
+ // onOk: () => {
+ // that.loading = true
+ // postAction(that.url.useBindingRelationship, { ids: ids }).then((res) => {
+ // if (res.success) {
+ // // 重新计算分页问题
+ // that.reCalculatePage(that.selectedRowKeys.length)
+ // that.$message.success(res.message)
+ // that.loadData()
+ // that.onClearSelected()
+ // } else {
+ // that.$message.warning(res.message)
+ // }
+ // }).finally(() => {
+ // that.loading = false
+ // })
+ // }
+ // })
+ // }
},
// 点击标准编号和标准名称
handleGoDetail (record) {
@@ -246,7 +246,7 @@ export default {
},
// 点击条款号
handleGoClause (record) {
- this.$refs.clauseModalRef.open(record.infoId)
+ this.$refs.clauseModalRef.open(record.docSplitId, record.clauseIds)
}
}
}
diff --git a/src/views/system/bindingParts/modules/ClauseModal.vue b/src/views/system/bindingParts/modules/ClauseModal.vue
index 23e73519..35a67615 100644
--- a/src/views/system/bindingParts/modules/ClauseModal.vue
+++ b/src/views/system/bindingParts/modules/ClauseModal.vue
@@ -47,25 +47,25 @@
-
+ v-model="queryParam.item_num">
-
+ v-model="queryParam.item_title">
-
+ v-model="queryParam.item_content">
@@ -108,13 +108,11 @@