|
|
@ -183,6 +183,7 @@ export default { |
|
|
this.$refs['dataForm'].resetFields() |
|
|
this.$refs['dataForm'].resetFields() |
|
|
this.dataForm.parentName = '一级资源' |
|
|
this.dataForm.parentName = '一级资源' |
|
|
this.dataForm.resourceList = [] |
|
|
this.dataForm.resourceList = [] |
|
|
|
|
|
this.buttonFlag = false |
|
|
this.getResourceList().then(() => { |
|
|
this.getResourceList().then(() => { |
|
|
if (this.dataForm.id) { |
|
|
if (this.dataForm.id) { |
|
|
this.getInfo() |
|
|
this.getInfo() |
|
|
@ -249,8 +250,8 @@ export default { |
|
|
.then(({ data: res }) => { |
|
|
.then(({ data: res }) => { |
|
|
if (res.code !== 0) { |
|
|
if (res.code !== 0) { |
|
|
return this.$message.error(res.msg) |
|
|
return this.$message.error(res.msg) |
|
|
|
|
|
this.buttonFlag = true |
|
|
} |
|
|
} |
|
|
this.buttonFlag = false |
|
|
|
|
|
this.$message({ |
|
|
this.$message({ |
|
|
message: this.$t('prompt.success'), |
|
|
message: this.$t('prompt.success'), |
|
|
type: 'success', |
|
|
type: 'success', |
|
|
|