cqf
2022-05-16 2017a3f9b4504655085c62b2b4e272763524eee5
05162140
已修改2个文件
51 ■■■■■ 文件已修改
src/api/sgyhpczl/initSelect.js 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/oneFromanother/index.vue 38 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/sgyhpczl/initSelect.js
@@ -134,15 +134,4 @@
    });
}
//下发单位
export function initXFDW() {
    return request({
        headers:{
            'token': getTokenAndVerify().token,
            'verify':getTokenAndVerify().verify
        },
        contentType: "multipart/form-data",
        url: "/taboi/user/review_do",
        method: 'GET',
    });
}
src/views/oneFromanother/index.vue
@@ -87,7 +87,7 @@
            v-loading="listLoading"
            :data="tableData"
            style="width: 100%"
            @selection-change="handleSelectionChange">
            @selection-change="changeBox">
            <el-table-column type="selection" width="55" align="center"></el-table-column>
          <el-table-column prop="check_date" label="检查时间" width="120" align="center">
                    <!-- <template slot-scope="scope">
@@ -97,12 +97,12 @@
                </el-table-column>
            <el-table-column prop="check_main_branch" label="检查单位" align="center"></el-table-column>
            <el-table-column prop="checktype" label="检查类别" align="center"></el-table-column>
                <el-table-column prop="measure" label="被检单位" align="center"></el-table-column>
            <el-table-column prop="date" label="隐患类别" align="center"></el-table-column>
            <el-table-column prop="DTRisk_level" label="隐患级别" align="center"></el-table-column>
                <el-table-column prop="ht_community" label="被检单位" align="center"></el-table-column>
            <el-table-column prop="ht_typesub" label="隐患类别" align="center"></el-table-column>
            <el-table-column prop="ht_level" label="隐患级别" align="center"></el-table-column>
            <el-table-column prop="address" label="隐患地点" align="center"></el-table-column>
            <el-table-column prop="curWarningLevel" label="内容" width="200" align="center"></el-table-column>
            <el-table-column prop="curWarningLevel" label="下发单位" align="center"></el-table-column>
            <el-table-column prop="ht_content" label="内容" width="200" align="center"></el-table-column>
            <el-table-column prop="push_branch" label="下发单位" align="center"></el-table-column>
            <el-table-column prop="date" label="流程操作" align="center">
                <template slot-scope="scope">
                    <el-button @click="handleClick(scope.row)" type="text"  size="small">不存在</el-button>
@@ -129,7 +129,7 @@
</template>
<script>
    import { getPageList } from "@/api/sgyhpczl/oneFromanother"
    import {initXFDW, initYHLX, initJCLB, initYHJB} from "@/api/sgyhpczl/initSelect";
    import {initJCBM, initYHLX, initJCLB, initYHJB} from "@/api/sgyhpczl/initSelect";
    export default{
        data(){
@@ -140,11 +140,16 @@
                    type: 0,
                    form:{},
                },
                currentPage: 1,
                pageSize: 10,
                recordTotal: 0,
                XFDWList:[],
                YHLBList:[],
                YHJBList:[],
                JCLBList:[],
                tableData:[],
                exportData:[],
                selectedList:[],
                radio1:'待自查',
                listLoading: false,
            }
@@ -170,7 +175,7 @@
                }
            },
            initXFDW(){
                initXFDW().then(res=>{
                initJCBM(1).then(res=>{
                    if (res.data.ok==1){
                        this.XFDWList=res.data.data
                    } else{
@@ -218,6 +223,23 @@
                    }
                })
            },
            reset(){
                this.getPageList()
            },
            changeBox(val){
                this.selectedList = []
                val.forEach((item) => {
                    this.selectedList.push(item)
                })
            },
            handleSizeChange(val){
                this.listQuery.limit = val
                this.getPageListForPagination();
            },
            handleCurrentChange(val){
                this.listQuery.page = val
                this.getPageListForPagination();
            },
        }
    }