From dfcccc080d5b24572a11d234a8065a6753bbd91c Mon Sep 17 00:00:00 2001 From: 13937891274 <kxc0822> Date: 星期一, 08 八月 2022 11:51:31 +0800 Subject: [PATCH] api修改 --- src/views/contingencyManagement/contingency/index.vue | 67 ++++++++++++++++----------------- 1 files changed, 33 insertions(+), 34 deletions(-) diff --git a/src/views/contingencyManagement/contingency/index.vue b/src/views/contingencyManagement/contingency/index.vue index 6389556..1be771a 100644 --- a/src/views/contingencyManagement/contingency/index.vue +++ b/src/views/contingencyManagement/contingency/index.vue @@ -41,23 +41,23 @@ </el-icon>删除 </el-button> </div> - <div class="button_Right"> - <el-button size="default" @click="upButton"> - <el-icon> - <Upload /> - </el-icon> - </el-button> - <el-button size="default"> - <el-icon> - <Download /> - </el-icon> - </el-button> - <el-button size="default"> - <el-icon> - <Refresh /> - </el-icon> - </el-button> - </div> +<!-- <div class="button_Right">--> +<!-- <el-button size="default" @click="upButton">--> +<!-- <el-icon>--> +<!-- <Upload />--> +<!-- </el-icon>--> +<!-- </el-button>--> +<!-- <el-button size="default">--> +<!-- <el-icon>--> +<!-- <Download />--> +<!-- </el-icon>--> +<!-- </el-button>--> +<!-- <el-button size="default">--> +<!-- <el-icon>--> +<!-- <Refresh />--> +<!-- </el-icon>--> +<!-- </el-button>--> +<!-- </div>--> </div> <el-table :data="tableData" @@ -131,9 +131,9 @@ import { Plus, Edit, Delete, - Upload, - Download, - Refresh, + // Upload, + // Download, + // Refresh, View, EditPen, } from '@element-plus/icons-vue' @@ -142,7 +142,7 @@ import OpenAdd from '../../contingencyManagement/contingency/component/openAdd.vue' import UpData from '../../contingencyManagement/contingency/component/upData.vue'; -import {contingencyApi} from "/@/api/contingency"; +import {contingencyApi} from "../../../api/contingencyManagement/contingency"; export default defineComponent({ name: 'systemUser', @@ -153,9 +153,9 @@ Plus, Edit, Delete, - Upload, - Download, - Refresh, + // Upload, + // Download, + // Refresh, UpData, contingencyApi }, @@ -202,8 +202,7 @@ for (let i = 0; i < valId.length; i++) { arr.push(valId[i].id); } - deleteAll.value = arr.toString(); - console.log(deleteAll.value); + deleteAll.value = arr; if (val.length == 1) { warning.value = false; danger.value = false; @@ -217,14 +216,14 @@ }; // 上传 - const upShow=ref() - const upButton=()=>{ - upShow.value.openDialog() - } + // const upShow=ref() + // const upButton=()=>{ + // upShow.value.openDialog() + // } // 打开新增应急队伍弹窗 const addRef = ref(); const onOpenAdd = () => { - addRef.value.openDialog('新建应急队伍管理',false); + addRef.value.openDialog('新建应急队伍管理'); }; // 新增后刷新 const onMyAdd = (e: boolean) => { @@ -250,7 +249,7 @@ type: 'warning', }).then(() => { contingencyApi() - .deleteEmergencyTeam(data) + .deleteEmergencyTeam([data]) .then((res) => { if (res.data.code == 200) { ElMessage({ @@ -320,8 +319,8 @@ return { listQuery, onSubmit, - upButton, - upShow, + // upButton, + // upShow, onOpenAdd, //新增 addRef, pageIndex, -- Gitblit v1.9.2