| | |
| | | <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"> |
| | |
| | | <Upload /> |
| | | </el-icon> |
| | | </el-button> |
| | | <!-- <el-button>--> |
| | | <!-- <el-icon>--> |
| | | <!-- <Download />--> |
| | | <!-- </el-icon>--> |
| | | <!-- </el-button>--> |
| | | <el-button> |
| | | <el-icon> |
| | | <Refresh /> |
| | |
| | | /> |
| | | </div> |
| | | </el-card> |
| | | <MaintainDialog ref="seeRef" /> |
| | | <Maintain ref="seeRef" /> |
| | | <OpenAdd ref="addRef" /> |
| | | <OpenEdit ref="editRef" /> |
| | | <upData ref="upShow"></upData> |
| | |
| | | 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'; |
| | | |
| | | // 定义表格数据类型 |
| | |
| | | name: 'systemUser', |
| | | components: { |
| | | OpenAdd, |
| | | MaintainDialog, |
| | | Maintain, |
| | | OpenEdit, |
| | | View, |
| | | EditPen, |
| | |
| | | UpData |
| | | }, |
| | | setup() { |
| | | // 选择框 |
| | | // const value = ref(''); |
| | | // const options = |
| | | // { |
| | | // value: 'Option1', |
| | | // label: 'Option1', |
| | | // }; |
| | | const multipleTableRef = ref<InstanceType<typeof ElTable>>() |
| | | const multipleSelection = ref<User[]>([]) |
| | | |
| | |
| | | //查看用户弹窗 |
| | | const seeRef = ref(); |
| | | const onMaintain = (row: TableDataRow) => { |
| | | seeRef.value.openDailog(row); |
| | | seeRef.value.openDialog(row); |
| | | }; |
| | | // 打开新增用户弹窗 |
| | | const addRef = ref(); |
| | |
| | | }) |
| | | .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); |
| | |
| | | console.log(`current page: ${val}`); |
| | | }; |
| | | return { |
| | | // value, |
| | | // options, |
| | | multipleSelection, |
| | | multipleTableRef, |
| | | upButton, |