cloud-web-corejs 1.0.54-dev.240 → 1.0.54-dev.241
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/form-widget/field-widget/form-item-wrapper.vue +103 -44
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +588 -164
- package/src/components/xform/form-designer/setting-panel/property-editor/textFlag-editor.vue +152 -69
- package/src/components/xform/form-designer/setting-panel/property-editor/wfFlag-editor.vue +217 -113
- package/src/components/xform/form-designer/setting-panel/property-editor/widgetShowRuleFlag-editor.vue +47 -2
- package/src/components/xform/form-render/indexMixin.js +13 -5
- package/src/components/xform/mixins/scriptHttp.js +0 -10
- package/src/views/bd/setting/bd_company_env/dialog.vue +161 -0
- package/src/views/bd/setting/bd_company_env/edit.vue +151 -0
- package/src/views/bd/setting/bd_company_env/list.vue +164 -0
- package/src/views/bd/setting/config_manage/list.vue +4 -2
- package/src/views/user/wf/wf_obj_config/itemEdit.vue +11 -1
- package/src/views/user/wf/wf_obj_config/list.vue +5 -1
@@ -1,17 +1,28 @@
|
|
1
1
|
<template>
|
2
2
|
<div>
|
3
|
-
<!-- <el-form-item :label="i18nt('有流程可编辑')">
|
3
|
+
<!-- <el-form-item :label="i18nt('有流程可编辑')">
|
4
4
|
<el-switch v-model="optionModel.enabledByWf" @change="changeEnabledByWf"></el-switch>
|
5
5
|
</el-form-item>
|
6
6
|
<el-form-item :label="i18nt('有流程隐藏')">
|
7
7
|
<el-switch v-model="optionModel.hiddenByWf" @change="changeHiddenByWf"></el-switch>
|
8
8
|
</el-form-item>-->
|
9
9
|
<el-form-item :label="i18nt('特定流程节点设置')">
|
10
|
-
<el-switch
|
10
|
+
<el-switch
|
11
|
+
v-model="optionModel.wfEdit"
|
12
|
+
@change="changeWfEdit"
|
13
|
+
></el-switch>
|
11
14
|
</el-form-item>
|
12
15
|
<el-form-item :label="i18nt('流程节点信息')">
|
13
|
-
<a
|
14
|
-
|
16
|
+
<a
|
17
|
+
href="javascript:void(0);"
|
18
|
+
class="a-link link-oneLind"
|
19
|
+
@click="openDialog"
|
20
|
+
>
|
21
|
+
<span>{{
|
22
|
+
optionModel.wfConfigData && optionModel.wfConfigData.length
|
23
|
+
? "已维护"
|
24
|
+
: ""
|
25
|
+
}}</span>
|
15
26
|
<i class="el-icon-edit"></i>
|
16
27
|
</a>
|
17
28
|
</el-form-item>
|
@@ -19,8 +30,17 @@
|
|
19
30
|
<el-switch v-model="optionModel.wfModifyDataEnabled"></el-switch>
|
20
31
|
</el-form-item>
|
21
32
|
<el-form-item :label="i18nt('更改业务数据信息')">
|
22
|
-
<a
|
23
|
-
|
33
|
+
<a
|
34
|
+
href="javascript:void(0);"
|
35
|
+
class="a-link link-oneLind"
|
36
|
+
@click="openDialog2"
|
37
|
+
>
|
38
|
+
<span>{{
|
39
|
+
optionModel.wfModifyDataConfig &&
|
40
|
+
optionModel.wfModifyDataConfig.length
|
41
|
+
? "已维护"
|
42
|
+
: ""
|
43
|
+
}}</span>
|
24
44
|
<i class="el-icon-edit"></i>
|
25
45
|
</a>
|
26
46
|
</el-form-item>
|
@@ -40,7 +60,7 @@
|
|
40
60
|
v-dialog-drag
|
41
61
|
:fullscreen="true"
|
42
62
|
>
|
43
|
-
<div class="cont" style="padding-bottom: 8px
|
63
|
+
<div class="cont" style="padding-bottom: 8px">
|
44
64
|
<el-table
|
45
65
|
ref="singleTable"
|
46
66
|
width="100%"
|
@@ -49,54 +69,78 @@
|
|
49
69
|
border=""
|
50
70
|
row-key="columnId"
|
51
71
|
stripe=""
|
52
|
-
style="margin-bottom: 0px
|
72
|
+
style="margin-bottom: 0px"
|
53
73
|
>
|
54
|
-
<el-table-column
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
74
|
+
<el-table-column
|
75
|
+
type="index"
|
76
|
+
width="35"
|
77
|
+
fixed="left"
|
78
|
+
></el-table-column>
|
79
|
+
<el-table-column :label="i18nt('组织编码')" width="250">
|
80
|
+
<template slot-scope="{ row, $index }">
|
81
|
+
<el-input
|
82
|
+
class="search-input"
|
83
|
+
max="200"
|
84
|
+
v-model="row.companyCodes"
|
85
|
+
@clear="clearBdCompanyEnv(row)"
|
86
|
+
v-el-readonly
|
87
|
+
clearable
|
88
|
+
>
|
89
|
+
<i
|
90
|
+
slot="suffix"
|
91
|
+
class="el-input__icon el-icon-search"
|
92
|
+
@click="openBdCompanyEnvDialog($index)"
|
93
|
+
></i>
|
94
|
+
</el-input>
|
64
95
|
</template>
|
65
96
|
</el-table-column>
|
66
97
|
<el-table-column :label="i18nt('服务名称')" width="150">
|
67
|
-
<template slot-scope="{row}">
|
68
|
-
|
69
|
-
</template>
|
70
|
-
</el-table-column>
|
71
|
-
<el-table-column :label="i18nt('组织编码')" width="250">
|
72
|
-
<template slot-scope="{row,$index}">
|
73
|
-
<el-input v-model="row.companyCodes" clearable :disabled="row.serveType==5"></el-input>
|
98
|
+
<template slot-scope="{ row }">
|
99
|
+
{{ row.serveName }}
|
74
100
|
</template>
|
75
101
|
</el-table-column>
|
76
|
-
<el-table-column :label="i18nt('流程模板编码')" width="150">
|
77
|
-
<template slot-scope="{row}">
|
102
|
+
<!-- <el-table-column :label="i18nt('流程模板编码')" width="150">
|
103
|
+
<template slot-scope="{ row }">
|
78
104
|
<el-input v-model="row.modelKey" clearable></el-input>
|
79
105
|
</template>
|
106
|
+
</el-table-column> -->
|
107
|
+
<el-table-column :label="i18nt('流程模板序号')" width="150">
|
108
|
+
<template slot-scope="{ row }">
|
109
|
+
<base-input-number v-model="row.modelOrders" clearable></base-input-number>
|
110
|
+
</template>
|
80
111
|
</el-table-column>
|
81
|
-
<el-table-column
|
82
|
-
|
112
|
+
<el-table-column
|
113
|
+
:label="i18nt('节点步骤(多个值用“,”隔开)')"
|
114
|
+
width="250"
|
115
|
+
>
|
116
|
+
<template slot-scope="{ row }">
|
83
117
|
<el-input v-model="row.taskSteps" clearable></el-input>
|
84
118
|
</template>
|
85
119
|
</el-table-column>
|
86
120
|
<el-table-column :label="i18nt('设置')" width="150">
|
87
|
-
<template slot-scope="{row}">
|
121
|
+
<template slot-scope="{ row }">
|
88
122
|
<el-select v-model="row.type">
|
89
123
|
<el-option :value="1" label="可编辑"></el-option>
|
90
|
-
<!-- <el-option :value="2" label="仅显示"></el-option>
|
124
|
+
<!-- <el-option :value="2" label="仅显示"></el-option>
|
91
125
|
<el-option :value="3" label="隐藏"></el-option>-->
|
92
126
|
</el-select>
|
93
127
|
</template>
|
94
128
|
</el-table-column>
|
95
|
-
<el-table-column
|
129
|
+
<el-table-column
|
130
|
+
:label="i18nt('designer.setting.actionColumn')"
|
131
|
+
width="100"
|
132
|
+
align="center"
|
133
|
+
>
|
96
134
|
<template #header>
|
97
|
-
<span>{{ i18nt(
|
98
|
-
<el-button
|
99
|
-
|
135
|
+
<span>{{ i18nt("designer.setting.actionColumn") }}</span>
|
136
|
+
<el-button
|
137
|
+
:title="i18nt('designer.setting.addTableColumn')"
|
138
|
+
size="mini"
|
139
|
+
type=""
|
140
|
+
circle=""
|
141
|
+
icon="el-icon-plus"
|
142
|
+
@click="addItem"
|
143
|
+
></el-button>
|
100
144
|
</template>
|
101
145
|
<template slot-scope="scope">
|
102
146
|
<el-button
|
@@ -105,19 +149,27 @@
|
|
105
149
|
type=""
|
106
150
|
circle=""
|
107
151
|
icon="el-icon-minus"
|
108
|
-
@click="tableData.splice(scope.$index,1)"
|
152
|
+
@click="tableData.splice(scope.$index, 1)"
|
109
153
|
></el-button>
|
110
154
|
</template>
|
111
155
|
</el-table-column>
|
112
|
-
|
113
156
|
</el-table>
|
114
157
|
</div>
|
115
158
|
<div class="dialog-footer" slot="footer">
|
116
|
-
<el-button
|
117
|
-
|
159
|
+
<el-button
|
160
|
+
@click="dialogVisible = false"
|
161
|
+
class="button-sty"
|
162
|
+
icon="el-icon-close"
|
163
|
+
>
|
164
|
+
{{ i18nt("designer.hint.cancel") }}
|
118
165
|
</el-button>
|
119
|
-
<el-button
|
120
|
-
|
166
|
+
<el-button
|
167
|
+
type="primary"
|
168
|
+
@click="colSubmit"
|
169
|
+
class="button-sty"
|
170
|
+
icon="el-icon-check"
|
171
|
+
>
|
172
|
+
{{ i18nt("designer.hint.confirm") }}
|
121
173
|
</el-button>
|
122
174
|
</div>
|
123
175
|
</el-dialog>
|
@@ -136,7 +188,7 @@
|
|
136
188
|
top="5vh"
|
137
189
|
v-dialog-drag
|
138
190
|
>
|
139
|
-
<div class="cont" style="padding-bottom: 8px
|
191
|
+
<div class="cont" style="padding-bottom: 8px">
|
140
192
|
<el-table
|
141
193
|
ref="singleTable"
|
142
194
|
width="100%"
|
@@ -145,11 +197,15 @@
|
|
145
197
|
border=""
|
146
198
|
row-key="columnId"
|
147
199
|
stripe=""
|
148
|
-
style="margin-bottom: 0px
|
200
|
+
style="margin-bottom: 0px"
|
149
201
|
>
|
150
|
-
<el-table-column
|
202
|
+
<el-table-column
|
203
|
+
type="index"
|
204
|
+
width="35"
|
205
|
+
fixed="left"
|
206
|
+
></el-table-column>
|
151
207
|
<el-table-column :label="i18nt('流程动作')" width="150">
|
152
|
-
<template slot-scope="{row}">
|
208
|
+
<template slot-scope="{ row }">
|
153
209
|
<el-select v-model="row.action">
|
154
210
|
<el-option value="start" label="流程启动"></el-option>
|
155
211
|
<el-option value="interrupt" label="流程中断"></el-option>
|
@@ -167,7 +223,7 @@
|
|
167
223
|
</template>
|
168
224
|
</el-table-column>-->
|
169
225
|
<el-table-column :label="i18nt('设置的值')" width="650">
|
170
|
-
<template slot-scope="{row}">
|
226
|
+
<template slot-scope="{ row }">
|
171
227
|
<el-input v-model="row.toValue" clearable></el-input>
|
172
228
|
<!-- <el-input v-model="row.toValue" clearable v-if="row.valueType==1"></el-input>
|
173
229
|
<base-input-number v-model="row.toValue" clearable v-else-if="row.valueType==2"></base-input-number>
|
@@ -175,14 +231,23 @@
|
|
175
231
|
<el-radio :label="true">true</el-radio>
|
176
232
|
<el-radio :label="false">false</el-radio>
|
177
233
|
</el-radio-group>-->
|
178
|
-
|
179
234
|
</template>
|
180
235
|
</el-table-column>
|
181
|
-
<el-table-column
|
236
|
+
<el-table-column
|
237
|
+
:label="i18nt('designer.setting.actionColumn')"
|
238
|
+
width="100"
|
239
|
+
align="center"
|
240
|
+
>
|
182
241
|
<template #header>
|
183
|
-
<span>{{ i18nt(
|
184
|
-
<el-button
|
185
|
-
|
242
|
+
<span>{{ i18nt("designer.setting.actionColumn") }}</span>
|
243
|
+
<el-button
|
244
|
+
:title="i18nt('designer.setting.addTableColumn')"
|
245
|
+
size="mini"
|
246
|
+
type=""
|
247
|
+
circle=""
|
248
|
+
icon="el-icon-plus"
|
249
|
+
@click="addItem2"
|
250
|
+
></el-button>
|
186
251
|
</template>
|
187
252
|
<template slot-scope="scope">
|
188
253
|
<el-button
|
@@ -191,35 +256,56 @@
|
|
191
256
|
type=""
|
192
257
|
circle=""
|
193
258
|
icon="el-icon-minus"
|
194
|
-
@click="tableData2.splice(scope.$index,1)"
|
259
|
+
@click="tableData2.splice(scope.$index, 1)"
|
195
260
|
></el-button>
|
196
261
|
</template>
|
197
262
|
</el-table-column>
|
198
|
-
|
199
263
|
</el-table>
|
200
264
|
</div>
|
201
265
|
<div class="dialog-footer" slot="footer">
|
202
|
-
<el-button
|
203
|
-
|
266
|
+
<el-button
|
267
|
+
@click="dialogVisible2 = false"
|
268
|
+
class="button-sty"
|
269
|
+
icon="el-icon-close"
|
270
|
+
>
|
271
|
+
{{ i18nt("designer.hint.cancel") }}
|
204
272
|
</el-button>
|
205
|
-
<el-button
|
206
|
-
|
273
|
+
<el-button
|
274
|
+
type="primary"
|
275
|
+
@click="colSubmit2"
|
276
|
+
class="button-sty"
|
277
|
+
icon="el-icon-check"
|
278
|
+
>
|
279
|
+
{{ i18nt("designer.hint.confirm") }}
|
207
280
|
</el-button>
|
208
281
|
</div>
|
209
282
|
</el-dialog>
|
210
|
-
<companyInfoDialog
|
211
|
-
|
212
|
-
|
283
|
+
<companyInfoDialog
|
284
|
+
v-if="showCompanyInfoDialog"
|
285
|
+
:visiable.sync="showCompanyInfoDialog"
|
286
|
+
@confirm="confirmCompanyDialog"
|
287
|
+
:multi="true"
|
288
|
+
:allCompany="true"
|
289
|
+
:rows="currentCompanyInfos"
|
290
|
+
fieldKey="companyCode"
|
291
|
+
/>
|
292
|
+
<bdCompanyEnvDialog
|
293
|
+
v-if="showBdCompanyEnvDialog"
|
294
|
+
:visiable.sync="showBdCompanyEnvDialog"
|
295
|
+
@confirm="confirmBdCompanyEnvDialog"
|
296
|
+
:multi="false"
|
297
|
+
/>
|
213
298
|
</div>
|
214
299
|
</template>
|
215
300
|
|
216
301
|
<script>
|
217
|
-
import i18n from "../../../../../components/xform/utils/i18n"
|
302
|
+
import i18n from "../../../../../components/xform/utils/i18n";
|
218
303
|
import companyInfoDialog from "@base/views/user/company_info/dialog.vue";
|
304
|
+
import bdCompanyEnvDialog from "@/views/bd/setting/bd_company_env/dialog";
|
219
305
|
|
220
306
|
export default {
|
221
307
|
name: "wfFlag-editor",
|
222
|
-
components: {companyInfoDialog},
|
308
|
+
components: { companyInfoDialog, bdCompanyEnvDialog },
|
223
309
|
mixins: [i18n],
|
224
310
|
props: {
|
225
311
|
designer: Object,
|
@@ -240,13 +326,15 @@ export default {
|
|
240
326
|
|
241
327
|
dialogVisible2: false,
|
242
328
|
tableData2: [],
|
243
|
-
|
329
|
+
|
330
|
+
showBdCompanyEnvDialog: false,
|
331
|
+
};
|
244
332
|
},
|
245
333
|
computed: {
|
246
334
|
current_prefix() {
|
247
335
|
let reportTemplate = this.getReportTemplate();
|
248
336
|
return "/" + reportTemplate.serviceName;
|
249
|
-
}
|
337
|
+
},
|
250
338
|
},
|
251
339
|
methods: {
|
252
340
|
openDialog() {
|
@@ -254,7 +342,7 @@ export default {
|
|
254
342
|
let objTypeCode = reportTemplate.objTypeCode;
|
255
343
|
let wfConfigData = this.optionModel.wfConfigData || [];
|
256
344
|
this.dialogVisible = true;
|
257
|
-
this.tableData = this.$baseLodash.cloneDeep(wfConfigData)
|
345
|
+
this.tableData = this.$baseLodash.cloneDeep(wfConfigData);
|
258
346
|
/*wfConfigData.forEach(item => {
|
259
347
|
this.getWfObjConfigItem(item.modelId)
|
260
348
|
})*/
|
@@ -288,55 +376,55 @@ export default {
|
|
288
376
|
success: (res) => {
|
289
377
|
let rows = res.objx || [];
|
290
378
|
// this.wfNodeMap[modelId] = rows
|
291
|
-
this.$set(this.wfNodeMap, modelId, rows)
|
292
|
-
}
|
379
|
+
this.$set(this.wfNodeMap, modelId, rows);
|
380
|
+
},
|
293
381
|
});
|
294
382
|
},
|
295
383
|
addItem() {
|
296
384
|
let newItem = {
|
297
385
|
type: 1,
|
298
386
|
serveType: 3,
|
299
|
-
serveName:
|
387
|
+
serveName: null,
|
300
388
|
modelKey: null,
|
389
|
+
modelOrders: undefined,
|
301
390
|
taskSteps: null,
|
302
|
-
companyCodes: null
|
303
|
-
}
|
391
|
+
companyCodes: null,
|
392
|
+
};
|
304
393
|
this.tableData.push(newItem);
|
305
394
|
},
|
306
395
|
colSubmit() {
|
307
|
-
|
308
396
|
let searveNameList = ["prod", "uat", "dev"];
|
309
397
|
let tableData = this.tableData;
|
310
|
-
let map = {}
|
398
|
+
let map = {};
|
311
399
|
for (let i = 0; i < tableData.length; i++) {
|
312
400
|
let item = tableData[i];
|
313
|
-
if (item.
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
}
|
401
|
+
if (!item.serveName) {
|
402
|
+
this.$message({
|
403
|
+
type: "error",
|
404
|
+
message: "服务名称不能为空",
|
405
|
+
});
|
406
|
+
return
|
407
|
+
}
|
408
|
+
if (!item.companyCodes) {
|
409
|
+
this.$message({
|
410
|
+
type: "error",
|
411
|
+
message: "组织编码不能为空",
|
412
|
+
});
|
413
|
+
return
|
327
414
|
}
|
328
|
-
let
|
329
|
-
|
330
|
-
let
|
331
|
-
let
|
415
|
+
let modelOrders = item.modelOrders??"";
|
416
|
+
|
417
|
+
let serveName = item.serveName;
|
418
|
+
let companyCodes = item.companyCodes;
|
419
|
+
let key = serveName + "_" + companyCodes+ "_"+modelOrders;
|
332
420
|
if (!map[key]) {
|
333
421
|
map[key] = true;
|
334
422
|
} else {
|
335
423
|
this.$message({
|
336
424
|
type: "error",
|
337
|
-
message: "[
|
338
|
-
})
|
339
|
-
return
|
425
|
+
message: "[服务+组织+流程模板序号]不能重复",
|
426
|
+
});
|
427
|
+
return;
|
340
428
|
}
|
341
429
|
}
|
342
430
|
|
@@ -369,58 +457,74 @@ export default {
|
|
369
457
|
let map = {
|
370
458
|
1: "prod",
|
371
459
|
2: "uat",
|
372
|
-
3: "dev"
|
373
|
-
}
|
460
|
+
3: "dev",
|
461
|
+
};
|
374
462
|
let serveName = null;
|
375
463
|
let serveType = row.serveType;
|
376
464
|
if (serveType && map[serveType]) {
|
377
465
|
serveName = map[row.serveType];
|
378
466
|
}
|
379
467
|
if (serveType === 5) {
|
380
|
-
row.companyCodes = null
|
468
|
+
row.companyCodes = null;
|
381
469
|
}
|
382
470
|
row.serveName = serveName;
|
383
471
|
},
|
384
472
|
openDialog2() {
|
385
|
-
this.tableData2 = this.$baseLodash.cloneDeep(
|
473
|
+
this.tableData2 = this.$baseLodash.cloneDeep(
|
474
|
+
this.optionModel.wfModifyDataConfig || []
|
475
|
+
);
|
386
476
|
this.dialogVisible2 = true;
|
387
477
|
},
|
388
478
|
addItem2() {
|
389
479
|
let newItem = {
|
390
|
-
action:
|
480
|
+
action: "start",
|
391
481
|
// valueType: 1,
|
392
|
-
toValue: null
|
393
|
-
}
|
482
|
+
toValue: null,
|
483
|
+
};
|
394
484
|
this.tableData2.push(newItem);
|
395
485
|
},
|
396
486
|
colSubmit2() {
|
397
487
|
let isError = false;
|
398
|
-
let map = {}
|
399
|
-
this.tableData2.forEach(item => {
|
488
|
+
let map = {};
|
489
|
+
this.tableData2.forEach((item) => {
|
400
490
|
let count = map[item.action] || 0;
|
401
491
|
map[item.action] = count + 1;
|
402
492
|
if (map[item.action] > 1) {
|
403
493
|
isError = true;
|
404
494
|
}
|
405
|
-
})
|
495
|
+
});
|
406
496
|
if (isError) {
|
407
497
|
this.$message({
|
408
498
|
message: "流程动作不能重复",
|
409
|
-
type:
|
499
|
+
type: "error",
|
410
500
|
duration: 2000,
|
411
|
-
})
|
412
|
-
return
|
501
|
+
});
|
502
|
+
return;
|
413
503
|
}
|
414
504
|
this.dialogVisible2 = !1;
|
415
|
-
this.$set(this.optionModel,
|
505
|
+
this.$set(this.optionModel, "wfModifyDataConfig", this.tableData2);
|
416
506
|
},
|
417
507
|
changeValueType(row) {
|
418
508
|
row.toValue = null;
|
419
|
-
}
|
420
|
-
|
421
|
-
|
509
|
+
},
|
510
|
+
clearBdCompanyEnv(row) {
|
511
|
+
row.serveName = null;
|
512
|
+
row.companyCodes = null;
|
513
|
+
},
|
514
|
+
openBdCompanyEnvDialog(rowIndex) {
|
515
|
+
this.operateIndex = rowIndex;
|
516
|
+
this.showBdCompanyEnvDialog = true;
|
517
|
+
},
|
518
|
+
confirmBdCompanyEnvDialog(rows) {
|
519
|
+
if (rows.length) {
|
520
|
+
let row = rows[0];
|
521
|
+
let item = this.tableData[this.operateIndex];
|
522
|
+
item.serveName = row.bdService;
|
523
|
+
item.companyCodes = row.bdCompanyCode;
|
524
|
+
}
|
525
|
+
},
|
526
|
+
},
|
527
|
+
};
|
422
528
|
</script>
|
423
529
|
|
424
|
-
<style scoped>
|
425
|
-
|
426
|
-
</style>
|
530
|
+
<style scoped></style>
|
@@ -42,7 +42,7 @@
|
|
42
42
|
style="margin-bottom: 0px;"
|
43
43
|
>
|
44
44
|
<el-table-column type="index" width="35" fixed="left"></el-table-column>
|
45
|
-
<el-table-column :label="i18nt('服务类型')" width="150">
|
45
|
+
<!-- <el-table-column :label="i18nt('服务类型')" width="150">
|
46
46
|
<template slot-scope="{row}">
|
47
47
|
<el-select v-model="row.serveType" @change="changeServeType(row)">
|
48
48
|
<el-option :value="1" label="正式"></el-option>
|
@@ -62,7 +62,29 @@
|
|
62
62
|
<template slot-scope="{row,$index}">
|
63
63
|
<el-input v-model="row.companyCodes" clearable :disabled="row.serveType==5"></el-input>
|
64
64
|
</template>
|
65
|
+
</el-table-column> -->
|
66
|
+
|
67
|
+
<el-table-column :label="i18nt('组织编码')" width="250">
|
68
|
+
<template slot-scope="{row,$index}">
|
69
|
+
<el-input
|
70
|
+
class="search-input"
|
71
|
+
max="200"
|
72
|
+
v-model="row.companyCodes"
|
73
|
+
@clear="clearBdCompanyEnv(row)"
|
74
|
+
v-el-readonly
|
75
|
+
clearable
|
76
|
+
>
|
77
|
+
<i slot="suffix" class="el-input__icon el-icon-search" @click="openBdCompanyEnvDialog($index)"></i>
|
78
|
+
</el-input>
|
79
|
+
</template>
|
80
|
+
</el-table-column>
|
81
|
+
<el-table-column :label="i18nt('服务名称')" width="150">
|
82
|
+
<template slot-scope="{row}">
|
83
|
+
{{row.serveName}}
|
84
|
+
</template>
|
65
85
|
</el-table-column>
|
86
|
+
|
87
|
+
|
66
88
|
<el-table-column :label="i18nt('角色编码')" width="250">
|
67
89
|
<template slot-scope="{row}">
|
68
90
|
<el-input v-model="row.roleCodes" clearable></el-input>
|
@@ -105,13 +127,17 @@
|
|
105
127
|
</el-button>
|
106
128
|
</div>
|
107
129
|
</el-dialog>
|
130
|
+
<bdCompanyEnvDialog v-if="showBdCompanyEnvDialog" :visiable.sync="showBdCompanyEnvDialog"
|
131
|
+
@confirm="confirmBdCompanyEnvDialog" :multi="false"/>
|
108
132
|
</div>
|
109
133
|
</template>
|
110
134
|
<script>
|
111
135
|
import i18n from "@base/components/xform/utils/i18n";
|
136
|
+
import bdCompanyEnvDialog from "@/views/bd/setting/bd_company_env/dialog"
|
112
137
|
|
113
138
|
export default {
|
114
139
|
name: "widgetShowRuleFlag-editor",
|
140
|
+
components: {bdCompanyEnvDialog},
|
115
141
|
mixins: [i18n],
|
116
142
|
props: {
|
117
143
|
designer: Object,
|
@@ -122,6 +148,7 @@ export default {
|
|
122
148
|
return {
|
123
149
|
dialogVisible: false,
|
124
150
|
tableData: [],
|
151
|
+
showBdCompanyEnvDialog:false
|
125
152
|
}
|
126
153
|
},
|
127
154
|
methods: {
|
@@ -134,7 +161,7 @@ export default {
|
|
134
161
|
let newItem = {
|
135
162
|
type: 1,
|
136
163
|
serveType: 3,
|
137
|
-
serveName:
|
164
|
+
serveName: null,
|
138
165
|
roleCodes: null,
|
139
166
|
companyCodes: null
|
140
167
|
}
|
@@ -212,6 +239,24 @@ export default {
|
|
212
239
|
}
|
213
240
|
row.serveName = serveName;
|
214
241
|
},
|
242
|
+
|
243
|
+
clearBdCompanyEnv(row){
|
244
|
+
row.serveName = null;
|
245
|
+
row.companyCodes = null;
|
246
|
+
},
|
247
|
+
openBdCompanyEnvDialog(rowIndex){
|
248
|
+
this.operateIndex = rowIndex;
|
249
|
+
this.showBdCompanyEnvDialog = true;
|
250
|
+
},
|
251
|
+
confirmBdCompanyEnvDialog(rows) {
|
252
|
+
if(rows.length){
|
253
|
+
let row = rows[0];
|
254
|
+
let item = this.tableData[this.operateIndex]
|
255
|
+
item.serveName = row.bdService;
|
256
|
+
item.companyCodes = row.bdCompanyCode;
|
257
|
+
}
|
258
|
+
}
|
259
|
+
|
215
260
|
}
|
216
261
|
}
|
217
262
|
</script>
|