|
|
@ -286,14 +286,18 @@ export default { |
|
|
|
"SET_evaluationMainResourceData", |
|
|
|
"SET_evaluationSecondResourceListData", |
|
|
|
"SET_evaluationMainResourceLoading", |
|
|
|
"SET_evaluationSecondResourceLoading" |
|
|
|
"SET_evaluationSecondResourceLoading", |
|
|
|
"SET_articleDemandLoading" |
|
|
|
]), |
|
|
|
|
|
|
|
handleQuery() { |
|
|
|
this.SET_articleDemandLoading(true) |
|
|
|
publishedVersion().then( ({ data = ""}) => { |
|
|
|
this.SET_articleDemandLoading(false) |
|
|
|
this.promptMessage = data |
|
|
|
}).catch(() => { |
|
|
|
this.$message({ type: "error", message: "获取消息失败" }); |
|
|
|
this.SET_articleDemandLoading(false) |
|
|
|
this.$message({ type: "error", message: "获取消息失败" }); |
|
|
|
}); |
|
|
|
this.$emit("searchData", this.queryParams); |
|
|
|
}, |
|
|
@ -413,12 +417,15 @@ export default { |
|
|
|
}, |
|
|
|
// 重载数据 |
|
|
|
reloadData() { |
|
|
|
this.SET_articleDemandLoading(true) |
|
|
|
reloadData({ "customerid": this.customerId }).then(({ msg }) => { |
|
|
|
setTimeout(()=>{ |
|
|
|
this.handleQuery() |
|
|
|
},2000) |
|
|
|
this.SET_articleDemandLoading(false) |
|
|
|
this.$message({ type: "success", message: msg }); |
|
|
|
}).catch(() => { |
|
|
|
this.SET_articleDemandLoading(false) |
|
|
|
// this.$message({ type: "error", message: "访问失败" }); |
|
|
|
}); |
|
|
|
}, |
|
|
@ -450,17 +457,20 @@ export default { |
|
|
|
this.INIT_evaluationMainResourceData(); |
|
|
|
this.SET_evaluationMainResourceLoading(true); |
|
|
|
this.SET_evaluationSecondResourceLoading(true); |
|
|
|
this.SET_articleDemandLoading(true) |
|
|
|
saveDemand(param).then(({ data = [] }) => { |
|
|
|
this.SET_evaluationMainResourceData(data["ArticleResourceMpsGroupLst"] || []); |
|
|
|
this.SET_evaluationSecondResourceListData(data["ArticleSecondResourceMpsGroupLst"] || []); |
|
|
|
this.SET_evaluationSecondResourceLoading(false); |
|
|
|
this.SET_evaluationMainResourceLoading(false); |
|
|
|
this.SET_articleDemandLoading(false) |
|
|
|
this.handleQuery() |
|
|
|
this.editKeyList = [] |
|
|
|
this.$message({ type: "success", message: "保存成功" }); |
|
|
|
}).catch(() => { |
|
|
|
this.SET_evaluationSecondResourceLoading(false); |
|
|
|
this.SET_evaluationMainResourceLoading(false); |
|
|
|
this.SET_articleDemandLoading(false) |
|
|
|
this.$message({ type: "error", message: "保存失败" }); |
|
|
|
}); |
|
|
|
|
|
|
|