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