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.
@@ -29,7 +29,7 @@
29
29
  />
30
30
  <!-- 按钮弹出框输入控件 -->
31
31
  <!-- isButtonShow字段是额外添加字段,用于控制区分输入框控件 -->
32
- <base-button
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,
@@ -2350,7 +2350,6 @@ export default {
2350
2350
  };
2351
2351
  let expStr = "";
2352
2352
  let filterBindingValues = loopColInfo.filters[0].data.bindingValues;
2353
- debugger
2354
2353
  //筛选条件过滤
2355
2354
  let colFilterExpression = { operator: "or", expressions: [] };
2356
2355
 
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
  }