cloud-web-corejs 1.0.54-dev.240 → 1.0.54-dev.242
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 +41 -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
@@ -581,6 +581,7 @@ modules = {
|
|
581
581
|
if (toModify && formConfig.wfAgreenBindSave) {
|
582
582
|
|
583
583
|
let modelKey = wfInfo.modelKey;
|
584
|
+
let modelOrders = wfInfo.orders;
|
584
585
|
let companyCode = this.$store.getters.companyCode;
|
585
586
|
let taskStep = (wfInfo.taskStep ?? "") + "";
|
586
587
|
let taskDefinitionKey = wfInfo.taskDefinitionKey;
|
@@ -595,7 +596,8 @@ modules = {
|
|
595
596
|
let companyCodeStr = item.companyCodes;
|
596
597
|
let companyCodes = companyCodeStr ? companyCodeStr.split(",").filter(item => !!item) : [];
|
597
598
|
let flag1 = !item.serveName || item.serveName == bdService;
|
598
|
-
let flag2 = !item.modelKey || item.modelKey == modelKey;
|
599
|
+
// let flag2 = !item.modelKey || item.modelKey == modelKey;
|
600
|
+
let flag2 = item.modelOrders === undefined || item.modelOrders === null || item.modelOrders === modelOrders;
|
599
601
|
let flag3 = !companyCodes.length || companyCodes.includes(companyCode)
|
600
602
|
if (flag1 && flag2 && flag3) {
|
601
603
|
//可编辑
|
@@ -618,6 +620,7 @@ modules = {
|
|
618
620
|
if (toModify && formConfig.wfConfigDataEnabled) {
|
619
621
|
|
620
622
|
let modelKey = wfInfo.modelKey;
|
623
|
+
let modelOrders = wfInfo.orders;
|
621
624
|
let companyCode = this.$store.getters.companyCode;
|
622
625
|
let taskStep = (wfInfo.taskStep ?? "") + "";
|
623
626
|
let taskDefinitionKey = wfInfo.taskDefinitionKey;
|
@@ -632,7 +635,8 @@ modules = {
|
|
632
635
|
let companyCodeStr = item.companyCodes;
|
633
636
|
let companyCodes = companyCodeStr ? companyCodeStr.split(",").filter(item => !!item) : [];
|
634
637
|
let flag1 = !item.serveName || item.serveName == bdService;
|
635
|
-
let flag2 = !item.modelKey || item.modelKey == modelKey;
|
638
|
+
// let flag2 = !item.modelKey || item.modelKey == modelKey;
|
639
|
+
let flag2 = item.modelOrders === undefined || item.modelOrders === null || item.modelOrders === modelOrders;
|
636
640
|
let flag3 = !companyCodes.length || companyCodes.includes(companyCode)
|
637
641
|
if (flag1 && flag2 && flag3) {
|
638
642
|
//可编辑
|
@@ -702,6 +706,7 @@ modules = {
|
|
702
706
|
let wfParam = this.wfParam;
|
703
707
|
let wfInfo = wfParam.wfInfo
|
704
708
|
let modelKey = wfInfo.modelKey;
|
709
|
+
let modelOrders = wfInfo.orders;
|
705
710
|
let companyCode = this.$store.getters.companyCode;
|
706
711
|
let taskStep = (wfInfo.taskStep ?? "") + "";
|
707
712
|
|
@@ -718,7 +723,9 @@ modules = {
|
|
718
723
|
let companyCodeStr = item.companyCodes;
|
719
724
|
let companyCodes = companyCodeStr ? companyCodeStr.split(",").filter(item => !!item) : [];
|
720
725
|
let flag1 = !item.serveName || item.serveName == bdService;
|
721
|
-
let flag2 = !item.modelKey || item.modelKey == modelKey;
|
726
|
+
// let flag2 = !item.modelKey || item.modelKey == modelKey;
|
727
|
+
|
728
|
+
let flag2 = item.modelOrders === undefined || item.modelOrders === null || item.modelOrders === modelOrders;
|
722
729
|
let flag3 = !companyCodes.length || companyCodes.includes(companyCode)
|
723
730
|
if (flag1 && flag2 && flag3) {
|
724
731
|
if (type === 1) {
|
@@ -771,11 +778,12 @@ modules = {
|
|
771
778
|
if (widgetShowRuleConfig.length) {
|
772
779
|
let item1 = null;//匹配服务+组织
|
773
780
|
let item2 = null;//匹配服务
|
774
|
-
let item3 = null
|
781
|
+
let item3 = null;//匹配所有服务和组织
|
775
782
|
widgetShowRuleConfig.forEach(item => {
|
776
783
|
let serveName = item.serveName ?? null;
|
777
784
|
|
778
|
-
let flag1 = item.serveType === 5;//所有组织和服务
|
785
|
+
// let flag1 = item.serveType === 5;//所有组织和服务
|
786
|
+
let flag1 = !item.serveName && !item.companyCodes;//所有组织和服务
|
779
787
|
|
780
788
|
//匹配服务名
|
781
789
|
let flag2 = serveName === bdService
|
@@ -2383,9 +2391,37 @@ modules = {
|
|
2383
2391
|
},
|
2384
2392
|
validate(callback) {
|
2385
2393
|
this.$refs['renderForm'].$baseValidate(valid => {
|
2394
|
+
if(!valid){
|
2395
|
+
// this.scrollToFirstError();
|
2396
|
+
}
|
2386
2397
|
callback && callback(valid);
|
2387
2398
|
})
|
2388
2399
|
},
|
2400
|
+
scrollToFirstError() {
|
2401
|
+
// 获取第一个验证失败的字段
|
2402
|
+
let formTarget = this.$refs['renderForm'];
|
2403
|
+
const firstErrorField = Object.keys(formTarget.fields).find(key => {
|
2404
|
+
return formTarget.fields[key].validateState === 'error';
|
2405
|
+
});
|
2406
|
+
|
2407
|
+
if (firstErrorField) {
|
2408
|
+
const field = this.$refs.form.fields[firstErrorField];
|
2409
|
+
|
2410
|
+
// 滚动到该字段位置
|
2411
|
+
field.$el.scrollIntoView({
|
2412
|
+
behavior: 'smooth',
|
2413
|
+
block: 'center'
|
2414
|
+
});
|
2415
|
+
|
2416
|
+
// 添加高亮效果
|
2417
|
+
field.$el.classList.add('highlight');
|
2418
|
+
|
2419
|
+
// 3秒后移除高亮效果
|
2420
|
+
setTimeout(() => {
|
2421
|
+
field.$el.classList.remove('highlight');
|
2422
|
+
}, 3000);
|
2423
|
+
}
|
2424
|
+
},
|
2389
2425
|
openSearchDialog(option) {
|
2390
2426
|
this.searchDialogOption = option;
|
2391
2427
|
this.showSearchDialog = true;
|
@@ -44,16 +44,6 @@ modules = {
|
|
44
44
|
getHttpTarget() {
|
45
45
|
return this.getFormRef ? this.getFormRef() : this;
|
46
46
|
},
|
47
|
-
getLoadingTarget() {
|
48
|
-
let that = this.getHttpTarget();
|
49
|
-
if(!that ||!that.$el){
|
50
|
-
debugger
|
51
|
-
}
|
52
|
-
let loadingTarget = that.$el || document.body;
|
53
|
-
|
54
|
-
// let loadingTarget = document.body;
|
55
|
-
// return loadingTarget;
|
56
|
-
},
|
57
47
|
formHttp(opts) {
|
58
48
|
let data = opts.data;
|
59
49
|
let scriptCode = opts.scriptCode;
|
@@ -0,0 +1,161 @@
|
|
1
|
+
<template>
|
2
|
+
<el-dialog
|
3
|
+
:title="$t1('企业组织环境设置列表')"
|
4
|
+
:append-to-body="true"
|
5
|
+
:modal-append-to-body="true"
|
6
|
+
:close-on-click-modal="falseValue"
|
7
|
+
:visible.sync="showDialog"
|
8
|
+
:modal="falseValue"
|
9
|
+
custom-class="dialog-style list-dialog dialog-checkbox pd_0"
|
10
|
+
width="1200px"
|
11
|
+
@close="dialogClose"
|
12
|
+
v-el-drag-dialog
|
13
|
+
v-el-dialog-center
|
14
|
+
>
|
15
|
+
<div class="cont" style="height:450px">
|
16
|
+
<vxe-grid
|
17
|
+
class="is-pointer"
|
18
|
+
ref="table-m1"
|
19
|
+
v-bind="vxeOption"
|
20
|
+
@resizable-change="$vxeTableUtil.onColumnWitchChange"
|
21
|
+
@custom="$vxeTableUtil.customHandle"
|
22
|
+
@checkbox-change="addDataTable"
|
23
|
+
@checkbox-all="checkAll"
|
24
|
+
@cell-dblclick="checkWithSubmit"
|
25
|
+
>
|
26
|
+
<template #form>
|
27
|
+
<tableForm :formData.sync="formData" @searchEvent="searchEvent" @resetEvent="resetEvent">
|
28
|
+
<template #buttonLeft>
|
29
|
+
</template>
|
30
|
+
<template #buttonRight>
|
31
|
+
<vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
|
32
|
+
plain>{{$t1('重置')}}
|
33
|
+
</vxe-button>
|
34
|
+
<vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">{{ $t1('搜索') }}
|
35
|
+
</vxe-button>
|
36
|
+
</template>
|
37
|
+
</tableForm>
|
38
|
+
</template>
|
39
|
+
</vxe-grid>
|
40
|
+
</div>
|
41
|
+
<label id="labBtn" class="transverse">
|
42
|
+
<div class="icon">
|
43
|
+
<i class="el-icon-more"></i>
|
44
|
+
<i class="el-icon-more"></i>
|
45
|
+
</div>
|
46
|
+
</label>
|
47
|
+
<div class="multipleChoice">
|
48
|
+
<el-tooltip :enterable="false" effect="dark" :content="$t1('全部删除')" placement="top"><a
|
49
|
+
class="allDel icon-quanbushanchu" @click="clearChecked()"></a></el-tooltip>
|
50
|
+
<div class="list">
|
51
|
+
<div class="item" v-for="(checkRow, index) in checkRows" :key="index">
|
52
|
+
<p>{{ getCheckLabel(checkRow,'name') }}</p>
|
53
|
+
<a class="el-icon-close" @click="clearTable1Select(index)"></a>
|
54
|
+
</div>
|
55
|
+
</div>
|
56
|
+
</div>
|
57
|
+
<span slot="footer" class="dialog-footer">
|
58
|
+
<span class="fl tips" v-if="!selectMulti">{{ $t1('注:双击确认选择(单选)') }}</span>
|
59
|
+
<el-button type="primary" plain class="button-sty" @click="dialogClose">
|
60
|
+
<i class="el-icon-close el-icon"></i>
|
61
|
+
{{ $t1('取 消') }}
|
62
|
+
</el-button>
|
63
|
+
<el-button type="primary" @click="dialogPrimary" class="button-sty">
|
64
|
+
<i class="el-icon-check el-icon"></i>
|
65
|
+
{{ $t1('确 定') }}
|
66
|
+
</el-button>
|
67
|
+
</span>
|
68
|
+
</el-dialog>
|
69
|
+
</template>
|
70
|
+
|
71
|
+
<script>
|
72
|
+
import {selectDialogMixins} from '@base/mixins/selectDialog/index.js';
|
73
|
+
import tableForm from "@base/components/table/tableForm.vue";
|
74
|
+
|
75
|
+
export default {
|
76
|
+
name: 'positionDialog',
|
77
|
+
props: ['visiable', 'multi', 'rows', 'param'],
|
78
|
+
mixins: [selectDialogMixins],
|
79
|
+
components: {
|
80
|
+
tableForm
|
81
|
+
},
|
82
|
+
created() {
|
83
|
+
this.initSetting();
|
84
|
+
},
|
85
|
+
mounted() {
|
86
|
+
this.initTableM1();
|
87
|
+
},
|
88
|
+
data() {
|
89
|
+
var that = this;
|
90
|
+
return {
|
91
|
+
showDialog: true,
|
92
|
+
falseValue: false,
|
93
|
+
selectMulti: true,
|
94
|
+
formData: {},
|
95
|
+
vxeOption: {}
|
96
|
+
};
|
97
|
+
},
|
98
|
+
methods: {
|
99
|
+
initTableM1() {
|
100
|
+
let that = this;
|
101
|
+
let url = USER_PREFIX + '/bd_company_env/listPage';
|
102
|
+
let tableOption = {
|
103
|
+
vue: that,
|
104
|
+
tableRef: 'table-m1',
|
105
|
+
tableName: 'basic_position_dialog-m1',
|
106
|
+
path: url,
|
107
|
+
param: () => {
|
108
|
+
return {
|
109
|
+
...this.formData
|
110
|
+
}
|
111
|
+
},
|
112
|
+
columns: [
|
113
|
+
{type: 'checkbox', fixed: 'left', width: 48, resizable: false},
|
114
|
+
{
|
115
|
+
title: '服务',
|
116
|
+
field: 'bdService',
|
117
|
+
width: 150,
|
118
|
+
fixed: 'left'
|
119
|
+
},
|
120
|
+
{
|
121
|
+
title: '组织编码',
|
122
|
+
field: 'bdCompanyCode',
|
123
|
+
width: 150,
|
124
|
+
fixed: 'left'
|
125
|
+
},
|
126
|
+
{
|
127
|
+
width: 47,
|
128
|
+
fixed: 'right',
|
129
|
+
title: '',
|
130
|
+
sortable: false
|
131
|
+
}
|
132
|
+
],
|
133
|
+
searchColumns: [
|
134
|
+
{
|
135
|
+
title: this.$t1("服务"),
|
136
|
+
field: "bdService",
|
137
|
+
type: "input",
|
138
|
+
common: true,
|
139
|
+
},
|
140
|
+
{
|
141
|
+
title: this.$t1("组织编码"),
|
142
|
+
field: "bdCompanyCode",
|
143
|
+
type: "input",
|
144
|
+
common: true,
|
145
|
+
}
|
146
|
+
],
|
147
|
+
config: {
|
148
|
+
checkboxConfig: {
|
149
|
+
checkStrictly: true,
|
150
|
+
showHeader: this.selectMulti,
|
151
|
+
trigger: 'row'
|
152
|
+
}
|
153
|
+
}
|
154
|
+
};
|
155
|
+
this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
|
156
|
+
that.vxeOption = opts;
|
157
|
+
});
|
158
|
+
}
|
159
|
+
}
|
160
|
+
};
|
161
|
+
</script>
|
@@ -0,0 +1,151 @@
|
|
1
|
+
<template>
|
2
|
+
<div class="detail-wrap">
|
3
|
+
<el-form ref="editForm" :model="bdCompanyEnv">
|
4
|
+
<div class="d-header clearfix">
|
5
|
+
<div class="fl">
|
6
|
+
<i class="el-icon-info"/>
|
7
|
+
{{ dataId ? $t1('查看企业组织环境设置') : $t1('新增企业组织环境设置') }}
|
8
|
+
</div>
|
9
|
+
<div class="fr">
|
10
|
+
<el-button type="primary" plain class="button-sty" @click="$baseReload()" icon="el-icon-refresh-right">
|
11
|
+
{{ $t1('重置') }}
|
12
|
+
</el-button>
|
13
|
+
<el-button type="primary" class="button-sty" icon="el-icon-check" @click="saveData">{{ $t1('保存') }}
|
14
|
+
</el-button>
|
15
|
+
</div>
|
16
|
+
</div>
|
17
|
+
<div class="d-cont">
|
18
|
+
<div class="d-item">
|
19
|
+
<div class="title first"><b>{{ $t1('基本信息') }}</b></div>
|
20
|
+
<table class="table-detail">
|
21
|
+
<tbody>
|
22
|
+
<tr>
|
23
|
+
<th>
|
24
|
+
<em class="f-red">*</em>
|
25
|
+
{{ $t1('服务') }}
|
26
|
+
</th>
|
27
|
+
<td>
|
28
|
+
<el-form-item prop="bdService" :rules="[{ required: true, trigger: 'blur' }]">
|
29
|
+
<el-input type="text" autocomplete="off" v-model="bdCompanyEnv.bdService" clearable/>
|
30
|
+
</el-form-item>
|
31
|
+
</td>
|
32
|
+
<th>
|
33
|
+
<em class="f-red">*</em>
|
34
|
+
{{ $t1('组织编码') }}
|
35
|
+
</th>
|
36
|
+
<td>
|
37
|
+
<el-form-item prop="bdCompanyCode" :rules="[{ required: true, trigger: 'blur' }]">
|
38
|
+
<el-input type="text" autocomplete="off" v-model="bdCompanyEnv.bdCompanyCode" clearable/>
|
39
|
+
</el-form-item>
|
40
|
+
</td>
|
41
|
+
</tr>
|
42
|
+
<tr>
|
43
|
+
<th>{{ $t1('创建人') }}</th>
|
44
|
+
<td>{{ bdCompanyEnv.createBy }}</td>
|
45
|
+
<th>{{ $t1('创建时间') }}</th>
|
46
|
+
<td>{{ bdCompanyEnv.createDate }}</td>
|
47
|
+
<th>{{ $t1('更新人') }}</th>
|
48
|
+
<td>{{ bdCompanyEnv.modifyBy }}</td>
|
49
|
+
<th>{{ $t1('更新时间') }}</th>
|
50
|
+
<td>{{ bdCompanyEnv.modifyDate }}</td>
|
51
|
+
</tr>
|
52
|
+
</tbody>
|
53
|
+
</table>
|
54
|
+
</div>
|
55
|
+
</div>
|
56
|
+
</el-form>
|
57
|
+
</div>
|
58
|
+
</template>
|
59
|
+
|
60
|
+
<script>
|
61
|
+
export default {
|
62
|
+
name: 'request_setttingEdit',
|
63
|
+
props: {
|
64
|
+
_dataId: [String, Number],
|
65
|
+
copyId: [String, Number]
|
66
|
+
},
|
67
|
+
components: {},
|
68
|
+
data() {
|
69
|
+
return {
|
70
|
+
isEdit: false,
|
71
|
+
tabIndex: 'first',
|
72
|
+
dataId: '',
|
73
|
+
bdCompanyEnv: {
|
74
|
+
enabled: true,
|
75
|
+
connectTimeout: 10000,
|
76
|
+
readTimeout: 60000,
|
77
|
+
preScript: null,
|
78
|
+
postScript: null,
|
79
|
+
exeCompanyCode:null
|
80
|
+
},
|
81
|
+
showCodeEditor: false
|
82
|
+
};
|
83
|
+
},
|
84
|
+
created() {
|
85
|
+
if (this._dataId && !isNaN(this._dataId)) this.dataId = this._dataId;
|
86
|
+
},
|
87
|
+
mounted() {
|
88
|
+
this.getData();
|
89
|
+
},
|
90
|
+
methods: {
|
91
|
+
getData() {
|
92
|
+
if (this.copyId) {
|
93
|
+
return;
|
94
|
+
}
|
95
|
+
if (this.dataId && !isNaN(this.dataId)) {
|
96
|
+
this.isEdit = true;
|
97
|
+
this.$commonHttp({
|
98
|
+
url: USER_PREFIX + `/bd_company_env/get`,
|
99
|
+
method: `post`,
|
100
|
+
data: {
|
101
|
+
id: this.dataId
|
102
|
+
},
|
103
|
+
isLoading: true,
|
104
|
+
modalStrictly: true,
|
105
|
+
success: res => {
|
106
|
+
this.bdCompanyEnv = res.objx || {};
|
107
|
+
this.showCodeEditor = true;
|
108
|
+
}
|
109
|
+
});
|
110
|
+
} else {
|
111
|
+
this.showCodeEditor = true;
|
112
|
+
}
|
113
|
+
},
|
114
|
+
saveData() {
|
115
|
+
this.$refs.editForm.$baseValidate(valid => {
|
116
|
+
if (valid) {
|
117
|
+
this.$baseConfirm(this.$t1('您确定要保存吗?')).then(() => {
|
118
|
+
var url = USER_PREFIX + (this.isEdit ? `/bd_company_env/update` : `/bd_company_env/save`);
|
119
|
+
this.$http({
|
120
|
+
url: url,
|
121
|
+
method: `post`,
|
122
|
+
data: this.bdCompanyEnv,
|
123
|
+
isLoading: true,
|
124
|
+
success: res => {
|
125
|
+
this.$message({
|
126
|
+
message: res.content,
|
127
|
+
type: 'success',
|
128
|
+
duration: 500,
|
129
|
+
onClose: t => {
|
130
|
+
if (this.isEdit) {
|
131
|
+
this.$baseReload();
|
132
|
+
} else {
|
133
|
+
this.$baseReload({
|
134
|
+
updateParam: {
|
135
|
+
_dataId: res.objx,
|
136
|
+
copyId: null
|
137
|
+
}
|
138
|
+
});
|
139
|
+
}
|
140
|
+
}
|
141
|
+
});
|
142
|
+
}
|
143
|
+
});
|
144
|
+
});
|
145
|
+
}
|
146
|
+
});
|
147
|
+
}
|
148
|
+
}
|
149
|
+
};
|
150
|
+
|
151
|
+
</script>
|
@@ -0,0 +1,164 @@
|
|
1
|
+
<template>
|
2
|
+
<div id="containt">
|
3
|
+
<el-tabs v-model="activeName" class="tab-box">
|
4
|
+
<el-tab-pane :label="$t1('常规')" name="first">
|
5
|
+
<editView v-if="showEdit" visible-key="showEdit" :_dataId.sync="dataId" :copyId.sync="copyId"
|
6
|
+
:parent-target="_self" @reload="$reloadHandle"></editView>
|
7
|
+
</el-tab-pane>
|
8
|
+
<el-tab-pane :label="$t1('列表')" name="second">
|
9
|
+
<div class="grid-height">
|
10
|
+
<vxe-grid ref="table-m1" v-bind="vxeOption" @resizable-change="$vxeTableUtil.onColumnWitchChange"
|
11
|
+
@custom="$vxeTableUtil.customHandle">
|
12
|
+
<template #form>
|
13
|
+
<tableForm :formData.sync="formData" @searchEvent="searchEvent" @resetEvent="resetEvent">
|
14
|
+
<template #buttonLeft>
|
15
|
+
<vxe-button status="primary" class="button-sty" icon="el-icon-plus" @click="openEditDialog">{{ $t1('新增') }}
|
16
|
+
</vxe-button>
|
17
|
+
<base-table-export :option="{ title: '企业组织环境设置导出', targetRef: 'table-m1'}" :parent-target="_self"/>
|
18
|
+
</template>
|
19
|
+
<template #buttonRight>
|
20
|
+
<vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
|
21
|
+
plain>{{$t1('重置')}}
|
22
|
+
</vxe-button>
|
23
|
+
<vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">{{ $t1('搜索') }}
|
24
|
+
</vxe-button>
|
25
|
+
</template>
|
26
|
+
</tableForm>
|
27
|
+
</template>
|
28
|
+
</vxe-grid>
|
29
|
+
</div>
|
30
|
+
</el-tab-pane>
|
31
|
+
</el-tabs>
|
32
|
+
</div>
|
33
|
+
</template>
|
34
|
+
|
35
|
+
<script>
|
36
|
+
import editView from './edit.vue';
|
37
|
+
import tableForm from "@base/components/table/tableForm.vue";
|
38
|
+
|
39
|
+
export default {
|
40
|
+
name: 'bd_company_env:list',
|
41
|
+
components: {tableForm, editView},
|
42
|
+
data() {
|
43
|
+
return {
|
44
|
+
activeName: 'second',
|
45
|
+
dataId: 0,
|
46
|
+
showEdit: false,
|
47
|
+
vxeOption: {},
|
48
|
+
formData: {},
|
49
|
+
};
|
50
|
+
},
|
51
|
+
mounted() {
|
52
|
+
this.initTableList();
|
53
|
+
},
|
54
|
+
methods: {
|
55
|
+
searchEvent() {
|
56
|
+
this.$refs['table-m1'].commitProxy('reload');
|
57
|
+
},
|
58
|
+
resetEvent() {
|
59
|
+
this.formData = {};
|
60
|
+
this.advancedFormData = {};
|
61
|
+
this.$refs['table-m1'].commitProxy('reload');
|
62
|
+
},
|
63
|
+
openEditDialog(id) {
|
64
|
+
this.copyId = 0;
|
65
|
+
this.dataId = !id || typeof id == 'object' ? 0 : id;
|
66
|
+
this.activeName = 'first';
|
67
|
+
this.$openEditView('showEdit');
|
68
|
+
},
|
69
|
+
initTableList() {
|
70
|
+
let that = this;
|
71
|
+
let pushTypeMap = {0: '异步推送', 1: '同步调用'};
|
72
|
+
let tableOption = {
|
73
|
+
vue: this,
|
74
|
+
tableRef: 'table-m1',
|
75
|
+
tableName: 'bd_company_env_list-m1',
|
76
|
+
path: USER_PREFIX + '/bd_company_env/listPage',
|
77
|
+
param: () => {
|
78
|
+
return {
|
79
|
+
...this.formData
|
80
|
+
}
|
81
|
+
},
|
82
|
+
columns: [
|
83
|
+
{type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
|
84
|
+
{
|
85
|
+
title: '服务',
|
86
|
+
field: 'bdService',
|
87
|
+
width: 150,
|
88
|
+
fixed: 'left'
|
89
|
+
},
|
90
|
+
{
|
91
|
+
title: '组织编码',
|
92
|
+
field: 'bdCompanyCode',
|
93
|
+
width: 150,
|
94
|
+
fixed: 'left'
|
95
|
+
},
|
96
|
+
{
|
97
|
+
field: 'createBy',
|
98
|
+
title: this.$t1('创建人'),
|
99
|
+
width: 150
|
100
|
+
},
|
101
|
+
{
|
102
|
+
field: 'createDate',
|
103
|
+
title: this.$t1('创建时间'),
|
104
|
+
width: 150
|
105
|
+
},
|
106
|
+
{
|
107
|
+
field: 'modifyBy',
|
108
|
+
title: this.$t1('更新人'),
|
109
|
+
width: 150
|
110
|
+
},
|
111
|
+
{
|
112
|
+
field: 'modifyDate',
|
113
|
+
title: this.$t1('更新时间'),
|
114
|
+
width: 150
|
115
|
+
},
|
116
|
+
{
|
117
|
+
width: 47,
|
118
|
+
fixed: 'right',
|
119
|
+
title: '',
|
120
|
+
sortable: false,
|
121
|
+
slots: {
|
122
|
+
default: ({row}) => {
|
123
|
+
return [
|
124
|
+
<div>
|
125
|
+
<a
|
126
|
+
href="javascript:void(0);"
|
127
|
+
class="a-link"
|
128
|
+
onclick={() => {
|
129
|
+
this.openEditDialog(row.id);
|
130
|
+
}}
|
131
|
+
>
|
132
|
+
<el-tooltip enterable={false} effect="dark" content={ this.$t1('查看') } placement="top"
|
133
|
+
popper-class="tooltip-skin">
|
134
|
+
<i class="el-icon-edit"/>
|
135
|
+
</el-tooltip>
|
136
|
+
</a>
|
137
|
+
</div>
|
138
|
+
];
|
139
|
+
}
|
140
|
+
}
|
141
|
+
}
|
142
|
+
],
|
143
|
+
searchColumns: [
|
144
|
+
{
|
145
|
+
title: this.$t1("服务"),
|
146
|
+
field: "bdService",
|
147
|
+
type: "input",
|
148
|
+
common: true,
|
149
|
+
},
|
150
|
+
{
|
151
|
+
title: this.$t1("组织编码"),
|
152
|
+
field: "bdCompanyCode",
|
153
|
+
type: "input",
|
154
|
+
common: true,
|
155
|
+
}
|
156
|
+
]
|
157
|
+
};
|
158
|
+
this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
|
159
|
+
this.vxeOption = opts;
|
160
|
+
});
|
161
|
+
}
|
162
|
+
}
|
163
|
+
};
|
164
|
+
</script>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<template>
|
2
2
|
<div id="containt">
|
3
|
-
<div
|
3
|
+
<div class="flex">
|
4
4
|
<div class="tab-box-vertical">
|
5
5
|
<div class="list-scroll">
|
6
6
|
<div class="item" v-for="(item,index) in typeTabs" :key="item.name" :class="{on:item.name==activeName}"
|
@@ -19,16 +19,18 @@
|
|
19
19
|
<script>
|
20
20
|
import bd_attach_setting_list from "@base/views/bd/setting/bd_attach_setting/list.vue";
|
21
21
|
import request_setting_list from "@base/views/user/request_setting/list.vue";
|
22
|
+
import bd_company_env_list from "@base/views/bd/setting/bd_company_env/list.vue";
|
22
23
|
|
23
24
|
export default {
|
24
25
|
name: "list",
|
25
|
-
components: {bd_attach_setting_list, request_setting_list},
|
26
|
+
components: {bd_attach_setting_list, request_setting_list, bd_company_env_list},
|
26
27
|
data() {
|
27
28
|
return {
|
28
29
|
activeName: "bd_attach_setting_list",
|
29
30
|
typeTabs: [
|
30
31
|
{label: this.$t1("导入模板"), name: "bd_attach_setting_list", inited: true},
|
31
32
|
{label: this.$t1("同步调用接口"), name: "request_setting_list", inited: false},
|
33
|
+
{label: this.$t1("企业组织环境设置"), name: "bd_company_env_list", inited: false},
|
32
34
|
]
|
33
35
|
}
|
34
36
|
},
|
@@ -111,6 +111,14 @@
|
|
111
111
|
</el-radio-group>
|
112
112
|
</el-form-item>
|
113
113
|
</td>
|
114
|
+
<th>
|
115
|
+
{{ $t1('序号') }}
|
116
|
+
</th>
|
117
|
+
<td>
|
118
|
+
<el-form-item prop="orders" :rules="[{ required: false, trigger: 'blur' }]">
|
119
|
+
<base-input-number autocomplete="off" v-model="wfObjConfigItem.orders" clearable/>
|
120
|
+
</el-form-item>
|
121
|
+
</td>
|
114
122
|
</tr>
|
115
123
|
<tr>
|
116
124
|
<th>
|
@@ -195,7 +203,8 @@ export default {
|
|
195
203
|
startMode: 3,
|
196
204
|
skipSameUserTask: false,
|
197
205
|
toNextNode: null,
|
198
|
-
enabled: true
|
206
|
+
enabled: true,
|
207
|
+
orders:undefined
|
199
208
|
},
|
200
209
|
showWfObjConfigDialog: false,
|
201
210
|
configServiceId: null,
|
@@ -233,6 +242,7 @@ export default {
|
|
233
242
|
modalStrictly: true,
|
234
243
|
success: res => {
|
235
244
|
let wfObjConfigItem = res.objx || {};
|
245
|
+
if(wfObjConfigItem.orders===null)wfObjConfigItem.orders = undefined
|
236
246
|
if (wfObjConfigItem.toNextNode === 1) {
|
237
247
|
wfObjConfigItem.toRejectNode = null
|
238
248
|
}
|
@@ -390,6 +390,11 @@ export default {
|
|
390
390
|
width: 150,
|
391
391
|
fixed: 'left'
|
392
392
|
},
|
393
|
+
{
|
394
|
+
title: this.$t1('序号'),
|
395
|
+
field: 'orders',
|
396
|
+
width: 150
|
397
|
+
},
|
393
398
|
{
|
394
399
|
title: this.$t1('流程模版KEY'),
|
395
400
|
field: 'modelKey',
|
@@ -590,7 +595,6 @@ export default {
|
|
590
595
|
},
|
591
596
|
initWinUserDialog() {
|
592
597
|
window.openAssignUserDialog = opts => {
|
593
|
-
debugger
|
594
598
|
this.wfAssignMulti = opts.multi;
|
595
599
|
this.wfAssignData = opts.data || [];
|
596
600
|
this.wfAssignCallback = opts.callback;
|