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

@ -522,8 +522,9 @@
},
},
created () {
this.form =" ";
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.readonlyForm=true;
this.shouldShowButton=true;
@ -541,7 +542,6 @@
this.UpdateShowButton=false;
this.addUpdateShowButton=true;
this.frame_class = null;
this.form =" ";
}
const create_user = this.findObject(this.optionParam.column, "createUser");
create_user.display = false;
@ -701,15 +701,6 @@
SearchDetail() {
getDetail(this.$route.query.id).then(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;
switch (this.tab1_form.checkStatus){
case 1:
@ -724,6 +715,15 @@
default:
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() {

Loading…
Cancel
Save