+
+
+
+
+
+
+
+
+
+
+
+
+ 线上
+ 线下
+
+
+
+ 查询
+ 新增
+
+
+
+
+ {{ scope.row.title }}
+
+
+ {{ scope.row.year }}
+
+
+ {{ scope.row.fee }}
+
+
+ {{ scope.row.vipFee }}
+
+
+ {{ scope.row.svipFee }}
+
+
+ {{ scope.row.huFee }}
+
+
+
+ 线上
+ 线下
+ --
+
+
+
+
+
+
+
+
+
+
+
+
+ 修改
+
+ 用户列表
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 线上
+ 线下
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/modules/trainingCourse/training-course-user.vue b/src/views/modules/trainingCourse/training-course-user.vue
new file mode 100644
index 0000000..a975d3b
--- /dev/null
+++ b/src/views/modules/trainingCourse/training-course-user.vue
@@ -0,0 +1,283 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 新增
+
+
+
+
+
+
+ {{ scope.row.nickname ? scope.row.nickname : "暂无用户名" }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 修改
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/modules/user/user-add-course.vue b/src/views/modules/user/user-add-course.vue
index a78c502..799387d 100644
--- a/src/views/modules/user/user-add-course.vue
+++ b/src/views/modules/user/user-add-course.vue
@@ -233,10 +233,23 @@
},
//表单提交
dataFormSubmit() {
+ const days = Number(this.dataForm.days);
if(this.dataForm.file==''){
this.$message.error('请先上传文件');
return
}
+ if(isNaN(days)){
+ this.$message.error('开课时长必须是数字');
+ return
+ }
+ if(!Number.isInteger(days)){
+ this.$message.error('开课时长必须为整数');
+ return
+ }
+ if(days <= 0){
+ this.$message.error('开课时长必须大于0');
+ return
+ }
this.$refs["dataForm"].validate(valid => {
if (valid) {
@@ -246,7 +259,7 @@
method: "post",
data: this.$http.adornData({
catalogue_id: this.dataForm.catalogues.join(','),
- days: Number(this.dataForm.days),
+ days: days,
list: this.resultData.has
})
}).then(({ data }) => {
diff --git a/static/config/index-prod.js b/static/config/index-prod.js
index d9d3633..a4423ea 100644
--- a/static/config/index-prod.js
+++ b/static/config/index-prod.js
@@ -5,8 +5,8 @@
window.SITE_CONFIG = {};
// api接口请求地址
- window.SITE_CONFIG['baseUrl'] = 'https://api.nuttyreading.com';
- //window.SITE_CONFIG['baseUrl'] = 'http://192.168.110.100:9200/pb';
+ //window.SITE_CONFIG['baseUrl'] = 'https://api.nuttyreading.com';
+ window.SITE_CONFIG['baseUrl'] = 'http://192.168.110.100:9200/pb';
//window.SITE_CONFIG['baseUrl'] = 'http://192.168.110.110:9200/pb';
// cdn地址 = 域名 + 版本号
diff --git a/static/config/index.js b/static/config/index.js
index 208c35b..86ad4a2 100644
--- a/static/config/index.js
+++ b/static/config/index.js
@@ -5,8 +5,8 @@
window.SITE_CONFIG = {};
// api接口请求地址
- window.SITE_CONFIG['baseUrl'] = 'https://api.nuttyreading.com'; // 线上正式环境
- //window.SITE_CONFIG['baseUrl'] = 'http://192.168.110.100:9200/pb'; //川
+ //window.SITE_CONFIG['baseUrl'] = 'https://api.nuttyreading.com'; // 线上正式环境
+ window.SITE_CONFIG['baseUrl'] = 'http://192.168.110.100:9200/pb'; //川
//window.SITE_CONFIG['baseUrl'] = 'http://192.168.110.110:9200/pb'; //本地
// cdn地址 = 域名 + 版本号