cloud-web-corejs 1.0.54-dev.242 → 1.0.54-dev.244

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cloud-web-corejs",
3
3
  "private": false,
4
- "version": "1.0.54-dev.242",
4
+ "version": "1.0.54-dev.244",
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
7
7
  "lint": "eslint --ext .js,.vue src",
@@ -104,7 +104,7 @@
104
104
  {{ row.serveName }}
105
105
  </template>
106
106
  </el-table-column>
107
- <el-table-column :label="i18nt('加密公式')" width="150">
107
+ <el-table-column label='加密规则(格式:“3*3”,“3*”,“*3”,“*”,“-”,数值表示明文位数)' width="400">
108
108
  <template slot-scope="{row}">
109
109
  <el-input v-model="row.encryptFormula" clearable></el-input>
110
110
  </template>
@@ -119,7 +119,7 @@
119
119
  <el-table-column :label="i18nt('设置')" width="150">
120
120
  <template slot-scope="{row}">
121
121
  <el-select v-model="row.type" clearable>
122
- <el-option :value="1" label="明文文本显示"></el-option>
122
+ <el-option :value="1" label="明文显示"></el-option>
123
123
  <el-option :value="2" label="密文文本显示"></el-option>
124
124
  <!-- <el-option :value="0" label="组件显示"></el-option>
125
125
  <el-option :value="3" label="超链接显示"></el-option>-->
@@ -213,14 +213,14 @@ export default {
213
213
  },
214
214
  addItem() {
215
215
  let newItem = {
216
- type: null,
216
+ type: 2,
217
217
  serveType: null,
218
218
  serveName: null,
219
219
  // loginAccounts: null,
220
220
  roleCodes: null,
221
221
  // saleOrgCodes: null,
222
222
  companyCodes: null,
223
- encryptFormula:null
223
+ encryptFormula: null
224
224
  }
225
225
  this.tableData.push(newItem);
226
226
  },
@@ -248,7 +248,14 @@ export default {
248
248
  if (!item.encryptFormula) {
249
249
  this.$message({
250
250
  type: "error",
251
- message: "加密公式不能为空",
251
+ message: "加密规则不能为空",
252
+ });
253
+ return
254
+ }
255
+ if (!item.type) {
256
+ this.$message({
257
+ type: "error",
258
+ message: "设置不能为空",
252
259
  });
253
260
  return
254
261
  }
@@ -265,10 +272,10 @@ export default {
265
272
  });
266
273
  return;
267
274
  }
268
- if(!pattern.test(item.encryptFormula)){
275
+ if (!pattern.test(item.encryptFormula)) {
269
276
  this.$message({
270
277
  type: "error",
271
- message: `第${i}行的加密公式格式错误`,
278
+ message: `第${i}行的加密规则格式错误`,
272
279
  });
273
280
  return;
274
281
  }
@@ -2391,13 +2391,13 @@ modules = {
2391
2391
  },
2392
2392
  validate(callback) {
2393
2393
  this.$refs['renderForm'].$baseValidate(valid => {
2394
- if(!valid){
2395
- // this.scrollToFirstError();
2396
- }
2394
+ /*if(!valid){
2395
+ this.scrollToFirstError();
2396
+ }*/
2397
2397
  callback && callback(valid);
2398
2398
  })
2399
2399
  },
2400
- scrollToFirstError() {
2400
+ /*scrollToFirstError() {
2401
2401
  // 获取第一个验证失败的字段
2402
2402
  let formTarget = this.$refs['renderForm'];
2403
2403
  const firstErrorField = Object.keys(formTarget.fields).find(key => {
@@ -2405,7 +2405,7 @@ modules = {
2405
2405
  });
2406
2406
 
2407
2407
  if (firstErrorField) {
2408
- const field = this.$refs.form.fields[firstErrorField];
2408
+ const field = formTarget.fields[firstErrorField];
2409
2409
 
2410
2410
  // 滚动到该字段位置
2411
2411
  field.$el.scrollIntoView({
@@ -2421,7 +2421,7 @@ modules = {
2421
2421
  field.$el.classList.remove('highlight');
2422
2422
  }, 3000);
2423
2423
  }
2424
- },
2424
+ },*/
2425
2425
  openSearchDialog(option) {
2426
2426
  this.searchDialogOption = option;
2427
2427
  this.showSearchDialog = true;