cloud-web-corejs 1.0.54-dev.243 → 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.243",
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
  }