cloud-web-corejs 1.0.27 → 1.0.29
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/formOplog/mixins.js +1 -1
- package/src/components/jsonImport/exportDialog.vue +1 -1
- package/src/components/jsonImport/index.vue +151 -202
- package/src/components/jsonImport/mixins.js +1 -309
- package/src/components/projectTag/addButton.vue +3 -50
- package/src/components/projectTag/deleteButton.vue +3 -50
- package/src/components/projectTag/mixins/addButton.js +5 -0
- package/src/components/projectTag/mixins/deleteButton.js +5 -0
- package/src/components/projectTag/mixins/view.js +5 -0
- package/src/components/projectTag/view.vue +33 -72
- package/src/components/xform/mixins/scriptHttp.js +1 -1
- package/src/index.js +0 -2
- package/src/layout/components/Sidebar/default.vue +4 -6
- package/src/router/modules/system.js +1 -1
- package/src/store/config/index.js +3 -0
- package/src/store/getters.js +2 -0
- package/src/store/modules/permission.js +2 -2
- package/src/store/modules/user.js +2 -1
- package/src/utils/request.js +28 -29
- package/src/utils/vab.js +27 -27
- package/src/views/bd/setting/bd_attach_setting/dialog.vue +4 -87
- package/src/views/bd/setting/bd_attach_setting/edit.vue +3 -92
- package/src/views/bd/setting/bd_attach_setting/list.vue +4 -214
- package/src/views/bd/setting/bd_attach_setting/mixins/dialog.js +89 -0
- package/src/views/bd/setting/bd_attach_setting/mixins/edit.js +96 -0
- package/src/views/bd/setting/bd_attach_setting/mixins/list.js +219 -0
- package/src/views/bd/setting/form_script/dialog.vue +3 -137
- package/src/views/bd/setting/form_script/edit.vue +3 -127
- package/src/views/bd/setting/form_script/edit1.vue +3 -142
- package/src/views/bd/setting/form_script/form_list.vue +4 -259
- package/src/views/bd/setting/form_script/list.vue +55 -223
- package/src/views/bd/setting/form_script/list1.vue +117 -444
- package/src/views/bd/setting/form_script/list2.vue +3 -4
- package/src/views/bd/setting/form_script/mixins/dialog.js +142 -0
- package/src/views/bd/setting/form_script/mixins/edit.js +134 -0
- package/src/views/bd/setting/form_script/mixins/edit1.js +149 -0
- package/src/views/bd/setting/form_script/mixins/form_list.js +264 -0
- package/src/views/bd/setting/form_script/mixins/list.js +176 -0
- package/src/views/bd/setting/form_script/mixins/list1.js +336 -0
- package/src/views/bd/setting/form_script/mixins/list2.js +14 -0
- package/src/views/bd/setting/form_template/dialog.vue +104 -212
- package/src/views/bd/setting/form_template/edit.vue +183 -329
- package/src/views/bd/setting/form_template/editWfObjConfigDialog.vue +46 -131
- package/src/views/bd/setting/form_template/ftHistoryDialog.vue +88 -175
- package/src/views/bd/setting/form_template/itemEdit.vue +174 -270
- package/src/views/bd/setting/form_template/itemList.vue +56 -300
- package/src/views/bd/setting/form_template/list.vue +211 -766
- package/src/views/bd/setting/form_template/mixins/dialog.js +114 -0
- package/src/views/bd/setting/form_template/mixins/edit.js +155 -0
- package/src/views/bd/setting/form_template/mixins/editWfObjConfigDialog.js +94 -0
- package/src/views/bd/setting/form_template/mixins/ftHistoryDialog.js +95 -0
- package/src/views/bd/setting/form_template/mixins/itemEdit.js +106 -0
- package/src/views/bd/setting/form_template/mixins/itemList.js +254 -0
- package/src/views/bd/setting/form_template/mixins/list.js +562 -0
- package/src/views/bd/setting/form_template/mixins/preformDialog.js +28 -0
- package/src/views/bd/setting/form_template/preformDialog.vue +57 -77
- package/src/views/bd/setting/menu_kind/authDialog.vue +84 -308
- package/src/views/bd/setting/menu_kind/dialog.vue +89 -226
- package/src/views/bd/setting/menu_kind/list.vue +86 -262
- package/src/views/bd/setting/menu_kind/mixins/authDialog.js +232 -0
- package/src/views/bd/setting/menu_kind/mixins/dialog.js +144 -0
- package/src/views/bd/setting/menu_kind/mixins/list.js +187 -0
- package/src/views/bd/setting/table_model/dialog.vue +95 -161
- package/src/views/bd/setting/table_model/edit.vue +5 -767
- package/src/views/bd/setting/table_model/list.vue +130 -491
- package/src/views/bd/setting/table_model/mixins/dialog.js +74 -0
- package/src/views/bd/setting/table_model/mixins/edit.js +778 -0
- package/src/views/bd/setting/table_model/mixins/list.js +367 -0
- package/src/views/bd/setting/table_model/mixins/zdDialog.js +114 -0
- package/src/views/bd/setting/table_model/zdDialog.vue +95 -201
- package/src/views/support/export_template/edit.vue +40 -36
- package/src/views/support/export_template/list.vue +40 -52
- package/src/views/user/access_log/edit.vue +18 -17
- package/src/views/user/access_log/list.vue +27 -26
- package/src/views/user/access_log/statistics_list.vue +19 -17
- package/src/views/user/api_request/edit.vue +14 -11
- package/src/views/user/api_request/list.vue +13 -11
- package/src/views/user/area/dialog.vue +14 -27
- package/src/views/user/area_attribute/configDialog.vue +11 -13
- package/src/views/user/area_attribute/edit.vue +8 -6
- package/src/views/user/area_attribute/list.vue +1 -1
- package/src/views/user/attachment/uploadDialog.vue +1 -1
- package/src/views/user/bill_setting/button/previewButton.vue +2 -2
- package/src/views/user/bill_setting/compareView.vue +1 -1
- package/src/views/user/bill_setting/edit.vue +24 -17
- package/src/views/user/bill_setting/h5_ModifyDialog.vue +1 -1
- package/src/views/user/bill_setting/itemViewDialog.vue +3 -66
- package/src/views/user/bill_setting/list.vue +28 -26
- package/src/views/user/bill_setting/mixins/wf.js +8 -8
- package/src/views/user/bill_setting/previewDialog.vue +1 -1
- package/src/views/user/bill_setting/render.vue +29 -29
- package/src/views/user/bill_setting/userDialog.vue +7 -5
- package/src/views/user/code_rules/edit.vue +21 -18
- package/src/views/user/code_rules/list.vue +27 -19
- package/src/views/user/commMenu/index.vue +3 -3
- package/src/views/user/common_attribute/edit.vue +7 -5
- package/src/views/user/common_attribute/itemEdit.vue +22 -22
- package/src/views/user/common_attribute/list.vue +25 -24
- package/src/views/user/common_script/edit.vue +12 -12
- package/src/views/user/common_script/list.vue +30 -32
- package/src/views/user/company_info/dialog.vue +9 -9
- package/src/views/user/company_info/edit.vue +11 -8
- package/src/views/user/country/dialog.vue +11 -9
- package/src/views/user/country/edit.vue +12 -9
- package/src/views/user/country/list.vue +12 -12
- package/src/views/user/data_type_setting/dialog.vue +10 -10
- package/src/views/user/data_type_setting/editDialog.vue +6 -6
- package/src/views/user/ea/eagroup/eaobj_list.vue +25 -25
- package/src/views/user/ea/eagroup/edit.vue +48 -42
- package/src/views/user/ea/eaobj/edit.vue +6 -5
- package/src/views/user/ea/eaobj/list.vue +9 -8
- package/src/views/user/extend_datasource/dialog.vue +19 -24
- package/src/views/user/extend_datasource/edit.vue +20 -16
- package/src/views/user/extend_datasource/list.vue +23 -24
- package/src/views/user/fieldTranslation/editDialog.vue +28 -28
- package/src/views/user/fieldTranslation/list.vue +59 -57
- package/src/views/user/field_values_invisible/edit.vue +15 -14
- package/src/views/user/field_values_invisible/list.vue +23 -22
- package/src/views/user/file_type/edit.vue +12 -21
- package/src/views/user/file_type/list.vue +21 -36
- package/src/views/user/file_type/userEdit.vue +14 -9
- package/src/views/user/file_view_area/edit.vue +3 -3
- package/src/views/user/file_view_area/itemEdit.vue +11 -9
- package/src/views/user/file_view_area/list.vue +17 -16
- package/src/views/user/file_view_ins/list.vue +29 -28
- package/src/views/user/file_view_ins/propertiesDialog.vue +15 -15
- package/src/views/user/form/form_template/edit.vue +1 -1
- package/src/views/user/form/form_template/itemEdit.vue +1 -1
- package/src/views/user/form/form_template/itemList.vue +2 -2
- package/src/views/user/form/form_template/list.vue +3 -3
- package/src/views/user/form/form_type/edit.vue +1 -1
- package/src/views/user/form/form_type/list.vue +1 -1
- package/src/views/user/form/report_requestaccess/edit.vue +1 -1
- package/src/views/user/form/report_requestaccess/list.vue +1 -1
- package/src/views/user/form/vform/designer.vue +2 -0
- package/src/views/user/form/vform/out_render.vue +1 -0
- package/src/views/user/form/vform/render.vue +1 -0
- package/src/views/user/form/view/list.vue +2 -1
- package/src/views/user/groups/dialog.vue +159 -0
- package/src/views/user/groups/edit.vue +131 -0
- package/src/views/user/groups/list.vue +167 -0
- package/src/views/user/home/index.vue +3 -3
- package/src/views/user/lang_tag/dialog.vue +185 -0
- package/src/views/user/lang_tag/edit.vue +138 -0
- package/src/views/user/lang_tag/list.vue +170 -0
- package/src/views/user/language_setting/edit.vue +11 -9
- package/src/views/user/language_setting/list.vue +20 -18
- package/src/views/user/login/default.vue +129 -0
- package/src/views/user/login/index.vue +3 -117
- package/src/views/user/menu/list.vue +39 -55
- package/src/views/user/mobile_menu/list.vue +18 -54
- package/src/views/user/notify_message/dialog.vue +1 -1
- package/src/views/user/notify_message/infoDialog.vue +1 -1
- package/src/views/user/notify_message/list.vue +24 -23
- package/src/views/user/notify_template/edit.vue +13 -11
- package/src/views/user/notify_template/list.vue +19 -16
- package/src/views/user/oplog/edit.vue +12 -12
- package/src/views/user/oplog/list.vue +20 -18
- package/src/views/user/position/dialog.vue +6 -6
- package/src/views/user/position/edit.vue +11 -8
- package/src/views/user/position/list.vue +11 -11
- package/src/views/user/project_tag/dialog.vue +11 -9
- package/src/views/user/project_tag/edit.vue +8 -6
- package/src/views/user/project_tag/list.vue +15 -12
- package/src/views/user/push_setting/edit.vue +20 -17
- package/src/views/user/push_setting/list.vue +1 -1
- package/src/views/user/role/dialog.vue +11 -11
- package/src/views/user/role/edit.vue +14 -12
- package/src/views/user/role/list.vue +14 -12
- package/src/views/user/sale_org/dialog.vue +12 -12
- package/src/views/user/sale_org/list.vue +43 -48
- package/src/views/user/system_notice/edit.vue +13 -11
- package/src/views/user/system_notice/infoDialog.vue +2 -2
- package/src/views/user/system_notice/list.vue +19 -17
- package/src/views/user/system_parameter/edit.vue +7 -6
- package/src/views/user/system_parameter/list.vue +12 -10
- package/src/views/user/user/edit.vue +1 -1
- package/src/views/user/user/form_edit.vue +50 -7
- package/src/views/user/user/form_list.vue +34 -132
- package/src/views/user/user/info.vue +20 -19
- package/src/views/user/user/infoEdit.vue +18 -18
- package/src/views/user/user/infoIframeDialog.vue +1 -1
- package/src/views/user/user/modifyPasswordDialog.vue +9 -9
- package/src/views/user/wf/iframe/dialog.vue +1 -1
- package/src/views/user/wf/wf_auto_submit_data/edit.vue +11 -10
- package/src/views/user/wf/wf_auto_submit_data/edith.vue +14 -13
- package/src/views/user/wf/wf_auto_submit_data/list.vue +43 -41
- package/src/views/user/wf/wf_diy_attribute/edit.vue +11 -8
- package/src/views/user/wf/wf_manage/list.vue +66 -61
- package/src/views/user/wf/wf_manage/wfContentDialog.vue +1 -1
- package/src/views/user/wf/wf_obj_config/dialog.vue +11 -11
- package/src/views/user/wf/wf_obj_config/edit.vue +12 -9
- package/src/views/user/wf/wf_obj_config/edit_form.vue +11 -9
- package/src/views/user/wf/wf_obj_config/itemEdit.vue +31 -27
- package/src/views/user/wf/wf_obj_config/itemEdit_form.vue +8 -6
- package/src/views/user/wf/wf_obj_config/list.vue +42 -41
- package/src/views/user/wf/wf_obj_config/list_form.vue +14 -12
- package/src/views/user/wf/wf_param/edit.vue +7 -5
- package/src/views/user/wf/wf_work_calendar/configDialog.vue +9 -24
- package/src/views/user/wf/wf_work_calendar/list.vue +6 -3
- package/src/views/user/home/distributor.vue +0 -849
|
@@ -1,300 +1,56 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div id="containt">
|
|
3
|
-
<x-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" :parent-target="_self"
|
|
6
|
-
@reload="$reloadHandle" :formTemplate="formTemplate" :wfObjConfig="wfObjConfig"></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
|
-
<div class="clearfix screen-btns">
|
|
14
|
-
<div class="fl">
|
|
15
|
-
<vxe-button status="primary" class="button-sty" icon="el-icon-plus" @click="openEditDialog"
|
|
16
|
-
:disabled="!wfObjConfig.id"
|
|
17
|
-
</vxe-button>
|
|
18
|
-
<div class="txt-name el-icon-house">
|
|
19
|
-
表单类型名称:
|
|
20
|
-
<span>{{ wfObjConfig.objTypeName }}</span>
|
|
21
|
-
</div>
|
|
22
|
-
</div>
|
|
23
|
-
<div class="fr">
|
|
24
|
-
<vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
|
|
25
|
-
plain>{{$t1('重置')}}
|
|
26
|
-
</vxe-button>
|
|
27
|
-
<vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent"
|
|
28
|
-
</vxe-button>
|
|
29
|
-
</div>
|
|
30
|
-
</div>
|
|
31
|
-
</template>
|
|
32
|
-
<template #row_edit>
|
|
33
|
-
<a href="#" class="a-link"><i class="el-icon-edit"/></a>
|
|
34
|
-
</template>
|
|
35
|
-
</vxe-grid>
|
|
36
|
-
</div>
|
|
37
|
-
</el-tab-pane>
|
|
38
|
-
</x-tabs>
|
|
39
|
-
<wfObjConfigDialog
|
|
40
|
-
v-if="showWfObjConfigDialog"
|
|
41
|
-
:visiable.sync="showWfObjConfigDialog"
|
|
42
|
-
_dataId="wfObjConfigId"
|
|
43
|
-
:formTemplate="formTemplate"
|
|
44
|
-
@confirm="confirmWfObjConfigDialog"
|
|
45
|
-
></wfObjConfigDialog>
|
|
46
|
-
</div>
|
|
47
|
-
</template>
|
|
48
|
-
|
|
49
|
-
<script>
|
|
50
|
-
import
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
data() {
|
|
58
|
-
return {
|
|
59
|
-
activeName: 'second',
|
|
60
|
-
dataId: 0,
|
|
61
|
-
showEdit: false,
|
|
62
|
-
vxeOption: {},
|
|
63
|
-
formData: {},
|
|
64
|
-
wfObjConfig: {},
|
|
65
|
-
wfObjConfigId: null,
|
|
66
|
-
showWfObjConfigDialog: false
|
|
67
|
-
};
|
|
68
|
-
},
|
|
69
|
-
mounted() {
|
|
70
|
-
this.initWfObjConfig();
|
|
71
|
-
this.initTableList();
|
|
72
|
-
},
|
|
73
|
-
methods: {
|
|
74
|
-
searchEvent() {
|
|
75
|
-
this.$refs['table-m1'].commitProxy('reload');
|
|
76
|
-
},
|
|
77
|
-
resetEvent() {
|
|
78
|
-
this.formData = {};
|
|
79
|
-
this.$refs['table-m1'].commitProxy('reload');
|
|
80
|
-
},
|
|
81
|
-
openEditDialog(id) {
|
|
82
|
-
this.dataId = !id || typeof id == 'object' ? 0 : id;
|
|
83
|
-
this.activeName = 'first';
|
|
84
|
-
this.$openEditView('showEdit');
|
|
85
|
-
},
|
|
86
|
-
initTableList() {
|
|
87
|
-
let that = this;
|
|
88
|
-
let startModeMap = {
|
|
89
|
-
1: "节点无候选人,提示异常",
|
|
90
|
-
2: "节点无候选人,提示警告",
|
|
91
|
-
3: "节点无候选人,无提示",
|
|
92
|
-
}
|
|
93
|
-
let tableOption1 = {
|
|
94
|
-
vue: that,
|
|
95
|
-
tableRef: 'table-m1',
|
|
96
|
-
tableName: 'user_wf_obj_config_item_list-m1',
|
|
97
|
-
path: "/" + this.formTemplate.serviceName + '/wf_obj_config_item/list',
|
|
98
|
-
param: () => {
|
|
99
|
-
return {
|
|
100
|
-
objTypeCode: this.formTemplate.objTypeCode
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
|
-
config: {
|
|
104
|
-
maxHeight: '',
|
|
105
|
-
proxyConfig: {
|
|
106
|
-
props: {
|
|
107
|
-
result: "objx",
|
|
108
|
-
total: "objx.length",
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
},
|
|
112
|
-
columns: [
|
|
113
|
-
{type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
|
|
114
|
-
{
|
|
115
|
-
title: '流程模版名称',
|
|
116
|
-
field: 'modelName',
|
|
117
|
-
width: 150,
|
|
118
|
-
fixed: 'left'
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
title: '流程模版KEY',
|
|
122
|
-
field: 'modelKey',
|
|
123
|
-
width: 150
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
title: '单据类型编码',
|
|
127
|
-
field: 'objTypeCode',
|
|
128
|
-
width: 150
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
field: 'enabled',
|
|
132
|
-
title: this.$t1('是否启用'),
|
|
133
|
-
width: 150,
|
|
134
|
-
slots: {
|
|
135
|
-
default: ({row}) => {
|
|
136
|
-
if (row.enabled) {
|
|
137
|
-
return [<div class="txt-status">{ this.$t1('启用') }</div>];
|
|
138
|
-
} else {
|
|
139
|
-
return [<div class="txt-status s-3">{ this.$t1('禁用') }</div>];
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
},
|
|
144
|
-
{
|
|
145
|
-
title: '跳过相邻任务',
|
|
146
|
-
field: 'skipAdjacentTask',
|
|
147
|
-
width: 150,
|
|
148
|
-
slots: {
|
|
149
|
-
default: ({row}) => {
|
|
150
|
-
if (row.skipAdjacentTask) {
|
|
151
|
-
return [<div class="txt-status">是</div>];
|
|
152
|
-
} else {
|
|
153
|
-
return [<div class="txt-status s-3">否</div>];
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
title: '驳回后提交模式',
|
|
160
|
-
field: 'toRejectNode',
|
|
161
|
-
width: 180,
|
|
162
|
-
slots: {
|
|
163
|
-
default: ({row}) => {
|
|
164
|
-
if (row.toRejectNode) {
|
|
165
|
-
return [<div class="txt-status">由提交人确定提交节点</div>];
|
|
166
|
-
} else {
|
|
167
|
-
return [<div class="txt-status s-3">由驳回人指定提交节点</div>];
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
},
|
|
172
|
-
{
|
|
173
|
-
title: '流程启动处理',
|
|
174
|
-
field: 'startMode',
|
|
175
|
-
width: 180,
|
|
176
|
-
slots: {
|
|
177
|
-
default: ({row}) => {
|
|
178
|
-
return startModeMap[row.startMode] || '';
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
},
|
|
182
|
-
{
|
|
183
|
-
title: '跨任务跳过',
|
|
184
|
-
field: 'skipSameUserTask',
|
|
185
|
-
width: 150,
|
|
186
|
-
slots: {
|
|
187
|
-
default: ({row}) => {
|
|
188
|
-
if (row.skipSameUserTask) {
|
|
189
|
-
return [<div class="txt-status">是</div>];
|
|
190
|
-
} else {
|
|
191
|
-
return [<div class="txt-status s-3">否</div>];
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
},
|
|
196
|
-
{
|
|
197
|
-
field: 'createDate',
|
|
198
|
-
title: this.$t1('创建时间'),
|
|
199
|
-
width: 200
|
|
200
|
-
},
|
|
201
|
-
{
|
|
202
|
-
width: 150,
|
|
203
|
-
fixed: 'right',
|
|
204
|
-
sortable: false,
|
|
205
|
-
title: '',
|
|
206
|
-
slots: {
|
|
207
|
-
default: ({row}) => {
|
|
208
|
-
return [
|
|
209
|
-
<a
|
|
210
|
-
href="javascript:void(0);"
|
|
211
|
-
class="a-link"
|
|
212
|
-
onclick={() => {
|
|
213
|
-
this.openEditDialog(row.id);
|
|
214
|
-
}}
|
|
215
|
-
>
|
|
216
|
-
<el-tooltip enterable={false} effect="dark" content={ this.$t1('查看') } placement="top"
|
|
217
|
-
popper-class="tooltip-skin">
|
|
218
|
-
<i class="el-icon-edit"/>
|
|
219
|
-
</el-tooltip>
|
|
220
|
-
</a>,
|
|
221
|
-
<a
|
|
222
|
-
href="javascript:void(0);"
|
|
223
|
-
onClick={() => {
|
|
224
|
-
this.wfEdit(row.modelId);
|
|
225
|
-
}}
|
|
226
|
-
class="a-link"
|
|
227
|
-
>
|
|
228
|
-
<el-tooltip enterable={false} effect="dark" content="流程设计" placement="top"
|
|
229
|
-
popper-class="tooltip-skin">
|
|
230
|
-
<i class="iconfont icon-liuchengguanli-shejiqi_liucheng"/>
|
|
231
|
-
</el-tooltip>
|
|
232
|
-
</a>,
|
|
233
|
-
<a
|
|
234
|
-
href="javascript:void(0);"
|
|
235
|
-
class="a-link"
|
|
236
|
-
onClick={() => {
|
|
237
|
-
this.deleteItem(row);
|
|
238
|
-
}}
|
|
239
|
-
>
|
|
240
|
-
<el-tooltip enterable={false} effect="dark" content="删除" placement="top"
|
|
241
|
-
popper-class="tooltip-skin">
|
|
242
|
-
<i class="el-icon-delete"/>
|
|
243
|
-
</el-tooltip>
|
|
244
|
-
</a>
|
|
245
|
-
];
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
]
|
|
250
|
-
};
|
|
251
|
-
this.$vxeTableUtil.initVxeTable(tableOption1).then(opts => {
|
|
252
|
-
that.vxeOption = opts;
|
|
253
|
-
});
|
|
254
|
-
},
|
|
255
|
-
deleteItem(row) {
|
|
256
|
-
this.$baseConfirm('您确定要删除吗?').then(() => {
|
|
257
|
-
this.$http({
|
|
258
|
-
method: 'post',
|
|
259
|
-
url: "/" + this.formTemplate.serviceName + '/wf_obj_config_item/delete',
|
|
260
|
-
data: {id: row.id},
|
|
261
|
-
success: res => {
|
|
262
|
-
this.$message({
|
|
263
|
-
message: res.content,
|
|
264
|
-
type: 'success',
|
|
265
|
-
duration: 500,
|
|
266
|
-
});
|
|
267
|
-
this.searchEvent()
|
|
268
|
-
}
|
|
269
|
-
});
|
|
270
|
-
});
|
|
271
|
-
},
|
|
272
|
-
wfEdit(modelId) {
|
|
273
|
-
this.$emit('openWfDesignDialog', modelId);
|
|
274
|
-
},
|
|
275
|
-
initWfObjConfig() {
|
|
276
|
-
this.$http({
|
|
277
|
-
method: 'post',
|
|
278
|
-
url: "/" + this.formTemplate.serviceName + '/wf_obj_config/getByObjTypeCode',
|
|
279
|
-
data: {stringOne: this.formTemplate.objTypeCode},
|
|
280
|
-
success: res => {
|
|
281
|
-
let wfObjConfig = res.objx;
|
|
282
|
-
if (wfObjConfig) {
|
|
283
|
-
this.wfObjConfig = wfObjConfig;
|
|
284
|
-
} else {
|
|
285
|
-
this.openWfObjConfigDialog()
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
});
|
|
289
|
-
},
|
|
290
|
-
openWfObjConfigDialog(dataId) {
|
|
291
|
-
this.wfObjConfigId = dataId || null
|
|
292
|
-
this.showWfObjConfigDialog = true;
|
|
293
|
-
},
|
|
294
|
-
confirmWfObjConfigDialog(wfObjConfig) {
|
|
295
|
-
this.showWfObjConfigDialog = false;
|
|
296
|
-
this.wfObjConfig = wfObjConfig || {};
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
};
|
|
300
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<div id="containt">
|
|
3
|
+
<x-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" :parent-target="_self"
|
|
6
|
+
@reload="$reloadHandle" :formTemplate="formTemplate" :wfObjConfig="wfObjConfig"></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
|
+
<div class="clearfix screen-btns">
|
|
14
|
+
<div class="fl">
|
|
15
|
+
<vxe-button status="primary" class="button-sty" icon="el-icon-plus" @click="openEditDialog"
|
|
16
|
+
:disabled="!wfObjConfig.id">{{ $t1('新增') }}
|
|
17
|
+
</vxe-button>
|
|
18
|
+
<div class="txt-name el-icon-house">
|
|
19
|
+
表单类型名称:
|
|
20
|
+
<span>{{ wfObjConfig.objTypeName }}</span>
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
23
|
+
<div class="fr">
|
|
24
|
+
<vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
|
|
25
|
+
plain>{{$t1('重置')}}
|
|
26
|
+
</vxe-button>
|
|
27
|
+
<vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">{{ $t1('搜索') }}
|
|
28
|
+
</vxe-button>
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
31
|
+
</template>
|
|
32
|
+
<template #row_edit>
|
|
33
|
+
<a href="#" class="a-link"><i class="el-icon-edit"/></a>
|
|
34
|
+
</template>
|
|
35
|
+
</vxe-grid>
|
|
36
|
+
</div>
|
|
37
|
+
</el-tab-pane>
|
|
38
|
+
</x-tabs>
|
|
39
|
+
<wfObjConfigDialog
|
|
40
|
+
v-if="showWfObjConfigDialog"
|
|
41
|
+
:visiable.sync="showWfObjConfigDialog"
|
|
42
|
+
_dataId="wfObjConfigId"
|
|
43
|
+
:formTemplate="formTemplate"
|
|
44
|
+
@confirm="confirmWfObjConfigDialog"
|
|
45
|
+
></wfObjConfigDialog>
|
|
46
|
+
</div>
|
|
47
|
+
</template>
|
|
48
|
+
|
|
49
|
+
<script>
|
|
50
|
+
import mixin from "./mixins/itemList";
|
|
51
|
+
|
|
52
|
+
export default {
|
|
53
|
+
name: 'itemList',
|
|
54
|
+
mixins: [mixin]
|
|
55
|
+
}
|
|
56
|
+
</script>
|