Commit 3f51dbee by WF1020

gitopn校验修改

parent 49669e8c
......@@ -22,7 +22,6 @@ export default {
},
//点击查询按钮时,判断“来源”是否有数据
async handleSearch() {
console.log('this', this.sourceList);
if (!this.sourceList.length) {
this.$notify.error({ title: '错误', message: '来源不能为空!' });
return;
......
......@@ -116,7 +116,7 @@
<c-button style="margin-left: 0" size="small" @click="onWaitDetail(scope.$index,scope.row)">
详情
</c-button>
<c-button style="margin-left: 5px" size="small" type="primary" @click="onHandle(scope.$index,scope.row)">
<c-button :disabled="scope.row.relflg != 'W'" style="margin-left: 5px" size="small" type="primary" @click="onHandle(scope.$index,scope.row)">
处理
</c-button>
</template>
......
......@@ -14,28 +14,23 @@ export default {
if (!res.data) {
return;
}
if (res.data.addbcb) {
this.$set(this.model, 'addbcb', res.data.addbcb);
}
if (res.data.gitp) {
this.$set(this.model, 'gitp', res.data.gitp);
}
if (res.data.gidgrp) {
this.$set(this.model, 'gidgrp', res.data.gidgrp);
}
if (res.data.cfagit) {
this.$set(this.model, 'cfagit', res.data.cfagit);
}
if (res.data.cnybop) {
this.$set(this.model, 'cnybop', res.data.cnybop);
}
this.$set(this.model, 'setmod', {
...this.model.setmod,
setfeg: res.data.setfeg,
setfog: res.data.setfog,
setglg: res.data.setglg,
});
console.log(res);
this.copyValueFromVoData(this.model, res.data)
this.copyValueFromVoData(this.model.setmod.setfeg, res.data.setfeg)
this.copyValueFromVoData(this.model.setmod.setfog, res.data.setfog)
this.copyValueFromVoData(this.model.setmod.setglg, res.data.setglg)
},
// 兼容处理在前端model中定义了字段,后端返回的数据中不存在字段的问题
copyValueFromVoData (model, data) {
let keysList = Object.keys(model)
keysList.map((key) => {
if (data[key]) {
if (Utils.typeOf(model[key]) === 'Object') {
this.copyValueFromVoData(model[key], data[key])
} else {
this.$set(model, key, data[key])
}
}
})
},
async tabClick(tab) {
if (this.isInDisplay) {
......
......@@ -219,10 +219,9 @@
prop="gidgrp.blk.exptxt"
>
<c-input
disabled
type="textarea"
rows="5"
:disabled="model.gitp.exptxtmodflg == ''"
:disabled="!model.gitp.exptxtmodflg"
v-model="model.gidgrp.blk.exptxt"
maxlength="780"
show-word-limit
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment