fix(仪表板): 分享查看仪表板下拉框过滤器报错没有权限

This commit is contained in:
fit2cloud-chenyw 2024-09-18 10:50:36 +08:00
parent 1003ab6a65
commit 6693d187d5
3 changed files with 18 additions and 6 deletions

View File

@ -420,10 +420,14 @@ export default {
if (!token && linkToken) {
method = linkMultFieldValues
}
method({
const param = {
fieldIds: this.element.options.attrs.fieldId.split(this.separator),
sort: this.element.options.attrs.sort
}).then(res => {
}
if (this.panelInfo.proxy) {
param.userId = this.panelInfo.proxy
}
method(param).then(res => {
this.data = this.optionData(res.data)
bus.$emit('valid-values-change', true)
cb && cb()

View File

@ -364,10 +364,14 @@ export default {
if (!token && linkToken) {
method = linkMultFieldValues
}
method({
const param = {
fieldIds: this.element.options.attrs.fieldId.split(','),
sort: this.element.options.attrs.sort, keyword: this.keyWord
}).then(res => {
}
if (this.panelInfo.proxy) {
param.userId = this.panelInfo.proxy
}
method(param).then(res => {
this.data = this.optionData(res.data)
this.changeInputStyle()
if (this.element.options.attrs.multiple) {

View File

@ -293,10 +293,14 @@ export default {
if (!token && linkToken) {
method = linkMappingFieldValues
}
method({
const param = {
fieldIds: this.element.options.attrs.fieldId.split(','),
sort: this.element.options.attrs.sort
}).then(res => {
}
if (this.panelInfo.proxy) {
param.userId = this.panelInfo.proxy
}
method(param).then(res => {
this.data = this.optionData(res.data)
this.$nextTick(() => {
this.$refs.deSelectTree && this.$refs.deSelectTree.treeDataUpdateFun(this.data)