|
|
@ -152,7 +152,7 @@ export default { |
|
|
|
agencyId: customerId |
|
|
|
} |
|
|
|
this.$api.post(`/data/aggregator/org/agencytree`, params).then((res) => { |
|
|
|
this.data = res.data ||[] |
|
|
|
this.data = res.data || [] |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
@ -207,7 +207,7 @@ export default { |
|
|
|
}, |
|
|
|
publishProject () { |
|
|
|
this.resolveAgency() |
|
|
|
if (this.data.length >0 && this.selAgencyList.length === 0) { |
|
|
|
if (this.data.length > 0 && this.selAgencyList.length === 0) { |
|
|
|
this.$message( |
|
|
|
{ |
|
|
|
message: "请选择发布范围", |
|
|
@ -226,14 +226,16 @@ export default { |
|
|
|
this.$api.post(`${process.env.VUE_APP_API_ROOT_TDUCK}/user/project/publish`, |
|
|
|
params).then(() => { |
|
|
|
this.publishStatus = true |
|
|
|
this.$parent.getProjectStatus() |
|
|
|
this.msgSuccess('发布成功') |
|
|
|
}) |
|
|
|
}, |
|
|
|
stopPublishProject () { |
|
|
|
|
|
|
|
this.$api.post(`${process.env.VUE_APP_API_ROOT_TDUCK}/user/project/stop`, { 'key': this.projectKey }).then(res => { |
|
|
|
if (res.data) { |
|
|
|
this.msgSuccess('停止成功') |
|
|
|
|
|
|
|
this.$parent.getProjectStatus() |
|
|
|
this.getProjectStatus() |
|
|
|
} |
|
|
|
}) |
|
|
|