|
@@ -63,8 +63,9 @@
|
|
<div class="vongi-slot-img"><img :src="item.faceImageUrl"></div>
|
|
<div class="vongi-slot-img"><img :src="item.faceImageUrl"></div>
|
|
<div class="vongi-slot-content">
|
|
<div class="vongi-slot-content">
|
|
<h4>审批人{{index+1}}<span class="mui-pull-right mui-h5 color999" v-text="item.time"></span></h4>
|
|
<h4>审批人{{index+1}}<span class="mui-pull-right mui-h5 color999" v-text="item.time"></span></h4>
|
|
- <p>{{item.name}} <span class="color55f868" :style="getColor(item.status)" v-text="item.statusN"></span></p>
|
|
|
|
- </div>
|
|
|
|
|
|
+ <p>{{item.name}} <span class="color55f868" :style="getColor(item.status)" v-text="item.statusN"></span><span v-if="item.status!=0&&item.approvalContent!='同意'&&item.approvalContent!='拒绝'" class="color55f868" :style="getColor(item.status)" v-text="'('+item.approvalContent+')'"></span></p>
|
|
|
|
+
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
@@ -176,9 +177,16 @@
|
|
} else {
|
|
} else {
|
|
this.subForm.status = status;
|
|
this.subForm.status = status;
|
|
this.subForm.approvalExplain = val;
|
|
this.subForm.approvalExplain = val;
|
|
- //this.openFromVisible = true;
|
|
|
|
|
|
+ this.openFromVisible = true;
|
|
|
|
+
|
|
|
|
+ // if('2'==status){
|
|
|
|
+ // this.openFromVisible = true;
|
|
|
|
+ // }
|
|
|
|
+ // if('1'==status){
|
|
|
|
+ // this.doAction();
|
|
|
|
+ // }
|
|
//直接点击处理,不需要弹窗理由框
|
|
//直接点击处理,不需要弹窗理由框
|
|
- this.doAction();
|
|
|
|
|
|
+ //
|
|
}
|
|
}
|
|
},
|
|
},
|
|
//同意拒绝
|
|
//同意拒绝
|
|
@@ -186,11 +194,12 @@
|
|
console.log(this.selectIndex)
|
|
console.log(this.selectIndex)
|
|
if (this.checkForm()) {
|
|
if (this.checkForm()) {
|
|
this.isLoading = true;
|
|
this.isLoading = true;
|
|
- this.subForm.id = this.selectIndex.toString();
|
|
|
|
- API_Leave.approved(this.subForm).then(response => {
|
|
|
|
|
|
+ this.subForm.id = this.selectIndex.toString()
|
|
|
|
+ this.openFromVisible = false;
|
|
|
|
+
|
|
|
|
+ API_Leave.approved(this.subForm).then(response => {
|
|
this.isLoading = false;
|
|
this.isLoading = false;
|
|
|
|
|
|
- this.openFromVisible = false;
|
|
|
|
this.getDetail();
|
|
this.getDetail();
|
|
}).catch(error => {
|
|
}).catch(error => {
|
|
this.isLoading = false;
|
|
this.isLoading = false;
|