|
|
@@ -36,16 +36,16 @@
|
|
|
<div class="rowHeight">
|
|
|
<!-- 未上线-->
|
|
|
<span class="readyTime" v-if="scope.row.Online == 0">
|
|
|
- {{scope.row.Name}}
|
|
|
+ {{scope.row.BeginDate}} - {{scope.row.EndDate}}
|
|
|
</span>
|
|
|
<!-- 已上线-->
|
|
|
<span class="CurTime" v-if="scope.row.Online == 1">
|
|
|
- {{scope.row.Name}}
|
|
|
+ {{scope.row.BeginDate}} - {{scope.row.EndDate}}
|
|
|
</span>
|
|
|
<!-- 当前进行-->
|
|
|
<i class="curIcon" v-if="scope.row.Status == 1 && scope.row.Online == 1"></i>
|
|
|
<span class="runTime" v-if="scope.row.Status == 2 && scope.row.Online == 1">
|
|
|
- {{scope.row.Name}}
|
|
|
+ {{scope.row.BeginDate}} - {{scope.row.EndDate}}
|
|
|
</span>
|
|
|
</div>
|
|
|
</template>
|
|
|
@@ -62,6 +62,23 @@
|
|
|
sortable
|
|
|
>
|
|
|
</el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ prop="Online"
|
|
|
+ label="是否上线"
|
|
|
+ >
|
|
|
+<!-- 上线状态 0:不上线 1:下线-->
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-switch
|
|
|
+ v-model="scope.row.Online"
|
|
|
+ :active-value="0"
|
|
|
+ :inactive-value="1"
|
|
|
+ active-color="#409EFF"
|
|
|
+ inactive-color="#D9D9D9"
|
|
|
+ @change=changeWechat($event,scope.row)
|
|
|
+ >
|
|
|
+ </el-switch>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column
|
|
|
prop="Status"
|
|
|
label="操作"
|
|
|
@@ -132,6 +149,8 @@
|
|
|
import Global from '../Global.js'
|
|
|
import {
|
|
|
STTBasicListQuery,
|
|
|
+ STTBasicOfflineEdit,
|
|
|
+ STTBasicStatusEdit,
|
|
|
testTable,
|
|
|
testSelect
|
|
|
} from "../api/getApiRes";
|
|
|
@@ -193,11 +212,11 @@
|
|
|
return false
|
|
|
}
|
|
|
|
|
|
- let detectorid = that.multipleSelection[0].Id;
|
|
|
+ let row = that.multipleSelection[0];
|
|
|
|
|
|
let param = {
|
|
|
token: localStorage.token,
|
|
|
- detectorid: detectorid,
|
|
|
+ stbId : row.StbId ,
|
|
|
status: 9,//0禁用1启用9删除
|
|
|
};
|
|
|
let postdata = qs.stringify(param);
|
|
|
@@ -207,12 +226,12 @@
|
|
|
cancelButtonText: '取消',
|
|
|
type: 'warning'
|
|
|
}).then(() => {
|
|
|
- testSelect(postdata).then(res => {
|
|
|
+ STTBasicStatusEdit(postdata).then(res => {
|
|
|
let json = res;
|
|
|
if (json.Code == 0) {
|
|
|
that.$message({
|
|
|
showClose: true,
|
|
|
- message: '选中的会员已删除!',
|
|
|
+ message: '选中的课程表已删除!',
|
|
|
type: 'success'
|
|
|
});
|
|
|
// 重载列表
|
|
|
@@ -451,21 +470,21 @@
|
|
|
let that = this;
|
|
|
return parseFloat(column).toFixed(2);
|
|
|
},
|
|
|
- // 微信可见与否
|
|
|
+ // 课程表上下线状态修改
|
|
|
changeWechat(e, row) {
|
|
|
let that = this;
|
|
|
let param = {
|
|
|
token: localStorage.token,
|
|
|
- id: row.id,//
|
|
|
- wxVisible: e,//
|
|
|
+ stbId : row.StbId,//
|
|
|
+ online : e,//
|
|
|
};
|
|
|
let postdata = qs.stringify(param);
|
|
|
- testTable(postdata).then(res => {
|
|
|
+ STTBasicOfflineEdit(postdata).then(res => {
|
|
|
let json = res;
|
|
|
if (json.Code == 0) {
|
|
|
that.$message({
|
|
|
showClose: true,
|
|
|
- message: '当前用户微信已' + json.Memo,
|
|
|
+ message: '当前课程表已' + json.Memo,
|
|
|
type: 'success'
|
|
|
});
|
|
|
// 重载列表
|
|
|
@@ -569,6 +588,8 @@
|
|
|
|
|
|
.readyTime {
|
|
|
width: 90%;
|
|
|
+ height: 30px;
|
|
|
+ line-height: 30px;
|
|
|
overflow: hidden;
|
|
|
display: block;
|
|
|
margin: 0 auto;
|
|
|
@@ -580,6 +601,8 @@
|
|
|
|
|
|
.CurTime {
|
|
|
width: 90%;
|
|
|
+ height: 27px;
|
|
|
+ line-height: 30px;
|
|
|
overflow: hidden;
|
|
|
display: block;
|
|
|
margin: 0 auto;
|
|
|
@@ -592,6 +615,8 @@
|
|
|
|
|
|
.runTime {
|
|
|
width: 90%;
|
|
|
+ height: 30px;
|
|
|
+ line-height: 30px;
|
|
|
overflow: hidden;
|
|
|
display: block;
|
|
|
margin: 0 auto;
|
|
|
@@ -604,8 +629,8 @@
|
|
|
|
|
|
.curIcon {
|
|
|
position: relative;
|
|
|
- left: 3px;
|
|
|
- top: -30px;
|
|
|
+ left: 4px;
|
|
|
+ top: -34px;
|
|
|
width: 24px;
|
|
|
height: 24px;
|
|
|
float: left;
|
|
|
@@ -613,7 +638,7 @@
|
|
|
background-size: 100% 100%;
|
|
|
}
|
|
|
.rowHeight {
|
|
|
- width: 180px;
|
|
|
+ width: 220px;
|
|
|
overflow: hidden;
|
|
|
display: block;
|
|
|
height: 35px;
|