Merge pull request #168 from cuiocean/master

添加"备注"列到收藏试图
This commit is contained in:
Hunlongyu
2020-08-06 09:57:29 +08:00
committed by GitHub
5 changed files with 11 additions and 5 deletions

View File

@@ -141,7 +141,8 @@ export default {
name: this.info.name,
type: this.info.type,
year: this.info.year,
last: this.info.last
last: this.info.last,
note: this.info.note
}
star.add(docs).then(res => {
this.$message.success('收藏成功')

View File

@@ -303,7 +303,8 @@ export default {
name: e.name,
type: e.type,
year: e.year,
last: e.last
last: e.last,
note: e.note
}
star.add(docs).then(res => {
this.$message.success('收藏成功')

View File

@@ -9,7 +9,7 @@
<ul>
<li v-show="this.history.length === 0">无数据</li>
<li v-for="(i, j) in history" :key="j" @click="historyItemEvent(i)">
<span class="name">{{i.name}}</span>
<span class="name" @click.stop="playEvent(i)">{{i.name}}</span>
<span class="site">{{i.site}}</span>
<span class="index">{{i.index+1}}</span>
<span class="operate" style="width: 220px">

View File

@@ -474,7 +474,8 @@ export default {
name: info.name,
type: info.type,
year: info.year,
last: info.last
last: info.last,
note: info.note
}
star.add(docs).then(res => {
this.$message.success('收藏成功')

View File

@@ -12,6 +12,7 @@
<span class="type">{{i.type}}</span>
<span class="time">{{i.year}}</span>
<span class="from">{{i.site}}</span>
<span class="note">{{i.note}}</span>
<span class="operate" style="width: 220px">
<span class="btn" @click.stop="playEvent(i)">播放</span>
<span class="btn" @click.stop="deleteEvent(i)">删除</span>
@@ -129,12 +130,14 @@ export default {
name: res.name,
site: e.site,
type: res.type,
year: res.year
year: res.year,
note: res.note
}
star.update(e.id, doc).then(res => {
var msg = `同步"${e.name}"成功, 检查到更新。`
this.$message.success(msg)
})
this.getStarList()
}
}).catch(err => {
var msg = `同步"${e.name}"失败, 请重试。`