From e7d9a7d3b2516772f385f2bb943eb62c2e2d8175 Mon Sep 17 00:00:00 2001 From: qq787203167 <787203167@qq.com> Date: Tue, 9 Aug 2022 11:49:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E6=8E=A5=E9=97=AE=E9=A2=98=E7=9F=A5?= =?UTF-8?q?=E8=AF=86=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../classificationMaintenanceModel.vue | 2 +- .../components/countryCardReleaseAdd.vue | 141 ++++++++++++------ .../components/countryCardReleaseModelAdd.vue | 19 ++- .../components/optionMaintenance.vue | 9 +- .../components/optionMaintenanceAdd.vue | 73 ++++----- 5 files changed, 157 insertions(+), 87 deletions(-) diff --git a/jero-web/src/views/businessSupport/problemKnowledgeBase/components/classificationMaintenanceModel.vue b/jero-web/src/views/businessSupport/problemKnowledgeBase/components/classificationMaintenanceModel.vue index 9fbf99930..15a8814fc 100644 --- a/jero-web/src/views/businessSupport/problemKnowledgeBase/components/classificationMaintenanceModel.vue +++ b/jero-web/src/views/businessSupport/problemKnowledgeBase/components/classificationMaintenanceModel.vue @@ -91,7 +91,7 @@ }, { title: this.$t('personCharge'), - dataIndex: 'chargePersonName', + dataIndex: 'chargePersonIdName', align: 'center', width: 240, ellipsis: true diff --git a/jero-web/src/views/businessSupport/problemKnowledgeBase/components/countryCardReleaseAdd.vue b/jero-web/src/views/businessSupport/problemKnowledgeBase/components/countryCardReleaseAdd.vue index 122175961..164da146a 100644 --- a/jero-web/src/views/businessSupport/problemKnowledgeBase/components/countryCardReleaseAdd.vue +++ b/jero-web/src/views/businessSupport/problemKnowledgeBase/components/countryCardReleaseAdd.vue @@ -9,6 +9,31 @@ @close="handleCancel" :visible="visible" style="height: 100%;overflow: auto;padding-bottom: 53px;"> + + + +
+
+ * + {{$t('applicableMarket')}} +
+ + + + + {{ item.title}} + + + + +
+
+
+
-
- -
@@ -80,15 +93,23 @@ deleteOne: '' }, title: '', + formInline: {}, + rules: { + applyMarket: [ + { + required: true, + message: this.$t('LabelType') + this.$t('cannotEmpty'), + trigger: 'change' + } + ] + }, visible: false, selectedRowKeys: [], dataList: [{}], loading: false, - pageNo: 1, - pageSize: 10, - total: 0, confirmLoading: false, index: '', + applyMarketList: [], columns: [ { title: this.$t('LabelName'), @@ -118,10 +139,21 @@ add() { this.visible = true this.title = this.$t('newlyAdded') + this.getApplyMarketList() }, edit() { this.visible = true this.title = this.$t('edit') + this.getApplyMarketList() + }, + getApplyMarketList() { + getAction('/problemKnowledgeBase/countryCardManageReleaseEO/getApplyMarketList', {}).then((res) => { + if (res.success) { + this.applyMarketList = res.result || [] + } else { + this.applyMarketList = [] + } + }) }, clickButtonToUpload(item, index) { this.$refs.uploadFile.perentHandleFunc() @@ -152,31 +184,20 @@ this.visible = false }, handleSubmit() { + this.$refs.ruleForm.validate(valid => { + if (valid) { - }, - onChange(page, pageSize) { - this.pageNo = page - this.replacePage() - }, - SizeChange(page, pageSize) { - this.pageNo = 1 - this.pageSize = pageSize - this.replacePage() + } + }) }, replacePage() { - let query = { - pageNo: this.pageNo, - pageSize: this.pageSize - } this.loading = true - postAction(this.url.list, query).then((res) => { + postAction(this.url.list, {}).then((res) => { if (res.success) { - this.dataList = res.result.records || [] - this.total = res.result.total + this.dataList = res.result || [] this.loading = false } else { this.dataList = [] - this.total = 0 this.loading = false } }) @@ -204,21 +225,6 @@ border-radius: 0 0 2px 2px; } - .box-title { - width: 100%; - text-align: right; - margin-bottom: 20px; - } - - .operator-text { - cursor: pointer; - margin-right: 13px; - font-size: 14px; - font-weight: 400; - color: #040B29; - display: inline-block; - } - .button-text { height: 38px; width: 100%; @@ -227,4 +233,45 @@ border: 1px #00B3BE solid; color: #00B3BE; } + + .box-title-text { + line-height: 1.4; + display: flex; + } + + .title-text { + width: 84px; + text-align: right; + display: inline-block; + font-weight: 500; + font-size: 14px; + margin-right: 16px; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + height: 42px; + line-height: 42px; + } + + .box-input { + display: inline-block; + height: 38px; + width: 100%; + } + + .itemModel { + width: calc(100% - 130px); + display: inline-block; + margin-top: 2px; + } + + .title-text-text { + margin-top: 9px; + } + + .Required { + color: red; + margin-right: 4px; + } + \ No newline at end of file diff --git a/jero-web/src/views/businessSupport/problemKnowledgeBase/components/countryCardReleaseModelAdd.vue b/jero-web/src/views/businessSupport/problemKnowledgeBase/components/countryCardReleaseModelAdd.vue index a81230e9b..90873d393 100644 --- a/jero-web/src/views/businessSupport/problemKnowledgeBase/components/countryCardReleaseModelAdd.vue +++ b/jero-web/src/views/businessSupport/problemKnowledgeBase/components/countryCardReleaseModelAdd.vue @@ -37,6 +37,7 @@