|
@@ -28,8 +28,8 @@
|
|
|
</div>
|
|
|
<a-divider />
|
|
|
<a-row class="add-btn" type="flex" justify="space-between">
|
|
|
- <a-button id="evaluationPlan-add" type="primary" icon="plus" @click="openModal">新增</a-button>
|
|
|
- <a-col id="evaluationPlan-setDefaultPlan" @click="handleDefaultSet">
|
|
|
+ <a-button v-hasPermission="'B_evaluationPlan_add'" id="evaluationPlan-add" type="primary" icon="plus" @click="openModal">新增</a-button>
|
|
|
+ <a-col v-hasPermission="'M_evaluationPlan_default'" id="evaluationPlan-setDefaultPlan" @click="handleDefaultSet">
|
|
|
<a-icon type="setting" class="setting-icon" />
|
|
|
<span class="setting">默认方案设置</span>
|
|
|
</a-col>
|
|
@@ -43,13 +43,21 @@
|
|
|
bordered>
|
|
|
<!-- 操作 -->
|
|
|
<template slot="action" slot-scope="text, record">
|
|
|
- <a-icon id="evaluationPlan-edit" type="edit" class="actionBtn blue" v-if="record.status == '0'" @click="openModal(record)" />
|
|
|
- <a-icon id="evaluationPlan-delete" type="delete" class="actionBtn red" v-if="record.status == '0'" @click="delect(record)" />
|
|
|
- <a-icon id="evaluationPlan-setting" type="setting" class="actionBtn orange" @click="handleSet(record)" />
|
|
|
+ <a-icon id="evaluationPlan-edit" type="edit" class="actionBtn blue" v-if="record.status == '0' && $hasPermissions('M_evaluationPlan_edit')" @click="openModal(record)" />
|
|
|
+ <a-icon id="evaluationPlan-delete" type="delete" class="actionBtn red" v-if="record.status == '0' && $hasPermissions('B_evaluationPlan_del')" @click="delect(record)" />
|
|
|
+ <a-icon v-hasPermission="'M_evaluationPlan_setItem'" id="evaluationPlan-setting" type="setting" class="actionBtn orange" @click="handleSet(record)" />
|
|
|
+ <span v-if="!$hasPermissions('M_evaluationPlan_edit') && !$hasPermissions('B_evaluationPlan_del') && !$hasPermissions('M_evaluationPlan_setItem')">-</span>
|
|
|
</template>
|
|
|
<!-- 启用禁用 -->
|
|
|
<template slot="enable" slot-scope="text, row">
|
|
|
- <a-switch id="evaluationPlan-enableStatus" checkedChildren="启用" unCheckedChildren="禁用" v-model="row.status" @change="changeFlagHandle(row)" />
|
|
|
+ <a-switch
|
|
|
+ v-if="$hasPermissions('B_evaluationPlan_enable')"
|
|
|
+ id="evaluationPlan-enableStatus"
|
|
|
+ checkedChildren="启用"
|
|
|
+ unCheckedChildren="禁用"
|
|
|
+ v-model="row.status"
|
|
|
+ @change="changeFlagHandle(row)" />
|
|
|
+ <span v-else :class="[text==1 ? 'green' : 'red']">{{ text==1 ? '已启用' : '已禁用' }}</span>
|
|
|
</template>
|
|
|
</s-table>
|
|
|
<!-- 新增/编辑 弹窗 -->
|