|
|
@@ -51,7 +51,7 @@
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
<el-switch
|
|
|
- v-model="scope.row.ShopId"
|
|
|
+ v-model="scope.row.allUse"
|
|
|
:active-value="1"
|
|
|
:inactive-value="0"
|
|
|
active-color="#409EFF"
|
|
|
@@ -143,7 +143,7 @@
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
<el-dialog title="预览本周" :visible.sync="previewShow" width="1200px">
|
|
|
- <preview :preview-date="previewDate" :big-title="BigTitle" :small-title="smallTitle" ></preview>
|
|
|
+ <preview :preview-date="previewDate" :big-title="BigTitle" :small-title="smallTitle"></preview>
|
|
|
<div class="dialogFooter">
|
|
|
<el-button @click="previewShow = false" size="small">关闭</el-button>
|
|
|
</div>
|
|
|
@@ -221,7 +221,7 @@
|
|
|
that.smallTitle = ' ';
|
|
|
that.previewDate = json.Rs;
|
|
|
// 前台排序
|
|
|
- that.previewDate.SttPlanPreviewClassList.sort((a,b)=>a.ClassIndex-b.ClassIndex);//升序
|
|
|
+ that.previewDate.SttPlanPreviewClassList.sort((a, b) => a.ClassIndex - b.ClassIndex);//升序
|
|
|
that.previewShow = true;
|
|
|
} else {
|
|
|
that.$message.error(json.Memo);
|
|
|
@@ -230,13 +230,12 @@
|
|
|
},
|
|
|
// 通用修改
|
|
|
changeShopId(e, row) {
|
|
|
- console.log(e);
|
|
|
let that = this;
|
|
|
- let shopId = e == 1 ? localStorage.shopId : 0;
|
|
|
+ let shopId = !e ? 0 : 1;
|
|
|
let param = {
|
|
|
token: localStorage.token,
|
|
|
planId: row.PlanId,//
|
|
|
- shopId: shopId,//0:跨店课程,通用 >0: 本店特有课程,不通用
|
|
|
+ shopId: shopId,//跨店课程,通用 >0: 本店特有课程,不通用
|
|
|
};
|
|
|
let postdata = qs.stringify(param);
|
|
|
SttPlanBasicShopEdit(postdata).then(res => {
|
|
|
@@ -478,6 +477,9 @@
|
|
|
if (json.Code == 0) {
|
|
|
that.loading = false;
|
|
|
if (json.Rs) {
|
|
|
+ json.Rs.map(function (item) {
|
|
|
+ item.allUse = item.ShopId > 0 ? 1 :0
|
|
|
+ })
|
|
|
that.allTableData = json.Rs;
|
|
|
that.recordsTotal = json.Rs.length;
|
|
|
} else {
|