mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 20:06:44 +08:00
提交对U币处理的修改
This commit is contained in:
@@ -1,23 +1,9 @@
|
||||
<template>
|
||||
<div class="u-page" style="padding-right:32px">
|
||||
<Remark>
|
||||
<ul>
|
||||
<li>正文内容需求上要求显示两行,建议不显示 上架和下架图标待定</li>
|
||||
<li>
|
||||
上架和审核没有对应接口,先写好了,到时候换个名就行,数据传参也可以改一下
|
||||
</li>
|
||||
<li>点击标题打开新页面并且传参不会</li>
|
||||
</ul>
|
||||
</Remark>
|
||||
<div style="padding: 2px 0px 10px 8px;">
|
||||
<div style="display: flex; justify-content: flex-start">
|
||||
<div style="padding: 0px 5px">
|
||||
<el-select
|
||||
v-model="pageData.status"
|
||||
style="width: 110px"
|
||||
clearable
|
||||
placeholder="审核状态"
|
||||
>
|
||||
<el-select v-model="pageData.status" style="width: 110px" clearable placeholder="审核状态" >
|
||||
<el-option label="全部" value=""></el-option>
|
||||
<el-option label="草稿" :value="1"></el-option>
|
||||
<el-option label="待审核" :value="2"></el-option>
|
||||
@@ -27,19 +13,10 @@
|
||||
</el-select>
|
||||
</div>
|
||||
<div style="padding: 0px 5px">
|
||||
<el-input
|
||||
placeholder="关键词搜索"
|
||||
v-model="pageData.keyword"
|
||||
clearable
|
||||
></el-input>
|
||||
<el-input placeholder="关键词搜索" v-model="pageData.keyword" clearable ></el-input>
|
||||
</div>
|
||||
<div style="padding: 0px 5px">
|
||||
<el-button
|
||||
@click="getsearch"
|
||||
icon="el-icon-search"
|
||||
type="primary"
|
||||
>搜索</el-button
|
||||
>
|
||||
<el-button @click="getsearch" icon="el-icon-search" type="primary">搜索</el-button >
|
||||
<!-- <el-button type="primary" >批量设置推荐</el-button> -->
|
||||
</div>
|
||||
|
||||
@@ -223,19 +200,16 @@ export default {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning',
|
||||
})
|
||||
.then(() => {
|
||||
apiArticle
|
||||
.del(item.id)
|
||||
.then((res) => {
|
||||
}).then(() => {
|
||||
apiArticle.del(item.id).then((res) => {
|
||||
if (res.status == 200) {
|
||||
this.$message.success('删除成功')
|
||||
this.getArticleList()
|
||||
let event = {
|
||||
key: "DeleteArticle",//后台的事件key 发布文章且审核通过
|
||||
title: '删除文章(被删除)',//事件的标题
|
||||
parameters:"",//用户自定义参数 name:value,name:value
|
||||
content: '删除文章(被删除)',//事件的内容
|
||||
key: "ArticleDelete",//被管理员删除
|
||||
title: '被管理员删除文章',//事件的标题
|
||||
parameters:"author:"+item.sysCreateAid,//用户自定义参数 name:value,name:value
|
||||
content: '被管理员删除文章',//事件的内容
|
||||
objId: item.id,//关联的id
|
||||
objType: "2",//关联的类型
|
||||
objInfo:item.title,
|
||||
|
||||
Reference in New Issue
Block a user