bug:国内、外标准法规点击收藏数据进去到我的收藏中

This commit is contained in:
fanlin
2021-07-21 15:12:40 +08:00
parent 1d7c837dcd
commit e02b43658a
3 changed files with 8 additions and 3 deletions
@@ -53,13 +53,13 @@
</el-col>
<el-col :span="6">
<el-tooltip class="item" effect="dark" :content="item.collectTitle" placement="top" v-if="item.collectTitle">
<div class="left-contents">标题{{ item.name }}</div>
<div class="left-contents">标题{{ item.collectTitle }}</div>
</el-tooltip>
<div v-else>
<div class="left-contents">标题{{ item.name }}</div>
<div class="left-contents">标题{{ item.collectTitle }}</div>
</div>
</el-col>
<el-col :span="4" :offset="3">创建时间{{getDate(item.createTime)}}</el-col>
<el-col :span="4" :offset="3">创建时间{{getDate(item.creationTime)}}</el-col>
</div>
<el-col :span="4">
<el-button size="mini" @click="cancelStandard(item.id)" style="margin-top: -5px; border: 1px dashed #dcdee2">取消收藏</el-button>
@@ -127,6 +127,7 @@ export default {
this.$http.get('person/personCollect/page', {
pageNo: this.page,
pageSize: this.$store.getters.userInfo.configContent,
userId: this.$store.getters.userInfo.userId,
collectTitle: this.search.name
}, {
_this: this,
@@ -2118,6 +2118,8 @@ export default {
this.personCollect.collectTitle = item.standName + ' ( 编号:' + item.standSort + ' ' + item.standNumber + ' )'
}
this.personCollect.collectType = 'INLAND_STAND'
this.personCollect.id = item.id
this.personCollect.userId = this.$store.getters.userInfo.userId
this.$http.postData('person/personCollect', this.personCollect, {
_this: this
}, res => {
@@ -1910,6 +1910,8 @@ export default {
this.personCollect.collectTitle = item.standName + ' ( 编号:' + item.standSort + ' ' + item.standNumber + ' )'
}
this.personCollect.collectType = 'FOREIGN_STAND'
this.personCollect.id = item.id
this.personCollect.userId = this.$store.getters.userInfo.userId
this.$http.postData('person/personCollect', this.personCollect, {
_this: this
}, res => {