Commit 854e55dc authored by 黄奎's avatar 黄奎

页面修改

parent 1ca725b5
......@@ -335,6 +335,7 @@
this.wordMsg.PageIndex = 1;
this.getAllWords(ChapterId);
},
//单词分页
changePage(val) {
this.wordMsg.PageIndex = val;
this.getAllWords();
......@@ -365,7 +366,6 @@
}
})
}).onCancel(() => {
});
},
//新增单词
......@@ -411,19 +411,15 @@
data.Objectives = decodeURIComponent(data.Objectives)
data.Requirement = decodeURIComponent(data.Requirement)
} catch (error) {
}
data.StudyMinutes = data.StudyMinutes.toString()
this.chapter = data
extend(this.bakObj, data)
if (this.$refs.chapterContent) {
this.$refs.chapterContent.reloadNewValue()
this.$refs.objectives.reloadNewValue()
this.$refs.requirement.reloadNewValue()
}
this.checkMove(node)
this.rateList.forEach(x => {
if (x.Id == data.CourseRate) {
......@@ -432,7 +428,6 @@
})
this.addObj.CourseId = data.CourseId;
this.addObj.ChapterId = data.ChapterId;
},
updateRate() {
setChaptersRate({
......@@ -440,7 +435,6 @@
CourseId: this.courseId,
ChapterNo: this.chapter.ChapterNo + "."
}).then(r => {
})
},
updateRateNode(arr) {
......@@ -472,7 +466,6 @@
ChapterNo: data.ChapterNo + ".",
ChapterId: data.ChapterId
}).then(r => {
//this.initTree()
this.$refs.chapterTree.remove(data.ChapterId)
this.updateChapters = []
this.genernalNo("", this.dataList)
......@@ -488,9 +481,7 @@
})
})
}).onCancel(() => {
})
},
saveChapterUpdate(type) {
if (!this.submiting) {
......@@ -545,7 +536,6 @@
moveUp() {
let data = this.$refs.chapterTree.getCurrentNode()
let node = this.$refs.chapterTree.getNode(data.ChapterId)
if (node) {
let noTemp = data.ChapterNo.toString().split('.')
let no = parseInt(noTemp[noTemp.length - 1]) - 1
......@@ -567,7 +557,6 @@
moveDown() {
let data = this.$refs.chapterTree.getCurrentNode()
let node = this.$refs.chapterTree.getNode(data.ChapterId)
if (node) {
let noTemp = data.ChapterNo.toString().split('.')
let no = parseInt(noTemp[noTemp.length - 1]) - 1
......@@ -600,7 +589,6 @@
ChapterName: data.ChapterName
}
updateChapterName(msg).then(r => {
})
},
addSameLevel() {
......@@ -693,7 +681,6 @@
this.MyChapterNo = this.dataList.length;
});
},
createNewNode(pid, no, rate, crn) {
if (this.canOptions) return;
let name = ""
......@@ -737,7 +724,6 @@
let noWan = num % 10000;
if (noWan.toString().length < 4) noWan = "0" + noWan;
return overWan ? getWan(overWan) + "万" + getWan(noWan) : getWan(num);
},
genernalNo(parentNo, list) {
list.forEach((x, i) => {
......@@ -759,7 +745,6 @@
},
batchUpdate() {
batchUpdateChapterNo(this.updateChapters).then(r => {
})
},
//点击导入
......
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