feat: There is no way the

This commit is contained in:
super_liu
2021-10-30 00:52:07 +08:00
parent 185ce228ed
commit 6579b7d166
9 changed files with 6641 additions and 833 deletions
@@ -50,10 +50,10 @@
<div class="left-contents">标题:{{ item.collectTitle }}</div>
</el-tooltip>
</el-col>
<el-col :span="4" :offset="3"> 创建时间:{{item.creationTime}}</el-col>
<el-col :span="4" :offset="3"> 创建时间:{{getDate(item.creationTime)}}</el-col>
</div>
<el-col :span="4">
<el-button size="mini" style="margin-top: -5px; border: 1px dashed #dcdee2" @click="cancelLaws(item.id)" v-btn-permission="'66SSMTSGN3UKCQB4LDRD'">{{$t('m.cancelCollection')}}</el-button>
<el-button size="mini" style="margin-top: -5px; border: 1px dashed #dcdee2" @click="cancelLaws(item.id)" v-btn-permission="''">{{$t('m.cancelCollection')}}</el-button>
<!-- <el-button size="mini" style="margin-top: -5px; border: 1px dashed #dcdee2" @click="writeLawsNotes(item,index1)">{{item.seeBtn}}</el-button>-->
</el-col>
</el-row>
@@ -144,6 +144,9 @@ export default {
}
},
methods: {
getDate (date) {
return date != null ? date.substring(0, date.indexOf(' ')) : ''
},
// 对话框关闭清除表单
noteChange (type) {
if (!type) {
@@ -271,33 +274,17 @@ export default {
this.$http.get('person/personCollect/page', {
pageNo: this.page,
pageSize: this.$store.getters.userInfo.configContent,
modeType: 'LAWS',
modeType: 'LAWS_STAND',
collectTitle: this.search.collectionLaws,
userId: this.$store.getters.userInfo.userId
}, {
_this: this,
loading: 'loading'
}, res => {
// for (let i = 0; i < res.data.list.length; i++) {
// res.data.list[i].check = false
// res.data.list[i].checked = false
// res.data.list[i].seeBtn = '查看笔记'
// }
this.lawsList = []
res.data.list.map((item, index) => {
item.checked = false
})
this.lawsList = res.data.list
this.total = res.data.count
this.lawsList = res.data.records
this.total = res.data.total
this.contentOpen = true
// if (this.saveNote !== '') {
// this.lawsList[this.saveNote].check = true
// if (this.lawsList[this.saveNote].check === true) {
// this.lawsList[this.saveNote].seeBtn = '关闭笔记'
// } else {
// this.lawsList[this.saveNote].seeBtn = '查看笔记'
// }
// }
}, e => {})
},
// 取消收藏
@@ -25,10 +25,12 @@ export default {
// {
// title: '已收藏的动态&资料 ',
// name: 'CollectionDynamics'
// }, {
// title: '已收藏的政策',
// name: 'CollectionLaws'
// }, {
// },
{
title: '已收藏的政策',
name: 'CollectionLaws'
},
// {
// title: '已收藏的标准拆分',
// name: 'CollectionBreak'
// }