fix: 修改因为APPCode的问题
This commit is contained in:
parent
af18464f1d
commit
43deb6286c
@ -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('修改成功')
|
||||
|
@ -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('修改成功')
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user