|
|
@@ -100,14 +100,6 @@
|
|
|
@change="changeColor(scope.row.ClassSelf.ClassColor,scope.row.ClassSelf)"></el-color-picker>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="ClassSelf.CreatedAt"
|
|
|
- label="创建时间"
|
|
|
- width="210"
|
|
|
- :formatter="filterFmtDate"
|
|
|
- sortable
|
|
|
- >
|
|
|
- </el-table-column>
|
|
|
<el-table-column
|
|
|
prop="ClassSelf.Memo"
|
|
|
label="备注">
|
|
|
@@ -197,7 +189,8 @@
|
|
|
<div class="pull-right">
|
|
|
<el-form ref="form" :model="form" label-width="160px">
|
|
|
<el-form-item label="课程会员人数">
|
|
|
- <el-transfer filterable v-model="form.dialogValue" :data="form.dialogdata"></el-transfer>
|
|
|
+ <el-transfer filterable v-model="form.dialogValue" :data="form.dialogdata"
|
|
|
+ :titles="['全部会员','已选会员']"></el-transfer>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
</div>
|
|
|
@@ -219,7 +212,7 @@
|
|
|
:titles="['会员列表', '已添加会员']"></el-transfer>
|
|
|
</div>
|
|
|
<div class="dialogFooter">
|
|
|
- <el-button type="primary" size="small">确定</el-button>
|
|
|
+ <el-button type="primary" size="small" @click="cofirmClassVipuserEdit">确定</el-button>
|
|
|
<el-button @click=" dialogVisible = false" size="small">取消</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
@@ -251,6 +244,7 @@
|
|
|
VipUserListQuery,
|
|
|
ClassVisibleStatusEdit,
|
|
|
ClassVipuserQuery,
|
|
|
+ ClassVipuserEdit,
|
|
|
testTable,
|
|
|
testSelect
|
|
|
} from "../api/getApiRes";
|
|
|
@@ -322,6 +316,31 @@
|
|
|
this.getTableQuery();
|
|
|
},
|
|
|
methods: {
|
|
|
+ // 课程会员增删
|
|
|
+ cofirmClassVipuserEdit() {
|
|
|
+ let that = this;
|
|
|
+ let userlist = that.dialogValue.toString();
|
|
|
+ let param = {
|
|
|
+ token: localStorage.token,
|
|
|
+ classId: this.form.classId,
|
|
|
+ userlist: userlist,
|
|
|
+ };
|
|
|
+ let postdata = qs.stringify(param);
|
|
|
+ ClassVipuserEdit(postdata).then(res => {
|
|
|
+ let json = res;
|
|
|
+ if (json.Code == 0) {
|
|
|
+ that.$message({
|
|
|
+ showClose: true,
|
|
|
+ message: '接口修改成功!',
|
|
|
+ type: 'success'
|
|
|
+ });
|
|
|
+ that.dialogVisible = false
|
|
|
+ that.getTableQuery();
|
|
|
+ } else {
|
|
|
+ that.$message.error(json.Memo);
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
// 确认添加课程
|
|
|
confirmAddLesson() {
|
|
|
let that = this;
|
|
|
@@ -342,7 +361,7 @@
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- let teacherId = that.form.dialogValue.toString();
|
|
|
+ let userlist = that.form.dialogValue.toString();
|
|
|
let param = {
|
|
|
token: localStorage.token,
|
|
|
shopId: localStorage.shopId,
|
|
|
@@ -352,8 +371,8 @@
|
|
|
classType: that.form.classType,
|
|
|
wxVisible: that.form.wxVisible,
|
|
|
classColor: that.form.ClassColor,
|
|
|
- userlist: '',
|
|
|
- teacherId: teacherId,
|
|
|
+ userlist: userlist,
|
|
|
+ teacherId: 0,//预留
|
|
|
memo: that.form.Memo,
|
|
|
};
|
|
|
let postdata = qs.stringify(param);
|
|
|
@@ -534,7 +553,7 @@
|
|
|
let json = res;
|
|
|
if (json.Code == 0) {
|
|
|
// that.dialogdata = json.Rs;
|
|
|
- that.form.dialogdata = turnResToOption(json.Rs)
|
|
|
+ that.form.dialogdata = turnResToOption(json.Rs)
|
|
|
} else {
|
|
|
that.$message.error(json.Memo);
|
|
|
}
|
|
|
@@ -542,7 +561,6 @@
|
|
|
},
|
|
|
// 微信可见与否
|
|
|
changeWechat(e, row) {
|
|
|
- console.log(row);
|
|
|
let that = this;
|
|
|
let param = {
|
|
|
token: localStorage.token,
|
|
|
@@ -584,7 +602,12 @@
|
|
|
return false
|
|
|
}
|
|
|
let row = this.multipleSelection[0];
|
|
|
- this.dialogValue = row.dialogValue;
|
|
|
+ let userArrary = [];
|
|
|
+ row.Userlist.map(function (item) {
|
|
|
+ userArrary.push(item.Id)
|
|
|
+ })
|
|
|
+ this.form.classId = row.ClassSelf.ClassId;
|
|
|
+ this.dialogValue = userArrary;
|
|
|
this.dialogVisible = true
|
|
|
// 读取左侧会员列表
|
|
|
|
|
|
@@ -817,6 +840,7 @@
|
|
|
width: 70%;
|
|
|
float: right;
|
|
|
}
|
|
|
+
|
|
|
/deep/ .el-transfer-panel__item .el-checkbox__input {
|
|
|
left: 15px;
|
|
|
}
|