Browse Source

动态显示列表

old
jiangyy 4 years ago
parent
commit
65cd8eaf1b
  1. 4
      src/views/form/index.vue
  2. 8
      src/views/form/publish/index.vue

4
src/views/form/index.vue

@ -111,7 +111,7 @@ export default {
{
key: 'back',
title: '返回',
icon: 'el-icon-edit'
icon: 'el-icon-back'
}
],
menuItemList2: [
@ -135,7 +135,7 @@ export default {
{
key: 'back',
title: '返回',
icon: 'el-icon-edit'
icon: 'el-icon-back'
}
]
}

8
src/views/form/publish/index.vue

@ -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()
}
})

Loading…
Cancel
Save