|
@@ -17,7 +17,7 @@
|
|
<el-table-column label="操作" align="center">
|
|
<el-table-column label="操作" align="center">
|
|
<template slot-scope="{row}">
|
|
<template slot-scope="{row}">
|
|
<el-button type="text" @click="handleModifyLabel(row)">编辑</el-button>
|
|
<el-button type="text" @click="handleModifyLabel(row)">编辑</el-button>
|
|
- <el-button type="text" @click="deleteLabel(row)">删除</el-button>
|
|
|
|
|
|
+ <el-button type="text" @click="deleteLabel(row)" style="color:red;">删除</el-button>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
@@ -111,6 +111,10 @@ export default {
|
|
this.isModifyDialogShow = false
|
|
this.isModifyDialogShow = false
|
|
},
|
|
},
|
|
deleteLabel(label){
|
|
deleteLabel(label){
|
|
|
|
+ if(label.VideoTotal!==0){
|
|
|
|
+ this.$confirm('该标签已关联视频,删除失败','提示',{confirmButtonText:'知道了',showCancelButton:false,type:'error'})
|
|
|
|
+ return
|
|
|
|
+ }
|
|
this.$confirm(
|
|
this.$confirm(
|
|
'删除后不可恢复,是否确认删除该标签?',
|
|
'删除后不可恢复,是否确认删除该标签?',
|
|
'提示',
|
|
'提示',
|