cloud-web-corejs 1.0.54-dev.244 → 1.0.54-dev.246
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 +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/textFlag-editor.vue +8 -11
- package/src/components/xform/form-designer/setting-panel/property-editor/widgetShowRuleFlag-editor.vue +33 -35
- package/src/views/bd/setting/bd_company_env/dialog.vue +19 -11
- package/src/views/bd/setting/bd_company_env/edit.vue +6 -2
- package/src/views/bd/setting/bd_company_env/list.vue +22 -14
package/package.json
CHANGED
package/src/components/xform/form-designer/setting-panel/property-editor/textFlag-editor.vue
CHANGED
@@ -104,12 +104,6 @@
|
|
104
104
|
{{ row.serveName }}
|
105
105
|
</template>
|
106
106
|
</el-table-column>
|
107
|
-
<el-table-column label='加密规则(格式:“3*3”,“3*”,“*3”,“*”,“-”,数值表示明文位数)' width="400">
|
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"
|
122
|
-
<el-option :value="1" label="
|
123
|
-
<el-option :value="2" label="
|
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>
|
@@ -80,7 +80,7 @@
|
|
80
80
|
</el-table-column>
|
81
81
|
<el-table-column :label="i18nt('服务名称')" width="150">
|
82
82
|
<template slot-scope="{row}">
|
83
|
-
{{row.serveName}}
|
83
|
+
{{ row.serveName }}
|
84
84
|
</template>
|
85
85
|
</el-table-column>
|
86
86
|
|
@@ -128,7 +128,7 @@
|
|
128
128
|
</div>
|
129
129
|
</el-dialog>
|
130
130
|
<bdCompanyEnvDialog v-if="showBdCompanyEnvDialog" :visiable.sync="showBdCompanyEnvDialog"
|
131
|
-
|
131
|
+
@confirm="confirmBdCompanyEnvDialog" :multi="false"/>
|
132
132
|
</div>
|
133
133
|
</template>
|
134
134
|
<script>
|
@@ -148,7 +148,7 @@ export default {
|
|
148
148
|
return {
|
149
149
|
dialogVisible: false,
|
150
150
|
tableData: [],
|
151
|
-
showBdCompanyEnvDialog:false
|
151
|
+
showBdCompanyEnvDialog: false
|
152
152
|
}
|
153
153
|
},
|
154
154
|
methods: {
|
@@ -169,19 +169,25 @@ export default {
|
|
169
169
|
},
|
170
170
|
colSubmit() {
|
171
171
|
|
172
|
-
/*if(this.tableData.some(item=>!item.roleCodes)){
|
173
|
-
this.$message({
|
174
|
-
type:"error",
|
175
|
-
content:"角色编码不能为空"
|
176
|
-
})
|
177
|
-
return
|
178
|
-
}*/
|
179
|
-
|
180
|
-
let searveNameList = ["prod", "uat", "dev"];
|
181
172
|
let tableData = this.tableData;
|
182
173
|
let map = {}
|
174
|
+
|
183
175
|
for (let i = 0; i < tableData.length; i++) {
|
184
176
|
let item = tableData[i];
|
177
|
+
if (!item.serveName) {
|
178
|
+
this.$message({
|
179
|
+
type: "error",
|
180
|
+
message: "服务名称不能为空",
|
181
|
+
});
|
182
|
+
return
|
183
|
+
}
|
184
|
+
if (!item.companyCodes) {
|
185
|
+
this.$message({
|
186
|
+
type: "error",
|
187
|
+
message: "组织编码不能为空",
|
188
|
+
});
|
189
|
+
return
|
190
|
+
}
|
185
191
|
if (!item.roleCodes) {
|
186
192
|
this.$message({
|
187
193
|
type: "error",
|
@@ -189,33 +195,25 @@ export default {
|
|
189
195
|
})
|
190
196
|
return
|
191
197
|
}
|
192
|
-
if (item.
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
return
|
199
|
-
} else if(searveNameList.includes(item.serveName)){
|
200
|
-
this.$message({
|
201
|
-
type: "error",
|
202
|
-
message: "自定义服务的服务名称不能为`prod,uat,dev`"
|
203
|
-
})
|
204
|
-
return
|
205
|
-
}
|
198
|
+
if (!item.type) {
|
199
|
+
this.$message({
|
200
|
+
type: "error",
|
201
|
+
message: "设置不能为空"
|
202
|
+
})
|
203
|
+
return
|
206
204
|
}
|
207
|
-
|
208
|
-
|
209
|
-
let companyCodes = item.companyCodes
|
205
|
+
|
206
|
+
let serveName = item.serveName;
|
207
|
+
let companyCodes = item.companyCodes;
|
210
208
|
let key = serveName + "_" + companyCodes;
|
211
209
|
if (!map[key]) {
|
212
210
|
map[key] = true;
|
213
211
|
} else {
|
214
212
|
this.$message({
|
215
213
|
type: "error",
|
216
|
-
message: "[服务+组织]不能重复"
|
217
|
-
})
|
218
|
-
return
|
214
|
+
message: "[服务+组织]不能重复",
|
215
|
+
});
|
216
|
+
return;
|
219
217
|
}
|
220
218
|
}
|
221
219
|
|
@@ -240,16 +238,16 @@ export default {
|
|
240
238
|
row.serveName = serveName;
|
241
239
|
},
|
242
240
|
|
243
|
-
clearBdCompanyEnv(row){
|
241
|
+
clearBdCompanyEnv(row) {
|
244
242
|
row.serveName = null;
|
245
243
|
row.companyCodes = null;
|
246
244
|
},
|
247
|
-
openBdCompanyEnvDialog(rowIndex){
|
245
|
+
openBdCompanyEnvDialog(rowIndex) {
|
248
246
|
this.operateIndex = rowIndex;
|
249
247
|
this.showBdCompanyEnvDialog = true;
|
250
248
|
},
|
251
249
|
confirmBdCompanyEnvDialog(rows) {
|
252
|
-
if(rows.length){
|
250
|
+
if (rows.length) {
|
253
251
|
let row = rows[0];
|
254
252
|
let item = this.tableData[this.operateIndex]
|
255
253
|
item.serveName = row.bdService;
|
@@ -29,9 +29,11 @@
|
|
29
29
|
</template>
|
30
30
|
<template #buttonRight>
|
31
31
|
<vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
|
32
|
-
plain>{{$t1('重置')}}
|
32
|
+
plain>{{ $t1('重置') }}
|
33
33
|
</vxe-button>
|
34
|
-
<vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">{{
|
34
|
+
<vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">{{
|
35
|
+
$t1('搜索')
|
36
|
+
}}
|
35
37
|
</vxe-button>
|
36
38
|
</template>
|
37
39
|
</tableForm>
|
@@ -49,7 +51,7 @@
|
|
49
51
|
class="allDel icon-quanbushanchu" @click="clearChecked()"></a></el-tooltip>
|
50
52
|
<div class="list">
|
51
53
|
<div class="item" v-for="(checkRow, index) in checkRows" :key="index">
|
52
|
-
<p>{{ getCheckLabel(checkRow,'name') }}</p>
|
54
|
+
<p>{{ getCheckLabel(checkRow, 'name') }}</p>
|
53
55
|
<a class="el-icon-close" @click="clearTable1Select(index)"></a>
|
54
56
|
</div>
|
55
57
|
</div>
|
@@ -98,6 +100,7 @@ export default {
|
|
98
100
|
methods: {
|
99
101
|
initTableM1() {
|
100
102
|
let that = this;
|
103
|
+
let bdServiceMap = {"dev": this.$t1("测试"), "uat": this.$t1("UAT"), "prod": this.$t1("正式")};
|
101
104
|
let url = USER_PREFIX + '/bd_company_env/listPage';
|
102
105
|
let tableOption = {
|
103
106
|
vue: that,
|
@@ -112,16 +115,20 @@ export default {
|
|
112
115
|
columns: [
|
113
116
|
{type: 'checkbox', fixed: 'left', width: 48, resizable: false},
|
114
117
|
{
|
115
|
-
title: '服务',
|
118
|
+
title: this.$t1('服务'),
|
116
119
|
field: 'bdService',
|
117
120
|
width: 150,
|
118
|
-
fixed: 'left'
|
121
|
+
fixed: 'left',
|
122
|
+
slots: {
|
123
|
+
default: ({row}) => {
|
124
|
+
return bdServiceMap[row.bdService] || "";
|
125
|
+
}
|
126
|
+
}
|
119
127
|
},
|
120
128
|
{
|
121
|
-
title: '组织编码',
|
129
|
+
title: this.$t1('组织编码'),
|
122
130
|
field: 'bdCompanyCode',
|
123
131
|
width: 150,
|
124
|
-
fixed: 'left'
|
125
132
|
},
|
126
133
|
{
|
127
134
|
width: 47,
|
@@ -132,10 +139,11 @@ export default {
|
|
132
139
|
],
|
133
140
|
searchColumns: [
|
134
141
|
{
|
135
|
-
title: this.$t1(
|
136
|
-
|
137
|
-
|
138
|
-
|
142
|
+
title: this.$t1('服务'), field: "bdService", type: "select", common: true, itemOption: [
|
143
|
+
{label: this.$t1("测试"), value: "dev"},
|
144
|
+
{label: this.$t1("UAT"), value: "uat"},
|
145
|
+
{label: this.$t1("正式"), value: "prod"}
|
146
|
+
]
|
139
147
|
},
|
140
148
|
{
|
141
149
|
title: this.$t1("组织编码"),
|
@@ -26,7 +26,11 @@
|
|
26
26
|
</th>
|
27
27
|
<td>
|
28
28
|
<el-form-item prop="bdService" :rules="[{ required: true, trigger: 'blur' }]">
|
29
|
-
<el-
|
29
|
+
<el-select v-model="bdCompanyEnv.bdService">
|
30
|
+
<el-option value="dev" :label="$t1('测试')"></el-option>
|
31
|
+
<el-option value="uat" :label="$t1('UAT')"></el-option>
|
32
|
+
<el-option value="prod" :label="$t1('正式')"></el-option>
|
33
|
+
</el-select>
|
30
34
|
</el-form-item>
|
31
35
|
</td>
|
32
36
|
<th>
|
@@ -76,7 +80,7 @@ export default {
|
|
76
80
|
readTimeout: 60000,
|
77
81
|
preScript: null,
|
78
82
|
postScript: null,
|
79
|
-
exeCompanyCode:null
|
83
|
+
exeCompanyCode: null
|
80
84
|
},
|
81
85
|
showCodeEditor: false
|
82
86
|
};
|
@@ -12,15 +12,18 @@
|
|
12
12
|
<template #form>
|
13
13
|
<tableForm :formData.sync="formData" @searchEvent="searchEvent" @resetEvent="resetEvent">
|
14
14
|
<template #buttonLeft>
|
15
|
-
<vxe-button status="primary" class="button-sty" icon="el-icon-plus" @click="openEditDialog">
|
15
|
+
<vxe-button status="primary" class="button-sty" icon="el-icon-plus" @click="openEditDialog">
|
16
|
+
{{ $t1('新增') }}
|
16
17
|
</vxe-button>
|
17
|
-
<base-table-export :option="{ title: '企业组织环境设置导出', targetRef: 'table-m1'}"
|
18
|
+
<base-table-export :option="{ title: '企业组织环境设置导出', targetRef: 'table-m1'}"
|
19
|
+
:parent-target="_self"/>
|
18
20
|
</template>
|
19
21
|
<template #buttonRight>
|
20
22
|
<vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
|
21
|
-
plain>{{$t1('重置')}}
|
23
|
+
plain>{{ $t1('重置') }}
|
22
24
|
</vxe-button>
|
23
|
-
<vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">
|
25
|
+
<vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">
|
26
|
+
{{ $t1('搜索') }}
|
24
27
|
</vxe-button>
|
25
28
|
</template>
|
26
29
|
</tableForm>
|
@@ -68,7 +71,7 @@ export default {
|
|
68
71
|
},
|
69
72
|
initTableList() {
|
70
73
|
let that = this;
|
71
|
-
let
|
74
|
+
let bdServiceMap = {"dev": this.$t1("测试"), "uat": this.$t1("UAT"), "prod": this.$t1("正式")};
|
72
75
|
let tableOption = {
|
73
76
|
vue: this,
|
74
77
|
tableRef: 'table-m1',
|
@@ -82,16 +85,20 @@ export default {
|
|
82
85
|
columns: [
|
83
86
|
{type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
|
84
87
|
{
|
85
|
-
title: '服务',
|
88
|
+
title: this.$t1('服务'),
|
86
89
|
field: 'bdService',
|
87
90
|
width: 150,
|
88
|
-
fixed: 'left'
|
91
|
+
fixed: 'left',
|
92
|
+
slots: {
|
93
|
+
default: ({row}) => {
|
94
|
+
return bdServiceMap[row.bdService] || "";
|
95
|
+
}
|
96
|
+
}
|
89
97
|
},
|
90
98
|
{
|
91
|
-
title: '组织编码',
|
99
|
+
title: this.$t1('组织编码'),
|
92
100
|
field: 'bdCompanyCode',
|
93
101
|
width: 150,
|
94
|
-
fixed: 'left'
|
95
102
|
},
|
96
103
|
{
|
97
104
|
field: 'createBy',
|
@@ -129,7 +136,7 @@ export default {
|
|
129
136
|
this.openEditDialog(row.id);
|
130
137
|
}}
|
131
138
|
>
|
132
|
-
<el-tooltip enterable={false} effect="dark" content={
|
139
|
+
<el-tooltip enterable={false} effect="dark" content={this.$t1('查看')} placement="top"
|
133
140
|
popper-class="tooltip-skin">
|
134
141
|
<i class="el-icon-edit"/>
|
135
142
|
</el-tooltip>
|
@@ -142,10 +149,11 @@ export default {
|
|
142
149
|
],
|
143
150
|
searchColumns: [
|
144
151
|
{
|
145
|
-
title: this.$t1(
|
146
|
-
|
147
|
-
|
148
|
-
|
152
|
+
title: this.$t1('服务'), field: "bdService", type: "select", common: true, itemOption: [
|
153
|
+
{label: this.$t1("测试"), value: "dev"},
|
154
|
+
{label: this.$t1("UAT"), value: "uat"},
|
155
|
+
{label: this.$t1("正式"), value: "prod"}
|
156
|
+
]
|
149
157
|
},
|
150
158
|
{
|
151
159
|
title: this.$t1("组织编码"),
|