fix(video): 修改视频禁播功能描述及操作逻辑
- 将接口注释从"视频删除"更新为"视频禁播" - 更新前端按钮文字从"删除"改为"禁播"- 修改操作函数名从 handleDelete 改为 handleForbid - 调整确认弹窗提示文字内容
This commit is contained in:
parent
4e084e301b
commit
f1a2f287bf
@ -92,7 +92,7 @@ export const deloffline = (data?: string) => {
|
||||
};
|
||||
|
||||
/**
|
||||
* 视频删除
|
||||
* 视频禁播
|
||||
* @param vlogId 视频id
|
||||
*/
|
||||
export const updateaforbid = (vlogId?: string) => {
|
||||
|
@ -87,8 +87,8 @@
|
||||
<el-tooltip content="查看" placement="top">
|
||||
<el-button link type="primary" @click="handleAdd(scope.row)" v-hasPermi="['workflow:video:add']">查看</el-button>
|
||||
</el-tooltip>
|
||||
<el-tooltip content="删除" placement="top">
|
||||
<el-button link type="primary" @click="handleDelete(scope.row)" v-hasPermi="['workflow:video:remove']">删除</el-button>
|
||||
<el-tooltip content="禁播" placement="top">
|
||||
<el-button link type="primary" @click="handleForbid(scope.row)" v-hasPermi="['workflow:video:remove']">禁播</el-button>
|
||||
</el-tooltip>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@ -339,8 +339,8 @@ const submitForm = () => {
|
||||
};
|
||||
|
||||
/** 删除按钮操作 */
|
||||
const handleDelete = async (row: CategoryVO) => {
|
||||
ElMessageBox.confirm('是否确认删除', '警告', {
|
||||
const handleForbid = async (row: CategoryVO) => {
|
||||
ElMessageBox.confirm('是否确认金币', '警告', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
|
Loading…
x
Reference in New Issue
Block a user