cloud-web-corejs 1.0.109 → 1.0.110
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/VabUpload/mixins.js +1 -1
- package/src/components/VabUpload/propertiesDialog.vue +1 -1
- package/src/components/VabUpload/view.vue +2 -2
- package/src/components/baseAttachment/index.vue +49 -49
- package/src/components/baseAttachment/mixins.js +1 -1
- package/src/components/xform/form-designer/form-widget/dialog/exportDialog.vue +13 -0
- package/src/components/xform/form-designer/form-widget/dialog/fileReferenceDialog.vue +301 -0
- package/src/components/xform/form-designer/form-widget/field-widget/a-link-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/a-text-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/date-widget.vue +21 -2
- package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +5 -3
- package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +104 -45
- package/src/components/xform/form-designer/form-widget/field-widget/number-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/status-widget.vue +18 -17
- package/src/components/xform/form-designer/form-widget/field-widget/text-widget.vue +1 -1
- package/src/components/xform/form-designer/indexMixin.js +1 -1
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +588 -164
- package/src/components/xform/form-designer/setting-panel/option-items-setting.vue +69 -10
- package/src/components/xform/form-designer/setting-panel/property-editor/a-link-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/a-text-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/colorClass-editor.vue +28 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +32 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +17 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/container-detail-pane/detail-pane-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/clickBindEvent-editor.vue +35 -20
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload/field-vabUpload-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/formScriptEnabled-editor.vue +4 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/formula-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/formulaEnabled-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/labelColor-editor.vue +20 -11
- package/src/components/xform/form-designer/setting-panel/property-editor/labelIconClass-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/labelIconPosition-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/labelTooltip-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/required-editor.vue +23 -23
- package/src/components/xform/form-designer/setting-panel/property-editor/requiredHint-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/textFlag-editor.vue +161 -74
- package/src/components/xform/form-designer/setting-panel/property-editor/validation-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/validationHint-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/wfFlag-editor.vue +236 -92
- package/src/components/xform/form-designer/setting-panel/property-editor/widgetShowRuleFlag-editor.vue +74 -31
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +10 -9
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +52 -17
- package/src/components/xform/form-render/container-item/data-table-mixin.js +1 -1
- package/src/components/xform/form-render/container-item/detail-pane-item.vue +17 -3
- package/src/components/xform/form-render/index.vue +4 -1
- package/src/components/xform/form-render/indexMixin.js +2 -1
- package/src/components/xform/mixins/defaultHandle.js +1 -1
- package/src/components/xform/mixins/scriptHttp.js +1 -1
- package/src/components/xform/utils/util.js +1 -1
- package/src/components/xform/utils/validators.js +1 -5
- package/src/store/config/index.js +1 -1
- package/src/views/bd/setting/bd_company_env/dialog.vue +174 -0
- package/src/views/bd/setting/bd_company_env/edit.vue +163 -0
- package/src/views/bd/setting/bd_company_env/list.vue +175 -0
- package/src/views/bd/setting/config_manage/list.vue +51 -0
- package/src/views/user/wf/wf_manage/list.vue +29 -0
@@ -0,0 +1,163 @@
|
|
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-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>
|
34
|
+
</el-form-item>
|
35
|
+
</td>
|
36
|
+
<th>
|
37
|
+
<em class="f-red">*</em>
|
38
|
+
{{ $t1('组织编码') }}
|
39
|
+
</th>
|
40
|
+
<td>
|
41
|
+
<el-form-item prop="bdCompanyCode" :rules="[{ required: true, trigger: 'blur' }]">
|
42
|
+
<el-input type="text" autocomplete="off" v-model="bdCompanyEnv.bdCompanyCode" clearable/>
|
43
|
+
</el-form-item>
|
44
|
+
</td>
|
45
|
+
</tr>
|
46
|
+
<tr>
|
47
|
+
<th>{{ $t1('组织备注') }}</th>
|
48
|
+
<td colspan="5">
|
49
|
+
<el-input type="textarea" :rows="2" :placeholder="$t1('请输入内容')" size="small"
|
50
|
+
v-model="bdCompanyEnv.bdCompanyRemark"
|
51
|
+
clearable></el-input>
|
52
|
+
</td>
|
53
|
+
</tr>
|
54
|
+
<tr>
|
55
|
+
<th>{{ $t1('创建人') }}</th>
|
56
|
+
<td>{{ bdCompanyEnv.createBy }}</td>
|
57
|
+
<th>{{ $t1('创建时间') }}</th>
|
58
|
+
<td>{{ bdCompanyEnv.createDate }}</td>
|
59
|
+
<th>{{ $t1('更新人') }}</th>
|
60
|
+
<td>{{ bdCompanyEnv.modifyBy }}</td>
|
61
|
+
<th>{{ $t1('更新时间') }}</th>
|
62
|
+
<td>{{ bdCompanyEnv.modifyDate }}</td>
|
63
|
+
</tr>
|
64
|
+
</tbody>
|
65
|
+
</table>
|
66
|
+
</div>
|
67
|
+
</div>
|
68
|
+
</el-form>
|
69
|
+
</div>
|
70
|
+
</template>
|
71
|
+
|
72
|
+
<script>
|
73
|
+
export default {
|
74
|
+
name: 'request_setttingEdit',
|
75
|
+
props: {
|
76
|
+
_dataId: [String, Number],
|
77
|
+
copyId: [String, Number]
|
78
|
+
},
|
79
|
+
components: {},
|
80
|
+
data() {
|
81
|
+
return {
|
82
|
+
isEdit: false,
|
83
|
+
tabIndex: 'first',
|
84
|
+
dataId: '',
|
85
|
+
bdCompanyEnv: {
|
86
|
+
enabled: true,
|
87
|
+
connectTimeout: 10000,
|
88
|
+
readTimeout: 60000,
|
89
|
+
preScript: null,
|
90
|
+
postScript: null,
|
91
|
+
exeCompanyCode: null
|
92
|
+
},
|
93
|
+
showCodeEditor: false
|
94
|
+
};
|
95
|
+
},
|
96
|
+
created() {
|
97
|
+
if (this._dataId && !isNaN(this._dataId)) this.dataId = this._dataId;
|
98
|
+
},
|
99
|
+
mounted() {
|
100
|
+
this.getData();
|
101
|
+
},
|
102
|
+
methods: {
|
103
|
+
getData() {
|
104
|
+
if (this.copyId) {
|
105
|
+
return;
|
106
|
+
}
|
107
|
+
if (this.dataId && !isNaN(this.dataId)) {
|
108
|
+
this.isEdit = true;
|
109
|
+
this.$commonHttp({
|
110
|
+
url: USER_PREFIX + `/bd_company_env/get`,
|
111
|
+
method: `post`,
|
112
|
+
data: {
|
113
|
+
id: this.dataId
|
114
|
+
},
|
115
|
+
isLoading: true,
|
116
|
+
modalStrictly: true,
|
117
|
+
success: res => {
|
118
|
+
this.bdCompanyEnv = res.objx || {};
|
119
|
+
this.showCodeEditor = true;
|
120
|
+
}
|
121
|
+
});
|
122
|
+
} else {
|
123
|
+
this.showCodeEditor = true;
|
124
|
+
}
|
125
|
+
},
|
126
|
+
saveData() {
|
127
|
+
this.$refs.editForm.$baseValidate(valid => {
|
128
|
+
if (valid) {
|
129
|
+
this.$baseConfirm(this.$t1('您确定要保存吗?')).then(() => {
|
130
|
+
var url = USER_PREFIX + (this.isEdit ? `/bd_company_env/update` : `/bd_company_env/save`);
|
131
|
+
this.$http({
|
132
|
+
url: url,
|
133
|
+
method: `post`,
|
134
|
+
data: this.bdCompanyEnv,
|
135
|
+
isLoading: true,
|
136
|
+
success: res => {
|
137
|
+
this.$message({
|
138
|
+
message: res.content,
|
139
|
+
type: 'success',
|
140
|
+
duration: 500,
|
141
|
+
onClose: t => {
|
142
|
+
if (this.isEdit) {
|
143
|
+
this.$baseReload();
|
144
|
+
} else {
|
145
|
+
this.$baseReload({
|
146
|
+
updateParam: {
|
147
|
+
_dataId: res.objx,
|
148
|
+
copyId: null
|
149
|
+
}
|
150
|
+
});
|
151
|
+
}
|
152
|
+
}
|
153
|
+
});
|
154
|
+
}
|
155
|
+
});
|
156
|
+
});
|
157
|
+
}
|
158
|
+
});
|
159
|
+
}
|
160
|
+
}
|
161
|
+
};
|
162
|
+
|
163
|
+
</script>
|
@@ -0,0 +1,175 @@
|
|
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">
|
16
|
+
{{ $t1('新增') }}
|
17
|
+
</vxe-button>
|
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">
|
24
|
+
{{ $t1('搜索') }}
|
25
|
+
</vxe-button>
|
26
|
+
</template>
|
27
|
+
</tableForm>
|
28
|
+
</template>
|
29
|
+
</vxe-grid>
|
30
|
+
</div>
|
31
|
+
</el-tab-pane>
|
32
|
+
</el-tabs>
|
33
|
+
</div>
|
34
|
+
</template>
|
35
|
+
|
36
|
+
<script>
|
37
|
+
import editView from './edit.vue';
|
38
|
+
import tableForm from "@base/components/table/tableForm.vue";
|
39
|
+
|
40
|
+
export default {
|
41
|
+
name: 'bd_company_env:list',
|
42
|
+
components: {tableForm, editView},
|
43
|
+
data() {
|
44
|
+
return {
|
45
|
+
activeName: 'second',
|
46
|
+
dataId: 0,
|
47
|
+
showEdit: false,
|
48
|
+
vxeOption: {},
|
49
|
+
formData: {},
|
50
|
+
};
|
51
|
+
},
|
52
|
+
mounted() {
|
53
|
+
this.initTableList();
|
54
|
+
},
|
55
|
+
methods: {
|
56
|
+
searchEvent() {
|
57
|
+
this.$refs['table-m1'].commitProxy('reload');
|
58
|
+
},
|
59
|
+
resetEvent() {
|
60
|
+
this.formData = {};
|
61
|
+
this.advancedFormData = {};
|
62
|
+
this.$refs['table-m1'].commitProxy('reload');
|
63
|
+
},
|
64
|
+
openEditDialog(id) {
|
65
|
+
this.copyId = 0;
|
66
|
+
this.dataId = !id || typeof id == 'object' ? 0 : id;
|
67
|
+
this.activeName = 'first';
|
68
|
+
this.$openEditView('showEdit');
|
69
|
+
},
|
70
|
+
initTableList() {
|
71
|
+
let that = this;
|
72
|
+
let bdServiceMap = {"dev": this.$t1("测试"), "uat": this.$t1("UAT"), "prod": this.$t1("正式")};
|
73
|
+
let tableOption = {
|
74
|
+
vue: this,
|
75
|
+
tableRef: 'table-m1',
|
76
|
+
tableName: 'bd_company_env_list-m1',
|
77
|
+
path: USER_PREFIX + '/bd_company_env/listPage',
|
78
|
+
param: () => {
|
79
|
+
return {
|
80
|
+
...this.formData
|
81
|
+
}
|
82
|
+
},
|
83
|
+
columns: [
|
84
|
+
{type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
|
85
|
+
{
|
86
|
+
title: this.$t1('服务'),
|
87
|
+
field: 'bdService',
|
88
|
+
width: 150,
|
89
|
+
fixed: 'left',
|
90
|
+
slots: {
|
91
|
+
default: ({row}) => {
|
92
|
+
return bdServiceMap[row.bdService] || "";
|
93
|
+
}
|
94
|
+
}
|
95
|
+
},
|
96
|
+
{
|
97
|
+
title: this.$t1('组织编码'),
|
98
|
+
field: 'bdCompanyCode',
|
99
|
+
width: 150,
|
100
|
+
},
|
101
|
+
{
|
102
|
+
title: this.$t1('组织备注'),
|
103
|
+
field: 'bdCompanyRemark',
|
104
|
+
width: 150,
|
105
|
+
},
|
106
|
+
{
|
107
|
+
field: 'createBy',
|
108
|
+
title: this.$t1('创建人'),
|
109
|
+
width: 150
|
110
|
+
},
|
111
|
+
{
|
112
|
+
field: 'createDate',
|
113
|
+
title: this.$t1('创建时间'),
|
114
|
+
width: 150
|
115
|
+
},
|
116
|
+
{
|
117
|
+
field: 'modifyBy',
|
118
|
+
title: this.$t1('更新人'),
|
119
|
+
width: 150
|
120
|
+
},
|
121
|
+
{
|
122
|
+
field: 'modifyDate',
|
123
|
+
title: this.$t1('更新时间'),
|
124
|
+
width: 150
|
125
|
+
},
|
126
|
+
{
|
127
|
+
width: 47,
|
128
|
+
fixed: 'right',
|
129
|
+
title: '',
|
130
|
+
sortable: false,
|
131
|
+
slots: {
|
132
|
+
default: ({row}) => {
|
133
|
+
return [
|
134
|
+
<div>
|
135
|
+
<a
|
136
|
+
href="javascript:void(0);"
|
137
|
+
class="a-link"
|
138
|
+
onclick={() => {
|
139
|
+
this.openEditDialog(row.id);
|
140
|
+
}}
|
141
|
+
>
|
142
|
+
<el-tooltip enterable={false} effect="dark" content={this.$t1('查看')} placement="top"
|
143
|
+
popper-class="tooltip-skin">
|
144
|
+
<i class="el-icon-edit"/>
|
145
|
+
</el-tooltip>
|
146
|
+
</a>
|
147
|
+
</div>
|
148
|
+
];
|
149
|
+
}
|
150
|
+
}
|
151
|
+
}
|
152
|
+
],
|
153
|
+
searchColumns: [
|
154
|
+
{
|
155
|
+
title: this.$t1('服务'), field: "bdService", type: "select", common: true, itemOption: [
|
156
|
+
{label: this.$t1("测试"), value: "dev"},
|
157
|
+
{label: this.$t1("UAT"), value: "uat"},
|
158
|
+
{label: this.$t1("正式"), value: "prod"}
|
159
|
+
]
|
160
|
+
},
|
161
|
+
{
|
162
|
+
title: this.$t1("组织编码"),
|
163
|
+
field: "bdCompanyCode",
|
164
|
+
type: "input",
|
165
|
+
common: true,
|
166
|
+
}
|
167
|
+
]
|
168
|
+
};
|
169
|
+
this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
|
170
|
+
this.vxeOption = opts;
|
171
|
+
});
|
172
|
+
}
|
173
|
+
}
|
174
|
+
};
|
175
|
+
</script>
|
@@ -0,0 +1,51 @@
|
|
1
|
+
<template>
|
2
|
+
<div id="containt">
|
3
|
+
<div class="flex">
|
4
|
+
<div class="tab-box-vertical">
|
5
|
+
<div class="list-scroll">
|
6
|
+
<div class="item" v-for="(item,index) in typeTabs" :key="item.name" :class="{on:item.name==activeName}"
|
7
|
+
@click="chooseTab(item)">{{ item.label }}
|
8
|
+
</div>
|
9
|
+
</div>
|
10
|
+
</div>
|
11
|
+
<div class="flex-tabboxWidth">
|
12
|
+
<div v-for="(item,index) in typeTabs" :key="item.name" v-show="item.name==activeName">
|
13
|
+
<component :is="item.name" :containtId="false" v-if="item.inited"></component>
|
14
|
+
</div>
|
15
|
+
</div>
|
16
|
+
</div>
|
17
|
+
</div>
|
18
|
+
</template>
|
19
|
+
<script>
|
20
|
+
import bd_attach_setting_list from "@base/views/bd/setting/bd_attach_setting/list.vue";
|
21
|
+
// import request_setting_list from "@base/views/bd/setting/request_setting/list.vue";
|
22
|
+
import bd_company_env_list from "@base/views/bd/setting/bd_company_env/list.vue";
|
23
|
+
// import request_async_setting_list from "@base/views/bd/setting/request_async_setting/list.vue";
|
24
|
+
|
25
|
+
export default {
|
26
|
+
name: "list",
|
27
|
+
components: {bd_attach_setting_list, request_setting_list, bd_company_env_list, request_async_setting_list},
|
28
|
+
data() {
|
29
|
+
return {
|
30
|
+
activeName: "bd_attach_setting_list",
|
31
|
+
typeTabs: [
|
32
|
+
{label: this.$t1("导入模板"), name: "bd_attach_setting_list", inited: true},
|
33
|
+
// {label: this.$t1("同步调用接口"), name: "request_setting_list", inited: false},
|
34
|
+
// {label: this.$t1("异步推送数据"), name: "request_async_setting_list", inited: false},
|
35
|
+
{label: this.$t1("组织环境设置"), name: "bd_company_env_list", inited: false},
|
36
|
+
]
|
37
|
+
}
|
38
|
+
},
|
39
|
+
methods: {
|
40
|
+
chooseTab(item) {
|
41
|
+
this.activeName = item.name;
|
42
|
+
item.inited = true;
|
43
|
+
}
|
44
|
+
}
|
45
|
+
}
|
46
|
+
</script>
|
47
|
+
|
48
|
+
|
49
|
+
<style scoped>
|
50
|
+
|
51
|
+
</style>
|
@@ -93,6 +93,35 @@
|
|
93
93
|
</el-select>
|
94
94
|
</template>
|
95
95
|
</vxe-form-item>
|
96
|
+
<vxe-form-item :title="$t1('启动人')+':'" field="starterName">
|
97
|
+
<template v-slot>
|
98
|
+
<el-input v-model="formData.starterName" size="small" clearable/>
|
99
|
+
</template>
|
100
|
+
</vxe-form-item>
|
101
|
+
<!-- <vxe-form-item title="启动时间:">
|
102
|
+
<template v-slot>
|
103
|
+
<el-date-picker
|
104
|
+
v-model="formData.startTime"
|
105
|
+
type="datetime"
|
106
|
+
placeholder=""
|
107
|
+
size="small"
|
108
|
+
clearable
|
109
|
+
value-format="yyyy-MM-dd HH:mm:ss"
|
110
|
+
:picker-options="$baseStartPickerOptions(formData.endTime)"
|
111
|
+
></el-date-picker>
|
112
|
+
<span>-</span>
|
113
|
+
<el-date-picker
|
114
|
+
v-model="formData.endTime"
|
115
|
+
type="datetime"
|
116
|
+
placeholder=""
|
117
|
+
size="small"
|
118
|
+
clearable
|
119
|
+
value-format="yyyy-MM-dd HH:mm:ss"
|
120
|
+
default-time="23:59:59"
|
121
|
+
:picker-options="$baseEndPickerOptions(formData.startTime)"
|
122
|
+
></el-date-picker>
|
123
|
+
</template>
|
124
|
+
</vxe-form-item> -->
|
96
125
|
</vxe-form>
|
97
126
|
</template>
|
98
127
|
</vxe-grid>
|