doway-coms 2.1.0 → 2.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -2054,13 +2054,26 @@ export default {
|
|
|
2054
2054
|
if (!find) {
|
|
2055
2055
|
return
|
|
2056
2056
|
}
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2057
|
+
// 有筛选条件加筛选条件,没有筛选条件则初始化一下
|
|
2058
|
+
if (find.extraInfo.filterExpression) {
|
|
2059
|
+
loopCol.filters = find.extraInfo.filterExpression
|
|
2060
|
+
} else {
|
|
2061
|
+
if (loopCol.filters && loopCol.filters.length !== 0) {
|
|
2062
|
+
loopCol.filters[0].data = {
|
|
2060
2063
|
bindingValues: [],
|
|
2061
2064
|
displayValues: [],
|
|
2062
2065
|
displayValueSearchText: '',
|
|
2063
|
-
}
|
|
2066
|
+
}
|
|
2067
|
+
} else{
|
|
2068
|
+
loopCol.filters = [{
|
|
2069
|
+
data: {
|
|
2070
|
+
bindingValues: [],
|
|
2071
|
+
displayValues: [],
|
|
2072
|
+
displayValueSearchText: '',
|
|
2073
|
+
},
|
|
2074
|
+
}]
|
|
2075
|
+
}
|
|
2076
|
+
}
|
|
2064
2077
|
find.extraInfo.order
|
|
2065
2078
|
? (loopCol.order = find.extraInfo.order)
|
|
2066
2079
|
: (loopCol.order = null)
|
|
@@ -128,7 +128,12 @@ service.interceptors.response.use(
|
|
|
128
128
|
return response.data
|
|
129
129
|
}
|
|
130
130
|
if (res.code === 401) {
|
|
131
|
-
|
|
131
|
+
// 判断是否为无界的子应用
|
|
132
|
+
if (window.__POWERED_BY_WUJIE__) {
|
|
133
|
+
store.dispatch('logOut')
|
|
134
|
+
} else {
|
|
135
|
+
store.dispatch('logOutMicro') // 子应用的返回登录页操作
|
|
136
|
+
}
|
|
132
137
|
return Promise.reject(res.msg)
|
|
133
138
|
}
|
|
134
139
|
// 如果是授权接口报的错,不通过通用错误显示
|
|
@@ -147,8 +152,12 @@ service.interceptors.response.use(
|
|
|
147
152
|
},
|
|
148
153
|
error => {
|
|
149
154
|
if (error.response && error.response.status === 401) {
|
|
150
|
-
//
|
|
151
|
-
|
|
155
|
+
// 判断是否为无界的子应用
|
|
156
|
+
if (window.__POWERED_BY_WUJIE__) {
|
|
157
|
+
store.dispatch('logOut')
|
|
158
|
+
} else {
|
|
159
|
+
store.dispatch('logOutMicro') // 子应用的返回登录页操作
|
|
160
|
+
}
|
|
152
161
|
return
|
|
153
162
|
}
|
|
154
163
|
let errorMsg = ''
|