diff --git a/src/api/workCenter.js b/src/api/workCenter.js index 929dca6e..9140739f 100644 --- a/src/api/workCenter.js +++ b/src/api/workCenter.js @@ -191,6 +191,8 @@ const rejectStandardECProcess = (params) => postAction('/process/fb/processFbEnt /* 标准征求意见流程 */ // 获取标准被拆分的列表 const querySpitFileByStandardNumber = (params) => getAction('/laws/standard/common/getSplitsByStandardNumber', params) +// 通过标准id获取标准被拆分的列表 +const querySpitFileByStandardId = (params) => getAction('/laws/standard/common/getFileByStandardId', params) // 获取标准条款号 const queryStandardClauseNumber = (params) => getAction('/laws/DocumentTool/documentSplit/queryTreeMenuByInfoId', params) // 保存 @@ -537,6 +539,7 @@ export { rejectStandardECProcess, querySpitFileByStandardNumber, + querySpitFileByStandardId, queryStandardClauseNumber, saveConsultationProcess, queryConsultationProcessDetail, diff --git a/src/views/workCenter/standardConsultationProcess/StandardConsultationProcess.vue b/src/views/workCenter/standardConsultationProcess/StandardConsultationProcess.vue index 3f5ea7ee..480b7d1c 100644 --- a/src/views/workCenter/standardConsultationProcess/StandardConsultationProcess.vue +++ b/src/views/workCenter/standardConsultationProcess/StandardConsultationProcess.vue @@ -64,7 +64,6 @@ - -
- {{ item.fileType_dictText }} + +
+ {{ item.standardFileType_dictText }}
@@ -55,10 +55,10 @@ export default { } }, methods: { - open (standardNumber, selectedValue) { + open (standardId, selectedValue) { this.visible = true this.confirmLoading = true - querySpitFileByStandardNumber({ standardNumber }).then(res => { + querySpitFileByStandardNumber({ standardId }).then(res => { if (res.success) { this.optionList = res.result || [] this.$nextTick(() => { @@ -75,7 +75,7 @@ export default { this.form.validateFields((errors, values) => { if (!errors) { this.$emit('ok', values.fileType) - const item = values.fileType ? this.optionList.find(tt => tt.publishBeforeId === values.fileType) : {} + const item = values.fileType ? this.optionList.find(tt => tt.id === values.fileType) : {} console.log(item) this.$emit('okItem', item) }