| | |
| | | <template> |
| | | <div class="system-edit-user-container"> |
| | | <el-dialog |
| | | title="新建应急队伍人员" |
| | | title="修改应急队伍人员" |
| | | v-model="isShowDialog" |
| | | width="769px" |
| | | draggable |
| | |
| | | <template #default="scope"> |
| | | <el-button size="small" type="primary" text="plain" >查看 |
| | | </el-button> |
| | | <el-button size="small" type="primary" text="plain" @click="onEditEmergencyPersonnel" style="margin-right: 5px;">编辑 |
| | | <el-button size="small" type="primary" text="plain" @click="onEditEmergencyPersonnel(scope.row)" style="margin-right: 5px;">编辑 |
| | | </el-button> |
| | | <el-button size="small" type="primary" text="plain" style="margin-right: 5px;">删除 |
| | | </el-button> |
| | |
| | | TabsPaneContext, |
| | | FormInstance, |
| | | FormRules, |
| | | ElTable, |
| | | } from 'element-plus' |
| | | import { |
| | | Search |
| | |
| | | position: string; |
| | | } |
| | | // 定义接口来定义对象的类型 |
| | | interface TableDataRow { |
| | | // userName: string; |
| | | // userNickname: string; |
| | | // roleSign: string; |
| | | // department: string[]; |
| | | // phone: string; |
| | | // email: string; |
| | | } |
| | | // 定义接口来定义对象的类型 |
| | | interface DeptData { |
| | | deptName: string; |
| | | createTime: string; |
| | |
| | | id: number; |
| | | children?: DeptData[]; |
| | | } |
| | | // 定义接口来定义对象的类型 |
| | | interface RuleFormRow { |
| | | // teamName: string; |
| | | // teamLevel: string; |
| | |
| | | }; |
| | | |
| | | //定义表格数据 |
| | | const multipleTableRef = ref<InstanceType<typeof ElTable>>() |
| | | const multipleSelection = ref<User[]>([]) |
| | | const tableData: User[] = [ |
| | | { |
| | |
| | | } |
| | | //表格编辑弹窗 |
| | | const editRef = ref(); |
| | | const onEditEmergencyPersonnel = () => { |
| | | editRef.value.openDialog(); |
| | | const onEditEmergencyPersonnel = (row: TableDataRow) => { |
| | | editRef.value.openDialog(row); |
| | | }; |
| | | return { |
| | | openDialog, |
| | |
| | | rules, |
| | | ruleFormRef, |
| | | tableData, |
| | | multipleTableRef, |
| | | ...toRefs(state), |
| | | }; |
| | | }, |