main
zhen 11 months ago
parent ede984a149
commit 9b3446fe68
  1. 22
      src/views/smart/workpermitDetail.vue

@ -522,8 +522,9 @@
}, },
}, },
created () { created () {
this.form =" ";
this.type = this.option.column[0]; this.type = this.option.column[0];
if(this.$route.query.frameMode == "search"){ if(this.$route.query.frameMode === "search"){
this.option.column.push({ label: '工作票附票', prop: 'attachment' }); this.option.column.push({ label: '工作票附票', prop: 'attachment' });
this.readonlyForm=true; this.readonlyForm=true;
this.shouldShowButton=true; this.shouldShowButton=true;
@ -541,7 +542,6 @@
this.UpdateShowButton=false; this.UpdateShowButton=false;
this.addUpdateShowButton=true; this.addUpdateShowButton=true;
this.frame_class = null; this.frame_class = null;
this.form =" ";
} }
const create_user = this.findObject(this.optionParam.column, "createUser"); const create_user = this.findObject(this.optionParam.column, "createUser");
create_user.display = false; create_user.display = false;
@ -701,15 +701,6 @@
SearchDetail() { SearchDetail() {
getDetail(this.$route.query.id).then(res => { getDetail(this.$route.query.id).then(res => {
console.log(res); console.log(res);
const charactersPerRow = 20;
//
let extRegReasonLen = res.data.data.extRegReason.length;
let extRegReasonLenRows = Math.ceil(extRegReasonLen / charactersPerRow);
this.tab1_option.column[20].maxRows = extRegReasonLenRows;
//
let changeReasonLen = res.data.data.changeReason.length;
let changeReasonLenRows = Math.ceil(changeReasonLen / charactersPerRow);
this.tab1_option.column[22].maxRows = changeReasonLenRows;
this.tab1_form = res.data.data; this.tab1_form = res.data.data;
switch (this.tab1_form.checkStatus){ switch (this.tab1_form.checkStatus){
case 1: case 1:
@ -724,6 +715,15 @@
default: default:
this.form =" "; this.form =" ";
} }
const charactersPerRow = 20;
//
let extRegReasonLen = res.data.data.extRegReason.length;
let extRegReasonLenRows = Math.ceil(extRegReasonLen / charactersPerRow);
this.tab1_option.column[20].maxRows = extRegReasonLenRows;
//
let changeReasonLen = res.data.data.changeReason.length;
let changeReasonLenRows = Math.ceil(changeReasonLen / charactersPerRow);
this.tab1_option.column[22].maxRows = changeReasonLenRows;
}); });
}, },
closeTicket() { closeTicket() {

Loading…
Cancel
Save