update: The code structure is finished, and the project can run successfully

This commit is contained in:
QM303176530
2020-04-05 16:19:34 +08:00
parent 08ff55ffce
commit c755120c8d
16 changed files with 53 additions and 39 deletions

View File

@@ -116,7 +116,7 @@ export default {
async updateCustomer(row){
const res = await getExaCustomer(row)
this.type = "update"
if(res.success){
if(res.code == 0){
this.form = res.data.customer
this.dialogFormVisible = true
}
@@ -127,7 +127,7 @@ export default {
async deleteCustomer(row){
this.visible = false
const res = await deleteExaCustomer(row)
if (res.success){
if (res.code == 0){
this.getTableData()
}
},
@@ -146,7 +146,7 @@ export default {
}
if(res.success){
if(res.code == 0){
this.dialogFormVisible = false
this.getTableData()
}