|
|
@ -80,21 +80,21 @@ |
|
|
<el-table-column :label="$t('form.operate')" fixed="right" align="center" width="200"> |
|
|
<el-table-column :label="$t('form.operate')" fixed="right" align="center" width="200"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<!-- 编辑 --> |
|
|
<!-- 编辑 --> |
|
|
<el-button type="text" @click="edit(scope.row)" v-hasPermi="['business:study:edit']" v-if="scope.row.status===1 || scope.row.status===3">{{$t('page.business.study.study.edit')}}</el-button> |
|
|
|
|
|
|
|
|
<el-button type="text" @click="edit(scope.row)" v-hasPermi="['business:study:edit']" v-if="(scope.row.leader==userId || checkRole(['TFM'])) && (scope.row.status===1 || scope.row.status===3)">{{$t('page.business.study.study.edit')}}</el-button> |
|
|
<!-- 删除 --> |
|
|
<!-- 删除 --> |
|
|
<el-button type="text" @click="del(scope.row)" v-hasPermi="['business:study:remove']" v-if="scope.row.status===1">{{$t('page.business.study.study.delete')}}</el-button> |
|
|
|
|
|
|
|
|
<el-button type="text" @click="del(scope.row)" v-hasPermi="['business:study:remove']" v-if="(scope.row.leader==userId || checkRole(['TFM'])) && scope.row.status===1">{{$t('page.business.study.study.delete')}}</el-button> |
|
|
<!-- 详情 --> |
|
|
<!-- 详情 --> |
|
|
<el-button type="text" @click="detail(scope.row)" v-hasPermi="['business:study:detail']" v-if="scope.row.status===1 || scope.row.status===3 || scope.row.status===5 || (scope.row.status===9 && scope.row.borrowStatus===10)">{{$t('page.business.study.study.detail')}}</el-button> |
|
|
<el-button type="text" @click="detail(scope.row)" v-hasPermi="['business:study:detail']" v-if="scope.row.status===1 || scope.row.status===3 || scope.row.status===5 || (scope.row.status===9 && scope.row.borrowStatus===10)">{{$t('page.business.study.study.detail')}}</el-button> |
|
|
<!-- 进入试验 --> |
|
|
<!-- 进入试验 --> |
|
|
<el-button type="text" @click="enter(scope.row)" v-hasPermi="['business:study:enter']" v-if="scope.row.status===3 || scope.row.status===5 || (scope.row.status===9 && scope.row.borrowStatus===10)">{{$t('page.business.study.study.enter')}}</el-button> |
|
|
<el-button type="text" @click="enter(scope.row)" v-hasPermi="['business:study:enter']" v-if="scope.row.status===3 || scope.row.status===5 || (scope.row.status===9 && scope.row.borrowStatus===10)">{{$t('page.business.study.study.enter')}}</el-button> |
|
|
<!-- 归档 --> |
|
|
<!-- 归档 --> |
|
|
<el-button type="text" @click="gd(scope.row)" v-hasPermi="['business:study:gd']" v-if="scope.row.status===5">{{$t('page.business.study.study.gd')}}</el-button> |
|
|
|
|
|
|
|
|
<el-button type="text" @click="gd(scope.row)" v-hasPermi="['business:study:gd']" v-if="(scope.row.leader==userId || checkRole(['TFM'])) && scope.row.status===5">{{$t('page.business.study.study.gd')}}</el-button> |
|
|
<!-- 解锁 --> |
|
|
<!-- 解锁 --> |
|
|
<el-button type="text" @click="js(scope.row)" v-hasPermi="['business:study:js']" v-if="scope.row.status===5">{{$t('page.business.study.study.js')}}</el-button> |
|
|
|
|
|
|
|
|
<el-button type="text" @click="js(scope.row)" v-hasPermi="['business:study:js']" v-if="(scope.row.leader==userId || checkRole(['TFM'])) && scope.row.status===5">{{$t('page.business.study.study.js')}}</el-button> |
|
|
<!-- 解档 --> |
|
|
<!-- 解档 --> |
|
|
<el-button type="text" @click="jd(scope.row)" v-hasPermi="['business:study:jd']" v-if="scope.row.status===9 && scope.row.borrowStatus===1">{{$t('page.business.study.study.jd')}}</el-button> |
|
|
|
|
|
|
|
|
<el-button type="text" @click="jd(scope.row)" v-hasPermi="['business:study:jd']" v-if="(scope.row.leader==userId || checkRole(['TFM'])) && scope.row.status===9 && scope.row.borrowStatus===1">{{$t('page.business.study.study.jd')}}</el-button> |
|
|
<!-- 借阅 --> |
|
|
<!-- 借阅 --> |
|
|
<el-button type="text" @click="jy(scope.row)" v-hasPermi="['business:study:jy']" v-if="scope.row.status===9 && scope.row.borrowStatus===1">{{$t('page.business.study.study.jy')}}</el-button> |
|
|
|
|
|
|
|
|
<el-button type="text" @click="jy(scope.row)" v-hasPermi="['business:study:jy']" v-if="(scope.row.leader==userId || checkRole(['TFM'])) && scope.row.status===9 && scope.row.borrowStatus===1">{{$t('page.business.study.study.jy')}}</el-button> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
</el-table> |
|
|
</el-table> |
|
|
@ -147,6 +147,7 @@ |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
|
|
|
import { checkPermi, checkRole } from "@/utils/permission"; |
|
|
import { study_list,study_delete,study_gd,study_js,study_jd,study_jy} from "@/api/business/study/study"; |
|
|
import { study_list,study_delete,study_gd,study_js,study_jd,study_jy} from "@/api/business/study/study"; |
|
|
import Edit from './comp/edit.vue' |
|
|
import Edit from './comp/edit.vue' |
|
|
import Enter from './comp/enter.vue' |
|
|
import Enter from './comp/enter.vue' |
|
|
@ -168,6 +169,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
|
|
|
userId:this.$store.getters.id, |
|
|
daterange:[], |
|
|
daterange:[], |
|
|
searchForm: { |
|
|
searchForm: { |
|
|
pageNum: 1, |
|
|
pageNum: 1, |
|
|
@ -194,6 +196,8 @@ export default { |
|
|
this.getList(); |
|
|
this.getList(); |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
checkPermi, |
|
|
|
|
|
checkRole, |
|
|
getList() { |
|
|
getList() { |
|
|
this.loading = true; |
|
|
this.loading = true; |
|
|
this.searchForm.startDate = this.daterange && this.daterange.length > 0 ? this.daterange[0] : '' |
|
|
this.searchForm.startDate = this.daterange && this.daterange.length > 0 ? this.daterange[0] : '' |
|
|
@ -280,8 +284,8 @@ export default { |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
gs(row) { |
|
|
|
|
|
this.operate = 'gs' |
|
|
|
|
|
|
|
|
js(row) { |
|
|
|
|
|
this.operate = 'js' |
|
|
this.operateRow = row |
|
|
this.operateRow = row |
|
|
this.$refs.signRef.show(this.$t('page.business.study.study.jssy'),this.$t('page.business.study.study.jssy')) |
|
|
this.$refs.signRef.show(this.$t('page.business.study.study.jssy'),this.$t('page.business.study.study.jssy')) |
|
|
}, |
|
|
}, |
|
|
|