cloud-web-corejs 1.0.54-dev.460 → 1.0.54-dev.462
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/App.vue +1 -3
- package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +71 -50
- package/src/components/xform/form-designer/form-widget/field-widget/print-button-widget.vue +4 -1
- package/src/components/xform/form-designer/form-widget/field-widget/print-detail-button-widget.vue +4 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-button-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-detail-button-editor.vue +2 -2
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +2 -2
- package/src/components/xform/form-render/container-item/data-table-mixin.js +10 -8
- package/src/views/bd/setting/form_script/form_list.vue +99 -37
- package/src/views/bd/setting/form_script/list1.vue +181 -118
- package/src/views/bd/setting/form_template/list.vue +326 -214
- package/src/views/bd/setting/menu_kind/list.vue +172 -87
- package/src/views/bd/setting/table_model/list.vue +190 -128
|
@@ -1,87 +1,172 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div id="containt">
|
|
3
|
-
<el-tabs v-model="activeName" class="tab-box">
|
|
4
|
-
<el-tab-pane :label="$t1('列表')" name="second">
|
|
5
|
-
<div class="grid-height">
|
|
6
|
-
<vxe-grid
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
<template #
|
|
19
|
-
<vxe-button
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div id="containt">
|
|
3
|
+
<el-tabs v-model="activeName" class="tab-box">
|
|
4
|
+
<el-tab-pane :label="$t1('列表')" name="second">
|
|
5
|
+
<div class="grid-height">
|
|
6
|
+
<vxe-grid
|
|
7
|
+
ref="table-m1"
|
|
8
|
+
v-bind="vxeOption"
|
|
9
|
+
@resizable-change="$vxeTableUtil.onColumnWitchChange"
|
|
10
|
+
@custom="$vxeTableUtil.customHandle"
|
|
11
|
+
>
|
|
12
|
+
<template #form>
|
|
13
|
+
<tableForm
|
|
14
|
+
:formData.sync="formData"
|
|
15
|
+
@searchEvent="searchEvent"
|
|
16
|
+
@resetEvent="resetEvent"
|
|
17
|
+
>
|
|
18
|
+
<template #buttonLeft>
|
|
19
|
+
<vxe-button
|
|
20
|
+
status="success"
|
|
21
|
+
class="button-sty"
|
|
22
|
+
icon="el-icon-download"
|
|
23
|
+
@click="jsonImport"
|
|
24
|
+
>
|
|
25
|
+
{{ $t1("导入发布") }}
|
|
26
|
+
</vxe-button>
|
|
27
|
+
<vxe-button
|
|
28
|
+
status="success"
|
|
29
|
+
class="button-sty"
|
|
30
|
+
icon="el-icon-upload2"
|
|
31
|
+
@click="jsonExport"
|
|
32
|
+
v-if="isBdFlag"
|
|
33
|
+
>{{ $t1("导出发布") }}
|
|
34
|
+
</vxe-button>
|
|
35
|
+
</template>
|
|
36
|
+
<template #buttonRight>
|
|
37
|
+
<vxe-button
|
|
38
|
+
icon="el-icon-brush"
|
|
39
|
+
class="button-sty"
|
|
40
|
+
@click="resetEvent"
|
|
41
|
+
type="text"
|
|
42
|
+
status="primary"
|
|
43
|
+
plain
|
|
44
|
+
>{{ $t1("重置") }}
|
|
45
|
+
</vxe-button>
|
|
46
|
+
<vxe-button
|
|
47
|
+
status="warning"
|
|
48
|
+
icon="el-icon-search"
|
|
49
|
+
class="button-sty"
|
|
50
|
+
@click="searchEvent"
|
|
51
|
+
>
|
|
52
|
+
{{ $t1("搜索") }}
|
|
53
|
+
</vxe-button>
|
|
54
|
+
</template>
|
|
55
|
+
</tableForm>
|
|
56
|
+
</template>
|
|
57
|
+
<template #editOrders="{ row }">
|
|
58
|
+
<base-input-number v-model="row.orders"></base-input-number>
|
|
59
|
+
</template>
|
|
60
|
+
<template #taPrefix="{ row }">
|
|
61
|
+
<el-input v-model="row.taPrefix" clearable v-if="row.parent"></el-input>
|
|
62
|
+
<span v-else>{{ row.taPrefix }}</span>
|
|
63
|
+
</template>
|
|
64
|
+
<template #operate="obj">
|
|
65
|
+
<div class="cell-operate">
|
|
66
|
+
<template v-if="$refs['table-m1'].isActiveByRow(obj.row)">
|
|
67
|
+
<template v-if="isBdFlag">
|
|
68
|
+
<a @click="saveRowEvent(obj)" class="a-link">
|
|
69
|
+
<el-tooltip
|
|
70
|
+
:enterable="false"
|
|
71
|
+
effect="dark"
|
|
72
|
+
:content="$t1('保存')"
|
|
73
|
+
placement="top"
|
|
74
|
+
popper-class="tooltip-skin"
|
|
75
|
+
><i class="el-icon-circle-check"></i
|
|
76
|
+
></el-tooltip>
|
|
77
|
+
</a>
|
|
78
|
+
<a
|
|
79
|
+
@click="cancleRowEvent(obj)"
|
|
80
|
+
class="a-link"
|
|
81
|
+
v-if="hasSaveRow(obj.row)"
|
|
82
|
+
>
|
|
83
|
+
<el-tooltip
|
|
84
|
+
:enterable="false"
|
|
85
|
+
effect="dark"
|
|
86
|
+
:content="$t1('取消行编辑')"
|
|
87
|
+
placement="top"
|
|
88
|
+
popper-class="tooltip-skin"
|
|
89
|
+
><i class="el-icon-circle-close"></i
|
|
90
|
+
></el-tooltip>
|
|
91
|
+
</a>
|
|
92
|
+
<a
|
|
93
|
+
@click="removeRowEvent(obj)"
|
|
94
|
+
class="a-link"
|
|
95
|
+
v-if="!hasSaveRow(obj.row)"
|
|
96
|
+
>
|
|
97
|
+
<el-tooltip
|
|
98
|
+
:enterable="false"
|
|
99
|
+
effect="dark"
|
|
100
|
+
:content="$t1('删除')"
|
|
101
|
+
placement="top"
|
|
102
|
+
popper-class="tooltip-skin"
|
|
103
|
+
><i class="el-icon-delete"></i
|
|
104
|
+
></el-tooltip>
|
|
105
|
+
</a>
|
|
106
|
+
</template>
|
|
107
|
+
</template>
|
|
108
|
+
<template v-else>
|
|
109
|
+
<template v-if="isBdFlag">
|
|
110
|
+
<a
|
|
111
|
+
class="a-link"
|
|
112
|
+
@click="insertChildEvent(obj)"
|
|
113
|
+
v-if="obj.row.editAuth"
|
|
114
|
+
>
|
|
115
|
+
<el-tooltip
|
|
116
|
+
:enterable="false"
|
|
117
|
+
effect="dark"
|
|
118
|
+
:content="$t1('新增')"
|
|
119
|
+
placement="top"
|
|
120
|
+
popper-class="tooltip-skin"
|
|
121
|
+
><i class="el-icon-circle-plus-outline"></i
|
|
122
|
+
></el-tooltip>
|
|
123
|
+
</a>
|
|
124
|
+
<a
|
|
125
|
+
@click="editRowEvent(obj)"
|
|
126
|
+
class="a-link"
|
|
127
|
+
v-if="!obj.row.createDate || obj.row.editAuth"
|
|
128
|
+
>
|
|
129
|
+
<el-tooltip
|
|
130
|
+
:enterable="false"
|
|
131
|
+
effect="dark"
|
|
132
|
+
:content="$t1('行编辑')"
|
|
133
|
+
placement="top"
|
|
134
|
+
popper-class="tooltip-skin"
|
|
135
|
+
><i class="el-icon-edit-outline"></i
|
|
136
|
+
></el-tooltip>
|
|
137
|
+
</a>
|
|
138
|
+
</template>
|
|
139
|
+
<a @click="openAuthDialog(obj)" class="a-link" v-if="obj.row.authAuth">
|
|
140
|
+
<el-tooltip
|
|
141
|
+
:enterable="false"
|
|
142
|
+
effect="dark"
|
|
143
|
+
:content="$t1('权限')"
|
|
144
|
+
placement="top"
|
|
145
|
+
popper-class="tooltip-skin"
|
|
146
|
+
><i class="el-icon-setting"></i
|
|
147
|
+
></el-tooltip>
|
|
148
|
+
</a>
|
|
149
|
+
</template>
|
|
150
|
+
</div>
|
|
151
|
+
</template>
|
|
152
|
+
</vxe-grid>
|
|
153
|
+
</div>
|
|
154
|
+
</el-tab-pane>
|
|
155
|
+
</el-tabs>
|
|
156
|
+
<authDialog
|
|
157
|
+
v-if="showAuthDialog"
|
|
158
|
+
:visiable.sync="showAuthDialog"
|
|
159
|
+
:currentMenuKind="currentMenuKind"
|
|
160
|
+
@confirm="confirmAuthDialog"
|
|
161
|
+
multi="false"
|
|
162
|
+
/>
|
|
163
|
+
</div>
|
|
164
|
+
</template>
|
|
165
|
+
<script>
|
|
166
|
+
import mixin from "./mixins/list";
|
|
167
|
+
|
|
168
|
+
export default {
|
|
169
|
+
name: "menu_kind:list",
|
|
170
|
+
mixins: [mixin],
|
|
171
|
+
};
|
|
172
|
+
</script>
|
|
@@ -1,128 +1,190 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div id="containt">
|
|
3
|
-
<x-tabs ref="xTabs" v-model="activeName" class="tab-box">
|
|
4
|
-
<el-tab-pane :label="$t1('常规')" name="first">
|
|
5
|
-
<editView
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
:
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div id="containt">
|
|
3
|
+
<x-tabs ref="xTabs" v-model="activeName" class="tab-box">
|
|
4
|
+
<el-tab-pane :label="$t1('常规')" name="first">
|
|
5
|
+
<editView
|
|
6
|
+
v-if="showEdit"
|
|
7
|
+
visible-key="showEdit"
|
|
8
|
+
:_dataId.sync="dataId"
|
|
9
|
+
:currentFormType="currentFormType"
|
|
10
|
+
:parent-target="_self"
|
|
11
|
+
@reload="$reloadHandle"
|
|
12
|
+
:otherFlag="otherFlag"
|
|
13
|
+
></editView>
|
|
14
|
+
</el-tab-pane>
|
|
15
|
+
<el-tab-pane :label="$t1('列表')" name="second">
|
|
16
|
+
<div class="tree-box fl">
|
|
17
|
+
<div class="tit">
|
|
18
|
+
<b>{{ $t1("表单分类") }}</b>
|
|
19
|
+
</div>
|
|
20
|
+
<div class="tree-btns" style="margin-top: 10px"></div>
|
|
21
|
+
<el-tree
|
|
22
|
+
v-if="showTree"
|
|
23
|
+
:props="defaultProps"
|
|
24
|
+
:load="loadNode"
|
|
25
|
+
node-key="id"
|
|
26
|
+
ref="tree"
|
|
27
|
+
highlight-current
|
|
28
|
+
lazy
|
|
29
|
+
:expand-on-click-node="false"
|
|
30
|
+
@node-click="handleNodeClick"
|
|
31
|
+
class="tree-list"
|
|
32
|
+
icon-class="el-icon-arrow-down"
|
|
33
|
+
></el-tree>
|
|
34
|
+
</div>
|
|
35
|
+
<label id="labBtn">
|
|
36
|
+
<div class="icon">
|
|
37
|
+
<i class="el-icon-more"></i>
|
|
38
|
+
<i class="el-icon-more"></i>
|
|
39
|
+
</div>
|
|
40
|
+
</label>
|
|
41
|
+
<div class="main-right fr" style="padding-left: 6px">
|
|
42
|
+
<div class="grid-height">
|
|
43
|
+
<vxe-grid
|
|
44
|
+
ref="table-m1"
|
|
45
|
+
v-bind="vxeOption"
|
|
46
|
+
@resizable-change="$vxeTableUtil.onColumnWitchChange"
|
|
47
|
+
@custom="$vxeTableUtil.customHandle"
|
|
48
|
+
>
|
|
49
|
+
<template #form>
|
|
50
|
+
<tableForm
|
|
51
|
+
:formData.sync="formData"
|
|
52
|
+
@searchEvent="searchEvent"
|
|
53
|
+
@resetEvent="resetEvent"
|
|
54
|
+
>
|
|
55
|
+
<template #buttonLeft>
|
|
56
|
+
<vxe-button
|
|
57
|
+
status="primary"
|
|
58
|
+
class="button-sty"
|
|
59
|
+
icon="el-icon-plus"
|
|
60
|
+
@click="openEditDialog"
|
|
61
|
+
v-if="isDev && currentFormType.addAuth === 1"
|
|
62
|
+
>{{ $t1("新增") }}
|
|
63
|
+
</vxe-button>
|
|
64
|
+
<vxe-button
|
|
65
|
+
status="success"
|
|
66
|
+
class="button-sty"
|
|
67
|
+
icon="el-icon-download"
|
|
68
|
+
@click="jsonImport"
|
|
69
|
+
>{{ $t1("导入发布") }}
|
|
70
|
+
</vxe-button>
|
|
71
|
+
<vxe-button
|
|
72
|
+
status="success"
|
|
73
|
+
class="button-sty"
|
|
74
|
+
icon="el-icon-upload2"
|
|
75
|
+
@click="jsonExport"
|
|
76
|
+
v-if="isDev && currentFormType.exportAuth === 1"
|
|
77
|
+
>{{ $t1("导出发布") }}
|
|
78
|
+
</vxe-button>
|
|
79
|
+
<projectTagAddButton
|
|
80
|
+
:option="addProjectTagOption"
|
|
81
|
+
v-if="isDev && (currentFormType.editAuth === 1 || otherFlag)"
|
|
82
|
+
></projectTagAddButton>
|
|
83
|
+
<projectTagDeleteButton
|
|
84
|
+
:option="deleteProjectTagOption"
|
|
85
|
+
v-if="isDev && (currentFormType.editAuth === 1 || otherFlag)"
|
|
86
|
+
></projectTagDeleteButton>
|
|
87
|
+
</template>
|
|
88
|
+
<template #buttonRight>
|
|
89
|
+
<vxe-button
|
|
90
|
+
icon="el-icon-brush"
|
|
91
|
+
class="button-sty"
|
|
92
|
+
@click="resetEvent"
|
|
93
|
+
type="text"
|
|
94
|
+
status="primary"
|
|
95
|
+
plain
|
|
96
|
+
>{{ $t1("重置") }}
|
|
97
|
+
</vxe-button>
|
|
98
|
+
<vxe-button
|
|
99
|
+
status="warning"
|
|
100
|
+
icon="el-icon-search"
|
|
101
|
+
class="button-sty"
|
|
102
|
+
@click="searchEvent"
|
|
103
|
+
>
|
|
104
|
+
{{ $t1("搜索") }}
|
|
105
|
+
</vxe-button>
|
|
106
|
+
</template>
|
|
107
|
+
<template #menuKindName>
|
|
108
|
+
<vxe-form-item :title="$t1('表单分类') + ':'" field="tag">
|
|
109
|
+
<template v-slot>
|
|
110
|
+
<el-input v-model="currentMenuKindName" disabled></el-input>
|
|
111
|
+
</template>
|
|
112
|
+
</vxe-form-item>
|
|
113
|
+
</template>
|
|
114
|
+
<template #tag>
|
|
115
|
+
<vxe-form-item :title="$t1('项目标签') + ':'" field="tag">
|
|
116
|
+
<template v-slot>
|
|
117
|
+
<el-input
|
|
118
|
+
class="search-input"
|
|
119
|
+
max="200"
|
|
120
|
+
:value="getTabNames()"
|
|
121
|
+
@clear="checkTags = []"
|
|
122
|
+
v-el-readonly
|
|
123
|
+
clearable
|
|
124
|
+
>
|
|
125
|
+
<i
|
|
126
|
+
slot="suffix"
|
|
127
|
+
class="el-input__icon el-icon-search"
|
|
128
|
+
@click="openProjectTagDialog3"
|
|
129
|
+
></i>
|
|
130
|
+
</el-input>
|
|
131
|
+
</template>
|
|
132
|
+
</vxe-form-item>
|
|
133
|
+
</template>
|
|
134
|
+
</tableForm>
|
|
135
|
+
</template>
|
|
136
|
+
<template #tag="{ row }">
|
|
137
|
+
<projectTagView
|
|
138
|
+
v-model="row.szTaMbTagDTOs"
|
|
139
|
+
:readonly="true"
|
|
140
|
+
></projectTagView>
|
|
141
|
+
</template>
|
|
142
|
+
</vxe-grid>
|
|
143
|
+
</div>
|
|
144
|
+
</div>
|
|
145
|
+
</el-tab-pane>
|
|
146
|
+
<template #editTab="{ tab, index, reloadTabContent }">
|
|
147
|
+
<el-tab-pane
|
|
148
|
+
:key="tab.data.id"
|
|
149
|
+
:label="tab.data.taCh"
|
|
150
|
+
:name="tab.data.id + ''"
|
|
151
|
+
:closable="true"
|
|
152
|
+
>
|
|
153
|
+
<editView
|
|
154
|
+
v-if="tab.showContent"
|
|
155
|
+
:_dataId="tab.dataId"
|
|
156
|
+
:currentFormType="currentFormType"
|
|
157
|
+
:parent-target="_self"
|
|
158
|
+
@reload="reloadTabContent"
|
|
159
|
+
:otherFlag="otherFlag"
|
|
160
|
+
></editView>
|
|
161
|
+
</el-tab-pane>
|
|
162
|
+
</template>
|
|
163
|
+
</x-tabs>
|
|
164
|
+
|
|
165
|
+
<MenuKindDialog
|
|
166
|
+
v-if="showMenuKindDialog"
|
|
167
|
+
:visiable.sync="showMenuKindDialog"
|
|
168
|
+
@confirm="confirmInsertMenuKind"
|
|
169
|
+
:param="{ taType: 0, moveButton: true }"
|
|
170
|
+
:checkRowIds="szTaMbIds"
|
|
171
|
+
:multi="false"
|
|
172
|
+
/>
|
|
173
|
+
<projectTagDialog
|
|
174
|
+
v-if="showProjectTagDialog3"
|
|
175
|
+
:visiable.sync="showProjectTagDialog3"
|
|
176
|
+
@confirm="confirmProjectTagDialog3"
|
|
177
|
+
:rows="checkTags"
|
|
178
|
+
:multi="true"
|
|
179
|
+
></projectTagDialog>
|
|
180
|
+
</div>
|
|
181
|
+
</template>
|
|
182
|
+
|
|
183
|
+
<script>
|
|
184
|
+
import mixin from "./mixins/list";
|
|
185
|
+
|
|
186
|
+
export default {
|
|
187
|
+
name: "table_model:list",
|
|
188
|
+
mixins: [mixin],
|
|
189
|
+
};
|
|
190
|
+
</script>
|