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