|
@@ -5,7 +5,7 @@
|
|
|
<el-button type="info" plain size="mini" @click="back">返回</el-button>
|
|
|
<el-button type="primary" @click="submission" size="mini">提交</el-button>
|
|
|
</div>
|
|
|
- <div class="detailContainer">
|
|
|
+ <div class="detailContainer" v-if="Object.keys(detailObj).length>0">
|
|
|
<div class="title Micbold">未执行申诉单</div>
|
|
|
<div class="nav MicrYaHei">
|
|
|
<span>项目名称:{{localName}}</span>
|
|
@@ -58,8 +58,6 @@ import {
|
|
|
queryChillerExecuteInfo
|
|
|
} from "@/api/appeal/appeal.js";
|
|
|
import { updateWorkflow } from "@/api/audit/audit.js";
|
|
|
-// import { } from "@/api/appeal/appeal.js";
|
|
|
-
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
@@ -87,7 +85,8 @@ export default {
|
|
|
tableList: [],
|
|
|
dateNow: "",
|
|
|
applyUser: "",
|
|
|
- localName: ""
|
|
|
+ localName: "",
|
|
|
+ id:""
|
|
|
};
|
|
|
},
|
|
|
components: {
|
|
@@ -96,6 +95,33 @@ 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 (
|
|
@@ -129,11 +155,7 @@ export default {
|
|
|
}
|
|
|
};
|
|
|
queryChillerExecuteInfo(params).then(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 = "执行策略";
|
|
|
+ console.log(res)
|
|
|
});
|
|
|
},
|
|
|
submission() {
|
|
@@ -163,20 +185,10 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
|
- 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);
|
|
|
- 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;
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
+ this.id = this.$route.query.id
|
|
|
+ console.log(this.id)
|
|
|
+ this.queryExecute(this.id)
|
|
|
+
|
|
|
}
|
|
|
};
|
|
|
</script>
|