feat(front):前端自定义组件;

master
jiyufei 3 months ago
parent b0b70080d3
commit 1e8575160d

@ -749,12 +749,15 @@ export default {
this.$emit('refreshDataList', true) this.$emit('refreshDataList', true)
}, },
changeData(model, index) { changeData(model, index) {
console.log(this.dataForm.contractId,"this.dataForm.contractIdthis.dataForm.contractIdthis.dataForm.contractId");
if (model == 'contractId' && (this.dataForm.contractId != null || this.dataForm.contractId != undefined)) { if (model == 'contractId' && (this.dataForm.contractId != null || this.dataForm.contractId != undefined)) {
console.log(111111111);
request({ request({
url: '/api/example/Contract/getMerchantById/' + this.dataForm.contractId, url: '/api/example/Contract/getMerchantById/' + this.dataForm.contractId,
method: 'get' method: 'get'
}).then(res => { }).then(res => {
this.$set(this.dataForm, 'merchantId', res.data.merchantName); console.log( res.data.merchantName," res.data.merchantName res.data.merchantName res.data.merchantName");
this.$set(this.dataForm, 'merchantName', res.data.merchantName);
}); });
} }
this.isEdit = false this.isEdit = false

Loading…
Cancel
Save