Compare commits

..

No commits in common. "475ec35ec5cb92e6e6f12a6f52d50232ed783e4c" and "cb7135bad54ca51c94649030a6cd6ce322513178" have entirely different histories.

3 changed files with 5 additions and 8 deletions

View File

@ -116,7 +116,7 @@ export default {
}, },
selectObj(val) { selectObj(val) {
this.form.bindObjectId = val[val.length - 1]; this.form.bindObjectId = val[val.length - 1];
this.form.bindObjectType = val.length; this.form.bindObjectType = val.length - 1;
}, },
submitForm() { submitForm() {
this.$refs['form'].validate((valid) => { this.$refs['form'].validate((valid) => {

View File

@ -216,10 +216,10 @@ export default {
getEnergyLimit(id).then((res) => { getEnergyLimit(id).then((res) => {
if (res.code === 0) { if (res.code === 0) {
this.form = res.data; this.form = res.data;
this.form.plcParamId = res.data.plcParamId || '';
this.form.tableName = this.form.tableName this.form.tableName = this.form.tableName
? this.form.tableName + '' ? this.form.tableName + ''
: ''; : '';
this.form.plcParamId = res.data.plcParamId || '';
this.form.method = this.form.method ? this.form.method + '' : ''; this.form.method = this.form.method ? this.form.method + '' : '';
this.form.limitType = this.form.limitType this.form.limitType = this.form.limitType
? this.form.limitType + '' ? this.form.limitType + ''
@ -231,9 +231,6 @@ export default {
if (this.form.type === 2) { if (this.form.type === 2) {
this.getDetailList(); this.getDetailList();
} }
if (this.form.energyTypeId) {
this.getTableNameList(this.form.energyTypeId);
}
} }
}); });
} else { } else {

View File

@ -280,7 +280,7 @@ export default {
}, },
} }
: undefined, : undefined,
this.$auth.hasPermi('base:order-group:query') this.$auth.hasPermi('base:order-group:update')
? { ? {
type: 'detail', type: 'detail',
btnName: '详情', btnName: '详情',