This commit is contained in:
朱文强 2023-04-23 14:53:54 +08:00
parent 5b2bba6a78
commit ef531150d3
2 changed files with 5 additions and 5 deletions

View File

@ -2,7 +2,7 @@
* @Author: zwq
* @Date: 2022-08-24 11:19:43
* @LastEditors: zwq
* @LastEditTime: 2023-03-03 11:18:06
* @LastEditTime: 2023-04-23 14:51:56
* @Description:
*/
export default {
@ -104,14 +104,14 @@ export default {
this.$refs.addOrUpdate.init(val.data.id);
});
} else if (val.type === "delete") {
this.deleteHandle(val.data.id,val.data._pageIndex)
this.deleteHandle(val.data.id, val.data.name,val.data._pageIndex)
}else{
this.btnFun(val)
}
},
// 删除
deleteHandle(id, index) {
this.$confirm(`确定对[序号=${index}]进行删除操作?`, "提示", {
deleteHandle(id, name,index) {
this.$confirm(`确定对${name?'[名称='+name+']':'[序号='+index+']'}进行删除操作?`, "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",

View File

@ -1,5 +1,5 @@
<template>
<el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmitHandle()" label-width="120px">
<el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmit()" label-width="120px">
<el-form-item prop="name" :label="$t('role.name')">
<el-input v-model="dataForm.name" :placeholder="$t('role.name')"></el-input>
</el-form-item>