|
@@ -269,10 +269,6 @@
|
|
|
? scope.row[item.prop2]
|
|
|
: scope.row[item.prop1]
|
|
|
}}</span>
|
|
|
- <span v-else-if="item.scope === 'goodsInfos'">
|
|
|
- {{ scope.row[item.prop1] + "-" + scope.row[item.prop2] + "-"
|
|
|
- }}<span style="color: red">¥{{ scope.row[item.prop3] }}</span>
|
|
|
- </span>
|
|
|
<ul v-else-if="item.scope === 'mapTypes'" class="ulAuto">
|
|
|
<template v-for="(itm, inds) in scope.row[item.prop]">
|
|
|
<li :key="inds" v-if="inds === 0">
|
|
@@ -540,19 +536,6 @@
|
|
|
scope.row[item.prop3]
|
|
|
}}{{ scope.row[item.prop4] ? scope.row[item.prop4] : "" }}</span
|
|
|
>
|
|
|
- <span v-else-if="item.scope === 'statusActivity'">{{
|
|
|
- Number(scope.row[item.prop]) === 0
|
|
|
- ? "已删除"
|
|
|
- : Number(scope.row[item.prop]) === 1
|
|
|
- ? "已结束"
|
|
|
- : Number(scope.row[item.prop]) === 2
|
|
|
- ? "已撤回"
|
|
|
- : Number(scope.row[item.prop]) === 3
|
|
|
- ? "已开始"
|
|
|
- : Number(scope.row[item.prop]) === 4
|
|
|
- ? "未开始"
|
|
|
- : "未知"
|
|
|
- }}</span>
|
|
|
<span v-else-if="item.scope === 'sex'">
|
|
|
{{
|
|
|
scope.row[item.prop] == 1
|
|
@@ -976,6 +959,9 @@
|
|
|
: ""
|
|
|
}}
|
|
|
</div>
|
|
|
+ <div v-else-if="item.scope === 'solt'">
|
|
|
+ <slot :name="item.soltName" :scope="scope"></slot>
|
|
|
+ </div>
|
|
|
<div v-else>
|
|
|
{{ scope.row[item.prop] }}
|
|
|
{{
|
|
@@ -1122,41 +1108,6 @@
|
|
|
<el-button @click="isShowBoxs = false">取 消</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
- <el-dialog
|
|
|
- :visible.sync="isShowBoxRebuy"
|
|
|
- width="600px"
|
|
|
- :show-close="false"
|
|
|
- :close-on-click-modal="false"
|
|
|
- >
|
|
|
- <div slot="title" class="hearders">
|
|
|
- <div class="leftTitle">复购-学时冲突提示</div>
|
|
|
- <div class="rightBoxs">
|
|
|
- <img
|
|
|
- src="@/assets/images/Close@2x.png"
|
|
|
- alt=""
|
|
|
- @click="isShowBoxRebuy = false"
|
|
|
- />
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div style="max-height: 400px; overflow: auto">
|
|
|
- <ul>
|
|
|
- <li
|
|
|
- v-for="(item, index) in rebuyInfos"
|
|
|
- :key="index"
|
|
|
- style="margin-bottom: 10px"
|
|
|
- >
|
|
|
- 学员曾购买过此商品【<span style="color: red"
|
|
|
- >{{ item.orderSn }} - {{ item.goodsName }}</span
|
|
|
- >】,所在班级【{{
|
|
|
- item.gradeName
|
|
|
- }}】的【官方学时推送状态为:是】,如为重复申报学时请及时联系学员并关闭订单。
|
|
|
- </li>
|
|
|
- </ul>
|
|
|
- </div>
|
|
|
- <span slot="footer" class="dialog-footer">
|
|
|
- <el-button @click="isShowBoxRebuy = false">取 消</el-button>
|
|
|
- </span>
|
|
|
- </el-dialog>
|
|
|
<el-dialog
|
|
|
:visible.sync="diaviosTKOpen"
|
|
|
width="560px"
|
|
@@ -1187,65 +1138,6 @@
|
|
|
<el-button @click="diaviosTKOpen = false">取 消</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
- <el-dialog
|
|
|
- :visible.sync="goosListBoxs"
|
|
|
- width="560px"
|
|
|
- :show-close="false"
|
|
|
- :close-on-click-modal="false"
|
|
|
- >
|
|
|
- <div slot="title" class="hearders">
|
|
|
- <div class="leftTitle">所购商品</div>
|
|
|
- <div class="rightBoxs">
|
|
|
- <img
|
|
|
- src="@/assets/images/Close@2x.png"
|
|
|
- alt=""
|
|
|
- @click="goosListBoxs = false"
|
|
|
- />
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div>
|
|
|
- <div class="zdyBoxStyle">
|
|
|
- <div
|
|
|
- class="zdyBtnstyle"
|
|
|
- style="margin-right: 20px"
|
|
|
- :class="goodsActiveIndex === 1 ? 'goodsActiveStyle' : ''"
|
|
|
- @click="getGoodsAboutList(1)"
|
|
|
- >
|
|
|
- 视频商品
|
|
|
- </div>
|
|
|
- <div
|
|
|
- class="zdyBtnstyle"
|
|
|
- style="margin-right: 20px"
|
|
|
- :class="goodsActiveIndex === 2 ? 'goodsActiveStyle' : ''"
|
|
|
- @click="getGoodsAboutList(2)"
|
|
|
- >
|
|
|
- 题库商品
|
|
|
- </div>
|
|
|
- <div
|
|
|
- class="zdyBtnstyle"
|
|
|
- :class="goodsActiveIndex === 6 ? 'goodsActiveStyle' : ''"
|
|
|
- @click="getGoodsAboutList(6)"
|
|
|
- >
|
|
|
- 直播商品
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <ul class="overBoxs" v-if="goodsList.length">
|
|
|
- <li v-for="(item, index) in goodsList" :key="index" class="liSYTS">
|
|
|
- <div style="margin-bottom: 10px">
|
|
|
- 支付时间:{{ $methodsTools.onlyForma(item.createTime) }}
|
|
|
- </div>
|
|
|
- <div style="margin-bottom: 10px">商品编码:{{ item.code }}</div>
|
|
|
- <div>商品名称:{{ item.goodsName }}</div>
|
|
|
- </li>
|
|
|
- </ul>
|
|
|
- <div v-else style="text-align: center; margin-top: 20px">
|
|
|
- 暂无相关商品
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <span slot="footer" class="dialog-footer">
|
|
|
- <el-button @click="goosListBoxs = false">取 消</el-button>
|
|
|
- </span>
|
|
|
- </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -1268,10 +1160,6 @@ export default {
|
|
|
diaviosOpen: false,
|
|
|
diaviosTKOpen: false,
|
|
|
dialogVisible: false,
|
|
|
- goosListBoxs: false,
|
|
|
- goodsActiveIndex: 1,
|
|
|
- goodsList: [],
|
|
|
- rebuyInfos: [],
|
|
|
tableSet: this.tableSets,
|
|
|
allCheckData: [], //表格多选
|
|
|
checkAll: true,
|
|
@@ -1281,7 +1169,6 @@ export default {
|
|
|
videoUrls: "",
|
|
|
diaBox: false,
|
|
|
isShowBoxs: false,
|
|
|
- isShowBoxRebuy: false,
|
|
|
listBoxsGET: [],
|
|
|
props: {
|
|
|
label(data, node) {
|
|
@@ -1384,30 +1271,6 @@ export default {
|
|
|
this.allCheckData = [];
|
|
|
this.$refs.pagerset.clearSelection();
|
|
|
},
|
|
|
- /**
|
|
|
- * @param {Array} 学员数据— 学员管理-所购商品
|
|
|
- */
|
|
|
- openGoodsListBoxs(option, int) {
|
|
|
- this.goosListBoxs = true;
|
|
|
- this.copyUserInfo = option;
|
|
|
- this.$api
|
|
|
- .inquireOrderList({ goodsType: int, userId: option.userId })
|
|
|
- .then((res) => {
|
|
|
- this.goodsActiveIndex = int;
|
|
|
- this.goodsList = res.rows;
|
|
|
- });
|
|
|
- },
|
|
|
- /**
|
|
|
- * 点击商品类型切换请求新数据
|
|
|
- */
|
|
|
- getGoodsAboutList(int) {
|
|
|
- this.$api
|
|
|
- .inquireOrderList({ goodsType: int, userId: this.copyUserInfo.userId })
|
|
|
- .then((res) => {
|
|
|
- this.goodsActiveIndex = int;
|
|
|
- this.goodsList = res.rows;
|
|
|
- });
|
|
|
- },
|
|
|
isShowBoxsFun(item) {
|
|
|
this.$api.inquireuserUpdateListsy({ userId: item.userId }).then((res) => {
|
|
|
this.listBoxsGET = res.rows;
|
|
@@ -1417,24 +1280,9 @@ export default {
|
|
|
// .then((result) => {});
|
|
|
});
|
|
|
},
|
|
|
- openDialog(row){
|
|
|
+ openDialog(row) {
|
|
|
this.$emit("openDialog", row);
|
|
|
},
|
|
|
- /**
|
|
|
- * 查看复购信息
|
|
|
- */
|
|
|
- isShowRebuy(item) {
|
|
|
- this.$api
|
|
|
- .inquireOrderRebuyInfo({
|
|
|
- orderGoodsId: item.orderGoodsId,
|
|
|
- userId: item.userId,
|
|
|
- goodsId: item.goodsId,
|
|
|
- })
|
|
|
- .then((res) => {
|
|
|
- this.rebuyInfos = res.rows;
|
|
|
- this.isShowBoxRebuy = true;
|
|
|
- });
|
|
|
- },
|
|
|
sortMethods(a, b) {
|
|
|
if (a.classGradeUserGoodsVoList && b.classGradeUserGoodsVoList) {
|
|
|
return a.classGradeUserGoodsVoList.length >
|