左边区域编辑上传

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