This commit is contained in:
libing 2023-12-13 17:21:29 +08:00
parent 843858712e
commit 7f09231515

View File

@ -239,7 +239,6 @@
<el-dialog :title="titleForm" :visible.sync="openForm" width="500px" append-to-body> <el-dialog :title="titleForm" :visible.sync="openForm" width="500px" append-to-body>
<emisContinentForm :id="currentContinentId" @on-changed="handleFormChanged" @on-cancel="cancelForm"></EmisContinentForm> <emisContinentForm :id="currentContinentId" @on-changed="handleFormChanged" @on-cancel="cancelForm"></EmisContinentForm>
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
@ -382,9 +381,8 @@ export default {
handleContinentAdd(row) { handleContinentAdd(row) {
this.reset(); this.reset();
this.openForm = true; this.openForm = true;
this.titleForm = "新增"; this.title = "新增";
}, },
handleUpdateContinent(row){ handleUpdateContinent(row){
//console.log(row); //console.log(row);
this.currentContinentId = row.id || this.ids; this.currentContinentId = row.id || this.ids;
@ -449,6 +447,9 @@ export default {
this.open = false; this.open = false;
this.reset(); this.reset();
}, },
//cancelContinent() {
// this.openContinent = false;
//},
// 表单重置 // 表单重置
reset() { reset() {
this.form = { this.form = {