13937891274
2022-07-19 cc37fa838d0a9ff5f74a0ba06a8f944938dd0807
src/views/contingencyManagement/emergencyResources/emergencySupplies/index.vue
@@ -1,6 +1,10 @@
<template>
  <div class="system-user-container">
    <el-card shadow="hover">
      <el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick">
        <el-tab-pane label="待评价" name="first">User</el-tab-pane>
        <el-tab-pane label="已评价" name="second">Config</el-tab-pane>
      </el-tabs>
      <div class="system-user-search mb15">
        <el-input size="default" placeholder="物资名称" style="max-width: 215px;"> </el-input>
        <el-button size="default" type="primary" class="ml10">
@@ -34,11 +38,6 @@
              <Upload />
            </el-icon>
          </el-button>
          <!--          <el-button>-->
          <!--            <el-icon>-->
          <!--              <Download />-->
          <!--            </el-icon>-->
          <!--          </el-button>-->
          <el-button>
            <el-icon>
              <Refresh />
@@ -107,7 +106,7 @@
        />
      </div>
    </el-card>
    <MaintainDialog ref="seeRef" />
    <Maintain ref="seeRef" />
    <OpenAdd ref="addRef" />
    <OpenEdit ref="editRef" />
    <upData ref="upShow"></upData>
@@ -137,8 +136,8 @@
  EditPen,
} from '@element-plus/icons-vue'
import OpenAdd from '/@/views/contingencyManagement/emergencyResources/emergencySupplies/component/openAdd.vue';
import OpenEdit from '/@/views/contingencyManagement/panManagement/component/openEdit.vue';
import MaintainDialog from '/@/views/contingencyManagement/emergencyResources/emergencySupplies/component/maintainDialog.vue';
import OpenEdit from '/@/views/contingencyManagement/emergencyResources/emergencySupplies/component/openEdit.vue';
import Maintain from '/@/views/contingencyManagement/emergencyResources/emergencySupplies/component/maintain.vue';
import UpData from '/@/views/contingencyManagement/panManagement/component/upData.vue';
// 定义表格数据类型
@@ -170,7 +169,7 @@
  name: 'systemUser',
  components: {
    OpenAdd,
    MaintainDialog,
    Maintain,
    OpenEdit,
    View,
    EditPen,
@@ -183,13 +182,6 @@
    UpData
  },
  setup() {
    // 选择框
    // const value = ref('');
    // const options =
    //   {
    //     value: 'Option1',
    //     label: 'Option1',
    //   };
    const multipleTableRef = ref<InstanceType<typeof ElTable>>()
    const multipleSelection = ref<User[]>([])
@@ -236,7 +228,7 @@
    //查看用户弹窗
    const seeRef = ref();
    const onMaintain = (row: TableDataRow) => {
      seeRef.value.openDailog(row);
      seeRef.value.openDialog(row);
    };
    // 打开新增用户弹窗
    const addRef = ref();
@@ -260,18 +252,6 @@
          })
          .catch(() => {});
    };
    // 分页改变
    // const onHandleSizeChange = (val: number) => {
    //   state.tableData.param.pageSize = val;
    // };
    // // 分页改变
    // const onHandleCurrentChange = (val: number) => {
    //   state.tableData.param.pageNum = val;
    // };
    // 页面加载时
    // onMounted(() => {
    //   initTableData();
    // });
    // 分页
    const pageIndex = ref(4);
    const pageSize = ref(10);
@@ -284,8 +264,6 @@
      console.log(`current page: ${val}`);
    };
    return {
      // value,
      // options,
      multipleSelection,
      multipleTableRef,
      upButton,