-
已绑定课程列表
+
已关联课程列表
{
this.$refs.commonShop.handleCheckAllChange(val);
diff --git a/static/config/index.js b/static/config/index.js
index 71ef68a..d81f202 100644
--- a/static/config/index.js
+++ b/static/config/index.js
@@ -9,7 +9,7 @@
// window.SITE_CONFIG['baseUrl'] = 'http://59.110.212.44:9200/pb';
window.SITE_CONFIG['baseUrl'] = 'https://testapi.nuttyreading.com'; // 线上测试环境11
// window.SITE_CONFIG['baseUrl'] = 'https://api.nuttyreading.com'; // 线上正式环境
- // window.SITE_CONFIG['baseUrl'] = 'http://192.168.110.110:9200/pb';
+ // window.SITE_CONFIG['baseUrl'] = 'http://192.168.110.110:9200/pb';//磊哥
// window.SITE_CONFIG['baseUrl'] = 'http://59.110.212.44:9200/pb';
// window.SITE_CONFIG['baseUrl'] = 'http://192.168.110.100:9200/pb';
From 555c0cb6b0fe8947629c65216bde7650d50ecd0a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=A7=8B=E4=BA=8E=E5=88=9D=E8=A7=81?= <752204717@qq.com>
Date: Wed, 22 May 2024 15:16:31 +0800
Subject: [PATCH 2/4] =?UTF-8?q?=E5=9B=BD=E5=AD=A6=E5=8C=BB=E5=AD=A6?=
=?UTF-8?q?=E8=90=A5=E9=94=80=E6=A0=87=E7=AD=BE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../course/nationalStudiesOperationsList.vue | 76 +++++++++++++++----
src/views/modules/course/operationsList.vue | 51 ++++++++-----
2 files changed, 93 insertions(+), 34 deletions(-)
diff --git a/src/views/modules/course/nationalStudiesOperationsList.vue b/src/views/modules/course/nationalStudiesOperationsList.vue
index cc23301..585d750 100644
--- a/src/views/modules/course/nationalStudiesOperationsList.vue
+++ b/src/views/modules/course/nationalStudiesOperationsList.vue
@@ -95,7 +95,7 @@
:isNoSearch="true"
:otherInfo="{
httpType: 'raw',
- httpDataValueName: 'courseList'
+ httpDataValueName: 'list'
}"
:defaultForm="{
marketId: addForm.id
@@ -150,13 +150,13 @@
-->
-
+
+
+
-
@@ -378,10 +387,8 @@ export default {
hasBindProductList:
"/master/courseSociologyMarket/getCourseListByMarketId",
CanBindProductList: "/master/courseSociologyMarket/getNotToMarketList"
- , editSort: "/master/courseSociology/updateCourseToSociologySort",
- }, dataForm: {
- key: ""
- },
+ , editSort: "/master/courseSociologyMarket/editMarketSort",
+ },
addForm: {},
isFresh: false,
dataRule: {
@@ -478,9 +485,50 @@ export default {
},
UpNumber(e) {
e.target.value = e.target.value.replace(/[^\d]/g, "");
- },
+ }, handleSubmitDataForm: debounce(async function() {
+ var that = this;
+ this.$http
+ .request({
+ url: this.$http.adornUrl(`${this.urlList.editSort}`),
+ method: "POST",
+ data: {
+ marketId: this.dataForm.marketId,
+ courseId: this.dataForm.courseId,
+
+ sort: Number(this.dataForm.sort)
+ },
+ header: {
+ //默认 无 说明:请求头
+ "Content-Type": "application/json"
+ }
+ })
+
+ .then(async ({ data }) => {
+ if (data && data.code === 0) {
+ this.$message.success(data.msg);
+
+ if (this.$refs.commonShop) {
+ this.$refs.commonShop.getAssociatedGoodsList({
+ courseId: this.addForm.id
+ });
+ }
+ } else {
+ this.$message.error(data.msg);
+ }
+ that.dialogVisible = false;
+ });
+
+ that.$forceUpdate();
+ }, 200),
dataFormEdit(row) {
- this.dataForm = { ...row };
+ console.log('row at line 523:', row)
+ this.dataForm = {
+
+ marketId: row.sociologyMarketId,
+ courseId: row.courseId,
+ sort: row.sort,
+ title: row.courseEntity.title
+ };
this.dialogVisible = true;
},
handleCheckAllChange(val) {
@@ -632,7 +680,7 @@ export default {
)
.then(async () => {
// var lableIds = row[0].bookLabelId;
- var productIds = row[0].id;
+ var productIds = row[0].courseId;
// // return false
// var selectShopArr = this.$refs.commonShop.selectShopArr;
diff --git a/src/views/modules/course/operationsList.vue b/src/views/modules/course/operationsList.vue
index 15c89de..dd455b3 100644
--- a/src/views/modules/course/operationsList.vue
+++ b/src/views/modules/course/operationsList.vue
@@ -150,13 +150,18 @@
-->
-
+
+
+
-
-
-
+
@@ -384,7 +387,7 @@ export default {
edit: "/master/courseMedicineMarket/editSociologyMarket",
hasBindProductList: "/master/courseMedicineMarket/getCourseByMarketId",
CanBindProductList: "/master/courseMedicineMarket/getNotToMarketList",
- editSort: "/master/courseSociology/updateCourseToSociologySort"
+ editSort: "/master/courseMedicineMarket/editMarketSort"
},
addForm: {},
isFresh: false,
@@ -488,8 +491,10 @@ export default {
url: this.$http.adornUrl(`${this.urlList.editSort}`),
method: "POST",
data: {
- id: this.dataForm.bindId,
- sort: Number(this.dataForm.toSociologySort)
+ marketId: this.dataForm.marketId,
+ courseId: this.dataForm.courseId,
+
+ sort: Number(this.dataForm.sort)
},
header: {
//默认 无 说明:请求头
@@ -518,7 +523,13 @@ export default {
e.target.value = e.target.value.replace(/[^\d]/g, "");
},
dataFormEdit(row) {
- this.dataForm = { ...row };
+ this.dataForm = {
+
+ marketId: row.medicineMarketId,
+ courseId: row.courseId,
+ sort: row.sort,
+ title: row.courseEntity.title
+ };
this.dialogVisible = true;
},
handleCheckAllChange(val) {
@@ -670,7 +681,7 @@ export default {
)
.then(async () => {
// var lableIds = row[0].bookLabelId;
- var productIds = row[0].id;
+ var productIds = row[0].courseId;
// // return false
// var selectShopArr = this.$refs.commonShop.selectShopArr;
From b9deb6ed29683afd426c12eb36d2e2ad668634d6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=A7=8B=E4=BA=8E=E5=88=9D=E8=A7=81?= <752204717@qq.com>
Date: Thu, 23 May 2024 13:11:26 +0800
Subject: [PATCH 3/4] =?UTF-8?q?=E5=8D=8F=E8=AE=AE=E5=8A=A0=E8=B6=85?=
=?UTF-8?q?=E9=93=BE=E6=8E=A5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../courseSettings/chapter-add-or-update.vue | 509 +++++++++---------
.../medicalCourseDescription.vue | 143 +----
.../nationalStudiesCourseDescription.vue | 143 +----
src/views/modules/xieyi/add-update.vue | 76 ++-
4 files changed, 326 insertions(+), 545 deletions(-)
diff --git a/src/views/modules/courseSettings/chapter-add-or-update.vue b/src/views/modules/courseSettings/chapter-add-or-update.vue
index fae4966..d855d64 100644
--- a/src/views/modules/courseSettings/chapter-add-or-update.vue
+++ b/src/views/modules/courseSettings/chapter-add-or-update.vue
@@ -1,274 +1,271 @@
-
-
-
-
-
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
保存
+
-
-
diff --git a/src/views/modules/courseSettings/medicalCourseDescription.vue b/src/views/modules/courseSettings/medicalCourseDescription.vue
index 9924308..2fd9282 100644
--- a/src/views/modules/courseSettings/medicalCourseDescription.vue
+++ b/src/views/modules/courseSettings/medicalCourseDescription.vue
@@ -1,127 +1,17 @@
-
-
-
-
-
- 新增
-
-
-
-
-
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
- {{ scope.row.content }}
-
-
-
-
-
-
-
-
-
- 视频管理
-
- 修改
- 删除
-
-
-
-
-
-
-
@@ -130,6 +20,12 @@ import AddOrUpdate from "./chapter-add-or-update";
export default {
data() {
return {
+ setList: [
+ { label: "购买须知", id: 1 },
+ { label: "使用须知", id: 2 },
+ { label: "学习次序", id: 3 },
+ { label: "超V用户", id: 4 }
+ ],
dataForm: {
key: ""
},
@@ -344,8 +240,11 @@ export default {
overflow: hidden;
display: -webkit-box;
- -webkit-line-clamp:1;
+ -webkit-line-clamp: 1;
-webkit-box-orient: vertical;
}
+::v-deep .mod-config .el-tabs .el-tabs__content {
+ height: 100% !important;
+}
diff --git a/src/views/modules/courseSettings/nationalStudiesCourseDescription.vue b/src/views/modules/courseSettings/nationalStudiesCourseDescription.vue
index 9924308..2fd9282 100644
--- a/src/views/modules/courseSettings/nationalStudiesCourseDescription.vue
+++ b/src/views/modules/courseSettings/nationalStudiesCourseDescription.vue
@@ -1,127 +1,17 @@
-
-
-
-
-
- 新增
-
-
-
-
-
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
- {{ scope.row.content }}
-
-
-
-
-
-
-
-
-
- 视频管理
-
- 修改
- 删除
-
-
-
-
-
-
-
@@ -130,6 +20,12 @@ import AddOrUpdate from "./chapter-add-or-update";
export default {
data() {
return {
+ setList: [
+ { label: "购买须知", id: 1 },
+ { label: "使用须知", id: 2 },
+ { label: "学习次序", id: 3 },
+ { label: "超V用户", id: 4 }
+ ],
dataForm: {
key: ""
},
@@ -344,8 +240,11 @@ export default {
overflow: hidden;
display: -webkit-box;
- -webkit-line-clamp:1;
+ -webkit-line-clamp: 1;
-webkit-box-orient: vertical;
}
+::v-deep .mod-config .el-tabs .el-tabs__content {
+ height: 100% !important;
+}
diff --git a/src/views/modules/xieyi/add-update.vue b/src/views/modules/xieyi/add-update.vue
index 41ed62e..98af2b4 100644
--- a/src/views/modules/xieyi/add-update.vue
+++ b/src/views/modules/xieyi/add-update.vue
@@ -40,7 +40,33 @@
import {
quillEditor
} from 'vue-quill-editor'
-
+ const toolbarOptions = [
+ ["bold", "italic", "underline", "strike"], // 加粗,斜体,下划线,删除线
+ ["blockquote", "code-block"], //引用,代码块
+ [{ header: 1 }, { header: 2 }], // 几级标题
+ [{ list: "ordered" }, { list: "bullet" }], // 有序列表,无序列表
+ [{ script: "sub" }, { script: "super" }], // 下角标,上角标
+ [{ indent: "-1" }, { indent: "+1" }], // 缩进
+ [{ direction: "rtl" }], // 文字输入方向
+ [{ size: ["small", false, "large", "huge"] }], // 字体大小
+ [{ header: [1, 2, 3, 4, 5, 6, false] }], // 标题
+ [{ color: [] }, { background: [] }], // 颜色选择
+ [
+ {
+ font: [
+ "SimSun",
+ "SimHei",
+ "Microsoft-YaHei",
+ "KaiTi",
+ "FangSong",
+ "Arial"
+ ]
+ }
+ ], // 字体
+ [{ align: [] }], // 居中
+ ["clean"], // 清除样式,
+ ["link", "image"] // 上传图片、上传视频
+];
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'
@@ -88,50 +114,10 @@
],
editorOption: {
modules: {
- toolbar: [
- ['bold', 'italic', 'underline', 'strike'], // 加粗 斜体 下划线 删除线
- ['blockquote', 'code-block'], // 引用 代码块
- [{
- header: 1
- }, {
- header: 2
- }], // 1、2 级标题
- [{
- list: 'ordered'
- }, {
- list: 'bullet'
- }], // 有序、无序列表
- [{
- script: 'sub'
- }, {
- script: 'super'
- }], // 上标/下标
- [{
- indent: '-1'
- }, {
- indent: '+1'
- }], // 缩进
- [{
- direction: 'rtl'
- }], // 文本方向
- [{
- size: ['12', '14', '16', '18', '20', '22', '24', '28', '32', '36']
- }], // 字体大小
- [{
- header: [1, 2, 3, 4, 5, 6]
- }], // 标题
- [{
- color: []
- }, {
- background: []
- }], // 字体颜色、字体背景颜色
- // [{ font: ['songti'] }], // 字体种类
- [{
- align: []
- }], // 对齐方式
- ['clean'], // 清除文本格式
- ['image', 'video'] // 链接、图片、视频
- ]
+ toolbar: {
+ container: toolbarOptions,
+
+ }
},
placeholder: '请输入正文'
},
From 20eebd5f8c835f143a02e9986377200dcef71430 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=A7=8B=E4=BA=8E=E5=88=9D=E8=A7=81?= <752204717@qq.com>
Date: Fri, 24 May 2024 16:44:14 +0800
Subject: [PATCH 4/4] =?UTF-8?q?=E8=AF=BE=E7=A8=8B=E6=8C=87=E5=BC=95+?=
=?UTF-8?q?=E6=B6=88=E6=81=AF=E5=88=97=E8=A1=A8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../commonNews/course-add-or-update.vue | 459 ++++++++++++++++++
src/views/modules/commonNews/newsList.vue | 378 +++++++++++++++
.../courseSettings/chapter-add-or-update.vue | 91 ++--
.../medicalCourseDescription.vue | 97 ++--
.../nationalStudiesCourseDescription.vue | 100 ++--
5 files changed, 999 insertions(+), 126 deletions(-)
create mode 100644 src/views/modules/commonNews/course-add-or-update.vue
create mode 100644 src/views/modules/commonNews/newsList.vue
diff --git a/src/views/modules/commonNews/course-add-or-update.vue b/src/views/modules/commonNews/course-add-or-update.vue
new file mode 100644
index 0000000..2a818f7
--- /dev/null
+++ b/src/views/modules/commonNews/course-add-or-update.vue
@@ -0,0 +1,459 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.label }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/modules/commonNews/newsList.vue b/src/views/modules/commonNews/newsList.vue
new file mode 100644
index 0000000..603f646
--- /dev/null
+++ b/src/views/modules/commonNews/newsList.vue
@@ -0,0 +1,378 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 新增
+
+
+
+
+
+
+
+
+ 疯子读书
+ 吴门医述
+ 众妙之门
+
+
+
+
+
+
+ 外链
+ 富文本
+
+
+
+
+
+
+
+
+
+
+ 修改
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/modules/courseSettings/chapter-add-or-update.vue b/src/views/modules/courseSettings/chapter-add-or-update.vue
index d855d64..dfede43 100644
--- a/src/views/modules/courseSettings/chapter-add-or-update.vue
+++ b/src/views/modules/courseSettings/chapter-add-or-update.vue
@@ -24,7 +24,9 @@
- 保存
+ 保存
@@ -62,7 +64,7 @@ const toolbarOptions = [
["link", "image"] // 上传图片、上传视频
];
export default {
- props:['dataInfo'],
+ props: ["dataInfo", "type"],
data() {
return {
baseUrl: global.baseUrl,
@@ -90,7 +92,7 @@ export default {
}
}
},
- placeholder: "请输入"+this.dataInfo.label
+ placeholder: "请输入" + this.dataInfo.label
},
visible: false,
props: {
@@ -107,12 +109,9 @@ export default {
dialogImageUrl: "",
dialogVisible: false,
dataForm: {
- courseId: 0,
- catalogueId: 0,
- title: "",
- imgUrl: "",
+
content: "",
- sort: 1
+
},
splitsTypeList: [],
dataRule: {}
@@ -152,61 +151,37 @@ export default {
onEditorReady(quill) {
// console.log('editor ready!', quill)
},
- init(row, catalogue_id, courseid) {
- console.log("row21", row);
- this.dataForm = row ? JSON.parse(JSON.stringify(row)) : {};
- this.dataForm.courseId = courseid ? courseid : "";
- this.dataForm.catalogueId = catalogue_id ? catalogue_id : "";
- this.visible = true;
- if (this.dataForm.imgUrl && this.dataForm.imgUrl != "") {
- var img = {
- name: "",
- url: this.dataForm.imgUrl
- };
- var attr = [];
- attr.push(img);
- this.fileList = attr;
- } else {
- this.fileList = [];
- }
+ init(content) {
+ console.log("row21", content);
+ this.dataForm.content=content
+
+ },
+ getContent(){
+
},
// 表单提交
dataFormSubmit() {
- this.$refs["dataForm"].validate(valid => {
- if (valid) {
- this.$http({
- url: this.$http.adornUrl(
- `${
- !this.dataForm.id
- ? "/master/course/addCourseCatalogueChapter"
- : "/master/course/editCourseCatalogueChapter"
- }`
- ),
- method: "post",
- data: this.$http.adornData({
- id: this.dataForm.id || undefined,
- courseId: this.dataForm.courseId || undefined,
- catalogueId: this.dataForm.catalogueId || undefined,
- title: this.dataForm.title,
- imgUrl: this.dataForm.imgUrl,
- content: this.dataForm.content,
- sort: this.dataForm.sort
- })
- }).then(({ data }) => {
- if (data && data.code === 0) {
- this.$message({
- message: "操作成功",
- type: "success",
- duration: 1500,
- onClose: () => {
- this.visible = false;
- this.$emit("refreshDataList");
- }
- });
- } else {
- this.$message.error(data.msg);
+ this.$http({
+ url: this.$http.adornUrl("/master/course/editCourseRecord"),
+ method: "post",
+ data: this.$http.adornData({
+ type: this.type,
+ recordType: this.dataInfo.id, //0 buy_record , 1 use_record , 2 study_record, 3 vip_record
+ content: this.dataForm.content
+ })
+ }).then(({ data }) => {
+ if (data && data.code === 0) {
+ this.$message({
+ message: "操作成功",
+ type: "success",
+ duration: 1500,
+ onClose: () => {
+ this.visible = false;
+ this.$emit("refreshDataList");
}
});
+ } else {
+ this.$message.error(data.msg);
}
});
},
diff --git a/src/views/modules/courseSettings/medicalCourseDescription.vue b/src/views/modules/courseSettings/medicalCourseDescription.vue
index 2fd9282..e008687 100644
--- a/src/views/modules/courseSettings/medicalCourseDescription.vue
+++ b/src/views/modules/courseSettings/medicalCourseDescription.vue
@@ -1,11 +1,18 @@
-
-
-
+
+
@@ -20,11 +27,13 @@ import AddOrUpdate from "./chapter-add-or-update";
export default {
data() {
return {
+ currentTab: 0,
+ type: 0,
setList: [
- { label: "购买须知", id: 1 },
- { label: "使用须知", id: 2 },
- { label: "学习次序", id: 3 },
- { label: "超V用户", id: 4 }
+ { label: "购买须知", id: 0 },
+ { label: "使用须知", id: 1 },
+ { label: "学习次序", id: 2 },
+ { label: "超V用户", id: 3 }
],
dataForm: {
key: ""
@@ -60,33 +69,53 @@ export default {
this.getDataList();
},
methods: {
+ handleClick(tab, event) {
+ this.getDataList()
+ },
// 获取数据列表
getDataList() {
this.dataListLoading = true;
- this.$http({
- url: this.$http.adornUrl(
- "/master/course/getCourseCatalogueChapterList"
- ),
- method: "post",
- data: this.$http.adornData({
- id: this.catalogue_id,
- page: this.pageIndex,
- limit: this.pageSize
- // "type": this.query.type||0, //类型0全部,1:医学,2:国学
- // "categoryId": this.query.categoryId, //医学类型id,当type为1时为必填项;为0时代表全部
- // "sociologyId": this.query.sociologyId, //国学类型id,当type为2时为必填项;为0代表全部
- // "keywords": this.query.keywords //关键字
+ this.$http
+ .request({
+ url: this.$http.adornUrl(`/master/course/getCourseRecord`),
+ method: "POST",
+ data: {
+ type: this.type
+ },
+ header: {
+ //默认 无 说明:请求头
+ "Content-Type": "application/json"
+ }
})
- }).then(({ data }) => {
- if (data && data.code === 0) {
- this.dataList = data.page.records;
- this.totalPage = data.page.total;
- } else {
- this.dataList = [];
- this.totalPage = 0;
- }
- this.dataListLoading = false;
- });
+ .then(({ data }) => {
+ var that=this
+ console.log("data at line 86:", data);
+ if (data && data.code === 0) { console.log('that.currentTab at line 91:', that.currentTab)
+ var content=''
+ switch (that.currentTab) {
+
+ case "0":
+ content=data.result.buyRecord
+ break;
+ case "1":
+ content=data.result.useRecord
+ break;
+ case "2":
+ content=data.result.studyRecord
+
+ break;
+ case "3":
+ content=data.result.vipRecord
+
+ break;
+ }
+ that.$nextTick(()=>{
+ that.$refs[`addOrUpdate${that.currentTab}`][0].init(content);
+})
+
+ }
+ this.dataListLoading = false;
+ });
},
// 每页数
sizeChangeHandle(val) {
@@ -244,7 +273,7 @@ export default {
-webkit-box-orient: vertical;
}
-::v-deep .mod-config .el-tabs .el-tabs__content {
+::v-deep .mod-config .el-tabs .el-tabs__content {
height: 100% !important;
}
diff --git a/src/views/modules/courseSettings/nationalStudiesCourseDescription.vue b/src/views/modules/courseSettings/nationalStudiesCourseDescription.vue
index 2fd9282..2d3dbf8 100644
--- a/src/views/modules/courseSettings/nationalStudiesCourseDescription.vue
+++ b/src/views/modules/courseSettings/nationalStudiesCourseDescription.vue
@@ -1,11 +1,18 @@
-
-
-
+
+
@@ -20,11 +27,14 @@ import AddOrUpdate from "./chapter-add-or-update";
export default {
data() {
return {
+ content: '',
+ currentTab: 0,
+ type: 1,
setList: [
- { label: "购买须知", id: 1 },
- { label: "使用须知", id: 2 },
- { label: "学习次序", id: 3 },
- { label: "超V用户", id: 4 }
+ { label: "购买须知", id: 0 },
+ { label: "使用须知", id: 1 },
+ { label: "学习次序", id: 2 },
+ { label: "超V用户", id: 3 }
],
dataForm: {
key: ""
@@ -60,33 +70,55 @@ export default {
this.getDataList();
},
methods: {
+ handleClick(tab, event) {
+
+ this.getDataList()
+ },
// 获取数据列表
getDataList() {
this.dataListLoading = true;
- this.$http({
- url: this.$http.adornUrl(
- "/master/course/getCourseCatalogueChapterList"
- ),
- method: "post",
- data: this.$http.adornData({
- id: this.catalogue_id,
- page: this.pageIndex,
- limit: this.pageSize
- // "type": this.query.type||0, //类型0全部,1:医学,2:国学
- // "categoryId": this.query.categoryId, //医学类型id,当type为1时为必填项;为0时代表全部
- // "sociologyId": this.query.sociologyId, //国学类型id,当type为2时为必填项;为0代表全部
- // "keywords": this.query.keywords //关键字
+ this.$http
+ .request({
+ url: this.$http.adornUrl(`/master/course/getCourseRecord`),
+ method: "POST",
+ data: {
+ type: this.type
+ },
+ header: {
+ //默认 无 说明:请求头
+ "Content-Type": "application/json"
+ }
})
- }).then(({ data }) => {
- if (data && data.code === 0) {
- this.dataList = data.page.records;
- this.totalPage = data.page.total;
- } else {
- this.dataList = [];
- this.totalPage = 0;
- }
- this.dataListLoading = false;
- });
+ .then(({ data }) => {
+ var that=this
+ console.log("data at line 86:", data);
+ if (data && data.code === 0) { console.log('that.currentTab at line 91:', that.currentTab)
+ var content=''
+ switch (that.currentTab) {
+
+ case "0":
+ content=data.result.buyRecord
+ break;
+ case "1":
+ content=data.result.useRecord
+ break;
+ case "2":
+ content=data.result.studyRecord
+
+ break;
+ case "3":
+ content=data.result.vipRecord
+
+ break;
+ }
+ that.$nextTick(()=>{
+ this.content=content
+ that.$refs[`addOrUpdate${that.currentTab}`][0].init(content);
+})
+
+ }
+ this.dataListLoading = false;
+ });
},
// 每页数
sizeChangeHandle(val) {
@@ -244,7 +276,7 @@ export default {
-webkit-box-orient: vertical;
}
-::v-deep .mod-config .el-tabs .el-tabs__content {
+::v-deep .mod-config .el-tabs .el-tabs__content {
height: 100% !important;
}