cloud-web-corejs 1.0.21 → 1.0.23

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.
@@ -50,7 +50,7 @@
50
50
  </template>
51
51
  <template #buttonRight>
52
52
  <vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
53
- plain>{{$t1('重置')}}
53
+ plain>{{ $t1('重置') }}
54
54
  </vxe-button>
55
55
  <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">搜索
56
56
  </vxe-button>
@@ -239,9 +239,14 @@ export default {
239
239
  tableName: 'user_fieldTranslation_list-m1',
240
240
  path: USER_PREFIX + '/fieldTranslation/listPage',
241
241
  param: () => {
242
+ let tagCodes = null;
243
+ if (this.checkTags.length) {
244
+ tagCodes = this.checkTags.map(item => item.tagCode);
245
+ }
242
246
  return {
243
247
  ...this.formData,
244
- dataTypeCode: this.currentDataType.dataTypeCode
248
+ dataTypeCode: this.currentDataType.dataTypeCode,
249
+ tagCodes
245
250
  };
246
251
  },
247
252
  config: {
@@ -304,7 +309,7 @@ export default {
304
309
  this.openFieldTranslationEditDialog(row.id);
305
310
  }}
306
311
  >
307
- <el-tooltip enterable={false} effect="dark" content={ this.$t1('查看') } placement="top"
312
+ <el-tooltip enterable={false} effect="dark" content={this.$t1('查看')} placement="top"
308
313
  popper-class="tooltip-skin">
309
314
  <i class="el-icon-edit"/>
310
315
  </el-tooltip>
@@ -4,13 +4,11 @@
4
4
  <div class="d-header clearfix">
5
5
  <div class="fl">
6
6
  <i class="el-icon-info"/>
7
- {{ dataId ? $t1('查看') : $t1('新增') }} 用户
7
+ {{ dataId ? $t1('查看') : $t1('新增') }} {{ $t1('用户') }}
8
8
  </div>
9
9
  <div class="fr">
10
- <!-- <temp-storage-button :option="tempStorageOption" v-if="!dataId"></temp-storage-button>-->
11
- <base-input-export :option="exportOption" :parent-target="_self" v-if="dataId"/>
12
10
  <el-button type="primary" plain class="button-sty" icon="el-icon-unlock" @click="unlock" v-if="user.locked"
13
- v-hasPermi="'user:unlock'">解锁
11
+ v-hasPermi="'user:unlock'">{{ $t1('解锁') }}
14
12
  </el-button>
15
13
  <el-button type="primary" plain class="button-sty" @click="$baseReload()" icon="el-icon-refresh-right">
16
14
  {{ $t1('重置') }}
@@ -27,7 +25,7 @@
27
25
  <tr>
28
26
  <th>
29
27
  <em class="f-red">*</em>
30
- 登录名
28
+ {{ $t1('登录名') }}
31
29
  </th>
32
30
  <td colspan="3">
33
31
  <el-form-item prop="loginAccount" :rules="[{ required: true, trigger: 'blur' }]">
@@ -42,13 +40,13 @@
42
40
  </el-form-item>
43
41
  </td>
44
42
  <td colspan="4">
45
- <span class="tips">注:登录名必须以“dev_”开头</span>
43
+ <span class="tips">{{ $t1('注:登录名必须以“dev_”开头') }}</span>
46
44
  </td>
47
45
  </tr>
48
46
  <tr>
49
47
  <th>
50
48
  <em class="f-red">*</em>
51
- 姓名
49
+ {{ $t1('姓名') }}
52
50
  </th>
53
51
  <td colspan="3">
54
52
  <el-form-item prop="nickName" :rules="[{ required: true, trigger: 'blur' }]">
@@ -61,7 +59,7 @@
61
59
 
62
60
  <th>
63
61
  <em class="f-red" v-if="!dataId">*</em>
64
- 密码
62
+ {{ $t1('密码') }}
65
63
  </th>
66
64
  <td>
67
65
  <el-form-item prop="password" :rules="passRules">
@@ -71,7 +69,7 @@
71
69
  </td>
72
70
  <th>
73
71
  <em class="f-red" v-if="!dataId">*</em>
74
- 确认密码
72
+ {{ $t1('确认密码') }}
75
73
  </th>
76
74
  <td>
77
75
  <el-form-item prop="rePassword" :rules="pass2Rules">
@@ -90,9 +88,9 @@
90
88
  </td>
91
89
  </tr>
92
90
  <tr>
93
- <th>设置</th>
91
+ <th>{{ $t1('设置') }}</th>
94
92
  <td>
95
- <el-checkbox label="是否启用" v-model="user.enabled"></el-checkbox>
93
+ <el-checkbox :label="$t1('是否启用')" v-model="user.enabled"></el-checkbox>
96
94
  </td>
97
95
  </tr>
98
96
  <tr>
@@ -116,8 +114,6 @@
116
114
 
117
115
  <script>
118
116
  import xeUtils from "xe-utils";
119
- /*import tempStorageButton from "@base/components/tempStorage/index.vue";*/
120
-
121
117
 
122
118
  export default {
123
119
  name: 'UserEdit',
@@ -127,7 +123,7 @@ export default {
127
123
  var validatePass = (rule, value, callback) => {
128
124
  const isPassRequired = !this.dataId;
129
125
  if (isPassRequired && (value == '' || value == undefined)) {
130
- callback(new Error('密码不能为空'));
126
+ callback(new Error(this.$t1('密码不能为空')));
131
127
  } else {
132
128
  callback();
133
129
  }
@@ -139,9 +135,9 @@ export default {
139
135
  const password = this.user.password != undefined ? this.user.password : '';
140
136
 
141
137
  if (isPassRequired && rePassword == '') {
142
- callback(new Error('确认密码不能为空'));
138
+ callback(new Error(this.$t1('确认密码不能为空')));
143
139
  } else if (rePassword != password) {
144
- callback(new Error('两次输入密码不一致!'));
140
+ callback(new Error(this.$t1('两次输入密码不一致!')));
145
141
  } else {
146
142
  callback();
147
143
  }
@@ -179,7 +175,7 @@ export default {
179
175
  showCustomerDialog: false,
180
176
  exportOption: {
181
177
  prefix: USER_PREFIX,
182
- title: '用户',
178
+ title: this.$t1('用户'),
183
179
  codes: ["USEREXCEL", "USERPDF", "USERPRINT", "USERHIPRINT"],
184
180
  param: () => {
185
181
  return [{id: this.dataId}];
@@ -263,7 +259,7 @@ export default {
263
259
  let loginAccount = this.user.loginAccount;
264
260
  if (!loginAccount.startsWith('dev_')) {
265
261
  this.$message({
266
- message: '登录名必须以“dev_”开头',
262
+ message: this.$t1('登录名必须以“dev_”开头'),
267
263
  type: 'error',
268
264
  duration: 2000,
269
265
  });
@@ -463,7 +459,7 @@ export default {
463
459
  }
464
460
  },
465
461
  unlock() {
466
- this.$baseConfirm('您确定要解锁吗?').then(() => {
462
+ this.$baseConfirm(this.$t1('您确定要解锁吗?')).then(() => {
467
463
  var url = USER_PREFIX + '/user/unlockLoginAccount';
468
464
  this.$http({
469
465
  url: url,