@uxda/appkit 1.0.64 → 1.0.66
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/dist/appkit.css
CHANGED
|
@@ -614,6 +614,8 @@ page {
|
|
|
614
614
|
margin-right: 10px;
|
|
615
615
|
}
|
|
616
616
|
.consumption-view .operation-title .search-time .time {
|
|
617
|
+
height: 22px;
|
|
618
|
+
padding-right: 5px;
|
|
617
619
|
flex: 1;
|
|
618
620
|
display: flex;
|
|
619
621
|
align-items: center;
|
|
@@ -621,6 +623,8 @@ page {
|
|
|
621
623
|
.consumption-view .operation-title .search {
|
|
622
624
|
display: flex;
|
|
623
625
|
align-items: center;
|
|
626
|
+
height: 22px;
|
|
627
|
+
padding-left: 5px;
|
|
624
628
|
}
|
|
625
629
|
.consumption-view .operation-list {
|
|
626
630
|
margin: 0 15px;
|
package/dist/index.js
CHANGED
|
@@ -234,13 +234,13 @@ const request = (config) => {
|
|
|
234
234
|
method: config.method,
|
|
235
235
|
success(res) {
|
|
236
236
|
if (!isSuccess(res)) {
|
|
237
|
-
|
|
237
|
+
console.error("\u63A5\u53E3\u62A5\u9519", res);
|
|
238
238
|
reject({});
|
|
239
239
|
}
|
|
240
240
|
const { data: raw } = res;
|
|
241
241
|
if (clientConfig.interceptors?.auth(raw)) {
|
|
242
242
|
clientConfig.onAuthError?.();
|
|
243
|
-
reject("
|
|
243
|
+
reject("--- 401 ---");
|
|
244
244
|
}
|
|
245
245
|
if (clientConfig.interceptors?.server(raw)) {
|
|
246
246
|
clientConfig.onServerError?.();
|
|
@@ -250,7 +250,7 @@ const request = (config) => {
|
|
|
250
250
|
if (response) {
|
|
251
251
|
resolve(clientConfig.transforms && clientConfig.transforms[config.url] ? clientConfig.transforms[config.url](response) : response);
|
|
252
252
|
} else {
|
|
253
|
-
reject(
|
|
253
|
+
reject({});
|
|
254
254
|
}
|
|
255
255
|
},
|
|
256
256
|
fail(res) {
|
|
@@ -378,7 +378,8 @@ const makeHttp$1 = () => {
|
|
|
378
378
|
const token = appkitOptions.tempToken() || appkitOptions.token();
|
|
379
379
|
const header = {
|
|
380
380
|
Token: token,
|
|
381
|
-
Appcode: appkitOptions.app()
|
|
381
|
+
Appcode: appkitOptions.app(),
|
|
382
|
+
cookie: `tid=${appkitOptions.tenant()}`
|
|
382
383
|
};
|
|
383
384
|
const $http = useHttp({
|
|
384
385
|
baseUrl: appkitOptions.baseUrl(),
|
|
@@ -1272,6 +1273,7 @@ const _hoisted_17 = { class: "text" };
|
|
|
1272
1273
|
const _hoisted_18 = /* @__PURE__ */ createElementVNode(
|
|
1273
1274
|
"img",
|
|
1274
1275
|
{
|
|
1276
|
+
style: { "margin-top": "-2px" },
|
|
1275
1277
|
class: "time-icon",
|
|
1276
1278
|
src: "https://cdn.ddjf.com/static/images/bpms-workBench/clound-bean-down.png"
|
|
1277
1279
|
},
|
package/package.json
CHANGED
|
@@ -47,6 +47,7 @@
|
|
|
47
47
|
<div class="time" @click="openDateFilter" v-show="filtering.dateFrom">
|
|
48
48
|
<div class="text">{{ dataRangeDisplay }}</div>
|
|
49
49
|
<img
|
|
50
|
+
style="margin-top: -2px"
|
|
50
51
|
class="time-icon"
|
|
51
52
|
src="https://cdn.ddjf.com/static/images/bpms-workBench/clound-bean-down.png" />
|
|
52
53
|
</div>
|
|
@@ -394,6 +395,8 @@ const popupOpen = computed(() => {
|
|
|
394
395
|
margin-right: 10px;
|
|
395
396
|
}
|
|
396
397
|
.time {
|
|
398
|
+
height: 22px;
|
|
399
|
+
padding-right: 5px;
|
|
397
400
|
flex: 1;
|
|
398
401
|
display: flex;
|
|
399
402
|
align-items: center;
|
|
@@ -402,6 +405,8 @@ const popupOpen = computed(() => {
|
|
|
402
405
|
.search {
|
|
403
406
|
display: flex;
|
|
404
407
|
align-items: center;
|
|
408
|
+
height: 22px;
|
|
409
|
+
padding-left: 5px;
|
|
405
410
|
}
|
|
406
411
|
}
|
|
407
412
|
.operation-list {
|
package/src/payment/api/index.ts
CHANGED
package/src/shared/http/Http.ts
CHANGED
|
@@ -59,18 +59,15 @@ const request: Http['request'] = <T>(config: HttpRequestConfig) => {
|
|
|
59
59
|
method: config.method,
|
|
60
60
|
success (res: Taro.request.SuccessCallbackResult<ResponseRaw>) {
|
|
61
61
|
if (!isSuccess(res)) {
|
|
62
|
-
|
|
63
|
-
reject(`==接口报错==${res.statusCode}`)
|
|
62
|
+
console.error('接口报错', res)
|
|
64
63
|
reject({})
|
|
65
64
|
}
|
|
66
65
|
const { data: raw } = res
|
|
67
66
|
if (clientConfig.interceptors?.auth(raw)) {
|
|
68
|
-
//拦截 401
|
|
69
67
|
clientConfig.onAuthError?.()
|
|
70
|
-
reject('
|
|
68
|
+
reject('--- 401 ---')
|
|
71
69
|
}
|
|
72
70
|
if (clientConfig.interceptors?.server(raw)) {
|
|
73
|
-
// 拦截后端错误
|
|
74
71
|
clientConfig.onServerError?.()
|
|
75
72
|
reject('server error')
|
|
76
73
|
}
|
|
@@ -82,8 +79,9 @@ const request: Http['request'] = <T>(config: HttpRequestConfig) => {
|
|
|
82
79
|
? clientConfig.transforms[config.url](response) as T
|
|
83
80
|
: response as T)
|
|
84
81
|
} else {
|
|
85
|
-
|
|
86
|
-
|
|
82
|
+
reject({
|
|
83
|
+
|
|
84
|
+
})
|
|
87
85
|
}
|
|
88
86
|
},
|
|
89
87
|
fail (res) {
|