|
@@ -44,9 +44,21 @@
|
|
bordered>
|
|
bordered>
|
|
<!-- 操作 -->
|
|
<!-- 操作 -->
|
|
<template slot="action" slot-scope="text, record">
|
|
<template slot="action" slot-scope="text, record">
|
|
- <a-icon id="evaluationPlan-setting" title="选择考评项目" type="setting" class="actionBtn orange" @click="handleSet(record)" />
|
|
|
|
- <a-icon id="evaluationPlan-edit" title="编辑" type="edit" class="actionBtn blue" v-if="record.status == '0'" @click="openModal(record)" />
|
|
|
|
- <a-icon id="evaluationPlan-delete" title="删除" type="delete" class="actionBtn red" v-if="record.status == '0'" @click="delect(record)" />
|
|
|
|
|
|
+ <a-icon id="evaluationPlan-setting" title="选择考评项目" type="setting" class="actionBtn orange" @click="handleSet(record)" />
|
|
|
|
+ <a-icon
|
|
|
|
+ id="evaluationPlan-edit"
|
|
|
|
+ title="编辑"
|
|
|
|
+ type="edit"
|
|
|
|
+ class="actionBtn blue"
|
|
|
|
+ v-if="record.status == '0'"
|
|
|
|
+ @click="openModal(record)" />
|
|
|
|
+ <a-icon
|
|
|
|
+ id="evaluationPlan-delete"
|
|
|
|
+ title="删除"
|
|
|
|
+ type="delete"
|
|
|
|
+ class="actionBtn red"
|
|
|
|
+ v-if="record.status == '0'"
|
|
|
|
+ @click="delect(record)" />
|
|
</template>
|
|
</template>
|
|
<!-- 启用禁用 -->
|
|
<!-- 启用禁用 -->
|
|
<template slot="enable" slot-scope="text, row">
|
|
<template slot="enable" slot-scope="text, row">
|
|
@@ -119,9 +131,9 @@ export default {
|
|
dataIndex: 'desc',
|
|
dataIndex: 'desc',
|
|
width: 300,
|
|
width: 300,
|
|
align: 'center',
|
|
align: 'center',
|
|
- customRender: (text) => {
|
|
|
|
- return text || '--'
|
|
|
|
- }
|
|
|
|
|
|
+ customRender: (text) => {
|
|
|
|
+ return text || '--'
|
|
|
|
+ }
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '适用模式',
|
|
title: '适用模式',
|
|
@@ -214,11 +226,13 @@ export default {
|
|
if (has) {
|
|
if (has) {
|
|
this.$warning({
|
|
this.$warning({
|
|
title: '警告',
|
|
title: '警告',
|
|
|
|
+ centered: true,
|
|
content: '该考评方案为当前默认考评方案,不能删除,请取消该方案的默认后再进行删除!'
|
|
content: '该考评方案为当前默认考评方案,不能删除,请取消该方案的默认后再进行删除!'
|
|
})
|
|
})
|
|
} else {
|
|
} else {
|
|
this.$confirm({
|
|
this.$confirm({
|
|
title: '警告',
|
|
title: '警告',
|
|
|
|
+ centered: true,
|
|
content: '删除后原数据不可恢复,是否删除?',
|
|
content: '删除后原数据不可恢复,是否删除?',
|
|
okText: '确定',
|
|
okText: '确定',
|
|
cancelText: '取消',
|
|
cancelText: '取消',
|