From e1d3700dd8c7c2446d0e21da1eb25bbe08927764 Mon Sep 17 00:00:00 2001 From: yanyizhou <2311759275@qq.com> Date: Wed, 15 Dec 2021 20:42:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=81=E6=A0=87=E5=BA=93=20-=20=E4=BB=A3?= =?UTF-8?q?=E6=9B=BF=E4=BC=81=E6=A0=87=E7=BC=96=E5=8F=B7=E6=92=91=E5=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/CustomFormComponents/Input.vue | 16 +- .../InputForStandardsForEnterprise.vue | 255 ++++++++++-------- 2 files changed, 154 insertions(+), 117 deletions(-) diff --git a/src/components/CustomFormComponents/Input.vue b/src/components/CustomFormComponents/Input.vue index 38f2728e5..aa3e5a3ba 100644 --- a/src/components/CustomFormComponents/Input.vue +++ b/src/components/CustomFormComponents/Input.vue @@ -12,6 +12,9 @@ :value="value" :placeholder="placeholder" :disabled="disabled" + type="textarea" + resize="none" + :autosize="true" clearable @input="handleChange" > @@ -63,6 +66,15 @@ export default { } - diff --git a/src/components/CustomFormComponents/InputForStandardsForEnterprise.vue b/src/components/CustomFormComponents/InputForStandardsForEnterprise.vue index 8c74fdbfb..0fdc6e1bb 100644 --- a/src/components/CustomFormComponents/InputForStandardsForEnterprise.vue +++ b/src/components/CustomFormComponents/InputForStandardsForEnterprise.vue @@ -1,73 +1,78 @@ @@ -180,7 +195,7 @@ export default { default: '150px' } }, - data () { + data() { return { replaceLawsNumModel: false, sarBussionessLawsEO: { @@ -212,28 +227,28 @@ export default { } }, computed: { - placeholder () { + placeholder() { return `请输入${this.config.attrName}` }, - showMessage () { + showMessage() { return `${this.config.attrName}不能为空` }, - isRequired () { + isRequired() { return !!this.config.isMust } }, methods: { - getReplaceLawsNumRowSearch () { + getReplaceLawsNumRowSearch() { this.replaceLawsNumForm.page = 1 this.replacePage = 1 this.getReplaceLawsNumRow() }, - handleChange (event) { + handleChange(event) { // const value = event.target.value const value = event this.$emit('input', value) }, - selectLaws () { + selectLaws() { // if (this.standNumFlag === 1) { // this.$refs.selections.selectAll(false) // } @@ -242,7 +257,7 @@ export default { this.getReplaceLawsNumRow() }, // 代替政策号 请求数据 - getReplaceLawsNumRow () { + getReplaceLawsNumRow() { if (this.sarBussionessLawsEO.replaceLawsNum !== null && this.sarBussionessLawsEO.replaceLawsNum !== '') { this.replaceLawsNumForm.quoteIdList = this.quoteIdList1.toString() === '' ? '' : this.quoteIdList1 } else { @@ -257,7 +272,7 @@ export default { formData.standType = this.replaceLawsNumForm.dataSource === 'INLAND_STAND' ? 'INLAND' : this.replaceLawsNumForm.dataSource === 'FOREIGN_STAND' ? 'FOREIGN' : '' formData.standNumber = formData.numberName - let url = this.replaceLawsNumForm.dataSource === 'BUSINESS' ? 'lawss/sarBussionessStand/getSarBussionStandPage' : 'sarStandardsInfo/sar-standards-info/getSarStandardsInfoPage' + let url = this.replaceLawsNumForm.dataSource === 'BUSINESS' ? 'lawss/sarBussionessStand/getSarBussionStandPage' : 'sarStandardsInfo/sar-standards-info/getSarStandardsInfoPage' this.$http.get(url, formData, { _this: this, loading: 'replaceLoading' @@ -277,27 +292,27 @@ export default { }) }, // 代替政策编号-取消 - replaceLawsNumModelCancel () { + replaceLawsNumModelCancel() { // this.replaceLawsNumModel = false this.$refs.selections.clearSelection() }, // 代替政策号 table选择事件 - selectReplaceStandNumRowChange (row) { + selectReplaceStandNumRowChange(row) { this.selectedListRep = row }, // 代替政策分页 - pageChangeReplace (page) { + pageChangeReplace(page) { this.replacePage = page this.replaceLawsNumForm.page = page this.getReplaceLawsNumRow() }, - pageSizeChangeReplace (pageSize) { + pageSizeChangeReplace(pageSize) { // this.replaceRows = pageSize this.replaceLawsNumForm.pageSize = pageSize this.getReplaceLawsNumRow() }, // 代替政策编号确定 - replaceLawsNumModelBt () { + replaceLawsNumModelBt() { let textArr = [] if (typeof this.value === 'string') { @@ -342,7 +357,7 @@ export default { this.$refs.selections.clearSelection() }, // 点击查看 - handlePreview (item) { + handlePreview(item) { let name = '' let pageType = '' switch (this.dataSource) { @@ -369,7 +384,7 @@ export default { window.open(routeUrl.href, '_blank') }, - getResetLawsNumRow () { + getResetLawsNumRow() { this.replaceLawsNumForm = { dataSource: 'BUSINESS', numberName: '', // 政策编号 @@ -387,13 +402,23 @@ export default {