|
@@ -9,7 +9,7 @@
|
|
|
<div class="title Micbold">未执行申诉单</div>
|
|
|
<div class="nav MicrYaHei">
|
|
|
<span>项目名称:{{localName}}</span>
|
|
|
- <span>申请人:{{ applyUser||'--'}}</span>
|
|
|
+ <span>申请人:{{ $store.state.userInfo.username}}</span>
|
|
|
<span>申请时间:{{dateNow||'--'}}</span>
|
|
|
</div>
|
|
|
<div
|
|
@@ -32,7 +32,7 @@
|
|
|
v-for="item in options"
|
|
|
:key="item.value"
|
|
|
:label="item.label"
|
|
|
- :value="item.value"
|
|
|
+ :value="item.label"
|
|
|
></el-option>
|
|
|
</el-select>
|
|
|
</span>
|
|
@@ -79,14 +79,13 @@ export default {
|
|
|
],
|
|
|
value: "",
|
|
|
detailObj: {},
|
|
|
- souseArr: ["1576036336333_image.jpg", "1576036135588_image.jpg"],
|
|
|
+ souseArr: [],
|
|
|
appealId: "",
|
|
|
commandId: "",
|
|
|
tableList: [],
|
|
|
dateNow: "",
|
|
|
applyUser: "",
|
|
|
- localName: "",
|
|
|
- id:""
|
|
|
+ localName: ""
|
|
|
};
|
|
|
},
|
|
|
components: {
|
|
@@ -95,33 +94,6 @@ export default {
|
|
|
UploadImg
|
|
|
},
|
|
|
methods: {
|
|
|
- queryExecute(id) {
|
|
|
- let params = {
|
|
|
- postParams: {
|
|
|
- criteria: {
|
|
|
- id: id
|
|
|
- }
|
|
|
- }
|
|
|
- };
|
|
|
- queryChillerExecuteInfo(params).then(res => {
|
|
|
- console.log(res)
|
|
|
- this.detailObj = res.data[0]
|
|
|
- this.dateNow = moment()
|
|
|
- .locale("zh-cn")
|
|
|
- .format("YYYY.MM.DD");
|
|
|
- if (Object.keys(this.detailObj).length > 0) {
|
|
|
- console.log(this.detailObj);
|
|
|
- this.quertName(this.detailObj.applyUser);
|
|
|
- let projects = this.$store.state.projects.projects;
|
|
|
- projects.forEach(el => {
|
|
|
- if (this.detailObj.projectId == el.id) {
|
|
|
- this.localName = el.localName;
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
- // console.log(this.appealsArr);
|
|
|
- });
|
|
|
- },
|
|
|
formatterStr(str) {
|
|
|
if (str) {
|
|
|
return (
|
|
@@ -155,25 +127,32 @@ export default {
|
|
|
}
|
|
|
};
|
|
|
queryChillerExecuteInfo(params).then(res => {
|
|
|
- console.log(res)
|
|
|
+ const list = res.data || [{}, {}, {}];
|
|
|
+ this.tableList = Object.values(list[0]).map(i => i || {});
|
|
|
+ this.tableList[0].title = "当前运行状态";
|
|
|
+ this.tableList[1].title = "推送策略";
|
|
|
+ this.tableList[2].title = "执行策略";
|
|
|
});
|
|
|
},
|
|
|
submission() {
|
|
|
+ // this.detailObj.applyUser
|
|
|
let params = {
|
|
|
postParams: {
|
|
|
id: this.detailObj.id,
|
|
|
commit: "apply",
|
|
|
- updateUser: this.detailObj.applyUser, //申请人
|
|
|
- applyUser: this.detailObj.applyUser, //申请人
|
|
|
- judgement:
|
|
|
- this.detailObj.recommend.evaluateStrategy ||
|
|
|
- this.detailObj.recommend.remarks ||
|
|
|
- "", //策略评价
|
|
|
+ updateUser: this.$store.state.userInfo.userId, //申请人
|
|
|
+ applyUser: this.$store.state.userInfo.userId, //申请人
|
|
|
+ // judgement:
|
|
|
+ // this.detailObj.recommend.evaluateStrategy ||
|
|
|
+ // this.detailObj.recommend.remarks ||
|
|
|
+ // "", //策略评价
|
|
|
reasonType: this.detailObj.reasonType, //申诉原因类型:策略原因;设备原因;其他
|
|
|
- reason: this.reason, //具体申诉原因
|
|
|
- pics: this.souseArr
|
|
|
+ reason: this.detailObj.reason, //具体申诉原因
|
|
|
+ pics: this.detailObj.souseArr
|
|
|
}
|
|
|
};
|
|
|
+ // console.log(params);
|
|
|
+ // return;
|
|
|
updateWorkflow(params).then(res => {
|
|
|
if (res.result == "success") {
|
|
|
this.$message.success("申诉成功");
|
|
@@ -185,10 +164,21 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
|
- this.id = this.$route.query.id
|
|
|
- console.log(this.id)
|
|
|
- this.queryExecute(this.id)
|
|
|
-
|
|
|
+ this.detailObj = JSON.parse(this.$route.query.item);
|
|
|
+ this.dateNow = moment()
|
|
|
+ .locale("zh-cn")
|
|
|
+ .format("YYYY.MM.DD");
|
|
|
+ if (Object.keys(this.detailObj).length > 0) {
|
|
|
+ console.log(this.detailObj);
|
|
|
+ // return;
|
|
|
+ this.quertName(this.detailObj.applyUser);
|
|
|
+ let projects = this.$store.state.projects.projects;
|
|
|
+ projects.forEach(el => {
|
|
|
+ if (this.detailObj.projectId == el.id) {
|
|
|
+ this.localName = el.localName;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
};
|
|
|
</script>
|