kz-ui-base 1.0.147 → 1.0.148

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.
@@ -4,7 +4,7 @@
4
4
  <!-- <el-tooltip class="item" effect="dark" :content="showSearch ? '隐藏搜索' : '显示搜索'" placement="top"
5
5
  v-if="searchVisible"> -->
6
6
  <el-button size="mini" type="danger" icon="el-icon-close" @click="toggleSearch()">
7
- {{this.t('common.close')}}
7
+ 关闭
8
8
  </el-button>
9
9
  <!-- </el-tooltip> -->
10
10
  <!-- <el-tooltip class="item" effect="dark" content="刷新" placement="top" v-if="refreshVisible">
@@ -28,11 +28,6 @@ service.interceptors.request.use(
28
28
  if (getToken() && !isToken) {
29
29
  config.headers["Authorization"] = "Bearer " + getToken(); // 让每个请求携带自定义token 请根据实际情况自行修改
30
30
  }
31
- if(localStorage.getItem('locale')){
32
- config.headers["Lang"] = localStorage.getItem('locale');
33
- }else{
34
- config.headers["Lang"] = "zh-CN";
35
- }
36
31
  //添加 forward-to
37
32
  if (configRes && configRes.forwardTo) {
38
33
  config.headers["forward-to"] = configRes.forwardTo;
@@ -36,6 +36,7 @@
36
36
  format="HH:mm"
37
37
  value-format="HH:mm"
38
38
  @change="onChangeEvent"
39
+ placeholder="选择时间"
39
40
  >
40
41
  </el-time-picker>
41
42
  </el-form-item>
@@ -63,10 +63,10 @@
63
63
  icon="el-icon-search"
64
64
  size="mini"
65
65
  @click="handleQuery"
66
- >{{ this.t('common.search') }}</el-button
67
- >
68
- <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
69
- >{{ this.t('common.reset') }}</el-button
66
+ >搜索</el-button
67
+ >
68
+ <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
69
+ >重置</el-button
70
70
  >
71
71
  </el-form-item>
72
72
  </el-form>
@@ -137,12 +137,12 @@
137
137
  align="center"
138
138
  />
139
139
  <el-table-column
140
- v-if="listSetting.isShowIndexColumn != false"
141
- type="index"
142
- :label="this.t('component.table.serialNumber')"
143
- width="50"
144
- align="center"
145
- >
140
+ v-if="listSetting.isShowIndexColumn != false"
141
+ type="index"
142
+ label="序号"
143
+ width="50"
144
+ align="center"
145
+ >
146
146
  <template scope="scope">
147
147
  <span>{{
148
148
  (listQueryParams.pageNum - 1) * listQueryParams.pageSize +
@@ -256,7 +256,7 @@
256
256
  </template>
257
257
 
258
258
  <el-table-column
259
- :label="this.t('common.operation')"
259
+ label="操作"
260
260
  align="center"
261
261
  min-width="160"
262
262
  class-name="small-padding fixed-width"
@@ -323,13 +323,13 @@
323
323
  icon="el-icon-search"
324
324
  size="mini"
325
325
  @click="doubleHandleQuery(dex)"
326
- >{{ this.t('common.search') }}</el-button
326
+ >搜索</el-button
327
327
  >
328
328
  <el-button
329
329
  icon="el-icon-refresh"
330
330
  size="mini"
331
331
  @click="doubleResetQuery(dex)"
332
- >{{ this.t('common.reset') }}</el-button
332
+ >重置</el-button
333
333
  >
334
334
  </el-form-item>
335
335
  </el-form>
@@ -376,7 +376,7 @@
376
376
  <el-table-column
377
377
  v-if="tableSetting[dex].isShowIndexColumn != false"
378
378
  type="index"
379
- :label="this.t('component.table.serialNumber')"
379
+ label="序号"
380
380
  width="50"
381
381
  align="center"
382
382
  >
@@ -498,7 +498,7 @@
498
498
  </template>
499
499
 
500
500
  <el-table-column
501
- :label="this.t('common.operation')"
501
+ label="操作"
502
502
  align="center"
503
503
  min-width="160"
504
504
  class-name="small-padding fixed-width"
@@ -1017,7 +1017,7 @@ export default class doubleBasePageTs extends ListBasePage {
1017
1017
  );
1018
1018
  console.log(this.tableSetting[0].listColumns);
1019
1019
  } else {
1020
- this.msgError(this.t('component.form.dataError'));
1020
+ this.msgError("数据错误!");
1021
1021
  }
1022
1022
  });
1023
1023
  }
@@ -132,10 +132,10 @@
132
132
  icon="el-icon-search"
133
133
  size="mini"
134
134
  @click="handleQuery"
135
- >{{ this.t('common.search') }}</el-button
135
+ >搜索</el-button
136
136
  >
137
137
  <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
138
- >{{ this.t('common.reset') }}</el-button
138
+ >重置</el-button
139
139
  >
140
140
  <AdvancedQuery
141
141
  style="margin-left: 10px"
@@ -284,13 +284,13 @@
284
284
  icon="el-icon-search"
285
285
  size="mini"
286
286
  @click="handleQuery"
287
- >{{ this.t('common.search') }}</el-button
287
+ >搜索</el-button
288
288
  >
289
289
  <el-button
290
290
  icon="el-icon-refresh"
291
291
  size="mini"
292
292
  @click="resetQuery"
293
- >{{ this.t('common.reset') }}</el-button
293
+ >重置</el-button
294
294
  >
295
295
  <AdvancedQueryClose
296
296
  style="
@@ -1237,6 +1237,7 @@
1237
1237
  </printDialog>
1238
1238
  </div>
1239
1239
  </template>
1240
+
1240
1241
  <script lang="ts">
1241
1242
  import { Component, Prop, Vue, Watch } from "vue-property-decorator";
1242
1243
  import {
@@ -1416,7 +1417,7 @@ export default class listBasePage extends Vue {
1416
1417
  opMenus = [
1417
1418
  {
1418
1419
  visable: true,
1419
- text: (this as any).t('common.add'),
1420
+ text: "添加",
1420
1421
  icon: "el-icon-plus",
1421
1422
  permission: "add",
1422
1423
  name: "add",
@@ -1425,7 +1426,7 @@ export default class listBasePage extends Vue {
1425
1426
  },
1426
1427
  {
1427
1428
  visable: true,
1428
- text: (this as any).t('common.copy'),
1429
+ text: "复制",
1429
1430
  icon: "ion-md-copy",
1430
1431
  permission: "add",
1431
1432
  name: "copy",
@@ -1435,7 +1436,7 @@ export default class listBasePage extends Vue {
1435
1436
  },
1436
1437
  {
1437
1438
  visable: true,
1438
- text: (this as any).t('common.update'),
1439
+ text: "修改",
1439
1440
  icon: "el-icon-edit",
1440
1441
  permission: "edit",
1441
1442
  name: "update",
@@ -1445,7 +1446,7 @@ export default class listBasePage extends Vue {
1445
1446
  },
1446
1447
  {
1447
1448
  visable: true,
1448
- text: (this as any).t('common.delete'),
1449
+ text: "删除",
1449
1450
  icon: "el-icon-delete",
1450
1451
  permission: "remove",
1451
1452
  name: "delete",
@@ -1455,7 +1456,7 @@ export default class listBasePage extends Vue {
1455
1456
  },
1456
1457
  {
1457
1458
  visable: true,
1458
- text: (this as any).t('common.detail'),
1459
+ text: "查看",
1459
1460
  icon: "ion-md-information-circle-outline",
1460
1461
  name: "detail",
1461
1462
  isShowText: false,
@@ -1465,7 +1466,7 @@ export default class listBasePage extends Vue {
1465
1466
 
1466
1467
  {
1467
1468
  visable: true,
1468
- text: (this as any).t('common.export'),
1469
+ text: "导出",
1469
1470
  icon: "ion-md-cloud-download",
1470
1471
  name: "export",
1471
1472
  isShowText: false,
@@ -1473,7 +1474,7 @@ export default class listBasePage extends Vue {
1473
1474
  },
1474
1475
  {
1475
1476
  visable: true,
1476
- text: (this as any).t('common.import'),
1477
+ text: "导入",
1477
1478
  icon: "ion-md-cloud-upload",
1478
1479
  permission: "add",
1479
1480
  name: "import",
@@ -1482,7 +1483,7 @@ export default class listBasePage extends Vue {
1482
1483
  },
1483
1484
  {
1484
1485
  visable: false,
1485
- text: (this as any).t('system.order.startWf'),
1486
+ text: "发起审批",
1486
1487
  icon: "el-icon-position",
1487
1488
  permission: "startWf",
1488
1489
  name: "startWf",
@@ -1492,7 +1493,7 @@ export default class listBasePage extends Vue {
1492
1493
  },
1493
1494
  {
1494
1495
  visable: false,
1495
- text: (this as any).t('system.order.showWf'),
1496
+ text: "审批进度",
1496
1497
  icon: "el-icon-view",
1497
1498
  permission: "showWf",
1498
1499
  name: "showWf",
@@ -1505,7 +1506,7 @@ export default class listBasePage extends Vue {
1505
1506
  //{ visable: true, text: "高级搜索", icon: "ion-md-paw", name: "advanceSearch", isShowText: false },
1506
1507
  {
1507
1508
  visable: true,
1508
- text: (this as any).t('system.order.print'),
1509
+ text: "打印",
1509
1510
  icon: "ion-md-print",
1510
1511
  name: "print",
1511
1512
  isShowText: false,
@@ -1514,7 +1515,7 @@ export default class listBasePage extends Vue {
1514
1515
  },
1515
1516
  {
1516
1517
  visable: true,
1517
- text: (this as any).t('system.order.advancedSearch'),
1518
+ text: "高级搜索",
1518
1519
  icon: "ion-md-print",
1519
1520
  name: "search",
1520
1521
  isShowText: false,
@@ -1569,7 +1570,7 @@ export default class listBasePage extends Vue {
1569
1570
  //{ text: `用户账号`, property: "userAccount", visible: true },
1570
1571
  ];
1571
1572
  listSerialNumber = {
1572
- label: '序号',
1573
+ label: "序号",
1573
1574
  width: "50",
1574
1575
  align: "center",
1575
1576
  };
@@ -1666,7 +1667,7 @@ export default class listBasePage extends Vue {
1666
1667
  name: "basic",
1667
1668
  visable: true,
1668
1669
  icon: "ion-plus-round",
1669
- text: '基本信息',
1670
+ text: "基本信息",
1670
1671
  type: "area",
1671
1672
  },
1672
1673
  ];
@@ -1681,8 +1682,8 @@ export default class listBasePage extends Vue {
1681
1682
  editRules = {};
1682
1683
  //编辑界面按钮菜单
1683
1684
  editOpMenus = [
1684
- { name: "save", visable: true, icon: "ion-plus-round", text: (this as any).t('common.save') },
1685
- { name: "close", visable: true, icon: "ion-md-create", text: (this as any).t('common.close') },
1685
+ { name: "save", visable: true, icon: "ion-plus-round", text: "保存" },
1686
+ { name: "close", visable: true, icon: "ion-md-create", text: "关闭" },
1686
1687
  ];
1687
1688
  //编辑界面自定义按钮菜单 - 若无自定义按钮,不需要重写
1688
1689
  editCustomOpMenus = [
@@ -1694,7 +1695,7 @@ export default class listBasePage extends Vue {
1694
1695
  // 是否显示编辑窗口
1695
1696
  isShow: false,
1696
1697
  // 弹出层标题(用户导入)
1697
- title: (this as any).t('common.import'),
1698
+ title: "导入",
1698
1699
  // 是否禁用上传
1699
1700
  isUploading: false,
1700
1701
  // 是否更新已经存在的用户数据
@@ -1711,7 +1712,7 @@ export default class listBasePage extends Vue {
1711
1712
  // 是否显示编辑窗口
1712
1713
  isShow: false,
1713
1714
  // 弹出层标题(用户导入)
1714
- title: '打印模版',
1715
+ title: "打印模板",
1715
1716
  //打印类型
1716
1717
  templateType: "",
1717
1718
  // 保存时是否自动关闭
@@ -2015,7 +2016,7 @@ export default class listBasePage extends Vue {
2015
2016
  const sums = [];
2016
2017
  columns.forEach((column, index) => {
2017
2018
  if (index === 0) {
2018
- sums[index] = '合计';
2019
+ sums[index] = "合计";
2019
2020
  return;
2020
2021
  }
2021
2022
  const values = data.map((item) => Number(item[column.property]));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kz-ui-base",
3
- "version": "1.0.147",
3
+ "version": "1.0.148",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {