From f12c45e54d27f27886d8bc9ee96624979fa7de2e Mon Sep 17 00:00:00 2001 From: Your Name <123456> Date: 星期一, 22 八月 2022 18:39:25 +0800 Subject: [PATCH] Xiugai --- src/views/contingencyManagement/emergencyResources/maintenanceOfEmergencyMaterials/index.vue | 27 +++++++++++++++------------ 1 files changed, 15 insertions(+), 12 deletions(-) diff --git a/src/views/contingencyManagement/emergencyResources/maintenanceOfEmergencyMaterials/index.vue b/src/views/contingencyManagement/emergencyResources/maintenanceOfEmergencyMaterials/index.vue index 3544d06..fee9bf1 100644 --- a/src/views/contingencyManagement/emergencyResources/maintenanceOfEmergencyMaterials/index.vue +++ b/src/views/contingencyManagement/emergencyResources/maintenanceOfEmergencyMaterials/index.vue @@ -4,7 +4,7 @@ <div class="system-user-search mb15"> <el-form size="default" label-width="80px" :inline="true"> <el-form-item prop="telephone"> - <el-input v-model="listQuery.searchParams.suppliesName" placeholder="请选择应急物资" class="input-with-select"> + <el-input v-model="suppliesName" placeholder="请选择应急物资" class="input-with-select"> <template #append> <el-button :icon="Search" @click="daiInpt" /> </template> @@ -19,7 +19,7 @@ <el-button size="default" type="primary" @click="onOpenAdd('新建')"> <el-icon> <Plus /> </el-icon>新建 </el-button> - <el-button size="default" type="warning" plain :disabled="warning"> + <el-button size="default" type="warning" plain :disabled="warning" @click="onEdit('修改', deletAll[0])"> <el-icon> <Edit /> </el-icon>修改 </el-button> <el-button size="default" type="danger" plain @click="onDeleteAll" :disabled="danger"> @@ -93,10 +93,10 @@ // FormInstance, } from 'element-plus'; import { Plus, Search, Delete, Edit, Download, Refresh, View, EditPen } from '@element-plus/icons-vue'; -// import OpenSee from '/@/views/contingencyManagement/emergencyPlanStartRecord/component/openSee.vue'; -// import UpData from '/@/views/contingencyManagement/panManagement/component/upData.vue'; +// import OpenSee from '/@/views/contingencyManagement/emergencyPlanStartRecord/components/openSee.vue'; +// import UpData from '/@/views/contingencyManagement/panManagement/components/upData.vue'; // import EmergencySupplies from '/@/components/emergencySupplies/index.vue'; -// import OpenAdd from '/@/views/contingencyManagement/emergencyResources/maintenanceOfEmergencyMaterials/component/openAdd.vue'; +// import OpenAdd from '/@/views/contingencyManagement/emergencyResources/maintenanceOfEmergencyMaterials/components/openAdd.vue'; // import { contingencyApi } from '/@/api/contingency'; // import { emergencySuppliesMaintainApi } from '/@/api/emergencySuppliesMaintain'; @@ -148,10 +148,11 @@ }); } }; + const suppliesName = ref(''); // 重置 const submitReset = () => { listQuery.searchParams.suppliesId = ''; - listQuery.searchParams.suppliesName=""; + suppliesName.value = ''; onSubmit(); }; const warning = ref(true); @@ -163,7 +164,7 @@ for (let i = 0; i < valId.length; i++) { arr.push(valId[i].id); } - deletAll.value = arr + deletAll.value = arr; if (val.length == 1) { warning.value = false; danger.value = false; @@ -178,7 +179,7 @@ // 打开新建用户弹窗 const addRef = ref(); - const onOpenAdd = (data:any) => { + const onOpenAdd = (data: any) => { addRef.value.openDialog(data); }; // 新增后刷新 @@ -199,8 +200,8 @@ }; // 删除 const onRowDel = (data: any) => { - let arr=[] - arr.push(data) + let arr = []; + arr.push(data); ElMessageBox.confirm('确定删除所选项吗?', '提示', { confirmButtonText: '确定', cancelButtonText: '取消', @@ -271,7 +272,7 @@ }; const onUser = (e: any) => { listQuery.searchParams.suppliesId = e.id; - listQuery.searchParams.suppliesName=e.name + suppliesName.value = e.name; }; // 分页 const pageIndex = ref(); @@ -292,6 +293,7 @@ onSubmit(); }); return { + suppliesName, upButton, upShow, Edit, @@ -317,6 +319,7 @@ onDeleteAll, onEdit, onUser, + deletAll }; }, }); @@ -389,4 +392,4 @@ min-width: 30px; border-radius: 2px; } -</style> \ No newline at end of file +</style> -- Gitblit v1.9.2