修改:代码调整
This commit is contained in:
parent
eb75c2bc3d
commit
04baa2756e
@ -70,6 +70,7 @@
|
|||||||
<el-button
|
<el-button
|
||||||
v-else
|
v-else
|
||||||
class="dsp-block"
|
class="dsp-block"
|
||||||
|
id="testId"
|
||||||
type="text"
|
type="text"
|
||||||
:disabled="checkIfDisabled(item)"
|
:disabled="checkIfDisabled(item)"
|
||||||
@click="item.handler"
|
@click="item.handler"
|
||||||
@ -169,6 +170,11 @@ export default {
|
|||||||
},
|
},
|
||||||
close() {
|
close() {
|
||||||
this.show = false;
|
this.show = false;
|
||||||
|
// 关闭时立即影藏popover组件
|
||||||
|
const popoverList = document.getElementsByClassName('el-popover');
|
||||||
|
for (let i = 0; i < popoverList.length ; i++){
|
||||||
|
popoverList[i].style.display = 'none';
|
||||||
|
}
|
||||||
},
|
},
|
||||||
checkIfDisabled(menuObj) {
|
checkIfDisabled(menuObj) {
|
||||||
return menuObj.disabled === true;
|
return menuObj.disabled === true;
|
||||||
|
@ -63,6 +63,7 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
rules() {
|
rules() {
|
||||||
|
const _this = this;
|
||||||
const baseRules = {
|
const baseRules = {
|
||||||
userId: [
|
userId: [
|
||||||
{ required: true, message: this.$t('orderAuthor.userNameInput'), trigger: 'blur' }
|
{ required: true, message: this.$t('orderAuthor.userNameInput'), trigger: 'blur' }
|
||||||
@ -83,7 +84,7 @@ export default {
|
|||||||
if (Number.isInteger(Number(value)) && Number(value) >= 0) {
|
if (Number.isInteger(Number(value)) && Number(value) >= 0) {
|
||||||
callback();
|
callback();
|
||||||
} else {
|
} else {
|
||||||
callback(new Error(this.$t('orderAuthor.amountInputError')));
|
callback(new Error(_this.$t('orderAuthor.amountInputError')));
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
trigger: 'blur'
|
trigger: 'blur'
|
||||||
|
@ -177,11 +177,12 @@
|
|||||||
{ prop: 'payWays', label: this.$t('orderAuthor.paymentMethod'), type: 'select', required: false, disabled: this.payTypeIsDisabled, show: this.isShowPayType, options: this.PayTypeList },
|
{ prop: 'payWays', label: this.$t('orderAuthor.paymentMethod'), type: 'select', required: false, disabled: this.payTypeIsDisabled, show: this.isShowPayType, options: this.PayTypeList },
|
||||||
{ prop: 'payStatus', label: this.$t('orderAuthor.paymentStatus'), type: 'select', required: false, disabled: this.payStatusDisabled, show: this.isShowPayStatus, options: this.PayStatusTypeList },
|
{ prop: 'payStatus', label: this.$t('orderAuthor.paymentStatus'), type: 'select', required: false, disabled: this.payStatusDisabled, show: this.isShowPayStatus, options: this.PayStatusTypeList },
|
||||||
]
|
]
|
||||||
}
|
};
|
||||||
return form
|
return form
|
||||||
},
|
},
|
||||||
|
|
||||||
rules() {
|
rules() {
|
||||||
|
const _this = this;
|
||||||
let baseRules = {
|
let baseRules = {
|
||||||
organizationId: [
|
organizationId: [
|
||||||
{ required: true, message: this.$t('orderAuthor.organizationInput'), trigger: 'blur' }
|
{ required: true, message: this.$t('orderAuthor.organizationInput'), trigger: 'blur' }
|
||||||
@ -215,7 +216,7 @@
|
|||||||
if (Number.isInteger(Number(value)) && Number(value) > 0) {
|
if (Number.isInteger(Number(value)) && Number(value) > 0) {
|
||||||
callback();
|
callback();
|
||||||
} else {
|
} else {
|
||||||
callback(new Error(this.$t('orderAuthor.amountInputError')));
|
callback(new Error(_this.$t('orderAuthor.amountInputError')));
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
trigger: 'blur',
|
trigger: 'blur',
|
||||||
@ -232,7 +233,7 @@
|
|||||||
callback();
|
callback();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
callback(new Error(this.$t('orderAuthor.totalPriceInputError2')));
|
callback(new Error(_this.$t('orderAuthor.totalPriceInputError2')));
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
trigger: 'blur',
|
trigger: 'blur',
|
||||||
@ -245,7 +246,7 @@
|
|||||||
if (Number.isInteger(Number(value)) && Number(value) > 0) {
|
if (Number.isInteger(Number(value)) && Number(value) > 0) {
|
||||||
callback();
|
callback();
|
||||||
} else {
|
} else {
|
||||||
callback(new Error(this.$t('orderAuthor.monthAmountInputError')));
|
callback(new Error(_this.$t('orderAuthor.monthAmountInputError')));
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
trigger: 'blur',
|
trigger: 'blur',
|
||||||
|
Loading…
Reference in New Issue
Block a user