cloud-web-corejs 1.0.54-dev.243 → 1.0.54-dev.245

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.245",
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
7
7
  "lint": "eslint --ext .js,.vue src",
@@ -104,12 +104,6 @@
104
104
  {{ row.serveName }}
105
105
  </template>
106
106
  </el-table-column>
107
- <el-table-column :label="i18nt('加密公式')" width="150">
108
- <template slot-scope="{row}">
109
- <el-input v-model="row.encryptFormula" clearable></el-input>
110
- </template>
111
- </el-table-column>
112
-
113
107
  <el-table-column :label="i18nt('角色编码')" width="250">
114
108
  <template slot-scope="{row}">
115
109
  <el-input v-model="row.roleCodes" clearable></el-input>
@@ -118,14 +112,17 @@
118
112
 
119
113
  <el-table-column :label="i18nt('设置')" width="150">
120
114
  <template slot-scope="{row}">
121
- <el-select v-model="row.type" clearable>
122
- <el-option :value="1" label="明文文本显示"></el-option>
123
- <el-option :value="2" label="密文文本显示"></el-option>
124
- <!-- <el-option :value="0" label="组件显示"></el-option>
125
- <el-option :value="3" label="超链接显示"></el-option>-->
115
+ <el-select v-model="row.type">
116
+ <el-option :value="1" label="明文"></el-option>
117
+ <el-option :value="2" label="密文"></el-option>
126
118
  </el-select>
127
119
  </template>
128
120
  </el-table-column>
121
+ <el-table-column label='加密规则(格式:“3*3”,“3*”,“*3”,“*”,“-”,数值表示明文位数)' width="400">
122
+ <template slot-scope="{row}">
123
+ <el-input v-model="row.encryptFormula" clearable></el-input>
124
+ </template>
125
+ </el-table-column>
129
126
  <el-table-column :label="i18nt('designer.setting.actionColumn')" width="100" align="center">
130
127
  <template #header>
131
128
  <span>{{ i18nt('designer.setting.actionColumn') }}</span>
@@ -213,14 +210,14 @@ export default {
213
210
  },
214
211
  addItem() {
215
212
  let newItem = {
216
- type: null,
213
+ type: 2,
217
214
  serveType: null,
218
215
  serveName: null,
219
216
  // loginAccounts: null,
220
217
  roleCodes: null,
221
218
  // saleOrgCodes: null,
222
219
  companyCodes: null,
223
- encryptFormula:null
220
+ encryptFormula: null
224
221
  }
225
222
  this.tableData.push(newItem);
226
223
  },
@@ -248,7 +245,14 @@ export default {
248
245
  if (!item.encryptFormula) {
249
246
  this.$message({
250
247
  type: "error",
251
- message: "加密公式不能为空",
248
+ message: "加密规则不能为空",
249
+ });
250
+ return
251
+ }
252
+ if (!item.type) {
253
+ this.$message({
254
+ type: "error",
255
+ message: "设置不能为空",
252
256
  });
253
257
  return
254
258
  }
@@ -265,10 +269,10 @@ export default {
265
269
  });
266
270
  return;
267
271
  }
268
- if(!pattern.test(item.encryptFormula)){
272
+ if (!pattern.test(item.encryptFormula)) {
269
273
  this.$message({
270
274
  type: "error",
271
- message: `第${i}行的加密公式格式错误`,
275
+ message: `第${i}行的加密规则格式错误`,
272
276
  });
273
277
  return;
274
278
  }
@@ -26,7 +26,11 @@
26
26
  </th>
27
27
  <td>
28
28
  <el-form-item prop="bdService" :rules="[{ required: true, trigger: 'blur' }]">
29
- <el-input type="text" autocomplete="off" v-model="bdCompanyEnv.bdService" clearable/>
29
+ <el-select v-model="bdCompanyEnv.bdService">
30
+ <el-option value="dev" label="DEV"></el-option>
31
+ <el-option value="uat" label="UAT"></el-option>
32
+ <el-option value="prod" label="PROD"></el-option>
33
+ </el-select>
30
34
  </el-form-item>
31
35
  </td>
32
36
  <th>
@@ -141,11 +141,18 @@ export default {
141
141
  }
142
142
  ],
143
143
  searchColumns: [
144
- {
144
+ /*{
145
145
  title: this.$t1("服务"),
146
146
  field: "bdService",
147
147
  type: "input",
148
148
  common: true,
149
+ },*/
150
+ {
151
+ title: this.$t1('服务'), field: "bdService", type: "select", common: true, itemOption: [
152
+ {label: "DEV", value: "dev"},
153
+ {label: "UAT", value: "uat"},
154
+ {label: "PROD", value: "prod"}
155
+ ]
149
156
  },
150
157
  {
151
158
  title: this.$t1("组织编码"),