cloud-web-corejs 1.0.54-dev.10 → 1.0.54-dev.101
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 +9 -3
- package/src/components/VabUpload/index.vue +2 -1
- package/src/components/VabUpload/mixins.js +1 -1
- package/src/components/VabUpload/view.vue +2 -1
- package/src/components/excelExport/exportFieldDialog.vue +16 -6
- package/src/components/excelExport/index.js +2 -1
- package/src/components/excelExport/index.vue +8 -6
- package/src/components/excelExport/mixins.js +1 -2
- package/src/components/excelImport/index.vue +2 -1
- package/src/components/excelImport/mixins.js +1 -1
- package/src/components/fileLibrary/fileObjAuthDialog.vue +1 -1
- package/src/components/fileLibrary/fileObjAuthEditDialog.vue +1 -1
- package/src/components/fileLibrary/fileObjNotifyEdit.vue +90 -68
- package/src/components/fileLibrary/filterDialog.vue +379 -0
- package/src/components/fileLibrary/index.vue +26 -15
- package/src/components/fileLibrary/mixins/fileObjAuthDialogMixin.js +8 -3
- package/src/components/fileLibrary/mixins/fileObjAuthEditDialogMixin.js +4 -1
- package/src/components/fileLibrary/mixins/fileObjAuthEditMixin.js +1 -1
- package/src/components/fileLibrary/mixins/indexMixins.js +59 -17
- package/src/components/fileLibrary/mixins/propertiesDialogMixins.js +2 -1
- package/src/components/fileLibrary/propertiesDialog.vue +4 -0
- package/src/components/jsonImport/mixins.js +1 -1
- package/src/components/onlineTalk/index.vue +327 -5
- package/src/components/onlineTalk/mixins.js +1 -1
- package/src/components/table/index.js +2 -1
- package/src/components/tempStorage/tempStorageDialog.vue +2 -2
- package/src/components/wf/wf.js +1737 -1
- package/src/components/wf/wfUtil.js +278 -1
- package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +1 -0
- package/src/components/xform/form-designer/form-widget/dialog/formDrawer.vue +1 -0
- package/src/components/xform/form-designer/form-widget/dialog/formFieldDialog.vue +2 -2
- package/src/components/xform/form-designer/form-widget/dialog/importDialog.vue +35 -5
- package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +3 -1
- package/src/components/xform/form-designer/form-widget/dialog/preformDialog.vue +2 -2
- package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +8 -5
- package/src/components/xform/form-designer/form-widget/dialog/vabSearchDialog.vue +2 -2
- package/src/components/xform/form-designer/form-widget/field-widget/baseAttachment-widget.vue +6 -2
- package/src/components/xform/form-designer/form-widget/field-widget/date-range-widget.vue +1 -0
- package/src/components/xform/form-designer/form-widget/field-widget/echart-bar-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/echart-category-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/echart-pie-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +989 -1
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-bar-mixin.js +49 -8
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-category-mixin.js +61 -88
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-pie-mixin.js +13 -0
- package/src/components/xform/form-designer/form-widget/field-widget/project-tag-widget.vue +26 -2
- package/src/components/xform/form-designer/form-widget/field-widget/table-export-button-widget.vue +6 -1
- package/src/components/xform/form-designer/form-widget/field-widget/vabUpload-widget.vue +79 -0
- package/src/components/xform/form-designer/indexMixin.js +864 -1
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +49 -36
- package/src/components/xform/form-designer/setting-panel/indexMixin.js +322 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +6 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/onCheckboxChange-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +13 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/eventMixin.js +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onAfterConfirmFile-editor.vue +32 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onClick-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/search-dialog-event-editor.vue +20 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-defaultTime-editor.vue +27 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-bar-editor.vue +185 -69
- package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-category-editor.vue +188 -86
- package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-pie-editor.vue +84 -39
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import-button-editor.vue +3 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/table-export-button-editor.vue +26 -7
- package/src/components/xform/form-designer/setting-panel/property-editor/placeholder-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/project-tag-editor.vue +66 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/showRuleFlag-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/wfFlag-editor.vue +269 -27
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +2 -0
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +57 -7
- package/src/components/xform/form-render/container-item/data-table-item.vue +5 -4
- package/src/components/xform/form-render/container-item/data-table-mixin.js +1881 -1
- package/src/components/xform/form-render/indexMixin.js +1680 -1
- package/src/components/xform/utils/emitter.js +4 -4
- package/src/layout/components/Sidebar/default.vue +18 -6
- package/src/mixins/selectDialog/index.js +1 -1
- package/src/router/modules/customer.js +15 -0
- package/src/store/config/index.js +1 -1
- package/src/store/modules/permission.js +1 -1
- package/src/store/modules/user.js +302 -1
- package/src/utils/pddLog.js +103 -0
- package/src/utils/request.js +28 -28
- package/src/utils/vab.js +1 -1
- package/src/views/bd/setting/form_template/batchWfObjConfigDialog.vue +105 -0
- package/src/views/bd/setting/form_template/edit.vue +2 -2
- package/src/views/bd/setting/form_template/editWfObjConfigDialog.vue +2 -2
- package/src/views/bd/setting/form_template/list.vue +4 -2
- package/src/views/bd/setting/form_template/mixins/batchWfObjConfigDialog.js +4 -0
- package/src/views/bd/setting/form_template/mixins/edit.js +1 -1
- package/src/views/bd/setting/form_template/mixins/list.js +1 -1
- package/src/views/bd/setting/form_template/mixins/wf_list.js +434 -0
- package/src/views/bd/setting/form_template/wfObjConfigDialog.vue +254 -0
- package/src/views/bd/setting/form_template/wf_list.vue +127 -0
- package/src/views/bd/setting/menu_kind/mixins/authDialog.js +1 -254
- package/src/views/bd/setting/table_model/edit.vue +1 -1
- package/src/views/bd/setting/table_model/list.vue +4 -2
- package/src/views/bd/setting/table_model/mixins/list.js +14 -14
- package/src/views/user/area/dialog.vue +21 -8
- package/src/views/user/bill_setting/edit.vue +1 -1
- package/src/views/user/bill_setting/list.vue +1 -1
- package/src/views/user/common_attribute/itemEdit.vue +2 -2
- package/src/views/user/common_attribute/list.vue +1 -1
- package/src/views/user/common_script/edit.vue +1 -1
- package/src/views/user/common_script/list.vue +1 -1
- package/src/views/user/company_info/dialog.vue +19 -9
- package/src/views/user/company_info/edit.vue +1 -1
- package/src/views/user/extend_datasource/dialog.vue +1 -0
- package/src/views/user/extend_datasource/edit.vue +3 -0
- package/src/views/user/extend_datasource/list.vue +2 -1
- package/src/views/user/file_type/edit.vue +30 -1
- package/src/views/user/file_type/list.vue +28 -0
- package/src/views/user/groups/edit.vue +2 -0
- package/src/views/user/groups/list.vue +1 -0
- package/src/views/user/home/dev.vue +29 -0
- package/src/views/user/home/index.vue +16 -6
- package/src/views/user/login/default.vue +4 -2
- package/src/views/user/outLink/form_view.vue +39 -12
- package/src/views/user/outLink/index.vue +17 -0
- package/src/views/user/outLink/view.vue +39 -13
- package/src/views/user/push_setting/list.vue +2 -2
- package/src/views/user/user/edit.vue +9 -9
- package/src/views/user/user/form_edit.vue +117 -49
- package/src/views/user/user/form_info.vue +210 -0
- package/src/views/user/user/form_list.vue +1 -0
- package/src/views/user/user/list.vue +3 -3
- package/src/views/user/wf/wf_obj_config/list.vue +19 -3
- package/src/views/user/wf/wf_obj_config/wfBizDataSettingDialog.vue +292 -0
|
@@ -9,18 +9,27 @@
|
|
|
9
9
|
<el-form-item label="表格唯一名称">
|
|
10
10
|
<el-input v-model="optionModel.tableRef"></el-input>
|
|
11
11
|
</el-form-item>
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
<el-form-item label="导出列表显示图片">
|
|
13
|
+
<el-switch v-model="optionModel.showImageAtTable" @change="changeShowImageAtTable"></el-switch>
|
|
14
|
+
</el-form-item>
|
|
15
|
+
<el-form-item label="导出每页查询数量">
|
|
16
|
+
<base-input-number v-model="optionModel.exportPageSize"
|
|
17
|
+
:max="optionModel.showImageAtTable?150:1000"></base-input-number>
|
|
18
|
+
</el-form-item>
|
|
19
|
+
<el-form-item label="导出参数" label-width="150px">
|
|
20
|
+
<a href="javascript:void(0);" class="a-link link-oneLind"
|
|
21
|
+
@click="editEventHandler('tableExportParam', eventParams)">
|
|
22
|
+
<span>{{ optionModel.tableExportParam }}</span>
|
|
23
|
+
<i class="el-icon-edit"></i>
|
|
24
|
+
</a>
|
|
25
|
+
</el-form-item>
|
|
18
26
|
</div>
|
|
19
27
|
</template>
|
|
20
28
|
|
|
21
29
|
<script>
|
|
22
30
|
import i18n from "../../../../../../components/xform/utils/i18n";
|
|
23
|
-
import eventMixin
|
|
31
|
+
import eventMixin
|
|
32
|
+
from "../../../../../../components/xform/form-designer/setting-panel/property-editor/event-handler/eventMixin";
|
|
24
33
|
|
|
25
34
|
export default {
|
|
26
35
|
name: "table-export-button-editor",
|
|
@@ -35,6 +44,16 @@ export default {
|
|
|
35
44
|
eventParams: [],
|
|
36
45
|
};
|
|
37
46
|
},
|
|
47
|
+
methods: {
|
|
48
|
+
changeShowImageAtTable(val) {
|
|
49
|
+
if (val) {
|
|
50
|
+
let exportPageSize = this.optionModel.exportPageSize || 0;
|
|
51
|
+
if (exportPageSize > 150) {
|
|
52
|
+
this.optionModel.exportPageSize = 150
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
38
57
|
};
|
|
39
58
|
</script>
|
|
40
59
|
|
package/src/components/xform/form-designer/setting-panel/property-editor/project-tag-editor.vue
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div v-show="getIsShow()">
|
|
3
|
+
<el-form-item label-width="0">
|
|
4
|
+
<el-divider class="custom-divider-margin-top">请求访问设置</el-divider>
|
|
5
|
+
</el-form-item>
|
|
6
|
+
<el-form-item label="表单编码">
|
|
7
|
+
<el-input v-model="optionModel.tagFormCode" clearable></el-input>
|
|
8
|
+
</el-form-item>
|
|
9
|
+
<el-form-item label="展示字段">
|
|
10
|
+
<el-input v-model="optionModel.tagLabelField" clearable></el-input>
|
|
11
|
+
</el-form-item>
|
|
12
|
+
<el-form-item label="唯一关键字段">
|
|
13
|
+
<el-input v-model="optionModel.tagUniqueField" clearable></el-input>
|
|
14
|
+
</el-form-item>
|
|
15
|
+
<el-form-item label="明细字段回填">
|
|
16
|
+
<el-input v-model="optionModel.tagFillConfig" clearable></el-input>
|
|
17
|
+
</el-form-item>
|
|
18
|
+
<el-form-item label="确认回调">
|
|
19
|
+
<el-input v-model="optionModel.tagConfirmCallback" clearable></el-input>
|
|
20
|
+
</el-form-item>
|
|
21
|
+
<el-form-item label="删除回调">
|
|
22
|
+
<el-input v-model="optionModel.tagDeleteCallback" clearable></el-input>
|
|
23
|
+
</el-form-item>
|
|
24
|
+
<el-form-item label="是否可以删除">
|
|
25
|
+
<el-switch v-model="optionModel.tabDeleteEnabled" clearable></el-switch>
|
|
26
|
+
</el-form-item>
|
|
27
|
+
|
|
28
|
+
<!-- <el-form-item label="查询参数">
|
|
29
|
+
<a href="javascript:void(0);" class="a-link link-oneLind"
|
|
30
|
+
@click="editEventHandler('formScriptParam', ['dataId', 'formCode'])">
|
|
31
|
+
<span>{{ optionModel.formScriptParam }}</span>
|
|
32
|
+
<i class="el-icon-edit"></i>
|
|
33
|
+
</a>
|
|
34
|
+
</el-form-item>-->
|
|
35
|
+
</div>
|
|
36
|
+
</template>
|
|
37
|
+
|
|
38
|
+
<script>
|
|
39
|
+
import i18n from "../../../../../components/xform/utils/i18n"
|
|
40
|
+
import eventMixin
|
|
41
|
+
from "../../../../../components/xform/form-designer/setting-panel/property-editor/event-handler/eventMixin"
|
|
42
|
+
|
|
43
|
+
export default {
|
|
44
|
+
name: "formScriptEnabled-editor",
|
|
45
|
+
mixins: [i18n, eventMixin],
|
|
46
|
+
props: {
|
|
47
|
+
designer: Object,
|
|
48
|
+
selectedWidget: Object,
|
|
49
|
+
optionModel: Object
|
|
50
|
+
},
|
|
51
|
+
data() {
|
|
52
|
+
return {
|
|
53
|
+
formScriptEnabledTypes: ['select', 'checkbox', 'radio', 'census']
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
methods: {
|
|
57
|
+
getIsShow() {
|
|
58
|
+
return this.selectedWidget.type !== 'data-table';
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
</script>
|
|
63
|
+
|
|
64
|
+
<style scoped>
|
|
65
|
+
|
|
66
|
+
</style>
|
|
@@ -6,7 +6,7 @@
|
|
|
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
|
-
<el-form-item :label="i18nt('
|
|
9
|
+
<el-form-item :label="i18nt('特定流程节点设置')">
|
|
10
10
|
<el-switch v-model="optionModel.wfEdit" @change="changeWfEdit"></el-switch>
|
|
11
11
|
</el-form-item>
|
|
12
12
|
<el-form-item :label="i18nt('流程节点信息')">
|
|
@@ -15,13 +15,32 @@
|
|
|
15
15
|
<i class="el-icon-edit"></i>
|
|
16
16
|
</a>
|
|
17
17
|
</el-form-item>
|
|
18
|
+
<el-form-item :label="i18nt('过程更改业务数据')">
|
|
19
|
+
<el-switch v-model="optionModel.wfModifyDataEnabled"></el-switch>
|
|
20
|
+
</el-form-item>
|
|
21
|
+
<el-form-item :label="i18nt('更改业务数据信息')">
|
|
22
|
+
<a href="javascript:void(0);" class="a-link link-oneLind" @click="openDialog2">
|
|
23
|
+
<span>{{ optionModel.wfModifyDataConfig && optionModel.wfModifyDataConfig.length ? "已维护" : "" }}</span>
|
|
24
|
+
<i class="el-icon-edit"></i>
|
|
25
|
+
</a>
|
|
26
|
+
</el-form-item>
|
|
27
|
+
|
|
28
|
+
<!-- <el-form-item :label="i18nt('特定流程节点显隐')">
|
|
29
|
+
<el-switch v-model="optionModel.wfEdit" @change="changeWfEdit"></el-switch>
|
|
30
|
+
</el-form-item>
|
|
31
|
+
<el-form-item :label="i18nt('流程节点信息')">
|
|
32
|
+
<a href="javascript:void(0);" class="a-link link-oneLind" @click="openDialog">
|
|
33
|
+
<span>{{ optionModel.wfConfigData && optionModel.wfConfigData.length ? "已维护" : "" }}</span>
|
|
34
|
+
<i class="el-icon-edit"></i>
|
|
35
|
+
</a>
|
|
36
|
+
</el-form-item>-->
|
|
18
37
|
<el-dialog
|
|
19
38
|
v-if="dialogVisible"
|
|
20
39
|
custom-class="dialog-style list-dialog"
|
|
21
40
|
:title="i18nt('流程节点信息')"
|
|
22
41
|
:visible.sync="dialogVisible"
|
|
23
42
|
:show-close="!0"
|
|
24
|
-
:append-to-body="
|
|
43
|
+
:append-to-body="true"
|
|
25
44
|
:modal="false"
|
|
26
45
|
:close-on-click-modal="!1"
|
|
27
46
|
:close-on-press-escape="!1"
|
|
@@ -29,36 +48,88 @@
|
|
|
29
48
|
width="1220px"
|
|
30
49
|
top="5vh"
|
|
31
50
|
v-dialog-drag
|
|
51
|
+
:fullscreen="true"
|
|
32
52
|
>
|
|
33
|
-
<div class="cont">
|
|
53
|
+
<div class="cont" style="padding-bottom: 8px;">
|
|
34
54
|
<el-table
|
|
35
55
|
ref="singleTable"
|
|
36
56
|
width="100%"
|
|
37
57
|
:data="tableData"
|
|
38
|
-
height="
|
|
58
|
+
height="100%"
|
|
39
59
|
border=""
|
|
40
60
|
row-key="columnId"
|
|
41
61
|
stripe=""
|
|
62
|
+
style="margin-bottom: 0px;"
|
|
42
63
|
>
|
|
43
64
|
<el-table-column type="index" width="35" fixed="left"></el-table-column>
|
|
44
|
-
<el-table-column :label="i18nt('
|
|
45
|
-
<template slot-scope="
|
|
46
|
-
<el-select v-model="
|
|
47
|
-
<el-option
|
|
48
|
-
|
|
65
|
+
<el-table-column :label="i18nt('服务')" width="150">
|
|
66
|
+
<template slot-scope="{row}">
|
|
67
|
+
<el-select v-model="row.serveType" @change="changeServeType(row)">
|
|
68
|
+
<el-option :value="1" label="正式"></el-option>
|
|
69
|
+
<el-option :value="2" label="UAT"></el-option>
|
|
70
|
+
<el-option :value="3" label="测试"></el-option>
|
|
71
|
+
<el-option :value="4" label="自定义"></el-option>
|
|
49
72
|
</el-select>
|
|
50
|
-
|
|
51
73
|
</template>
|
|
52
74
|
</el-table-column>
|
|
53
|
-
<el-table-column :label="i18nt('
|
|
54
|
-
<template slot-scope="
|
|
55
|
-
<el-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
75
|
+
<el-table-column :label="i18nt('自定义服务')" width="150">
|
|
76
|
+
<template slot-scope="{row}">
|
|
77
|
+
<el-input v-model="row.serveName" clearable :disabled="row.serveType!==4"></el-input>
|
|
78
|
+
</template>
|
|
79
|
+
</el-table-column>
|
|
80
|
+
<el-table-column :label="i18nt('组织')" width="250">
|
|
81
|
+
<template slot-scope="{row,$index}">
|
|
82
|
+
<el-input
|
|
83
|
+
class="search-input"
|
|
84
|
+
:value="getCompanyNames(row)"
|
|
85
|
+
clearable
|
|
86
|
+
@clear="
|
|
87
|
+
row.companyInfos = [];
|
|
88
|
+
"
|
|
89
|
+
v-el-readonly
|
|
90
|
+
>
|
|
91
|
+
<i slot="suffix" class="el-input__icon el-icon-search"
|
|
92
|
+
@click="openCompanyDialog(row, $index)"></i>
|
|
93
|
+
</el-input>
|
|
94
|
+
</template>
|
|
95
|
+
</el-table-column>
|
|
96
|
+
<el-table-column :label="i18nt('流程模板编码')" width="150">
|
|
97
|
+
<template slot-scope="{row}">
|
|
98
|
+
<el-input v-model="row.modelKey" clearable></el-input>
|
|
60
99
|
</template>
|
|
61
100
|
</el-table-column>
|
|
101
|
+
<el-table-column :label="i18nt('节点步骤')" width="250">
|
|
102
|
+
<template slot-scope="{row}">
|
|
103
|
+
<el-input v-model="row.taskSteps" clearable></el-input>
|
|
104
|
+
</template>
|
|
105
|
+
</el-table-column>
|
|
106
|
+
<el-table-column :label="i18nt('设置')" width="150">
|
|
107
|
+
<template slot-scope="{row}">
|
|
108
|
+
<el-select v-model="row.type" clearable>
|
|
109
|
+
<el-option :value="1" label="可编辑"></el-option>
|
|
110
|
+
<el-option :value="2" label="仅显示"></el-option>
|
|
111
|
+
<el-option :value="3" label="隐藏"></el-option>
|
|
112
|
+
</el-select>
|
|
113
|
+
</template>
|
|
114
|
+
</el-table-column>
|
|
115
|
+
<!-- <el-table-column :label="i18nt('流程模板')" width="250" prop="label">
|
|
116
|
+
<template slot-scope="scope">
|
|
117
|
+
<el-select v-model="scope.row.modelId" @change="changeModelId">
|
|
118
|
+
<el-option v-for="(wfDefItem,index) in wfDefItems" :key="index" :value="wfDefItem.modelId"
|
|
119
|
+
:label="wfDefItem.modelName"></el-option>
|
|
120
|
+
</el-select>
|
|
121
|
+
|
|
122
|
+
</template>
|
|
123
|
+
</el-table-column>
|
|
124
|
+
<el-table-column :label="i18nt('流程节点')" width="550" prop="prop">
|
|
125
|
+
<template slot-scope="scope">
|
|
126
|
+
<el-checkbox-group v-model="scope.row.nodeIds" v-if="!!wfNodeMap[scope.row.modelId]">
|
|
127
|
+
<el-checkbox v-for="(node,index) in wfNodeMap[scope.row.modelId]" :key="index"
|
|
128
|
+
:label="node.nodeId">{{ node.nodeName }}
|
|
129
|
+
</el-checkbox>
|
|
130
|
+
</el-checkbox-group>
|
|
131
|
+
</template>
|
|
132
|
+
</el-table-column>-->
|
|
62
133
|
<el-table-column :label="i18nt('designer.setting.actionColumn')" width="100" align="center">
|
|
63
134
|
<template #header>
|
|
64
135
|
<span>{{ i18nt('designer.setting.actionColumn') }}</span>
|
|
@@ -88,14 +159,105 @@
|
|
|
88
159
|
</el-button>
|
|
89
160
|
</div>
|
|
90
161
|
</el-dialog>
|
|
162
|
+
<el-dialog
|
|
163
|
+
v-if="dialogVisible2"
|
|
164
|
+
custom-class="dialog-style list-dialog"
|
|
165
|
+
:title="i18nt('过程更改业务数据')"
|
|
166
|
+
:visible.sync="dialogVisible2"
|
|
167
|
+
:show-close="!0"
|
|
168
|
+
:append-to-body="true"
|
|
169
|
+
:modal="false"
|
|
170
|
+
:close-on-click-modal="!1"
|
|
171
|
+
:close-on-press-escape="!1"
|
|
172
|
+
:destroy-on-close="!0"
|
|
173
|
+
width="1220px"
|
|
174
|
+
top="5vh"
|
|
175
|
+
v-dialog-drag
|
|
176
|
+
>
|
|
177
|
+
<div class="cont" style="padding-bottom: 8px;">
|
|
178
|
+
<el-table
|
|
179
|
+
ref="singleTable"
|
|
180
|
+
width="100%"
|
|
181
|
+
:data="tableData2"
|
|
182
|
+
height="500px"
|
|
183
|
+
border=""
|
|
184
|
+
row-key="columnId"
|
|
185
|
+
stripe=""
|
|
186
|
+
style="margin-bottom: 0px;"
|
|
187
|
+
>
|
|
188
|
+
<el-table-column type="index" width="35" fixed="left"></el-table-column>
|
|
189
|
+
<el-table-column :label="i18nt('流程动作')" width="150">
|
|
190
|
+
<template slot-scope="{row}">
|
|
191
|
+
<el-select v-model="row.action">
|
|
192
|
+
<el-option value="start" label="流程启动"></el-option>
|
|
193
|
+
<el-option value="interrupt" label="流程中断"></el-option>
|
|
194
|
+
<el-option value="end" label="流程完成"></el-option>
|
|
195
|
+
</el-select>
|
|
196
|
+
</template>
|
|
197
|
+
</el-table-column>
|
|
198
|
+
<!-- <el-table-column :label="i18nt('值类型')" width="250">
|
|
199
|
+
<template slot-scope="{row}">
|
|
200
|
+
<el-select v-model="row.valueType" @change="changeValueType">
|
|
201
|
+
<el-option :value="1" label="文本"></el-option>
|
|
202
|
+
<el-option :value="2" label="数值"></el-option>
|
|
203
|
+
<el-option :value="3" label="布尔值"></el-option>
|
|
204
|
+
</el-select>
|
|
205
|
+
</template>
|
|
206
|
+
</el-table-column>-->
|
|
207
|
+
<el-table-column :label="i18nt('设置的值')" width="650">
|
|
208
|
+
<template slot-scope="{row}">
|
|
209
|
+
<el-input v-model="row.toValue" clearable></el-input>
|
|
210
|
+
<!-- <el-input v-model="row.toValue" clearable v-if="row.valueType==1"></el-input>
|
|
211
|
+
<base-input-number v-model="row.toValue" clearable v-else-if="row.valueType==2"></base-input-number>
|
|
212
|
+
<el-radio-group v-model="row.toValue" v-else-if="row.valueType==3">
|
|
213
|
+
<el-radio :label="true">true</el-radio>
|
|
214
|
+
<el-radio :label="false">false</el-radio>
|
|
215
|
+
</el-radio-group>-->
|
|
216
|
+
|
|
217
|
+
</template>
|
|
218
|
+
</el-table-column>
|
|
219
|
+
<el-table-column :label="i18nt('designer.setting.actionColumn')" width="100" align="center">
|
|
220
|
+
<template #header>
|
|
221
|
+
<span>{{ i18nt('designer.setting.actionColumn') }}</span>
|
|
222
|
+
<el-button :title="i18nt('designer.setting.addTableColumn')" size="mini" type="" circle=""
|
|
223
|
+
icon="el-icon-plus" @click="addItem2"></el-button>
|
|
224
|
+
</template>
|
|
225
|
+
<template slot-scope="scope">
|
|
226
|
+
<el-button
|
|
227
|
+
:title="i18nt('designer.setting.deleteTableColumn')"
|
|
228
|
+
size="mini"
|
|
229
|
+
type=""
|
|
230
|
+
circle=""
|
|
231
|
+
icon="el-icon-minus"
|
|
232
|
+
@click="tableData2.splice(scope.$index,1)"
|
|
233
|
+
></el-button>
|
|
234
|
+
</template>
|
|
235
|
+
</el-table-column>
|
|
236
|
+
|
|
237
|
+
</el-table>
|
|
238
|
+
</div>
|
|
239
|
+
<div class="dialog-footer" slot="footer">
|
|
240
|
+
<el-button @click="dialogVisible2 = false" class="button-sty" icon="el-icon-close">
|
|
241
|
+
{{ i18nt('designer.hint.cancel') }}
|
|
242
|
+
</el-button>
|
|
243
|
+
<el-button type="primary" @click="colSubmit2" class="button-sty" icon="el-icon-check">
|
|
244
|
+
{{ i18nt('designer.hint.confirm') }}
|
|
245
|
+
</el-button>
|
|
246
|
+
</div>
|
|
247
|
+
</el-dialog>
|
|
248
|
+
<companyInfoDialog v-if="showCompanyInfoDialog" :visiable.sync="showCompanyInfoDialog"
|
|
249
|
+
@confirm="confirmCompanyDialog" :multi="true" :allCompany="true" :rows="currentCompanyInfos"
|
|
250
|
+
fieldKey="companyCode"/>
|
|
91
251
|
</div>
|
|
92
252
|
</template>
|
|
93
253
|
|
|
94
254
|
<script>
|
|
95
255
|
import i18n from "../../../../../components/xform/utils/i18n"
|
|
256
|
+
import companyInfoDialog from "@base/views/user/company_info/dialog.vue";
|
|
96
257
|
|
|
97
258
|
export default {
|
|
98
259
|
name: "wfFlag-editor",
|
|
260
|
+
components: {companyInfoDialog},
|
|
99
261
|
mixins: [i18n],
|
|
100
262
|
props: {
|
|
101
263
|
designer: Object,
|
|
@@ -108,7 +270,14 @@ export default {
|
|
|
108
270
|
dialogVisible: false,
|
|
109
271
|
tableData: [],
|
|
110
272
|
wfDefItems: [],
|
|
111
|
-
wfNodeMap: {}
|
|
273
|
+
wfNodeMap: {},
|
|
274
|
+
|
|
275
|
+
currentCompanyInfos: [],
|
|
276
|
+
operateIndex: 0,
|
|
277
|
+
showCompanyInfoDialog: false,
|
|
278
|
+
|
|
279
|
+
dialogVisible2: false,
|
|
280
|
+
tableData2: [],
|
|
112
281
|
}
|
|
113
282
|
},
|
|
114
283
|
computed: {
|
|
@@ -122,11 +291,13 @@ export default {
|
|
|
122
291
|
let reportTemplate = this.getReportTemplate();
|
|
123
292
|
let objTypeCode = reportTemplate.objTypeCode;
|
|
124
293
|
let wfConfigData = this.optionModel.wfConfigData || [];
|
|
125
|
-
|
|
294
|
+
this.dialogVisible = true;
|
|
295
|
+
this.tableData = this.$baseLodash.cloneDeep(wfConfigData)
|
|
296
|
+
/*wfConfigData.forEach(item => {
|
|
126
297
|
this.getWfObjConfigItem(item.modelId)
|
|
127
|
-
})
|
|
298
|
+
})*/
|
|
128
299
|
|
|
129
|
-
this.$http({
|
|
300
|
+
/*this.$http({
|
|
130
301
|
url: this.current_prefix + "/wf_obj_config_item/list",
|
|
131
302
|
data: {
|
|
132
303
|
objTypeCode: objTypeCode,
|
|
@@ -139,7 +310,7 @@ export default {
|
|
|
139
310
|
this.dialogVisible = true;
|
|
140
311
|
this.tableData = this.$baseLodash.cloneDeep(wfConfigData)
|
|
141
312
|
},
|
|
142
|
-
})
|
|
313
|
+
});*/
|
|
143
314
|
},
|
|
144
315
|
getWfObjConfigItem(modelId) {
|
|
145
316
|
let reportTemplate = this.getReportTemplate();
|
|
@@ -160,10 +331,15 @@ export default {
|
|
|
160
331
|
});
|
|
161
332
|
},
|
|
162
333
|
addItem() {
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
334
|
+
let newItem = {
|
|
335
|
+
type: null,
|
|
336
|
+
serveType: null,
|
|
337
|
+
serveName: null,
|
|
338
|
+
modelKey: null,
|
|
339
|
+
taskSteps: null,
|
|
340
|
+
companyInfos: []
|
|
341
|
+
}
|
|
342
|
+
this.tableData.push(newItem);
|
|
167
343
|
},
|
|
168
344
|
colSubmit() {
|
|
169
345
|
this.dialogVisible = !1;
|
|
@@ -177,7 +353,7 @@ export default {
|
|
|
177
353
|
changeEnabledByWf(val) {
|
|
178
354
|
if (val) {
|
|
179
355
|
this.optionModel.hiddenByWf = false;
|
|
180
|
-
this.optionModel.wfEdit = false;
|
|
356
|
+
// this.optionModel.wfEdit = false;
|
|
181
357
|
}
|
|
182
358
|
},
|
|
183
359
|
changeHiddenByWf(val) {
|
|
@@ -189,6 +365,72 @@ export default {
|
|
|
189
365
|
if (val) {
|
|
190
366
|
this.optionModel.enabledByWf = false;
|
|
191
367
|
}
|
|
368
|
+
},
|
|
369
|
+
changeServeType(row) {
|
|
370
|
+
// modelKey
|
|
371
|
+
let map = {
|
|
372
|
+
1: "prod",
|
|
373
|
+
2: "uat",
|
|
374
|
+
3: "dev"
|
|
375
|
+
}
|
|
376
|
+
let serveName = null;
|
|
377
|
+
let serveType = row.serveType;
|
|
378
|
+
if (serveType && map[serveType]) {
|
|
379
|
+
serveName = map[row.serveType];
|
|
380
|
+
}
|
|
381
|
+
row.serveName = serveName;
|
|
382
|
+
},
|
|
383
|
+
openCompanyDialog(row, rowIndex) {
|
|
384
|
+
this.operateIndex = rowIndex;
|
|
385
|
+
this.currentCompanyInfos = row.companyInfos || [];
|
|
386
|
+
this.showCompanyInfoDialog = true;
|
|
387
|
+
|
|
388
|
+
},
|
|
389
|
+
confirmCompanyDialog(rows) {
|
|
390
|
+
if (rows.length) {
|
|
391
|
+
let item = this.tableData[this.operateIndex];
|
|
392
|
+
item.companyInfos = rows;
|
|
393
|
+
}
|
|
394
|
+
},
|
|
395
|
+
getCompanyNames(item) {
|
|
396
|
+
return item.companyInfos.map(item => item.companyName).join(',');
|
|
397
|
+
},
|
|
398
|
+
|
|
399
|
+
openDialog2() {
|
|
400
|
+
this.tableData2 = this.$baseLodash.cloneDeep(this.optionModel.wfModifyDataConfig || []);
|
|
401
|
+
this.dialogVisible2 = true;
|
|
402
|
+
},
|
|
403
|
+
addItem2() {
|
|
404
|
+
let newItem = {
|
|
405
|
+
action: 'start',
|
|
406
|
+
// valueType: 1,
|
|
407
|
+
toValue: null
|
|
408
|
+
}
|
|
409
|
+
this.tableData2.push(newItem);
|
|
410
|
+
},
|
|
411
|
+
colSubmit2() {
|
|
412
|
+
let isError = false;
|
|
413
|
+
let map = {}
|
|
414
|
+
this.tableData2.forEach(item => {
|
|
415
|
+
let count = map[item.action] || 0;
|
|
416
|
+
map[item.action] = count + 1;
|
|
417
|
+
if (map[item.action] > 1) {
|
|
418
|
+
isError = true;
|
|
419
|
+
}
|
|
420
|
+
})
|
|
421
|
+
if (isError) {
|
|
422
|
+
this.$message({
|
|
423
|
+
message: "流程动作不能重复",
|
|
424
|
+
type: 'error',
|
|
425
|
+
duration: 2000,
|
|
426
|
+
})
|
|
427
|
+
return
|
|
428
|
+
}
|
|
429
|
+
this.dialogVisible2 = !1;
|
|
430
|
+
this.$set(this.optionModel, 'wfModifyDataConfig', this.tableData2)
|
|
431
|
+
},
|
|
432
|
+
changeValueType(row) {
|
|
433
|
+
row.toValue = null;
|
|
192
434
|
}
|
|
193
435
|
}
|
|
194
436
|
}
|
|
@@ -42,6 +42,7 @@ const COMMON_PROPERTIES = {
|
|
|
42
42
|
'htmlContent': 'htmlContent-editor',
|
|
43
43
|
'format': 'format-editor',
|
|
44
44
|
'valueFormat': 'valueFormat-editor',
|
|
45
|
+
'defaultTime': 'defaultTime-editor',
|
|
45
46
|
'filterable': 'filterable-editor',
|
|
46
47
|
'allowCreate': 'allowCreate-editor',
|
|
47
48
|
'remote': 'remote-editor',
|
|
@@ -212,6 +213,7 @@ const EVENT_PROPERTIES = {
|
|
|
212
213
|
'onAppendButtonClick': 'onAppendButtonClick-editor',
|
|
213
214
|
'onSearchConfirm': 'onSearchConfirm-editor',
|
|
214
215
|
'onSearchClear': 'onSearchClear-editor',
|
|
216
|
+
'onAfterConfirmFile': 'onAfterConfirmFile-editor',
|
|
215
217
|
|
|
216
218
|
//容器
|
|
217
219
|
'onSubFormRowAdd': 'onSubFormRowAdd-editor',
|