修改:代码调整
This commit is contained in:
parent
eb75c2bc3d
commit
04baa2756e
@ -70,6 +70,7 @@
|
||||
<el-button
|
||||
v-else
|
||||
class="dsp-block"
|
||||
id="testId"
|
||||
type="text"
|
||||
:disabled="checkIfDisabled(item)"
|
||||
@click="item.handler"
|
||||
@ -169,6 +170,11 @@ export default {
|
||||
},
|
||||
close() {
|
||||
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) {
|
||||
return menuObj.disabled === true;
|
||||
|
@ -63,6 +63,7 @@ export default {
|
||||
},
|
||||
|
||||
rules() {
|
||||
const _this = this;
|
||||
const baseRules = {
|
||||
userId: [
|
||||
{ required: true, message: this.$t('orderAuthor.userNameInput'), trigger: 'blur' }
|
||||
@ -83,7 +84,7 @@ export default {
|
||||
if (Number.isInteger(Number(value)) && Number(value) >= 0) {
|
||||
callback();
|
||||
} else {
|
||||
callback(new Error(this.$t('orderAuthor.amountInputError')));
|
||||
callback(new Error(_this.$t('orderAuthor.amountInputError')));
|
||||
}
|
||||
},
|
||||
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: 'payStatus', label: this.$t('orderAuthor.paymentStatus'), type: 'select', required: false, disabled: this.payStatusDisabled, show: this.isShowPayStatus, options: this.PayStatusTypeList },
|
||||
]
|
||||
}
|
||||
};
|
||||
return form
|
||||
},
|
||||
|
||||
rules() {
|
||||
const _this = this;
|
||||
let baseRules = {
|
||||
organizationId: [
|
||||
{ required: true, message: this.$t('orderAuthor.organizationInput'), trigger: 'blur' }
|
||||
@ -215,7 +216,7 @@
|
||||
if (Number.isInteger(Number(value)) && Number(value) > 0) {
|
||||
callback();
|
||||
} else {
|
||||
callback(new Error(this.$t('orderAuthor.amountInputError')));
|
||||
callback(new Error(_this.$t('orderAuthor.amountInputError')));
|
||||
}
|
||||
},
|
||||
trigger: 'blur',
|
||||
@ -232,7 +233,7 @@
|
||||
callback();
|
||||
}
|
||||
} else {
|
||||
callback(new Error(this.$t('orderAuthor.totalPriceInputError2')));
|
||||
callback(new Error(_this.$t('orderAuthor.totalPriceInputError2')));
|
||||
}
|
||||
},
|
||||
trigger: 'blur',
|
||||
@ -245,7 +246,7 @@
|
||||
if (Number.isInteger(Number(value)) && Number(value) > 0) {
|
||||
callback();
|
||||
} else {
|
||||
callback(new Error(this.$t('orderAuthor.monthAmountInputError')));
|
||||
callback(new Error(_this.$t('orderAuthor.monthAmountInputError')));
|
||||
}
|
||||
},
|
||||
trigger: 'blur',
|
||||
|
Loading…
Reference in New Issue
Block a user