左边区域编辑上传

This commit is contained in:
libing 2023-12-13 12:53:36 +08:00
parent 70d5aeb2fc
commit a15a0042c3

View File

@ -48,8 +48,8 @@
<template>
<span style="font-size:13px">{{ data.label }}</span>
<span v-show="data.show" style="margin-left: 10px;">
<i @click="handleUpdateContinent" class="el-icon-edit"></i>
<i @click="handleDeleteContinent" class="el-icon-delete"></i>
<i @click="handleUpdateContinent(data)" class="el-icon-edit"></i>
<i @click="handleDeleteContinent(data)" class="el-icon-delete"></i>
</span>
</template>
</span>
@ -384,10 +384,17 @@ export default {
this.openForm = true;
this.titleForm = "新增";
},
handleUpdateContinent(row){
//console.log(row);
this.currentContinentId = row.id || this.ids;
this.openForm = true;
this.titleForm = "修改";
this.reset();
const id = row.id || this.ids;
getEmisContinent(id).then(response => {
this.form = response.data;
this.openForm = true;
this.titleForm = "修改";
});
},
handleDeleteContinent(row){
const ids = row.id || this.ids;