fangyuan
2022-11-29 e2e3881fcaa2cfacf5d3290bb0ff5969482e6c48
src/views/operate/disposal/casepool/dispatch/index.vue
@@ -72,7 +72,7 @@
                        <template slot-scope="scope">
                            <div class="operation">
                                <div class="btn">
                                    <span @click="opernDialog(scope.row)">上传处置结果</span>
                                    <span @click="openDialog(scope.row)">上传处置结果</span>
                                </div>
                            </div>
                        </template>
@@ -87,7 +87,7 @@
                <!-- 上传页面 -->
                <el-dialog :visible.sync="dialogUpload" width="80%" title="上传处置结果" v-if="dialogUpload"
                    :before-close="handleClose">
                    <uploadVio v-if="mystatus === 1" :caseId="caseId" :mycode="caseCode" :vioData="vioData"  @closeDialog="closeDialog"></uploadVio>
                    <uploadVio v-if="mystatus === 1" :imageResourceId="imageResourceId" :caseId="caseId" :mycode="caseCode" :vioData="vioData"  @closeDialog="closeDialog"></uploadVio>
                    <uploadIll v-else :caseId="caseId" :mycode="caseCode" @closeDialog="closeDialog" :illData="illData"></uploadIll>
                </el-dialog>
                <!-- tools -->
@@ -122,7 +122,7 @@
import uploadIll from "./updateUser/uploadResult/ill"
import MyDetail from '@/components/detail'
import MyIllDetail from '@/components/illdetail'
import casequery from "@/api/operate/casequery";
import casequery from "@/api/operate/basecase";
import helper from '@/utils/mydate'
export default {
    components: {
@@ -131,6 +131,7 @@
    data() {
        return {
            tableData: [],
            imageResourceId: null,
            context: "",
            dialogUpload: false,
            dialogView: false,
@@ -318,10 +319,11 @@
                    this.dialogView = true;
                })
        },
        async opernDialog(data) {
        async openDialog(data) {
            await casequery.getBaseCaseDetail(data.code)
                .then(({ baseCase, currentSitVo, filesPictureVo, handlePassVo }) => {
                  this.vioData = currentSitVo;
                  this.imageResourceId = filesPictureVo.imageResources[0]?.id;
                })
                .catch(err => this.$message.error(err))
          this.dialogUpload = true;
@@ -329,9 +331,9 @@
          this.caseCode = data.code;
        },
        // 关闭上传界面
        closeDialog({ flag }) {
            this.dialogUpload = flag;
            this.getUserList();
        closeDialog() {
          this.dialogUpload = false;
          this.getUserList();
        },
        // 处理时间
        filterTime(time) {