From b68b0356317751541297cd41e5e7b417d6b626c7 Mon Sep 17 00:00:00 2001 From: zichen1019 <1510748736@qq.com> Date: Sat, 28 Aug 2021 21:06:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=B0=83=E6=95=B4=E5=80=9F?= =?UTF-8?q?=E9=98=85=E6=8A=A5=E5=91=8A=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/borrow/borrow-history.vue | 19 +++++++------------ src/views/borrow/borrow.vue | 6 +++--- src/views/borrow/returned.vue | 26 +++++--------------------- 3 files changed, 15 insertions(+), 36 deletions(-) diff --git a/src/views/borrow/borrow-history.vue b/src/views/borrow/borrow-history.vue index b682892..b94c101 100644 --- a/src/views/borrow/borrow-history.vue +++ b/src/views/borrow/borrow-history.vue @@ -7,6 +7,7 @@ v-model="query.jieyueTime" type="date" placeholder="选择借阅日期" + value-format="yyyy-MM-dd" @change="crud.toQuery" /> - + @@ -134,7 +134,7 @@ export default { ], permission: { add: ['instrument:add'], - edit: ['instrument:update'], + edit: ['borrow:jybg-list:update'], del: ['instrument:delete'] }, options: [], diff --git a/src/views/borrow/returned.vue b/src/views/borrow/returned.vue index 01c755e..baa0a1a 100644 --- a/src/views/borrow/returned.vue +++ b/src/views/borrow/returned.vue @@ -43,22 +43,13 @@ const defaultCrud = presenter(CRUD({ url: '/borrowing/list', orderBy: ['id asc'], query: { - state: true + state: false } })) // 设置初始form const defaultForm = form({ - }) -// 自定义模板内容 -const PrefixPlusText = { - props: ['value', 'functions'], - template: ` - - - ` -} export default { name: 'InstrumentList', components: { Pagination, CustomTable }, @@ -67,19 +58,12 @@ export default { return { colConfigs: [ { prop: 'baogaobianhao', label: '报告编号', align: 'center' }, + { prop: 'jieyueren', label: '借阅人', align: 'center', formatter: this.formatter.getChineseName }, + { prop: 'jieyueTime', label: '借阅时间', align: 'center' }, { prop: 'createBy', label: '创建人', align: 'center', formatter: this.formatter.getChineseName }, { prop: 'createTime', label: '创建时间', align: 'center' }, - { prop: 'guihuanTime', label: '归还时间', align: 'center' }, - { prop: 'jieyueTime', label: '借阅时间', align: 'center' }, - { prop: 'jieyueren', label: '借阅人', align: 'center', formatter: this.formatter.getChineseName }, - { prop: 'state', label: '借阅状态', align: 'center', component: PrefixPlusText }, - { prop: 'updateBy', label: '修改人', align: 'center' }, - { - prop: 'updateTime', - label: '更新时间', - align: 'center', - formatter: this.formatter.formatterDepartmentName - }, + { prop: 'updateBy', label: '更新人', align: 'center', formatter: this.formatter.getChineseName }, + { prop: 'updateTime', label: '更新时间', align: 'center' }, { slot: 'operation' } ], permission: {