|
@@ -55,12 +55,12 @@
|
|
<h3 style="visibility: hidden;">项目列表</h3>
|
|
<h3 style="visibility: hidden;">项目列表</h3>
|
|
<div class="table-ctrl-right">
|
|
<div class="table-ctrl-right">
|
|
<template v-if="isTeaching">
|
|
<template v-if="isTeaching">
|
|
- <el-button type="primary" @click="revokeTeaching()" v-power="'cancel'" v-if="auth.setting" :disabled="!dataList.selectRows.length">撤销教学</el-button>
|
|
|
|
|
|
+ <el-button type="primary" @click="revokeTeaching()" :disabled="getRoke('cancel') && !dataList.selectRows.length" v-power="'cancel'">撤销教学</el-button>
|
|
</template>
|
|
</template>
|
|
<template v-else>
|
|
<template v-else>
|
|
- <el-button type="primary" @click="insertProject" v-if="user.roleKey!=='admin'" v-power="'add'">新增火调项目</el-button>
|
|
|
|
|
|
+ <el-button type="primary" @click="insertProject" :disabled="getRoke('add')" v-if="user.roleKey!=='admin'" v-power="'add'">新增火调项目</el-button>
|
|
<!-- :disabled="!dataList.selectRows.length" -->
|
|
<!-- :disabled="!dataList.selectRows.length" -->
|
|
- <el-button type="primary" @click="setTeaching" v-power="'teach'" >设为教学项目</el-button>
|
|
|
|
|
|
+ <el-button type="primary" @click="setTeaching" :disabled="getRoke('teach')" v-power="'teach'" >设为教学项目</el-button>
|
|
</template>
|
|
</template>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -372,7 +372,7 @@ import comLeaveMsg from "./leaveMsg";
|
|
import comCompany from "@/components/company-select";
|
|
import comCompany from "@/components/company-select";
|
|
import comHead from "@/components/head";
|
|
import comHead from "@/components/head";
|
|
import comArchives from "./archives";
|
|
import comArchives from "./archives";
|
|
-import { copyText, dateFormat } from '@/util'
|
|
|
|
|
|
+import { copyText, dateFormat,getRoke } from '@/util'
|
|
import {
|
|
import {
|
|
getFireList,
|
|
getFireList,
|
|
insertFire,
|
|
insertFire,
|
|
@@ -502,7 +502,7 @@ export default {
|
|
|
|
|
|
|
|
|
|
return {
|
|
return {
|
|
- ...state, time, auth, types, user,
|
|
|
|
|
|
+ ...state, time, auth, types, user,getRoke,
|
|
showArchives, showLeaveMsg, sfireReason,
|
|
showArchives, showLeaveMsg, sfireReason,
|
|
sprojectSite, share, fireReason, ADMIN_USER_ID,
|
|
sprojectSite, share, fireReason, ADMIN_USER_ID,
|
|
projectSite, place: PLACE, reason: REASON, queryAccidentDate,
|
|
projectSite, place: PLACE, reason: REASON, queryAccidentDate,
|