fix: 修改因为APPCode的问题

This commit is contained in:
张洋川 2024-04-24 11:07:09 +08:00
parent af18464f1d
commit 43deb6286c
3 changed files with 35 additions and 2 deletions

View File

@ -409,6 +409,8 @@ export default {
if (valid) {
if (this.form.id != null) {
let data = Object.assign({}, this.form)
console.log(data)
data.appCode = '000000'
delete data.explain
updateINFO(data).then(response => {
this.$modal.msgSuccess('修改成功')

View File

@ -368,7 +368,8 @@ export default {
created: null,
modified: null,
createTime: null,
updateTime: null
updateTime: null,
appCode: '000000'
}
this.resetForm('form')
},
@ -423,6 +424,7 @@ export default {
if (valid) {
if (this.form.id != null) {
let data = Object.assign({}, this.form)
data.appCode = '000000'
delete data.explain
updateModule(data).then(response => {
this.$modal.msgSuccess('修改成功')

View File

@ -368,7 +368,7 @@
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button>
<el-button type="primary" @click="pubLishForm"> </el-button>
<el-button type="primary" @click="submitForm"> </el-button>
<el-button @click="cancel"> </el-button>
@ -594,6 +594,35 @@ export default {
}
})
},
//
pubLishForm() {
this.$refs['form'].validate(valid => {
if (valid) {
if (this.form.id != null) {
let data = Object.assign({}, this.form)
delete data.explain
updatePublish(data).then(response => {
this.$modal.msgSuccess('修改成功')
this.loading = false
this.open = false
this.handlePublish(data.id)
// this.getList()
})
} else {
addPublish(this.form).then((res) => {
this.$modal.msgSuccess('新增成功')
this.loading = false
this.open = false
this.handlePublish(res.id)
// this.getList()
})
}
}
})
},
/** 删除按钮操作 */
handleDelete(row) {
const ids = row.id || this.ids