doway-coms 1.4.36 → 1.4.38
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/.browserslistrc +2 -2
- package/README.md +28 -28
- package/dist/css/chunk-vendors.7f83d8f9.css +8 -0
- package/dist/css/index.86478f73.css +3 -0
- package/dist/favicon.ico +0 -0
- package/dist/js/chunk-vendors.307eaa8f.js +347 -0
- package/dist/js/index.48e7f7ac.js +2 -0
- package/package.json +1 -1
- package/packages/BaseButton/index.js +8 -0
- package/packages/BaseButton/src/index.vue +241 -0
- package/packages/BaseForm/src/index.vue +3 -1
- package/packages/BaseGrid/src/index.vue +0 -1
- package/packages/index.js +3 -1
- package/packages/utils/request.js +6 -4
- package/dist/doway-coms.common.js +0 -135645
- package/dist/doway-coms.css +0 -3
- package/dist/doway-coms.umd.js +0 -135655
- package/dist/doway-coms.umd.min.js +0 -317
- package/dist/package.json +0 -12
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
/>
|
|
30
30
|
<!-- 按钮弹出框输入控件 -->
|
|
31
31
|
<!-- isButtonShow字段是额外添加字段,用于控制区分输入框控件 -->
|
|
32
|
-
<
|
|
32
|
+
<BaseButton
|
|
33
33
|
v-if="col.isButtonShow == true"
|
|
34
34
|
v-model="row[col.field]"
|
|
35
35
|
:colInfo="col"
|
|
@@ -268,6 +268,7 @@ import BaseDate from "../../BaseDate/index";
|
|
|
268
268
|
import BaseDatetime from "../../BaseDatetime/index";
|
|
269
269
|
import BaseDateWeek from "../../BaseDateWeek/index";
|
|
270
270
|
import BaseTextArea from "../../BaseTextArea/index";
|
|
271
|
+
import BaseButton from "../../BaseButton/index";
|
|
271
272
|
import BaseSelect from "../../BaseSelect/index";
|
|
272
273
|
import BaseSelectMulti from "../../BaseSelectMulti/index";
|
|
273
274
|
import BaseTime from "../../BaseTime/index";
|
|
@@ -284,6 +285,7 @@ export default {
|
|
|
284
285
|
BaseDatetime,
|
|
285
286
|
BaseDateWeek,
|
|
286
287
|
BaseTextArea,
|
|
288
|
+
BaseButton,
|
|
287
289
|
BaseSelect,
|
|
288
290
|
BaseSelectMulti,
|
|
289
291
|
BaseTime,
|
package/packages/index.js
CHANGED
|
@@ -20,6 +20,7 @@ import BasePrintPreview from './BasePrintPreview/index';
|
|
|
20
20
|
import BaseGantt from "./BaseGantt/index";
|
|
21
21
|
import BaseKanbanEmpty from "./BaseKanbanEmpty/index";
|
|
22
22
|
import BaseSearch from "./BaseSearch/index";
|
|
23
|
+
import BaseButton from "./BaseButton/index";
|
|
23
24
|
|
|
24
25
|
import store from './utils/store'
|
|
25
26
|
import request from './utils/request'
|
|
@@ -31,7 +32,7 @@ const components = [
|
|
|
31
32
|
BaseTextArea, BaseSelect, BaseSelectMulti, BaseTime, BasePagination,
|
|
32
33
|
BaseNumberInput, BaseTool, BaseToolStatus, BasePulldown, BaseIntervalInput,
|
|
33
34
|
BaseForm, BasePictureCard, BaseGrid, BasePrintPreview, BaseGantt,
|
|
34
|
-
BaseKanbanEmpty, BaseSearch
|
|
35
|
+
BaseKanbanEmpty, BaseSearch, BaseButton
|
|
35
36
|
];
|
|
36
37
|
// 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,则所有的组件都将被注册
|
|
37
38
|
|
|
@@ -156,6 +157,7 @@ export {
|
|
|
156
157
|
BaseGantt,
|
|
157
158
|
BaseKanbanEmpty,
|
|
158
159
|
BaseSearch,
|
|
160
|
+
BaseButton,
|
|
159
161
|
store,
|
|
160
162
|
request,
|
|
161
163
|
}
|
|
@@ -27,13 +27,13 @@ service.interceptors.request.use(
|
|
|
27
27
|
|
|
28
28
|
// respone interceptor
|
|
29
29
|
service.interceptors.response.use(
|
|
30
|
-
response => {
|
|
30
|
+
async response => {
|
|
31
31
|
const res = response.data
|
|
32
32
|
// 导出文件进入判断
|
|
33
33
|
if (res instanceof Blob) {
|
|
34
34
|
if (res.type === 'application/json') {
|
|
35
|
-
const enc = new TextDecoder('utf-8');
|
|
36
|
-
res.arrayBuffer().then((buffer) => {
|
|
35
|
+
const enc = await new TextDecoder('utf-8');
|
|
36
|
+
await res.arrayBuffer().then((buffer) => {
|
|
37
37
|
const tempData = JSON.parse(enc.decode(new Uint8Array(buffer))) || {};
|
|
38
38
|
if (tempData['code'] && tempData['code'] === 500) {
|
|
39
39
|
notification.error({
|
|
@@ -45,8 +45,10 @@ service.interceptors.response.use(
|
|
|
45
45
|
])
|
|
46
46
|
}
|
|
47
47
|
})
|
|
48
|
+
return Promise.reject(tempData['msg'])
|
|
48
49
|
}
|
|
49
|
-
})
|
|
50
|
+
})
|
|
51
|
+
.catch(reason => Promise.reject(reason))
|
|
50
52
|
}
|
|
51
53
|
return response;
|
|
52
54
|
}
|