From f6d5563c177d9fdab1c793736bbf350426dd7acf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=9C=84?= Date: Fri, 8 Dec 2023 10:46:09 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E5=BE=81=E6=B1=82=E6=84=8F=E8=A7=81?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=89=8D=E3=80=81=E4=BF=AE=E6=94=B9=E5=90=8E?= =?UTF-8?q?=E3=80=81=E4=BF=AE=E6=94=B9=E7=90=86=E7=94=B1=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=BC=B9=E6=A1=86=E5=B1=95=E7=A4=BA=E8=AF=A6=E6=83=85=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../askForAdvice/AskForAdviceDetail.vue | 21 ++++++---- .../askForAdvice/modules/TextContentModal.vue | 42 +++++++++++++++++++ .../StandardConsultationProcess.vue | 38 +++++++++++++---- .../modules/ConsultationModal.vue | 12 +++--- 4 files changed, 91 insertions(+), 22 deletions(-) create mode 100644 src/views/businessSupport/askForAdvice/modules/TextContentModal.vue diff --git a/src/views/businessSupport/askForAdvice/AskForAdviceDetail.vue b/src/views/businessSupport/askForAdvice/AskForAdviceDetail.vue index 3133a0da..d55481b0 100644 --- a/src/views/businessSupport/askForAdvice/AskForAdviceDetail.vue +++ b/src/views/businessSupport/askForAdvice/AskForAdviceDetail.vue @@ -54,9 +54,10 @@ :scroll="{x: '100%'}" @change="handleTableChange"> - - @@ -75,10 +78,11 @@ import JTable from '../../../components/jero/JTable' import { JeroListMixin } from '../../../mixins/JeroListMixin' import { queryAskForAdviceDetail } from '../../../api/businessSupport' import { StandardSource } from '../../../enums/commonEnums' +import TextContentModal from './modules/TextContentModal' export default { name: 'AskForAdviceDetail', - components: { JTable, FileEcho, InternalDetailPage }, + components: { JTable, FileEcho, InternalDetailPage, TextContentModal }, mixins: [JeroListMixin], data () { return { @@ -118,21 +122,21 @@ export default { align: 'center', width: 180, dataIndex: 'modificationBefore', - scopedSlots: { customRender: 'text' } + scopedSlots: { customRender: 'modalDetail' } }, { // 修改后 title: this.$t('workCenter.enStandardChange.afterUpdate'), align: 'center', width: 180, dataIndex: 'modificationAfter', - scopedSlots: { customRender: 'text' } + scopedSlots: { customRender: 'modalDetail' } }, { // 修改理由 title: this.$t('workCenter.enStandardChange.updateReason'), align: 'center', width: 180, dataIndex: 'modificationReason', - scopedSlots: { customRender: 'text' } + scopedSlots: { customRender: 'modalDetail' } } ] }, @@ -304,6 +308,9 @@ export default { this.$openPageNewSheet({ path, query }) + }, + showContent (text) { + this.$refs.textContentModal.open(text) } } } diff --git a/src/views/businessSupport/askForAdvice/modules/TextContentModal.vue b/src/views/businessSupport/askForAdvice/modules/TextContentModal.vue new file mode 100644 index 00000000..b34c6704 --- /dev/null +++ b/src/views/businessSupport/askForAdvice/modules/TextContentModal.vue @@ -0,0 +1,42 @@ + + + + + \ No newline at end of file diff --git a/src/views/workCenter/standardConsultationProcess/StandardConsultationProcess.vue b/src/views/workCenter/standardConsultationProcess/StandardConsultationProcess.vue index 0a537c43..d230a15b 100644 --- a/src/views/workCenter/standardConsultationProcess/StandardConsultationProcess.vue +++ b/src/views/workCenter/standardConsultationProcess/StandardConsultationProcess.vue @@ -179,6 +179,12 @@ :row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }" :loading="loading"> + + +
{{ $t('edit') }} @@ -205,6 +211,13 @@ :extra-form="collectExtraForm" :all-disabled="disabledConsultationList" :row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"> + + + + @@ -304,10 +319,12 @@ import { } from '../../../api/workCenter' import UserSelectModal from '../../../components/selection/UserSelectModal' import { getFileInfo } from '../../../api/api' +import TextContentModal from '../../businessSupport/askForAdvice/modules/TextContentModal' export default { name: 'StandardConsultationProcess', components: { + TextContentModal, UserSelectModal, FileEcho, PersonnelInfo, @@ -461,21 +478,21 @@ export default { align: 'center', width: 180, dataIndex: 'modificationBefore', - scopedSlots: { customRender: 'text' } + scopedSlots: { customRender: 'modalDetail' } }, { // 修改后 title: this.$t('workCenter.enStandardChange.afterUpdate'), align: 'center', width: 180, dataIndex: 'modificationAfter', - scopedSlots: { customRender: 'text' } + scopedSlots: { customRender: 'modalDetail' } }, { // 修改理由 title: this.$t('workCenter.enStandardChange.updateReason'), align: 'center', width: 180, dataIndex: 'modificationReason', - scopedSlots: { customRender: 'text' } + scopedSlots: { customRender: 'modalDetail' } } ] }, @@ -520,21 +537,21 @@ export default { align: 'center', width: 180, dataIndex: 'modificationBefore', - scopedSlots: { customRender: 'text' } + scopedSlots: { customRender: 'modalDetail' } }, { // 修改后 title: this.$t('workCenter.enStandardChange.afterUpdate'), align: 'center', width: 180, dataIndex: 'modificationAfter', - scopedSlots: { customRender: 'text' } + scopedSlots: { customRender: 'modalDetail' } }, { // 修改理由 title: this.$t('workCenter.enStandardChange.updateReason'), align: 'center', width: 180, dataIndex: 'modificationReason', - scopedSlots: { customRender: 'text' } + scopedSlots: { customRender: 'modalDetail' } } ] }, @@ -682,21 +699,21 @@ export default { align: 'center', width: 180, dataIndex: 'modificationBefore', - scopedSlots: { customRender: 'text' } + scopedSlots: { customRender: 'modalDetail' } }, { // 修改后 title: this.$t('workCenter.enStandardChange.afterUpdate'), align: 'center', width: 180, dataIndex: 'modificationAfter', - scopedSlots: { customRender: 'text' } + scopedSlots: { customRender: 'modalDetail' } }, { // 修改理由 title: this.$t('workCenter.enStandardChange.updateReason'), align: 'center', width: 180, dataIndex: 'modificationReason', - scopedSlots: { customRender: 'text' } + scopedSlots: { customRender: 'modalDetail' } } ] }, @@ -1166,6 +1183,9 @@ export default { */ handleOpinionChange (value, index) { this.$set(this.dataSource[index], 'isAdopt', value) + }, + showContent (text) { + this.$refs.textContentModal.open(text) } } } diff --git a/src/views/workCenter/standardConsultationProcess/modules/ConsultationModal.vue b/src/views/workCenter/standardConsultationProcess/modules/ConsultationModal.vue index 846b7cb3..5a9476d1 100644 --- a/src/views/workCenter/standardConsultationProcess/modules/ConsultationModal.vue +++ b/src/views/workCenter/standardConsultationProcess/modules/ConsultationModal.vue @@ -40,22 +40,22 @@