Browse Source

动态显示列表

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

4
src/views/form/index.vue

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

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

@ -226,14 +226,16 @@ export default {
this.$api.post(`${process.env.VUE_APP_API_ROOT_TDUCK}/user/project/publish`, this.$api.post(`${process.env.VUE_APP_API_ROOT_TDUCK}/user/project/publish`,
params).then(() => { params).then(() => {
this.publishStatus = true this.publishStatus = true
this.$parent.getProjectStatus()
this.msgSuccess('发布成功') this.msgSuccess('发布成功')
}) })
}, },
stopPublishProject () { stopPublishProject () {
this.$api.post(`${process.env.VUE_APP_API_ROOT_TDUCK}/user/project/stop`, { 'key': this.projectKey }).then(res => { this.$api.post(`${process.env.VUE_APP_API_ROOT_TDUCK}/user/project/stop`, { 'key': this.projectKey }).then(res => {
if (res.data) { if (res.data) {
this.msgSuccess('停止成功') this.msgSuccess('停止成功')
this.$parent.getProjectStatus()
this.getProjectStatus() this.getProjectStatus()
} }
}) })

Loading…
Cancel
Save