“dzb”
2022-10-09 fde4758dd43927cce678d99ffe71e05931616f26
src/views/operate/management/myIndex/index.vue
@@ -3,14 +3,14 @@
        <header>
            <div class="problem">
                <div class="problem-title">问题类型</div>
                <el-radio-group v-model="myproblem">
                <el-radio-group v-model="myproblem" @change="changeMyProblem">
                    <el-radio :label="1">违规</el-radio>
                    <el-radio :label="2">违建</el-radio>
                </el-radio-group>
            </div>
            <div class="status">
                <div class="status-title">审核状态</div>
                <el-radio-group v-model="instatus">
                <el-radio-group v-model="instatus"  @change="changeInStatus">
                    <el-radio :label="7">待审核</el-radio>
                    <el-radio :label="8">已审核</el-radio>
                    <el-radio :label="9">已结案</el-radio>
@@ -30,9 +30,9 @@
                    @selection-change="tableChange">
                    <el-table-column type="selection" min-width="5">
                    </el-table-column>
                    <el-table-column prop="id" label="事件编号" min-width="10">
                    <el-table-column prop="code" label="事件编号" min-width="10">
                        <template slot-scope="scope">
                            <el-link @click="JumpView(scope.row)">{{scope.row.id}}</el-link>
                            <el-link @click="JumpView(scope.row)">{{scope.row.code}}</el-link>
                        </template>
                    </el-table-column>
                    <el-table-column prop="eventSource" label="问题来源" min-width="10">
@@ -54,9 +54,9 @@
                    <el-table-column prop="operation" label="操作" min-width="20">
                        <template slot-scope="scope">
                            <div class="btn">
                                <span @click="handleExamine(scope.row)">审核</span>
                                <span class="line">|</span>
                                <span>结案</span>
                                <span @click="handleExamine(scope.row)" v-if="instatus===7 ? true : false">审核</span>
                                <span class="line" v-if="instatus===7 ? true : false">|</span>
                                <span @click="handleClosure(scope.row)">结案</span>
                            </div>
                        </template>
                    </el-table-column>
@@ -65,6 +65,11 @@
                <el-dialog :visible.sync="dialogExamine" width="80%" title="基础信息(人工)" v-if="dialogExamine"
                    :before-close="handleClose">
                    <MyExamine :info="info" @closeDialog="closeDialog"></MyExamine>
                </el-dialog>
                <!-- 结案页面 -->
                <el-dialog :visible.sync="dialogClosure" width="80%" title="基础信息(人工)" v-if="dialogClosure"
                    :before-close="handleClose">
                    <MyClosure :info="info" @closeDialog="closeDialog"></MyClosure>
                </el-dialog>
                <!-- tools -->
                <div class="tools">
@@ -96,14 +101,16 @@
</template>
<script>
import MyExamine from './components/examine'
import MyClosure from './components/closure'
export default {
    components: {
        MyExamine
        MyExamine,MyClosure
    },
    data() {
        return {
            tableData: [],
            dialogExamine:false,
            dialogClosure:false,
            info: {},
            totalNum: null,
            pageSize: 10,
@@ -246,7 +253,8 @@
                } else {
                    item.checked = false;
                }
            })
            });
            this.myproblem = idx+1;
            this.getUserList();
        },
        // 设置表格斑马纹
@@ -282,6 +290,7 @@
                .catch(_ => { });
        },
        async JumpView(data) {
            console.log(data);
            await this.getEventInfo(data.code);
        },
        // 获取案件信息
@@ -296,13 +305,39 @@
                    this.dialogExamine = true;
                })
        },
        // 获取案件信息
        getEventInfo2(code) {
            this.$axios({
                method: 'get',
                url: `sccg/base_case/baseCaseDetail/${code}`
            })
                .then(res => {
                    console.log(res);
                    this.info = res.data;
                    this.dialogClosure = true;
                })
        },
        // 去审核
        handleExamine({code}) {
            this.getEventInfo(code);
        },
        // 去结案
        handleClosure({code}){
            this.getEventInfo2(code);
        },
        // 关闭dialog
        closeDialog({flag}){
            this.dialogExamine = flag;
            this.dialogClosure = flag;
            this.getUserList();
        },
        // 问题类型
        changeMyProblem(val){
            this.getUserList();
        },
        // 审核状态
        changeInStatus(val){
            this.getUserList();
        }
    }
}