kz-ui-base 2.5.171 → 2.5.173

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.
@@ -14,8 +14,8 @@ let configRes = JSON.parse(localStorage.getItem("configRes"));
14
14
  const service = axios.create({
15
15
  // axios中请求配置有baseURL选项,表示请求URL公共部分
16
16
  baseURL: process.env.VUE_APP_BASE_API,
17
- // 超时
18
- timeout: 30000,
17
+ // 超时(从 configRes 读取,默认 30000ms)
18
+ timeout: (configRes && configRes.requestTimeout) || 30000,
19
19
  });
20
20
 
21
21
  // request拦截器
@@ -127,9 +127,9 @@
127
127
  <el-table-column
128
128
  v-if="listSetting.isShowIndexColumn != false"
129
129
  type="index"
130
- :label="t('component.table.serialNumber')"
131
- width="50"
132
- align="center"
130
+ :label="listSerialNumber[0].label"
131
+ :width="listSerialNumber[0].width"
132
+ :align="listSerialNumber[0].align"
133
133
  >
134
134
  <template scope="scope">
135
135
  <span>
@@ -379,9 +379,9 @@
379
379
  <el-table-column
380
380
  v-if="tableSetting[dex].isShowIndexColumn != false"
381
381
  type="index"
382
- :label="t('component.table.serialNumber')"
383
- width="50"
384
- align="center"
382
+ :label="listSerialNumber[dex].label"
383
+ :width="listSerialNumber[dex].width"
384
+ :align="listSerialNumber[dex].align"
385
385
  >
386
386
  <template scope="scope">
387
387
  <span>
@@ -711,6 +711,19 @@ export default class doubleBasePageTs extends ListBasePage {
711
711
  bottomShow = false;
712
712
  //多表格全选按钮
713
713
  SelectionChangeShow = false;
714
+ //序号列配置,索引0对应表格1,索引1+对应表格2
715
+ listSerialNumber = [
716
+ {
717
+ label: this.t('component.table.serialNumber'),
718
+ width: "50",
719
+ align: "center",
720
+ },
721
+ {
722
+ label: this.t('component.table.serialNumber'),
723
+ width: "50",
724
+ align: "center",
725
+ },
726
+ ];
714
727
 
715
728
  //多个表格
716
729
  tableSetting = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kz-ui-base",
3
- "version": "2.5.171",
3
+ "version": "2.5.173",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {