@@ -100,7 +102,8 @@
:http-request="handleRequest"
name="file"
>
- 上传资源
+ 上传资源
+ 视频请上传MP4格式,大小不超过30M;office文件大小不要超过10M
@@ -368,6 +371,10 @@ export default {
util.errorMsg("请上传10M以内的文件");
return false;
}
+ if (type == "视频" && (file.size / 1024 / 1024) > 30) {
+ util.errorMsg("请上传30M以内的视频");
+ return false;
+ }
this.uploading = true;
this.originalFileName = file.name;
if (this.isAddSection) this.sectionName = file.name.substring(0, file.name.lastIndexOf("."));
@@ -835,6 +842,13 @@ export default {
padding-right: 70px;
margin-right: -70px;
}
+.el-upload__tip {
+ position: absolute;
+ top: -4px;
+ right: 0;
+ width: 300px;
+ line-height: 1.4;
+}
.sort-icon {
font-size: 24px;
cursor: pointer;
diff --git a/src/pages/course/list/sortManagement/index.vue b/src/pages/course/list/sortManagement/index.vue
index 3addf8b..96c0a41 100644
--- a/src/pages/course/list/sortManagement/index.vue
+++ b/src/pages/course/list/sortManagement/index.vue
@@ -67,7 +67,7 @@ export default {
clearTimeout(this.searchTimer);
this.searchTimer = setTimeout(() => {
this.nameChange();
- }, 500);
+ }, 100);
}
},
mounted() {
diff --git a/src/pages/information/addarticle/index.vue b/src/pages/information/addarticle/index.vue
index aaa8639..b0a6f30 100644
--- a/src/pages/information/addarticle/index.vue
+++ b/src/pages/information/addarticle/index.vue
@@ -116,7 +116,7 @@ export default {
this.$router.back();
},
getData() {
- this.$get(`${this.api.getArticle}/${this.id}`).then(({ article }) => {
+ this.$get(`${this.api.getArticle}?articleId=${this.id}`).then(({ article }) => {
this.form = article
}).catch(err => {})
},
diff --git a/src/pages/information/columnManage/index.vue b/src/pages/information/columnManage/index.vue
index 2eca379..c61c2b7 100644
--- a/src/pages/information/columnManage/index.vue
+++ b/src/pages/information/columnManage/index.vue
@@ -21,7 +21,7 @@
操作
-
+
{{ data.name }}
@@ -66,8 +66,8 @@ export default {
first: "栏目管理"
},
name: this.$store.state.name,
- originalList: [],
- listData: [],
+ originList: [],
+ list: [],
multipleSelection: [],
pageNo: 1,
pageSize: 10,
@@ -87,20 +87,6 @@ export default {
mounted() {
this.getData();
},
- beforeRouteLeave(to, from, next) {
- if (JSON.stringify(this.originalList) !== JSON.stringify(this.listData)) {
- this.$confirm("确定返回?排序尚未保存。", "提示", {
- type: "warning"
- })
- .then(() => {
- next();
- })
- .catch(() => {
- });
- } else {
- next();
- }
- },
methods: {
getData() {
this.$get(this.api.queryAllColumns, {
@@ -108,8 +94,8 @@ export default {
page: this.pageNo,
size: this.pageSize
}).then(({ columnTree }) => {
- this.listData = columnTree
- this.originalList = JSON.parse(JSON.stringify(this.listData));
+ this.list = columnTree
+ this.originList = JSON.parse(JSON.stringify(this.list));
this.total = columnTree.length
}).catch(res => {
});
@@ -159,7 +145,7 @@ export default {
},
sortSubmit() {
this.level = 0
- let list = JSON.parse(JSON.stringify(this.listData))
+ let list = JSON.parse(JSON.stringify(this.list))
this.handleList(list)
this.$post(this.api.columnReorder, {
columnTree: list
@@ -191,7 +177,7 @@ export default {
},
cancelSort() {
this.sorting = false;
- this.listData = JSON.parse(JSON.stringify(this.originalList));
+ this.list = JSON.parse(JSON.stringify(this.originList));
this.sortObj.destroy();
},
openSort() {
diff --git a/src/pages/information/contentManage/contentList.vue b/src/pages/information/contentManage/contentList.vue
index 6739547..d11cafa 100644
--- a/src/pages/information/contentManage/contentList.vue
+++ b/src/pages/information/contentManage/contentList.vue
@@ -18,6 +18,9 @@