|
@@ -1,4 +1,9 @@
|
|
<template>
|
|
<template>
|
|
|
|
+<!-- 第一次是只有上下架功能没有审批
|
|
|
|
+第二次是添加审批驳回,app可以重新提交
|
|
|
|
+第三次是分式两个角色,一个操作,一个审批。、
|
|
|
|
+第四次审核页面开放编辑功能。
|
|
|
|
+ -->
|
|
<div class="common-container my-open-img">
|
|
<div class="common-container my-open-img">
|
|
<TitleBar></TitleBar>
|
|
<TitleBar></TitleBar>
|
|
<!-- 搜索栏与表格区域 -->
|
|
<!-- 搜索栏与表格区域 -->
|
|
@@ -26,7 +31,7 @@
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="4" v-show="show">
|
|
<el-col :span="4" v-show="show">
|
|
<el-form-item>
|
|
<el-form-item>
|
|
- <el-select placeholder="审核状态" v-model="searchForm.checkFlag">
|
|
|
|
|
|
+ <el-select placeholder="审核状态" v-model="searchForm.checkFlag" clearable>
|
|
<el-option label="审核通过" :value="1"></el-option>
|
|
<el-option label="审核通过" :value="1"></el-option>
|
|
<el-option label="待审核" :value="2"></el-option>
|
|
<el-option label="待审核" :value="2"></el-option>
|
|
<el-option label="驳回" :value="0"></el-option>
|
|
<el-option label="驳回" :value="0"></el-option>
|
|
@@ -39,7 +44,7 @@
|
|
<el-button type="primary" plain round @click="reset">重置</el-button>
|
|
<el-button type="primary" plain round @click="reset">重置</el-button>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col :span="24" v-show="show">
|
|
|
|
|
|
+ <el-col :span="24">
|
|
<el-form-item>
|
|
<el-form-item>
|
|
<el-button
|
|
<el-button
|
|
type="primary"
|
|
type="primary"
|
|
@@ -47,16 +52,18 @@
|
|
round
|
|
round
|
|
icon="el-icon-plus"
|
|
icon="el-icon-plus"
|
|
@click="create"
|
|
@click="create"
|
|
|
|
+ v-show="!show"
|
|
>新建</el-button>
|
|
>新建</el-button>
|
|
<!-- <el-button type="primary" plain round @click="showBatch">批量展示</el-button> -->
|
|
<!-- <el-button type="primary" plain round @click="showBatch">批量展示</el-button> -->
|
|
<!-- <el-button type="primary" plain round @click="noshowBatch">批量关闭</el-button> -->
|
|
<!-- <el-button type="primary" plain round @click="noshowBatch">批量关闭</el-button> -->
|
|
- <el-button type="primary" plain round @click="putaway">批量启用</el-button>
|
|
|
|
- <el-button type="primary" plain round @click="soldOut">批量关闭</el-button>
|
|
|
|
|
|
+ <el-button type="primary" plain round @click="putaway" v-show="show">批量启用</el-button>
|
|
|
|
+ <el-button type="primary" plain round @click="soldOut" v-show="show">批量关闭</el-button>
|
|
<el-button
|
|
<el-button
|
|
type="primary"
|
|
type="primary"
|
|
plain
|
|
plain
|
|
round
|
|
round
|
|
@click="deleteData(ids, 'batch')"
|
|
@click="deleteData(ids, 'batch')"
|
|
|
|
+ v-show="show"
|
|
>批量删除</el-button>
|
|
>批量删除</el-button>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
@@ -104,22 +111,22 @@
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="descr" label="描述" :show-overflow-tooltip="true"></el-table-column>
|
|
<el-table-column prop="descr" label="描述" :show-overflow-tooltip="true"></el-table-column>
|
|
- <el-table-column prop="browseNum" label="浏览量">
|
|
|
|
|
|
+ <el-table-column prop="browseNum" label="浏览量" v-if="show">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<span>{{ scope.row.browseNum || 0 }}</span>
|
|
<span>{{ scope.row.browseNum || 0 }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column prop="favoriteNum" label="收藏量">
|
|
|
|
|
|
+ <el-table-column prop="favoriteNum" label="收藏量" v-if="show">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<span>{{ scope.row.favoriteNum || 0 }}</span>
|
|
<span>{{ scope.row.favoriteNum || 0 }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column prop="likeNum" label="点赞量">
|
|
|
|
|
|
+ <el-table-column prop="likeNum" label="点赞量" v-if="show">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<span>{{ scope.row.likeNum || 0 }}</span>
|
|
<span>{{ scope.row.likeNum || 0 }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column prop="payNum" label="打赏量">
|
|
|
|
|
|
+ <el-table-column prop="payNum" label="打赏量" v-if="show">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<span>{{ scope.row.payNum || 0 }}</span>
|
|
<span>{{ scope.row.payNum || 0 }}</span>
|
|
</template>
|
|
</template>
|
|
@@ -163,19 +170,26 @@
|
|
<el-table-column label="操作" min-width="220px;">
|
|
<el-table-column label="操作" min-width="220px;">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-button
|
|
<el-button
|
|
|
|
+ size="mini"
|
|
|
|
+ type="primary"
|
|
|
|
+ plain
|
|
|
|
+ round
|
|
|
|
+ @click="showDetailsDialog(scope.row)"
|
|
|
|
+ >详情</el-button>
|
|
|
|
+ <!-- <el-button
|
|
size="mini"
|
|
size="mini"
|
|
type="primary"
|
|
type="primary"
|
|
plain
|
|
plain
|
|
round
|
|
round
|
|
v-show="show"
|
|
v-show="show"
|
|
- @click="deleteData(scope.row.id)"
|
|
|
|
- >删除</el-button>
|
|
|
|
|
|
+ :disabled="scope.row.checkFlag === 1"
|
|
|
|
+ @click="edit(scope.row)"
|
|
|
|
+ >编辑</el-button> -->
|
|
<el-button
|
|
<el-button
|
|
size="mini"
|
|
size="mini"
|
|
type="primary"
|
|
type="primary"
|
|
plain
|
|
plain
|
|
round
|
|
round
|
|
- v-show="show"
|
|
|
|
:disabled="scope.row.checkFlag === 1"
|
|
:disabled="scope.row.checkFlag === 1"
|
|
@click="edit(scope.row)"
|
|
@click="edit(scope.row)"
|
|
>编辑</el-button>
|
|
>编辑</el-button>
|
|
@@ -184,8 +198,9 @@
|
|
type="primary"
|
|
type="primary"
|
|
plain
|
|
plain
|
|
round
|
|
round
|
|
- @click="showDetailsDialog(scope.row)"
|
|
|
|
- >详情</el-button>
|
|
|
|
|
|
+ v-show="show"
|
|
|
|
+ @click="deleteData(scope.row.id)"
|
|
|
|
+ >删除</el-button>
|
|
<el-button
|
|
<el-button
|
|
size="mini"
|
|
size="mini"
|
|
type="primary"
|
|
type="primary"
|
|
@@ -240,7 +255,7 @@ import {
|
|
noshowIndex,
|
|
noshowIndex,
|
|
examine,
|
|
examine,
|
|
} from '@/apps/mobile/api/school/index';
|
|
} from '@/apps/mobile/api/school/index';
|
|
-let that;
|
|
|
|
|
|
+
|
|
export default {
|
|
export default {
|
|
components: {
|
|
components: {
|
|
TitleBar,
|
|
TitleBar,
|
|
@@ -251,7 +266,9 @@ export default {
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
- searchForm: {},
|
|
|
|
|
|
+ searchForm: {
|
|
|
|
+ checkFlag: 1
|
|
|
|
+ },
|
|
tableData: [],
|
|
tableData: [],
|
|
page: {
|
|
page: {
|
|
pageNum: 1,
|
|
pageNum: 1,
|
|
@@ -296,6 +313,7 @@ export default {
|
|
let obj = {
|
|
let obj = {
|
|
...this.page,
|
|
...this.page,
|
|
...this.searchForm,
|
|
...this.searchForm,
|
|
|
|
+ // checkFlag: this.show ? this.searchForm.checkFlag : 2,
|
|
checkFlag: this.show ? this.searchForm.checkFlag : 2,
|
|
checkFlag: this.show ? this.searchForm.checkFlag : 2,
|
|
platform: 'web',
|
|
platform: 'web',
|
|
sort: {
|
|
sort: {
|
|
@@ -512,9 +530,6 @@ export default {
|
|
}
|
|
}
|
|
|
|
|
|
},
|
|
},
|
|
- beforeCreate() {
|
|
|
|
- that = this;
|
|
|
|
- },
|
|
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
<style lang="stylus" scoped>
|
|
<style lang="stylus" scoped>
|