Skip to content

Commit 8f2d225

Browse files
authored
Merge pull request #38 from HeraldStudio/syj
人文讲座管理
2 parents fe6cc8e + ce2690f commit 8f2d225

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

src/components/Dashboard.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,9 @@ transition-group.widget.dashboard(name="fade")
8383
//- item(name='洗衣房' route='/laundry' value='›')
8484
//- item(name='App' route='/download' value='›')
8585
86-
.row
86+
.row(
87+
v-if="!tidyMode && user.admin && user.admin.indexOf('lecturerecord') !== -1"
88+
)
8789
item(name="讲座管理", route="/admin/lecture", value="›")
8890

8991
.row(

src/pages/admin/LectureDetail.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
input#uploadInput(type='file' accept='.csv' style="display: none" @change="uploadRecords")
44
.subcontainer
55
.summary-p 讲座:{{ lecture.name }}
6-
a(style="float:right; cursor: pointer" href='../../../static/examples/lectureRecords.csv' download="cardRecords.csv") 下载样例
6+
a(style="float:right; cursor: pointer" :href="`${basePath}cardRecords.csv`" download="cardRecords.csv") 下载样例
77
a(style="float: right; cursor: pointer; margin-right: 10px" @click="document.getElementById('uploadInput').click()") 点此导入...
88

99
table.list
@@ -111,7 +111,7 @@ export default {
111111
const id = this.$route.params.id;
112112
api
113113
.get("/api/lecture/admin/detail?id=" + id)
114-
.then(result => (this.lecture = result[0]));
114+
.then(result => (this.lecture = result));
115115
this.originCardRecords = (
116116
await api.get("/api/lecture/admin/cardRecord?lectureID=" + id)
117117
)

0 commit comments

Comments
 (0)