13937891274
2022-07-04 d9390dc918302864ab2011575cf701bb328cb023
应急队伍管理弹窗
已修改2个文件
21 ■■■■ 文件已修改
src/views/contingencyManagement/contingency/component/editEmergencyPersonnel.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/contingencyManagement/contingency/component/openEdit.vue 19 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/contingencyManagement/contingency/component/editEmergencyPersonnel.vue
@@ -1,7 +1,7 @@
<template>
  <div class="system-edit-user-container">
    <el-dialog
        title="新建应急队伍人员"
        title="修改应急队伍人员"
        v-model="isShowDialog"
        width="769px"
        draggable
src/views/contingencyManagement/contingency/component/openEdit.vue
@@ -97,7 +97,7 @@
                    <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>
@@ -135,6 +135,7 @@
  TabsPaneContext,
  FormInstance,
  FormRules,
  ElTable,
} from 'element-plus'
import {
  Search
@@ -149,6 +150,15 @@
  position: string;
}
// 定义接口来定义对象的类型
interface TableDataRow {
  // userName: string;
  // userNickname: string;
  // roleSign: string;
  // department: string[];
  // phone: string;
  // email: string;
}
// 定义接口来定义对象的类型
interface DeptData {
  deptName: string;
  createTime: string;
@@ -158,6 +168,7 @@
  id: number;
  children?: DeptData[];
}
// 定义接口来定义对象的类型
interface RuleFormRow {
  // teamName: string;
  // teamLevel: string;
@@ -307,6 +318,7 @@
    };
    //定义表格数据
    const multipleTableRef = ref<InstanceType<typeof ElTable>>()
    const multipleSelection = ref<User[]>([])
    const tableData: User[] = [
      {
@@ -399,8 +411,8 @@
    }
    //表格编辑弹窗
    const editRef = ref();
    const onEditEmergencyPersonnel = () => {
      editRef.value.openDialog();
    const onEditEmergencyPersonnel = (row: TableDataRow) => {
      editRef.value.openDialog(row);
    };
    return {
      openDialog,
@@ -422,6 +434,7 @@
      rules,
      ruleFormRef,
      tableData,
      multipleTableRef,
      ...toRefs(state),
    };
  },