From 78563aa7a2a3304e872fe35094e6925a64f5b4b2 Mon Sep 17 00:00:00 2001 From: wl <173@qq.com> Date: 星期二, 25 十月 2022 17:34:17 +0800 Subject: [PATCH] 案件图片展示 --- src/views/operate/myWait/index.vue | 81 +++++++++++++++++----------------------- 1 files changed, 34 insertions(+), 47 deletions(-) diff --git a/src/views/operate/myWait/index.vue b/src/views/operate/myWait/index.vue index 163a582..fb682ce 100644 --- a/src/views/operate/myWait/index.vue +++ b/src/views/operate/myWait/index.vue @@ -1,7 +1,7 @@ <template> <div class="userList"> <div class="headerTitle"> - 杩愯惀绠$悊銆嬪熀纭�璁剧疆銆嬭繚瑙勪簨椤硅缃� + 杩愯惀绠$悊銆嬫垜鐨勫緟鍔� </div> <header> <div class="headerContent"> @@ -12,13 +12,6 @@ <el-button type="primary" @click="getUserList">鏌ヨ</el-button> </div> </div> - <!-- <div class="addUser"> - <el-button class="addBtn" type="primary" @click="dialogCreate = true">鏂板杩濊绫诲瀷</el-button> - <el-dialog :visible.sync="dialogCreate" title="鏂板杩濊绫诲瀷" width="45%" v-if="dialogCreate" - :before-close="handleClose"> - <createUser :refresh="getUserList" /> - </el-dialog> - </div> --> </div> </header> <main> @@ -30,17 +23,29 @@ @selection-change="tableChange"> <el-table-column type="selection" min-width="5"> </el-table-column> - <el-table-column prop="number" label="浜嬩欢缂栧彿" min-width="10"> + <el-table-column prop="code" label="浜嬩欢缂栧彿" min-width="10"> </el-table-column> - <el-table-column prop="typeThird" label="闂灏忕被" min-width="10"> + <el-table-column prop="eventSource" label="闂鏉ユ簮" min-width="10"> + <template slot-scope="scope"> + <span>{{scope.row.eventSource===1 ? '瑙嗛宸℃煡': '浜哄伐涓婃姤'}}</span> + </template> </el-table-column> - <el-table-column prop="typeSecond" label="闂鎻忚堪" min-width="10"> + <el-table-column prop="category" label="闂绫诲埆" min-width="10"> + <template slot-scope="scope"> + <span>{{scope.row.category===1 ? '杩濊': '杩濆缓'}}</span> + </template> </el-table-column> - <el-table-column prop="typeFirst" label="鍒涘缓鏃堕棿" min-width="10"> + <el-table-column prop="createTime" label="鍒涘缓鏃堕棿" min-width="10"> + <template slot-scope="scope"> + <span>{{changeTime(scope.row.createTime)}}</span> + </template> </el-table-column> <el-table-column prop="type" label="鍓╀綑鏃堕棿" min-width="10"> + <template slot-scope="scope"> + <span>{{getRestTime(scope.row.limitTime)}}</span> + </template> </el-table-column> - <el-table-column prop="type" label="闂鐘舵��" min-width="10"> + <el-table-column prop="stepName" label="闂鐘舵��" min-width="10"> </el-table-column> <el-table-column min-width="10"> </el-table-column> @@ -91,6 +96,8 @@ <script> import updateUser from "./updateUser" import createUser from "./createUser" +import {computeTime} from '@/utils/helper' +import filterTime from '@/utils/mydate' export default { components: { updateUser,createUser @@ -213,44 +220,14 @@ // 鑾峰彇鎵�鏈夌敤鎴蜂俊鎭� this.$axios({ method: 'get', - url: `sccg/violations/query?current=${currentPage}&size=${pageSize}&keyWord=${context}`, + // ?current=${currentPage},&size=${pageSize}& + url: `sccg/my_backlog/query?num=${context}`, }) .then(res => { - this.tableData = res.data.records; - this.totalNum = res.data.total; + this.tableData = res.data; + this.totalNum = res.data.length; }) }, - // search() { - // const that = this; - // const { currentPage, pageSize, context } = this; - // // 鑾峰彇鎵�鏈夌敤鎴蜂俊鎭� - // if (context == '') { - // this.$axios.get('sccg/role/list?keyword=' + '&pageNum=' + currentPage + '&pageSize=' + pageSize).then(res => { - // if (res.code === 200) { - // console.log(res); - // res.data.list.forEach(item => { - // // item.createTime = helper(item.createTime); - // item.status == 1 ? item.status = true : item.status = false; - // }) - // that.tableData = res.data.list; - // this.totalNum = res.data.list.length; - // } - // }) - // } else { - // this.$axios({ - // method: 'get', - // url: 'sccg/role/list?keyword=' + context + '&pageNum=' + currentPage + '&pageSize=' + pageSize, - // }).then(res => { - // if (res.code === 200) { - // res.data.list.forEach(item => { - // item.status == 1 ? item.status = true : item.status = false; - // }) - // that.tableData = res.data.list - // this.totalNum = res.data.list.length; - // } - // }) - // } - // }, // 璁剧疆琛ㄦ牸鏂戦┈绾� tableRowClassName({ row, rowIndex }) { if ((rowIndex + 1) % 2 == 0) { @@ -293,6 +270,16 @@ done(); }) .catch(_ => { }); + }, + // 璁$畻鏃堕棿 + getRestTime(time2){ + return computeTime(time2); + }, + // 鏀瑰彉鏃ユ湡鏍煎紡 + changeTime(time){ + if(time){ + return filterTime(time); + } } } } -- Gitblit v1.8.0