shuishen
2023-12-29 5c45a487acaf67ed4a94c5e9a96882beb9702b62
报事报修调整
1 files modified
57 ■■■■■ changed files
src/views/task/reportForRepairs.vue 57 ●●●●● patch | view | raw | blame | history
src/views/task/reportForRepairs.vue
@@ -2,7 +2,7 @@
 * @Author: shuishen 1109946754@qq.com
 * @Date: 2023-12-14 17:10:00
 * @LastEditors: shuishen 1109946754@qq.com
 * @LastEditTime: 2023-12-29 09:55:49
 * @LastEditTime: 2023-12-29 10:36:08
 * @FilePath: \jczz_web\src\views\task\reportForRepairs.vue
 * @Description: 
 * 
@@ -16,6 +16,12 @@
            :before-open="beforeOpen" @search-change="searchChange" @search-reset="searchReset"
            @selection-change="selectionChange" @current-change="currentChange" @size-change="sizeChange"
            @refresh-change="refreshChange" @on-load="onLoad">
            <template slot="confirmFlag" slot-scope="{row}">
                <el-tag size="small" :type="showConfirmFlag(row.confirmFlag).type">
                    {{ showConfirmFlag(row.confirmFlag).text }}
                </el-tag>
            </template>
            <template slot="expand" slot-scope="{row}">
                <el-timeline>
                    <el-timeline-item v-for="(item, index) in timeLineData(row)" :key="index" :timestamp="item.createTime"
@@ -198,8 +204,26 @@
                        overHidden: true
                    },
                    {
                        addDisplay: false,
                        editDisplay: false,
                        slot: true,
                        label: "状态",
                        prop: "confirmFlag",
                        overHidden: true
                    },
                    {
                        label: "上报时间",
                        prop: "createTime",
                        width: 160,
                        addDisplay: false,
                        editDisplay: false,
                        type: "date",
                        format: "yyyy-MM-dd HH:mm:ss",
                        valueFormat: "yyyy-MM-dd HH:mm:ss",
                    },
                    {
                        label: "处理时间",
                        prop: "confirmTime",
                        width: 160,
                        addDisplay: false,
                        editDisplay: false,
@@ -381,6 +405,7 @@
                editBtn: this.vaildData(this.permission.reportForRepairs_edit, true),
            }
        },
        ids () {
            let ids = []
            this.selectionList.forEach((ele) => {
@@ -473,6 +498,36 @@
                }
                return []
            }
        },
        showConfirmFlag () {
            return (data) => {
                let tags = {}
                if (data == 1) {
                    tags = {
                        type: 'warning',
                        text: '待处理'
                    }
                } else if (data == 2) {
                    tags = {
                        type: '',
                        text: '处理中'
                    }
                } else if (data == 3) {
                    tags = {
                        type: 'success',
                        text: '已处理'
                    }
                } else if (data == 4) {
                    tags = {
                        type: 'success',
                        text: '已评价'
                    }
                }
                return tags
            }
        }
    },
    methods: {