From f00f3cf7ee0faed35a690ed1a159444dd3f0a958 Mon Sep 17 00:00:00 2001 From: zichen1019 <1510748736@qq.com> Date: Fri, 13 Aug 2021 21:51:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=88=86=E9=85=8D=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/allot/components/chengya_list.vue | 12 ++++----- src/views/allot/rwd_list.vue | 27 ++++++++++----------- 2 files changed, 19 insertions(+), 20 deletions(-) diff --git a/src/views/allot/components/chengya_list.vue b/src/views/allot/components/chengya_list.vue index d96eda8..7aa9ed8 100644 --- a/src/views/allot/components/chengya_list.vue +++ b/src/views/allot/components/chengya_list.vue @@ -135,9 +135,9 @@ - - - + + + @@ -310,7 +310,7 @@ export default { this.allotList = data this.allotSbzl = this.allotList[0].shebeizhongleidaima this.renwudan = { - xiadariqi: new Date() + xiadariqi: this.formatter.dateFormat('YYYY-MM-dd') } if (this.multipleSelection[0].shebeileixing !== undefined && this.multipleSelection[0].shebeileixing !== null) { this.title = '任务分配(' + this.multipleSelection[0].shebeileixing + ')' @@ -435,7 +435,7 @@ export default { }) }, clearSearch() { - this.listQuery.bjState="2" + this.listQuery.bjState = '2' this.getList() }, // 表格单击选中行 getAllotListByBjdId @@ -648,7 +648,7 @@ export default { setWanchengqixian() { var date = new Date(this.renwudan.yuejianriqi) date.setMonth(date.getMonth() + 1) - this.$set(this.renwudan, 'wanchengqixian', date) + this.$set(this.renwudan, 'wanchengqixian', this.formatter.dateFormat('YYYY-MM-dd', date)) }, tableRowZhongjian({ row, rowIndex }) { if (row.zhongjianState === 1) { diff --git a/src/views/allot/rwd_list.vue b/src/views/allot/rwd_list.vue index 9dbe35b..557773f 100644 --- a/src/views/allot/rwd_list.vue +++ b/src/views/allot/rwd_list.vue @@ -13,11 +13,11 @@ - - + + - + 查询 @@ -25,7 +25,7 @@ 清除
- + - + - - - - + + + +
@@ -92,7 +92,7 @@ - + @@ -131,9 +131,8 @@ export default { listQuery: { pageNum: 1, // 页码 pageSize: 20, // 每页条数 - searchRwd: { // 任务分配人 跟 超级管理员可以查看所有 其他人只能看自己 - isLookRwdAll: this.hasRole('JDFPRW') || this.hasRole('FPRW') || this.hasRole('ADMIN') - }, + // 任务分配人 跟 超级管理员可以查看所有 其他人只能看自己 + isLookRwdAll: this.hasRole('JDFPRW') || this.hasRole('FPRW') || this.hasRole('ADMIN'), orderBy: 'id desc' }, multipleSelection: [], @@ -210,7 +209,7 @@ export default { this.selection = val }, clearSearch() { - this.listQuery.searchRwd = { + this.listQuery = { } this.getList() },