-
-
+
+
-
+
-
+
-
+
-
+
选取文件
@@ -140,8 +107,10 @@ export default {
this.uploadbtn = true;
if (newimg == null) {
this.video.VideoPath = null;
+ this.videoForm.showVideoPath = null
} else if (newimg == "") {
this.video.VideoPath = null;
+ this.videoForm.showVideoPath = null
} else {
this.videoForm.showVideoPath = process.env.VUE_APP_BASE_API + newimg;
this.video.VideoPath = process.env.VUE_APP_BASE_API + newimg;
@@ -184,7 +153,7 @@ export default {
this.uploadbtn = false;
this.$refs.upload.submit();
},
- handlePreview(file) {},
+ handlePreview(file) { },
// 编辑头像
editCropper() {
this.openimg = true;
@@ -194,7 +163,7 @@ export default {
this.visible = true;
},
// 覆盖默认的上传行为
- requestUpload() {},
+ requestUpload() { },
// 向左旋转
rotateLeft() {
this.$refs.cropper.rotateLeft();
@@ -219,11 +188,15 @@ export default {
};
},
handleAvatarSuccess(res, file) {
- this.video.VideoPath = process.env.VUE_APP_BASE_API + res.imgUrl;
- this.items.itemDirectoryUrl = res.imgUrl;
- this.$emit("item", JSON.stringify(this.items));
- this.$modal.msgSuccess("上传视频成功");
- this.openimg = false;
+ if (res.code == 200) {
+ this.video.VideoPath = process.env.VUE_APP_BASE_API + res.imgUrl;
+ this.items.itemDirectoryUrl = res.imgUrl;
+ this.$emit("item", JSON.stringify(this.items));
+ this.$modal.msgSuccess("上传视频成功");
+ this.openimg = false;
+ } else {
+ this.$message.error(res.msg);
+ }
this.uploadbtn = true;
},
// 上传图片
@@ -273,6 +246,7 @@ export default {
left: 50%;
transform: translate(-50%, 0%);
}
+
.avatar-upload-preview {
position: absolute;
top: 0%;
@@ -284,6 +258,7 @@ export default {
box-shadow: 0 0 4px #ccc;
overflow: hidden;
}
+
.user-info-head {
position: relative;
display: inline-block;
@@ -309,11 +284,13 @@ export default {
line-height: 110px;
border-radius: 50%;
}
+
.wihi {
background-color: #fff;
width: 100px;
height: 100px;
}
+
.wihi:hover:after {
transform: translate(50%, 50%);
}
diff --git a/src/views/system/trainingCategory/index.vue b/src/views/system/trainingCategory/index.vue
index 815bdd0..5047bf3 100644
--- a/src/views/system/trainingCategory/index.vue
+++ b/src/views/system/trainingCategory/index.vue
@@ -33,7 +33,7 @@
@keyup.enter.native="handleQuery"
/>
-
+
- 搜索
- 重置
+ 搜索
+ 重置
@@ -54,7 +62,8 @@
size="mini"
@click="handleAdd"
v-hasPermi="['system:trainingItem:add']"
- >新增
+ >新增
修改
+ >修改
删除
+ >删除
-
+
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+ {{
+ scope.row.trainingItemType == "VIDEO_LEARNING"
+ ? "视频学习"
+ : ""
+ }}
+ {{
+ scope.row.trainingItemType == "GRAPHIC_LEARNING"
+ ? "图文学习"
+ : ""
+ }}
+ {{
+ scope.row.trainingItemType == "LIVE_COURSES" ? "直播课程" : ""
+ }}
+ {{
+ scope.row.trainingItemType == "OFFLINE_TRAINING"
+ ? "线下培训"
+ : ""
+ }}
+ {{
+ scope.row.trainingItemType == "LEARNING_ITEM_GROUP"
+ ? "学习培训课程组"
+ : ""
+ }}
+
+
+
+
+
+ {{ scope.row.trainingShelfFlag == 1 ? "已下架" : "" }}
+ {{ scope.row.trainingShelfFlag == 0 ? "已上架" : "" }}
+
+
+
+
+
+
+ 修改
+ 删除
+
+
+
+
+
+
+
+
+
+
{{ scope.row.trainingItemType == "VIDEO_LEARNING" ? "视频学习" : "" }}
{{
- scope.row.trainingItemType == "GRAPHIC_LEARNING" ? "图文学习" : ""
+ scope.row.trainingItemType == "GRAPHIC_LEARNING" ? "图文学习" : ""
}}
{{ scope.row.trainingItemType == "LIVE_COURSES" ? "直播课程" : "" }}
{{
- scope.row.trainingItemType == "OFFLINE_TRAINING" ? "线下培训" : ""
+ scope.row.trainingItemType == "OFFLINE_TRAINING" ? "线下培训" : ""
}}
{{
- scope.row.trainingItemType == "LEARNING_ITEM_GROUP"
- ? "学习培训课程组"
- : ""
+ scope.row.trainingItemType == "LEARNING_ITEM_GROUP"
+ ? "学习培训课程组"
+ : ""
}}
-->
-
-
+
+
修改
+ >修改
删除
+ >删除
@@ -199,14 +343,22 @@
label-width="80px"
:inline="true"
>
-
+
-
+
- 搜索
- 重置
+ 搜索
+ 重置
@@ -247,8 +407,16 @@
align="center"
:show-overflow-tooltip="true"
>
-
-
+
+
+ -->
-
+
- 搜索
- 重置
+ 搜索
+ 重置
-
+
- ]
-
-
+
+
-
-
+
+
- 待付款
- 已付款
- 退款中
-
- 已取消
- 已退款
+ 待付款
+ 已付款
+ 已取消
+ 已退款
-
-
-
+
+
{{ scope.row.trainingOrderChannel == "MOBILE_APP" ? "手机App" : "" }}
{{
- scope.row.trainingOrderChannel == "WECHAT_APPLET"
- ? "微信小程序"
- : ""
+ scope.row.trainingOrderChannel == "WECHAT_APPLET"
+ ? "微信小程序"
+ : ""
}}
{{
- scope.row.trainingOrderChannel == "ALI_PAY_APPLET"
- ? "支付宝小程序"
- : ""
+ scope.row.trainingOrderChannel == "ALI_PAY_APPLET"
+ ? "支付宝小程序"
+ : ""
}}
-
-
+
-
+
查看
+ >查看
退款
+ >退款
@@ -190,12 +119,7 @@
@pagination="getList"
/>
-
+
- -->
+ -->
-
-
+
+
{{ form.nursePersonName }}
@@ -289,93 +202,71 @@
v-loading="loading"
style="margin: 10px 0 20px 0; padding-bottom: 20px"
>
-
-
+
+
{{
- scope.row.trainingItemType == "VIDEO_LEARNING" ? "视频学习" : ""
+ scope.row.trainingItemType == "VIDEO_LEARNING" ? "视频学习" : ""
}}
{{
- scope.row.trainingItemType == "GRAPHIC_LEARNING"
- ? "图文学习"
- : ""
+ scope.row.trainingItemType == "GRAPHIC_LEARNING"
+ ? "图文学习"
+ : ""
}}
{{
- scope.row.trainingItemType == "LIVE_COURSES" ? "直播课程" : ""
+ scope.row.trainingItemType == "LIVE_COURSES" ? "直播课程" : ""
}}
{{
- scope.row.trainingItemType == "OFFLINE_TRAINING"
- ? "线下培训"
- : ""
+ scope.row.trainingItemType == "OFFLINE_TRAINING"
+ ? "线下培训"
+ : ""
}}
{{
- scope.row.trainingItemType == "LEARNING_ITEM_GROUP"
- ? "学习培训课程组"
- : ""
+ scope.row.trainingItemType == "LEARNING_ITEM_GROUP"
+ ? "学习培训课程组"
+ : ""
}}
-
+
查看
+ >查看
-
-
+
+
{{ formlist.trainingItemDetails }}
-
-
+
-
+
-
+
-
+
@@ -438,42 +315,19 @@
append-to-body
:before-close="clicknurseStationshow"
>
-
+
-
+
-
+
- 搜索
- 重置
+ 搜索
+ 重置
-
+
-
-
-
+
+
+