Browse Source

fix:[试验管理][饲养间管理]权限

master
HanLong 1 day ago
parent
commit
dcc5ba7b4e
6 changed files with 41 additions and 40 deletions
  1. +1
    -1
      src/api/business/study/studyMethod.js
  2. +17
    -17
      src/lang/en/business/study/studyMethod.js
  3. +13
    -13
      src/lang/en/business/study/studyRoom.js
  4. +3
    -2
      src/views/business/study/comp/syff/Xq.vue
  5. +3
    -3
      src/views/business/study/comp/syffList.vue
  6. +4
    -4
      src/views/business/study/comp/syjList.vue

+ 1
- 1
src/api/business/study/studyMethod.js View File

@ -42,7 +42,7 @@ export function studyMethod_readList(query) {
// 方法阅读导出 // 方法阅读导出
export function studyMethod_export(query) { export function studyMethod_export(query) {
return request({ return request({
url: '/system/business/studyMethod/test',
url: '/system/business/studyMethod/download',
method: 'get', method: 'get',
params: query params: query
}) })

+ 17
- 17
src/lang/en/business/study/studyMethod.js View File

@ -1,20 +1,20 @@
export default { export default {
ffmc: '方法名称',
cjr: '创建人',
cjsj: '创建时间',
scff: '上传方法',
scwj: '上传文件',
wjm:'支持扩展名:pdf',
zt: '状态',
yuedu: '阅读',
daochu: '导出',
mc: '名称',
ff: '方法',
ffmc: 'Name',
cjr: 'Creator',
cjsj: 'Creation Date',
scff: 'Upload',
scwj: 'Upload File',
wjm:'Allowed Format: .pdf',
zt: 'Status',
yuedu: 'Read',
daochu: 'Download',
mc: 'Name',
ff: 'Method',
qmhz: '签名汇总', qmhz: '签名汇总',
yidu: '已读',
weidu: '未读',
qmr: '签名人',
qmsj: '签名时间',
qmyy: '签名意义',
remark: '备注',
yidu: 'Read',
weidu: 'Unread',
qmr: 'Signed By',
qmsj: 'Date',
qmyy: 'Purpose',
remark: 'Comment',
} }

+ 13
- 13
src/lang/en/business/study/studyRoom.js View File

@ -1,18 +1,18 @@
export default { export default {
qysyj: '启用饲养间',
xzqy: '新增启用',
qysyj: 'Start Usage',
xzqy: 'Start Usage',
syqy: '试验区域',
syjh: '饲养间号',
dwzs: '动物种属',
longju: '笼具',
kssyyl: '开始使用原因',
qyr: '启用人',
kssj: '开始时间',
jssyyl: '结束使用原因',
jsr: '结束人',
jssj: '结束时间',
zt: '状态',
syqy: 'Area',
syjh: 'Room ID',
dwzs: 'Species',
longju: 'Cage',
kssyyl: 'Start Reason',
qyr: 'Start by',
kssj: 'Start Date',
jssyyl: 'End Reason',
jsr: 'End by',
jssj: 'End Date',
zt: 'Status',
syz: '使用中', syz: '使用中',
yjs: '已结束', yjs: '已结束',
ghlj: '更换笼具', ghlj: '更换笼具',

+ 3
- 2
src/views/business/study/comp/syff/Xq.vue View File

@ -151,8 +151,9 @@ export default {
}, },
handleExport() { handleExport() {
studyMethod_export({studyMethodId:6}).then(response => {
studyMethod_export({studyMethodId: this.form.id}).then(response => {
let fileUrl = response.data.fileUrl
this.$download.saveAs(process.env.VUE_APP_FILE_DOMAIN + fileUrl, this.form.ffmc + ".pdf");
}) })
} }

+ 3
- 3
src/views/business/study/comp/syffList.vue View File

@ -42,7 +42,7 @@
<div class="tbbd-content"> <div class="tbbd-content">
<el-row class="add-box"> <el-row class="add-box">
<el-col> <el-col>
<el-button type="primary" icon="el-icon-plus" @click="add()">{{
<el-button type="primary" icon="el-icon-plus" @click="add()" v-hasPermi="['business:studyMethod:upload']">{{
$t('page.business.study.studyMethod.scff') }}</el-button> $t('page.business.study.studyMethod.scff') }}</el-button>
</el-col> </el-col>
</el-row> </el-row>
@ -60,10 +60,10 @@
<el-table-column :label="$t('form.operate')" align="left" fixed="right" width="200"> <el-table-column :label="$t('form.operate')" align="left" fixed="right" width="200">
<template slot-scope="scope"> <template slot-scope="scope">
<!-- 阅读 --> <!-- 阅读 -->
<el-button type="text" @click="detail(scope.row)">{{
<el-button type="text" @click="detail(scope.row)" v-hasPermi="['business:studyMethod:read']">{{
$t('page.business.study.studyMethod.yuedu') }}</el-button> $t('page.business.study.studyMethod.yuedu') }}</el-button>
<!-- 导出 --> <!-- 导出 -->
<el-button type="text" @click="showExport(scope.row)">{{
<el-button type="text" @click="showExport(scope.row)" v-hasPermi="['business:studyMethod:download']">{{
$t('page.business.study.studyMethod.daochu') }}</el-button> $t('page.business.study.studyMethod.daochu') }}</el-button>
</template> </template>
</el-table-column> </el-table-column>

+ 4
- 4
src/views/business/study/comp/syjList.vue View File

@ -44,7 +44,7 @@
<div class="tbbd-content"> <div class="tbbd-content">
<el-row class="add-box"> <el-row class="add-box">
<el-col> <el-col>
<el-button type="primary" icon="el-icon-plus" @click="add()">{{
<el-button type="primary" icon="el-icon-plus" @click="add()" v-hasPermi="['business:studyRoom:add']">{{
$t('page.business.study.studyRoom.xzqy') }}</el-button> $t('page.business.study.studyRoom.xzqy') }}</el-button>
</el-col> </el-col>
</el-row> </el-row>
@ -69,13 +69,13 @@
<el-table-column :label="$t('form.operate')" align="left" fixed="right" width="200"> <el-table-column :label="$t('form.operate')" align="left" fixed="right" width="200">
<template slot-scope="scope"> <template slot-scope="scope">
<!-- 笼具记录 --> <!-- 笼具记录 -->
<el-button type="text" @click="detail(scope.row)">{{
<el-button type="text" @click="detail(scope.row)" v-hasPermi="['business:studyRoom:ljjl']">{{
$t('page.business.study.studyRoom.ljjl') }}</el-button> $t('page.business.study.studyRoom.ljjl') }}</el-button>
<!-- 更换笼具 --> <!-- 更换笼具 -->
<el-button type="text" v-if="scope.row.zt === 1" @click="edit(scope.row)">{{
<el-button type="text" v-if="scope.row.zt === 1" @click="edit(scope.row)" v-hasPermi="['business:studyRoom:update']">{{
$t('page.business.study.studyRoom.ghlj') }}</el-button> $t('page.business.study.studyRoom.ghlj') }}</el-button>
<!-- 结束 --> <!-- 结束 -->
<el-button type="text" v-if="scope.row.zt === 1" @click="end(scope.row)">{{
<el-button type="text" v-if="scope.row.zt === 1" @click="end(scope.row)" v-hasPermi="['business:studyRoom:js']">{{
$t('page.business.study.studyRoom.js') }}</el-button> $t('page.business.study.studyRoom.js') }}</el-button>
</template> </template>
</el-table-column> </el-table-column>

Loading…
Cancel
Save