qinxianzhangyao
2023-11-30 be330a8520fce4f9010295a8d727461962e76969
src/views/hosp/inspection/index.vue
@@ -23,13 +23,13 @@
        <el-row :gutter="10" class="mb8">
            <el-col :span="1.5">
                <el-button type="primary" plain icon="el-icon-plus" size="mini"
                    v-hasPermi="['hosp:detail:add']">恢复</el-button>
                <el-button type="primary" plain size="mini" v-hasPermi="['hosp:detail:add']"
                    @click="handlerestore">恢复</el-button>
            </el-col>
        </el-row>
        <el-table v-loading="loading" :data="inspectionList" border>
        <el-table v-loading="loading" :data="inspectionList" border @selection-change="handleSelectionChange">
            <el-table-column type="selection" width="55" align="center" />
            <el-table-column label="序号" align="center" prop="newID" width="55px" />
            <el-table-column label="体检号" align="center" prop="tjNum" :show-overflow-tooltip="true" />
@@ -66,7 +66,7 @@
<script>
import {
    listInspection
    listInspection, recall
} from "@/api/hosp/inspection";
export default {
@@ -85,6 +85,7 @@
            showSearch: true,
            // 总条数
            total: 0,
            allList: [],
            // 弃检表格数据
            inspectionList: [],
@@ -152,7 +153,19 @@
            this.resetForm("queryForm");
            this.handleQuery();
        },
        // 多选框选中数据
        handleSelectionChange(selection) {
            this.allList = selection
            console.log(this.allList )
        },
        handlerestore() {
            recall(this.allList).then(res => {
                if(res.code == 200){
                    this.$modal.msgSuccess("已撤回成功");
                    this.getList();
                }
            })
        }
    }
};
</script>