Browse Source

数据分析平台菜单 再传一个参数

dev
jianjun 3 years ago
parent
commit
d9d4309904
  1. 4
      epmet-oper-web/src/views/modules/workPc/menu-add-or-update.vue

4
epmet-oper-web/src/views/modules/workPc/menu-add-or-update.vue

@ -144,7 +144,6 @@ export default {
},
methods: {
init () {
this.dataForm.tableName = this.tableName
this.visible = true
this.$nextTick(() => {
this.$refs['dataForm'].resetFields()
@ -169,7 +168,7 @@ export default {
},
//
getInfo () {
this.$http.get(`/gov/access/menu/${this.dataForm.id}`).then(({ data: res }) => {
this.$http.get(`/gov/access/menu/${this.dataForm.id}?tableName=`+this.tableName).then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
}
@ -217,6 +216,7 @@ export default {
if (!valid) {
return false
}
this.dataForm.tableName = this.tableName;
this.$http[!this.dataForm.id ? 'post' : 'put']('/gov/access/menu', this.dataForm).then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)

Loading…
Cancel
Save