BUG 27200

This commit is contained in:
aixianling
2022-02-11 12:05:02 +08:00
parent e5d35b859f
commit 5b193823b0
4 changed files with 128 additions and 83 deletions

View File

@@ -8,6 +8,8 @@
</template>
<script>
import qs from 'query-string'
export default {
name: "AiPagePicker",
model: {
@@ -47,7 +49,14 @@ export default {
this.$emit("select", data)
this.$emit("change", data.map(e => e[nodeKey]))
})
uni.navigateTo({url: `${config.url}?selected=${selected?.toString()}`})
let url = `${config.url}`,
qsstr = qs.stringify({
selected, ...this.$attrs
})
if (!!qsstr) {
url += `?${qsstr}`
}
uni.navigateTo({url})
}
}
}

View File

@@ -59,13 +59,16 @@ export default {
return this.treeList.filter(e => e.girdName?.indexOf(this.name) > -1 || !this.name) || []
}
},
onLoad() {
onLoad(params) {
if (params.girdLevel) {
this.girdLevel = params.girdLevel
}
this.isGirdUser()
},
methods: {
isGirdUser() {
this.$http.post('/app/appgirdmemberinfo/checkLogOnUser').then((res) => {
if (res.code == 0) {
if (res?.data) {
if (res.data.checkType) {
this.userGird = res.data
this.getTree()