Commit 8feb7a8d authored by 黄奎's avatar 黄奎

页面修改

parent 0eb7f6de
...@@ -6,6 +6,11 @@ ...@@ -6,6 +6,11 @@
<q-input @input="resetSearch" clearable standout="bg-primary text-white" v-model="msg.CourseName" label="课程名称" <q-input @input="resetSearch" clearable standout="bg-primary text-white" v-model="msg.CourseName" label="课程名称"
@clear="resetSearch" maxlength="20" /> @clear="resetSearch" maxlength="20" />
</div> </div>
<div class="col-3">
<q-select @input="resetSearch" standout="bg-primary text-white" v-model="msg.CourseSubject"
:options="CourseSubjectList" option-label="Name" option-value="Id" emit-value map-options label="所属科目"
clearable />
</div>
<div class="col-3"> <div class="col-3">
<select-tree :treeData="TreeCategoryList" :defaultArray="returnString" nodeKey="CateId" :multiple="true" <select-tree :treeData="TreeCategoryList" :defaultArray="returnString" nodeKey="CateId" :multiple="true"
labelKey="CateName" childrenKey="ChildList" tipText="课程系列" @getChild="getChild"></select-tree> labelKey="CateName" childrenKey="ChildList" tipText="课程系列" @getChild="getChild"></select-tree>
...@@ -36,30 +41,6 @@ ...@@ -36,30 +41,6 @@
<span v-html="props.value"></span> <span v-html="props.value"></span>
</q-td> </q-td>
</template> </template>
<!-- <template v-slot:body-cell-PreferentialList="props">
<q-td :props="props" style="padding-right:0px">
<div v-for="x in props.value">
<div class="border-bottom" v-if="x.PriceDiscountType == 1">
买{{ x.BuyNum }}送{{ x.SendNum }}
</div>
<div class="border-bottom" v-if="x.PriceDiscountType == 2">
单人报名享优惠{{x.PriceMoney }}%
</div>
<div class="border-bottom" v-if="x.PriceDiscountType == 3">
双人报名优惠{{x.PriceMoney }}%
</div>
<div class="border-bottom" v-if="x.PriceDiscountType == 4">
续费享优惠{{x.PriceMoney }}%
</div>
<div class="remark-font" v-if="x.PriceDiscountType == 0">
暂无优惠政策
</div>
</div>
<div v-if="!props.value || props.value.length == 0">
<div class="remark-font">暂无优惠政策</div>
</div>
</q-td>
</template> -->
<template v-slot:body-cell-PreferentialListSellCommission="props"> <template v-slot:body-cell-PreferentialListSellCommission="props">
<q-td :props="props" style="padding-right:0px;padding-left:0px"> <q-td :props="props" style="padding-right:0px;padding-left:0px">
<div v-for="x in props.value"> <div v-for="x in props.value">
...@@ -137,10 +118,13 @@ ...@@ -137,10 +118,13 @@
import { import {
queryCoursePage, queryCoursePage,
queryCourseCategoryTree, queryCourseCategoryTree,
deleteCourseInfo deleteCourseInfo,
getCourseSubject
} from "../../api/course/index"; } from "../../api/course/index";
import selectTree from "../../components/common/select-tree"; import selectTree from "../../components/common/select-tree";
import { openURL } from "quasar"; import {
openURL
} from "quasar";
import { import {
mapState mapState
} from "vuex"; } from "vuex";
...@@ -160,7 +144,6 @@ ...@@ -160,7 +144,6 @@
field: "CoverImg", field: "CoverImg",
align: "left" align: "left"
}, },
{ {
name: "CourseName", name: "CourseName",
required: true, required: true,
...@@ -168,6 +151,13 @@ ...@@ -168,6 +151,13 @@
align: "left", align: "left",
field: row => row.CourseName field: row => row.CourseName
}, },
{
name: "CourseSubjectName",
required: true,
label: "所属科目",
align: "left",
field: (row) => row.CourseSubjectName,
},
{ {
name: "CateName", name: "CateName",
required: true, required: true,
...@@ -175,34 +165,6 @@ ...@@ -175,34 +165,6 @@
align: "left", align: "left",
field: row => row.CateName field: row => row.CateName
}, },
// {
// name: "PreferentialList",
// required: true,
// label: "优惠政策",
// align: "left",
// field: row => row.PreferentialList
// },
// {
// name: "PreferentialListSellCommission",
// required: true,
// label: "销售佣金",
// align: "left",
// field: row => row.PreferentialList
// },
// {
// name: "PreferentialListB2BCommission",
// required: true,
// label: "同行佣金",
// align: "left",
// field: row => row.PreferentialList
// },
// {
// name: "EducationCommission",
// required: true,
// label: "教育同行佣金",
// align: "left",
// field: row => row.PreferentialList
// },
{ {
name: "ClassHours", name: "ClassHours",
label: "课时长度", label: "课时长度",
...@@ -210,12 +172,6 @@ ...@@ -210,12 +172,6 @@
align: "left", align: "left",
format: (val, row) => `${val}课时` format: (val, row) => `${val}课时`
}, },
// {
// name: "CreateByName",
// label: "创建人",
// field: "CreateByName",
// align: "left"
// },
{ {
name: "UpdateTimeStr", name: "UpdateTimeStr",
label: "更新时间", label: "更新时间",
...@@ -256,23 +212,33 @@ ...@@ -256,23 +212,33 @@
CourseName: "", CourseName: "",
QCateIds: "", QCateIds: "",
IsQPrice: 1, IsQPrice: 1,
Status: "0" Status: "0",
CourseSubject: "", //所属科目
}, },
//课程分类树形列表 //课程分类树形列表
TreeCategoryList: [], TreeCategoryList: [],
returnString: [], //默认值 returnString: [], //默认值
pageCount: 0, pageCount: 0,
CourseSubjectList: [], //科目列表
}; };
}, },
mounted() { mounted() {
if(this.$route.query && this.$route.query.Name){//从订单完成统计跳转过来的带的参数 if (this.$route.query && this.$route.query.Name) { //从订单完成统计跳转过来的带的参数
this.msg.CourseName = this.$route.query.Name this.msg.CourseName = this.$route.query.Name
} }
this.queryCourseSubject()
this.getCategorytree(); this.getCategorytree();
this.currentUrl = this.$route.path; this.currentUrl = this.$route.path;
this.getcourselist(); this.getcourselist();
}, },
methods: { methods: {
queryCourseSubject() {
getCourseSubject({}).then(res => {
if (res.Code == 1) {
this.CourseSubjectList = res.Data;
}
})
},
gotoSub(obj, routeStr) { gotoSub(obj, routeStr) {
var tempStr = "/course/" + routeStr + "?CourseId=" + obj.CourseId; var tempStr = "/course/" + routeStr + "?CourseId=" + obj.CourseId;
this.$router.push({ this.$router.push({
...@@ -321,7 +287,7 @@ ...@@ -321,7 +287,7 @@
}, },
//跳转至我的课程 //跳转至我的课程
goMycourse(obj) { goMycourse(obj) {
var tempStr = window.location.origin +"/#/course/courseinfo?CourseId=" + obj.CourseId; var tempStr = window.location.origin + "/#/course/courseinfo?CourseId=" + obj.CourseId;
// this.$router.push({ // this.$router.push({
// path: tempStr // path: tempStr
// }); // });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment