feat: 国内外标准库 左侧树 我的收藏

This commit is contained in:
super_liu
2021-07-27 14:39:01 +08:00
parent 986bb091e7
commit 4f37dc341f
3 changed files with 20 additions and 13 deletions
@@ -1267,6 +1267,9 @@ export default {
},
watch: {},
methods: {
FormatDate(date){
return moment(date).format('YYYY-MM-DD');
},
// 将文本状态的id与name对应
setMap(data){
data.forEach(item => {
@@ -2703,8 +2706,8 @@ export default {
location.half = half
location.showAll = false
})
this.$http.get('sarSarAccessInfo/sar-sar-access-info/selectProTimeInfoByStandId', {
standId: this.$route.params.id
this.$http.get('sarLawsAttrDetailedList/sar-laws-attr-detailed-list', {
id: this.$route.params.id
}, {
_this: this
}, res => {
@@ -2721,7 +2724,6 @@ export default {
}
})
this.dynamicFormField = displayLocation
console.log(this.dynamicFormField)
})
sessionStorage.setItem('displayLocation', JSON.stringify(displayLocation))
this.loading = false
@@ -2679,10 +2679,11 @@ export default {
},
// 树节点鼠标移入移出
mouseenter(data){
console.log(data)
this.$set(data, 'show', true)
if(data.parentId !== null){
this.$set(data, 'showDel', true)
if(data.menuName !== '我的收藏'){
this.$set(data, 'show', true)
if(data.parentId !== null){
this.$set(data, 'showDel', true)
}
}
},
mouseleave(data){
@@ -2690,6 +2691,7 @@ export default {
this.$set(data, 'showDel', false)
},
treeClick (treeNode) {
console.log(treeNode)
this.selectSarMenu = treeNode
this.standCommonlySearch.menuId = treeNode.id
this.sarStandardsSearch.menuId = treeNode.id // 将当前二级菜单的id传回后台做标准的条件查询
@@ -3431,8 +3433,9 @@ export default {
formData.nowOrder = this.nowOrder
formData.nowOrderBy = this.nowOrderBy
// formData.orderBy = this.orderBy
console.log(this.selectSarMenu.id)
// 处理我的收藏和个性化标签传参
if (this.selectSarMenu.id === 'wdsc') {
if (this.selectSarMenu.menuName === '我的收藏') {
formData.menuId = undefined
formData.labelMenuId = undefined
formData.collectMenuId = 'wdsc'
@@ -3472,6 +3475,7 @@ export default {
}
}
this.stahndinfoList = res.data.list
console.log(this.stahndinfoList)
this.total = res.data.count
if ((this.stahndinfoList.length === 0 || this.stahndinfoList === []) && this.sarStandardsSearch.page !== 1) {
this.pageChange(1)
@@ -2217,10 +2217,11 @@ export default {
},
// 树节点鼠标移入移出
mouseenter(data){
console.log(data)
this.$set(data, 'show', true)
if(data.parentId !== null){
this.$set(data, 'showDel', true)
if(data.menuName !== '我的收藏'){
this.$set(data, 'show', true)
if(data.parentId !== null){
this.$set(data, 'showDel', true)
}
}
},
mouseleave(data){
@@ -2878,7 +2879,7 @@ export default {
formData.nowOrderBy = this.nowOrder ? this.orderBy : ''
formData.nowOrder = this.nowOrder
// 处理我的收藏和个性化标签传参
if (this.selectSarMenu.id === 'wdsc') {
if (this.selectSarMenu.menuName === '我的收藏') {
formData.menuId = undefined
formData.labelMenuId = undefined
formData.collectMenuId = 'wdsc'