cloud-web-corejs 1.0.54-dev.227 → 1.0.54-dev.228

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.227",
4
+ "version": "1.0.54-dev.228",
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
7
7
  "lint": "eslint --ext .js,.vue src",
@@ -356,7 +356,7 @@
356
356
  <el-input v-model="row.modelKey" clearable></el-input>
357
357
  </template>
358
358
  </el-table-column>
359
- <el-table-column :label="i18nt('节点步骤')" width="250">
359
+ <el-table-column :label="i18nt('节点步骤(多个值用“,”隔开)')" width="250">
360
360
  <template slot-scope="{row}">
361
361
  <el-input v-model="row.taskSteps" clearable></el-input>
362
362
  </template>
@@ -453,7 +453,7 @@
453
453
  <el-input v-model="row.modelKey" clearable></el-input>
454
454
  </template>
455
455
  </el-table-column>
456
- <el-table-column :label="i18nt('节点步骤')" width="250">
456
+ <el-table-column :label="i18nt('节点步骤(多个值用“,”隔开)')" width="250">
457
457
  <template slot-scope="{row}">
458
458
  <el-input v-model="row.taskSteps" clearable></el-input>
459
459
  </template>
@@ -59,17 +59,18 @@
59
59
  <el-option :value="2" label="UAT"></el-option>
60
60
  <el-option :value="3" label="测试"></el-option>
61
61
  <el-option :value="4" label="自定义"></el-option>
62
+ <el-option :value="5" label="默认"></el-option>
62
63
  </el-select>
63
64
  </template>
64
65
  </el-table-column>
65
- <el-table-column :label="i18nt('自定义服务')" width="150">
66
+ <el-table-column :label="i18nt('服务名称')" width="150">
66
67
  <template slot-scope="{row}">
67
68
  <el-input v-model="row.serveName" clearable :disabled="row.serveType!==4"></el-input>
68
69
  </template>
69
70
  </el-table-column>
70
71
  <el-table-column :label="i18nt('组织编码')" width="250">
71
72
  <template slot-scope="{row,$index}">
72
- <el-input v-model="row.companyCodes" clearable></el-input>
73
+ <el-input v-model="row.companyCodes" clearable :disabled="row.serveType==5"></el-input>
73
74
  </template>
74
75
  </el-table-column>
75
76
  <el-table-column :label="i18nt('流程模板编码')" width="150">
@@ -77,7 +78,7 @@
77
78
  <el-input v-model="row.modelKey" clearable></el-input>
78
79
  </template>
79
80
  </el-table-column>
80
- <el-table-column :label="i18nt('节点步骤')" width="250">
81
+ <el-table-column :label="i18nt('节点步骤(多个值用“,”隔开)')" width="250">
81
82
  <template slot-scope="{row}">
82
83
  <el-input v-model="row.taskSteps" clearable></el-input>
83
84
  </template>
@@ -294,8 +295,8 @@ export default {
294
295
  addItem() {
295
296
  let newItem = {
296
297
  type: 1,
297
- serveType: null,
298
- serveName: null,
298
+ serveType: 3,
299
+ serveName: "dev",
299
300
  modelKey: null,
300
301
  taskSteps: null,
301
302
  companyCodes: null
@@ -303,6 +304,42 @@ export default {
303
304
  this.tableData.push(newItem);
304
305
  },
305
306
  colSubmit() {
307
+
308
+ let searveNameList = ["prod", "uat", "dev"];
309
+ let tableData = this.tableData;
310
+ let map = {}
311
+ for (let i = 0; i < tableData.length; i++) {
312
+ let item = tableData[i];
313
+ if (item.serveType === 4) {
314
+ if (!item.serveName) {
315
+ this.$message({
316
+ type: "error",
317
+ message: "自定义服务的服务名称不能为空"
318
+ })
319
+ return
320
+ } else if(searveNameList.includes(item.serveName)){
321
+ this.$message({
322
+ type: "error",
323
+ message: "自定义服务的服务名称不能为`prod,uat,dev`"
324
+ })
325
+ return
326
+ }
327
+ }
328
+ let serveName = item.serveName || "";
329
+ if (item.serveType === 5) serveName = "_all";
330
+ let companyCodes = item.companyCodes || "";
331
+ let key = serveName + "_" + companyCodes;
332
+ if (!map[key]) {
333
+ map[key] = true;
334
+ } else {
335
+ this.$message({
336
+ type: "error",
337
+ message: "[服务+组织]不能重复"
338
+ })
339
+ return
340
+ }
341
+ }
342
+
306
343
  this.dialogVisible = !1;
307
344
  this.optionModel.wfConfigData = this.tableData;
308
345
  },
@@ -339,6 +376,9 @@ export default {
339
376
  if (serveType && map[serveType]) {
340
377
  serveName = map[row.serveType];
341
378
  }
379
+ if (serveType === 5) {
380
+ row.companyCodes = null
381
+ }
342
382
  row.serveName = serveName;
343
383
  },
344
384
  openDialog2() {