|
|
@@ -1,11 +1,10 @@
|
|
|
<template>
|
|
|
<div class="context">
|
|
|
<div class="panel">
|
|
|
- <h5>课程管理
|
|
|
- </h5>
|
|
|
+ <h5>课程管理</h5>
|
|
|
<div class="likeTab">
|
|
|
<el-button type="primary" @click="goType('classManage')" size="mini">当前课程</el-button>
|
|
|
- <el-button type="" @click="goType('classHistory')" size="mini">历史记录</el-button>
|
|
|
+ <el-button @click="goType('classHistory')" size="mini">历史记录</el-button>
|
|
|
</div>
|
|
|
<div class="panel-body">
|
|
|
<div class="panel_control">
|
|
|
@@ -27,75 +26,72 @@
|
|
|
<div class="table">
|
|
|
<el-table :data="tableData" border is-horizontal-resize :default-sort="{prop: 'date', order: 'descending'}"
|
|
|
element-loading-background="rgba(0, 0, 0, 0.8)" class="" @selection-change="handleSelectionChange">
|
|
|
- >
|
|
|
<el-table-column label="序号" type="index" width="50" align="center" fixed>
|
|
|
<template scope="scope">
|
|
|
<span>{{ (start) + scope.$index + 1 }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="BeginTime" label="上课时间" width="160" :formatter="filterFmtDate" fixed>
|
|
|
+ <el-table-column prop="begin_time" label="上课时间" width="160" :formatter="filterFmtDate" fixed>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="ClassName" label="课程" sortable width="120" fixed>
|
|
|
+ <el-table-column prop="class_name" label="课程" sortable width="120" fixed>
|
|
|
<template slot-scope="scope">
|
|
|
<span class="lessonSpan"
|
|
|
- :style="{background:scope.row.ClassColor}">{{ scope.row.ClassName }}</span>
|
|
|
+ :style="{background:scope.row.ClassColor}">{{ scope.row.class_name }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="ConsumeHour" label="消耗课时" width="110" sortable>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="OrderNum" label="实际预约" width="110" sortable>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="SvName" label="区域" width="110" sortable>
|
|
|
+ <el-table-column prop="course_type" label="课程类型" width="110" sortable>
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span v-if="scope.row.course_type == 1">室内课</span>
|
|
|
+ <span v-if="scope.row.course_type == 2">户外课</span>
|
|
|
+ <span v-if="scope.row.course_type == 3">线上课</span>
|
|
|
+ <span v-if="scope.row.course_type == 4">混合课</span>
|
|
|
+ </template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="WxOrder" label="预约状态" width="110" sortable>
|
|
|
+ <el-table-column prop="class_type" label="上课方式" width="110" sortable>
|
|
|
<template slot-scope="scope">
|
|
|
- <span v-if="scope.row.WxOrder == 1" style="color: yellowgreen">可约</span>
|
|
|
- <span v-if="scope.row.WxOrder == 0" style="color: red">不可约</span>
|
|
|
+ <span v-if="scope.row.class_type == 1">团课</span>
|
|
|
+ <span v-if="scope.row.class_type == 3">私教</span>
|
|
|
+ <span v-if="scope.row.class_type == 2 && scope.row.PkNum == 2">两队PK</span>
|
|
|
+ <span v-if="scope.row.class_type == 2 && scope.row.PkNum == 3">三队PK</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="ClassType" label="课程类型" width="110" sortable>
|
|
|
+ <el-table-column prop="sv_name" label="区域" width="110" sortable/>
|
|
|
+ <el-table-column prop="consume_hour" label="消耗课时" width="110" sortable/>
|
|
|
+ <el-table-column prop="order_num" label="实际预约" width="110" sortable/>
|
|
|
+ <el-table-column prop="wx_order" label="预约状态" width="110" sortable>
|
|
|
<template slot-scope="scope">
|
|
|
- <span v-if="scope.row.ClassType == 1">团课</span>
|
|
|
- <span v-if="scope.row.ClassType == 3">私教</span>
|
|
|
- <span v-if="scope.row.ClassType == 2 && scope.row.PkNum == 2">两队PK</span>
|
|
|
- <span v-if="scope.row.ClassType == 2 && scope.row.PkNum == 3">三队PK</span>
|
|
|
+ <span v-if="scope.row.wx_order == 1" style="color: yellowgreen">可约</span>
|
|
|
+ <span v-if="scope.row.wx_order == 0" style="color: red">不可约</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="FinishClass" label="当前状态" width="110" sortable>
|
|
|
+ <el-table-column prop="finish_class" label="当前状态" width="110" sortable>
|
|
|
<template slot-scope="scope">
|
|
|
- <span v-if="scope.row.FinishClass == 0" style="color: red">未上课</span>
|
|
|
- <span v-if="scope.row.FinishClass == 1">已下课</span>
|
|
|
- <span v-if="scope.row.FinishClass == 2" style="color: yellowgreen">已上课</span>
|
|
|
- <span v-if="scope.row.FinishClass == 3">准备上课</span>
|
|
|
- <span v-if="scope.row.FinishClass == 4">已完成</span>
|
|
|
+ <span v-if="scope.row.finish_class == 0" style="color: red">未上课</span>
|
|
|
+ <span v-if="scope.row.finish_class == 1">已下课</span>
|
|
|
+ <span v-if="scope.row.finish_class == 2" style="color: yellowgreen">已上课</span>
|
|
|
+ <span v-if="scope.row.finish_class == 3">准备上课</span>
|
|
|
+ <span v-if="scope.row.finish_class == 4">已完成</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="Status" label="操作">
|
|
|
<template slot-scope="scope">
|
|
|
- <!--<el-button type="primary" round size="mini" @click="checkClassOverPrepare(scope.row)">-->
|
|
|
- <!--下课-->
|
|
|
- <!--</el-button>-->
|
|
|
- <el-button type="primary" round size="mini" v-if="scope.row.FinishClass == 0"
|
|
|
- @click="showDialogMemberVisible(scope.row)">
|
|
|
- 上课
|
|
|
+ <el-button type="primary" round size="mini" v-if="scope.row.finish_class == 0"
|
|
|
+ @click="showDialogClassOn(scope.row)"> 上课
|
|
|
</el-button>
|
|
|
- <!--<el-button type="danger" round size="mini" v-if="scope.row.FinishClass == 0"-->
|
|
|
- <!--@click="closeLesson(scope.row)">-->
|
|
|
- <!--关课-->
|
|
|
- <!--</el-button>-->
|
|
|
<el-button type="primary" round size="mini"
|
|
|
- v-if="scope.row.FinishClass == 3 || scope.row.FinishClass == 2" @click="seeEdit(scope.row)">
|
|
|
+ v-if="scope.row.finish_class == 3 || scope.row.finish_class == 2"
|
|
|
+ @click="classManage(scope.row)">
|
|
|
管理
|
|
|
</el-button>
|
|
|
<!--修改区域 todo-->
|
|
|
- <el-button type="primary" round plain size="mini" v-if="scope.row.FinishClass == 3"
|
|
|
- @click="changeShopVenue(scope.row)">
|
|
|
+ <el-button type="primary" round plain size="mini" v-if="scope.row.finish_class == 3"
|
|
|
+ @click="classEdit(scope.row)">
|
|
|
编辑
|
|
|
</el-button>
|
|
|
<!--已完成才能看详情-->
|
|
|
<el-button type="primary" round plain size="mini"
|
|
|
- v-if="scope.row.FinishClass == 1 || scope.row.FinishClass == 4"
|
|
|
- @click="seeDetail(scope.row)">
|
|
|
+ v-if="scope.row.finish_class == 1 || scope.row.finish_class == 4"
|
|
|
+ @click="classDetail(scope.row)">
|
|
|
详情
|
|
|
</el-button>
|
|
|
|
|
|
@@ -106,11 +102,50 @@
|
|
|
<el-pagination background :total="pagination.total" :page-size="pagination.pageItem"
|
|
|
@current-change="pageChange" :current-page.sync="cur_page"></el-pagination>
|
|
|
</div>
|
|
|
- <el-dialog :title="dialogTitle" :visible.sync="dialogMemberVisible" width="650px">
|
|
|
+ <el-dialog :title="dialogTitle" :visible.sync="dialogClassPrepareVisible" width="650px">
|
|
|
<div class="dialogContent">
|
|
|
<h5 class="classNames">{{ className }}</h5>
|
|
|
<div class="">
|
|
|
<el-form ref="form" :model="form" label-width="160px">
|
|
|
+ <!--选教练,非必选-->
|
|
|
+ <el-form-item label="上课教练">
|
|
|
+ <el-select v-model="coachValue" filterable placeholder="请选择">
|
|
|
+ <el-option v-for="item in form.coachData" :key="item.key" :label="item.label"
|
|
|
+ :value="item.value">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <!--课程类型-->
|
|
|
+ <el-form-item label="课程类型" :required="true">
|
|
|
+ <el-select v-model="form.courseType" filterable placeholder="请选择">
|
|
|
+ <el-option v-for="item in form.courseTypeOptions" :key="item.value" :label="item.label"
|
|
|
+ :value="item.value">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <!--是否是心率课-->
|
|
|
+ <el-form-item align="left">
|
|
|
+ <span style="margin-left: -60px">
|
|
|
+ 心率课
|
|
|
+ <el-switch
|
|
|
+ style="margin-left: 30px"
|
|
|
+ v-model="form.IsHr"
|
|
|
+ active-color="#13ce66"
|
|
|
+ inactive-color="#ff4949">
|
|
|
+ </el-switch>
|
|
|
+ </span>
|
|
|
+ <span style="margin-left: 50px">
|
|
|
+ 评分课
|
|
|
+ <el-switch
|
|
|
+ style="margin-left: 30px"
|
|
|
+ v-model="form.IsScore"
|
|
|
+ active-color="#13ce66"
|
|
|
+ inactive-color="#ff4949">
|
|
|
+ </el-switch>
|
|
|
+ </span>
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
+ <!--选择区域-->
|
|
|
<el-form-item label="区域" :required="true">
|
|
|
<el-select v-model="form.svId" filterable placeholder="请选择" @change="changeLocationValue">
|
|
|
<el-option v-for="item in form.svList" :key="item.SvId" :label="item.Name"
|
|
|
@@ -118,30 +153,31 @@
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="类型" :required="true">
|
|
|
+ <!--显示设备-->
|
|
|
+ <el-form-item label="显示设备">
|
|
|
+ <el-checkbox-group v-model="form.equipList">
|
|
|
+ <el-checkbox label="复选框 A"></el-checkbox>
|
|
|
+ <el-checkbox label="复选框 B"></el-checkbox>
|
|
|
+ <el-checkbox label="复选框 C"></el-checkbox>
|
|
|
+ </el-checkbox-group>
|
|
|
+ </el-form-item>
|
|
|
+ <!--上课方式-->
|
|
|
+ <el-form-item label="上课方式" :required="true">
|
|
|
<el-select v-model="form.classType" filterable placeholder="请选择">
|
|
|
- <el-option v-for="item in form.ClassTypeOptions" :key="item.value" :label="item.label"
|
|
|
+ <el-option v-for="item in form.classTypeOptions" :key="item.value" :label="item.label"
|
|
|
:value="item.value">
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="组队方式" v-if="form.classType == 2">
|
|
|
+ <!--分队方式-->
|
|
|
+ <el-form-item label="分队方式" v-if="form.classLabel == 2">
|
|
|
<el-select v-model="form.pkNum" filterable placeholder="请选择">
|
|
|
<el-option v-for="item in form.PKTypeOptions" :key="item.value" :label="item.label"
|
|
|
:value="item.value">
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <!--选教练,非必选-->
|
|
|
- <el-form-item label="上课教练">
|
|
|
- <!--<el-transfer filterable v-model="dialogCoachValue" :data="form.dialogCoachData"-->
|
|
|
- <!--:titles="['教练列表', '已添加教练']"></el-transfer>-->
|
|
|
- <el-select v-model="dialogCoachValue" filterable placeholder="请选择">
|
|
|
- <el-option v-for="item in form.dialogCoachData" :key="item.key" :label="item.label"
|
|
|
- :value="item.value">
|
|
|
- </el-option>
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
+
|
|
|
</el-form>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -152,7 +188,7 @@
|
|
|
<el-button type="primary" size="small" v-if="form.btnType == 1" @click="getClassStartPrepareForEdit()">
|
|
|
确定
|
|
|
</el-button>
|
|
|
- <el-button size="small" @click="dialogMemberVisible = false">取消</el-button>
|
|
|
+ <el-button size="small" @click="dialogClassPrepareVisible = false">取消</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
</div>
|
|
|
@@ -176,11 +212,11 @@ let qs = require('qs');
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
- dialogMemberVisible: false,
|
|
|
+ dialogClassPrepareVisible: false,
|
|
|
searchBtnStatus: false,
|
|
|
PrepareBtnStatus: false,
|
|
|
dialogTitle: '上课准备',
|
|
|
- dialogCoachValue: [],
|
|
|
+ coachValue: [],
|
|
|
className: '',
|
|
|
current: getNowDate(),
|
|
|
dialogValue: [],
|
|
|
@@ -209,25 +245,34 @@ export default {
|
|
|
pageIndex: 1,
|
|
|
},
|
|
|
form: {
|
|
|
- name: '',
|
|
|
svId: '',
|
|
|
StdId: '',
|
|
|
+ IsHr: 1,
|
|
|
+ IsScore: 1,
|
|
|
svName: '',
|
|
|
- classType: 1,
|
|
|
+ equipList: ['选中且禁用', '复选框 A'],
|
|
|
+ classType: 1,//课程类型
|
|
|
+ courseType: 1,//课程标签
|
|
|
coach: '',
|
|
|
coachOptions: [],
|
|
|
pkNum: 2,
|
|
|
btnType: 0,//0新建,1编辑
|
|
|
svList: [],//区域列表
|
|
|
- dialogCoachData: [],//穿梭已选
|
|
|
- ClassTypeOptions: [
|
|
|
+ coachData: [],//穿梭已选
|
|
|
+ courseTypeOptions: [
|
|
|
+ {value: 1, label: '室内课'},
|
|
|
+ {value: 2, label: '户外课'},
|
|
|
+ {value: 3, label: '线上课'},
|
|
|
+ {value: 4, label: '混合课'}
|
|
|
+ ],
|
|
|
+ classTypeOptions: [
|
|
|
{value: 1, label: '团课'},
|
|
|
{value: 2, label: '竞技PK'},
|
|
|
- {value: 3, label: '私教'},
|
|
|
+ {value: 3, label: '私教课'}
|
|
|
],
|
|
|
PKTypeOptions: [
|
|
|
{value: 2, label: '2队PK'},
|
|
|
- {value: 3, label: '3队PK'},
|
|
|
+ {value: 3, label: '3队PK'}
|
|
|
],
|
|
|
},
|
|
|
tableData: []
|
|
|
@@ -241,17 +286,17 @@ export default {
|
|
|
this.$router.push({path: '/' + url});
|
|
|
},
|
|
|
// 更改上课区域
|
|
|
- changeShopVenue(row) {
|
|
|
- this.dialogMemberVisible = true;
|
|
|
+ classEdit(row) {
|
|
|
+ this.dialogClassPrepareVisible = true;
|
|
|
this.form.btnType = 1;//0新建,1编辑
|
|
|
// 读取本行信息
|
|
|
- this.dialogMemberVisible = true;
|
|
|
- this.className = row.ClassName + ' ' + row.BeginStr + ' - ' + row.EndStr;
|
|
|
- this.form.StdId = row.StdId;
|
|
|
+ this.className = row.class_name + ' ' + row.begin_str + ' - ' + row.end_str;
|
|
|
+ this.form.StdId = row.std_id;
|
|
|
this.getQueryShopVenue();
|
|
|
- this.form.svId = row.SvId;
|
|
|
- this.form.classType = row.ClassType;
|
|
|
- this.form.pkNum = row.PkNum;
|
|
|
+ this.form.svId = row.sv_id;
|
|
|
+ this.form.classType = row.class_type;
|
|
|
+ this.form.courseType = row.course_type;
|
|
|
+ this.form.pkNum = row.pk_num;
|
|
|
},
|
|
|
// 准备上课
|
|
|
getClassStartPrepare() {
|
|
|
@@ -263,7 +308,7 @@ export default {
|
|
|
that.PrepareBtnStatus = true;
|
|
|
// 不是竞技pk的时候为0
|
|
|
let uppkNum = that.form.classType == 2 ? that.form.pkNum : 0;
|
|
|
- let tid = that.dialogCoachValue.toString();
|
|
|
+ let tid = that.coachValue.toString();
|
|
|
let param = {
|
|
|
token: localStorage.token,
|
|
|
stdId: that.form.StdId,
|
|
|
@@ -299,7 +344,7 @@ export default {
|
|
|
PkNum: uppkNum,
|
|
|
}
|
|
|
});
|
|
|
- that.dialogMemberVisible = false;
|
|
|
+ that.dialogClassPrepareVisible = false;
|
|
|
this.getTableQuery();
|
|
|
|
|
|
} else {
|
|
|
@@ -330,33 +375,33 @@ export default {
|
|
|
let json = res;
|
|
|
if (json.Code == 0) {
|
|
|
// NewId: 0
|
|
|
- that.dialogMemberVisible = false;
|
|
|
+ that.dialogClassPrepareVisible = false;
|
|
|
this.getTableQuery();
|
|
|
} else {
|
|
|
that.$message.error(json.Memo + ' 错误码:' + json.Code);
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- seeDetail(row) {
|
|
|
+ classDetail(row) {
|
|
|
this.$router.push({
|
|
|
path: '/classInfoDetail', query: {
|
|
|
- StdId: row.StdId,
|
|
|
- ClassName: row.ClassName,
|
|
|
- BeginStr: row.BeginStr,
|
|
|
- EndStr: row.EndStr,
|
|
|
+ StdId: row.std_id,
|
|
|
+ ClassName: row.class_name,
|
|
|
+ BeginStr: row.begin_str,
|
|
|
+ EndStr: row.end_str,
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
- seeEdit(row) {
|
|
|
+ classManage(row) {
|
|
|
this.$router.push({
|
|
|
path: '/classEdit', query: {
|
|
|
- StdId: row.StdId,
|
|
|
- ClassName: row.ClassName,
|
|
|
- BeginStr: row.BeginStr,
|
|
|
- EndStr: row.EndStr,
|
|
|
- FinishClass: row.FinishClass,
|
|
|
- ClassType: row.ClassType,
|
|
|
- PkNum: row.PkNum,
|
|
|
+ StdId: row.std_id,
|
|
|
+ ClassName: row.class_name,
|
|
|
+ BeginStr: row.begin_str,
|
|
|
+ EndStr: row.end_str,
|
|
|
+ FinishClass: row.finish_class,
|
|
|
+ ClassType: row.class_type,
|
|
|
+ PkNum: row.pk_num,
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
@@ -450,24 +495,22 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- showDialogMemberVisible(row) {
|
|
|
- this.dialogMemberVisible = true;
|
|
|
+ //上课按钮弹出框
|
|
|
+ showDialogClassOn(row) {
|
|
|
+ this.dialogClassPrepareVisible = true;
|
|
|
this.form.btnType = 0;//0新建,1编辑编辑
|
|
|
// clear
|
|
|
this.form.svList = "";
|
|
|
- this.form.classType = 1;
|
|
|
- this.form.pkNum = 2;
|
|
|
-
|
|
|
- this.form.StdId = row.StdId;
|
|
|
- this.form.ClassName = row.ClassName;
|
|
|
- this.form.BeginStr = row.BeginStr;
|
|
|
- this.form.EndStr = row.EndStr;
|
|
|
- this.form.FinishClass = row.FinishClass;
|
|
|
- this.form.ClassType = row.ClassType;
|
|
|
- this.form.PkNum = row.PkNum;
|
|
|
-
|
|
|
- this.className = row.ClassName + ' ' + row.BeginStr + ' - ' + row.EndStr;
|
|
|
- this.form.StdId = row.StdId;
|
|
|
+ this.form.StdId = row.std_id;
|
|
|
+ this.form.ClassName = row.class_name;
|
|
|
+ this.form.BeginStr = row.begin_str;
|
|
|
+ this.form.EndStr = row.end_str;
|
|
|
+ this.form.FinishClass = row.finish_class;
|
|
|
+ this.form.ClassType = row.class_type;
|
|
|
+ this.form.courseType = row.course_type;
|
|
|
+ this.form.PkNum = row.pk_num;
|
|
|
+ this.className = row.class_name + ' ' + row.begin_str + ' - ' + row.end_str;
|
|
|
+ this.form.StdId = row.std_id;
|
|
|
this.getCoachOption();
|
|
|
this.getQueryShopVenue();
|
|
|
},
|
|
|
@@ -487,7 +530,7 @@ export default {
|
|
|
ShopManagerListQuery(postdata).then(res => {
|
|
|
let json = res;
|
|
|
if (json.Code == 0) {
|
|
|
- that.form.dialogCoachData = turnResToOptionByUsers(json.Rs);
|
|
|
+ that.form.coachData = turnResToOptionByUsers(json.Rs);
|
|
|
} else {
|
|
|
that.$message.error(json.Memo + ' 错误码:' + json.Code);
|
|
|
}
|
|
|
@@ -499,7 +542,7 @@ export default {
|
|
|
let that = this;
|
|
|
let param = {
|
|
|
token: localStorage.token,
|
|
|
- stdId: row.StdId,
|
|
|
+ stdId: row.std_id,
|
|
|
};
|
|
|
let postdata = qs.stringify(param);
|
|
|
ClassOverPrepare(postdata).then(res => {
|
|
|
@@ -514,10 +557,10 @@ export default {
|
|
|
goFinish(row) {
|
|
|
this.$router.push({
|
|
|
path: '/classFinishDetail', query: {
|
|
|
- id: row.StdId,
|
|
|
+ id: row.std_id,
|
|
|
classId: row.ClassId,
|
|
|
- ClassName: row.ClassName,
|
|
|
- BeginTime: row.BeginTime,
|
|
|
+ ClassName: row.class_name,
|
|
|
+ BeginTime: row.begin_time,
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
@@ -552,11 +595,10 @@ export default {
|
|
|
bt: nonTfmtDatetoLength(that.panel.timeScope[0], 10) + " 00:00:00",
|
|
|
et: nonTfmtDatetoLength(that.panel.timeScope[1], 10) + " 23:59:59",
|
|
|
fcStatus: 1,// 0:历史记录(对应finishClass 10,4组合 ) 1:上课中
|
|
|
- courseType:-99,//-99是全部 1:室内课 2:户外课 3:线上课 4:混合课
|
|
|
+ courseType: -99,//-99是全部 1:室内课 2:户外课 3:线上课 4:混合课
|
|
|
start: that.start,
|
|
|
tableMax: that.pagination.pageItem
|
|
|
};
|
|
|
-
|
|
|
let paraRequest = new StandardRequest();
|
|
|
paraRequest.setShopid(localStorage.shopId);
|
|
|
paraRequest.setJsonstr(JSON.stringify(jsonStr));
|
|
|
@@ -569,10 +611,10 @@ export default {
|
|
|
let res = JSON.parse(StandardReply);
|
|
|
if (res.code === 0) {
|
|
|
that.loading = false;
|
|
|
- if(res.rs){
|
|
|
+ if (res.rs) {
|
|
|
that.allTableData = res.rs;
|
|
|
that.recordsTotal = res.rs.length;
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
that.allTableData = [];
|
|
|
that.recordsTotal = 0;
|
|
|
}
|