cloud-web-corejs 1.0.54-dev.460 → 1.0.54-dev.461
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-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
package/package.json
CHANGED
package/src/App.vue
CHANGED
|
@@ -649,14 +649,16 @@ modules = {
|
|
|
649
649
|
col.width = t.width;
|
|
650
650
|
if (isChild) {
|
|
651
651
|
if (col.title && col.field) {
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
652
|
+
if(filterable){
|
|
653
|
+
col.filters = [
|
|
654
|
+
{
|
|
655
|
+
data: {},
|
|
656
|
+
},
|
|
657
|
+
];
|
|
658
|
+
col.filterRender = {
|
|
659
|
+
name: "FilterContent",
|
|
660
|
+
};
|
|
661
|
+
}
|
|
660
662
|
}
|
|
661
663
|
}
|
|
662
664
|
}
|
|
@@ -2,32 +2,72 @@
|
|
|
2
2
|
<div id="containt">
|
|
3
3
|
<x-tabs ref="xTabs" v-model="activeName" class="tab-box">
|
|
4
4
|
<el-tab-pane :label="$t1('常规')" name="first">
|
|
5
|
-
<editView
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
<editView
|
|
6
|
+
v-if="showEdit"
|
|
7
|
+
visible-key="showEdit"
|
|
8
|
+
:_dataId.sync="dataId"
|
|
9
|
+
:formCode="formTemplate.formCode"
|
|
10
|
+
:formTemplate="formTemplate"
|
|
11
|
+
:parent-target="_self"
|
|
12
|
+
@reload="$reloadHandle"
|
|
13
|
+
></editView>
|
|
8
14
|
</el-tab-pane>
|
|
9
15
|
<el-tab-pane :label="$t1('列表')" name="second">
|
|
10
16
|
<div class="grid-height">
|
|
11
|
-
<vxe-grid
|
|
12
|
-
|
|
17
|
+
<vxe-grid
|
|
18
|
+
ref="table-m1"
|
|
19
|
+
v-bind="vxeOption"
|
|
20
|
+
@resizable-change="$vxeTableUtil.onColumnWitchChange"
|
|
21
|
+
@custom="$vxeTableUtil.customHandle"
|
|
22
|
+
>
|
|
13
23
|
<template #form>
|
|
14
|
-
<tableForm
|
|
24
|
+
<tableForm
|
|
25
|
+
:formData.sync="formData"
|
|
26
|
+
@searchEvent="searchEvent"
|
|
27
|
+
@resetEvent="resetEvent"
|
|
28
|
+
>
|
|
15
29
|
<template #buttonLeft>
|
|
16
|
-
<vxe-button
|
|
17
|
-
|
|
30
|
+
<vxe-button
|
|
31
|
+
status="primary"
|
|
32
|
+
class="button-sty"
|
|
33
|
+
icon="el-icon-plus"
|
|
34
|
+
@click="openEditDialog"
|
|
35
|
+
v-if="isDev && menuKindAuth.addAuth === 1"
|
|
36
|
+
>{{ $t1("新增") }}
|
|
18
37
|
</vxe-button>
|
|
19
|
-
<projectTagAddButton
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
38
|
+
<projectTagAddButton
|
|
39
|
+
:option="addProjectTagOption"
|
|
40
|
+
v-if="isDev && menuKindAuth.editAuth === 1"
|
|
41
|
+
></projectTagAddButton>
|
|
42
|
+
<projectTagDeleteButton
|
|
43
|
+
:option="deleteProjectTagOption"
|
|
44
|
+
v-if="isDev && menuKindAuth.editAuth === 1"
|
|
45
|
+
></projectTagDeleteButton>
|
|
46
|
+
<el-button
|
|
47
|
+
icon="el-icon-setting"
|
|
48
|
+
class="button-sty"
|
|
49
|
+
@click="showScriptDialog = true"
|
|
50
|
+
type="success"
|
|
51
|
+
v-if="isDev && menuKindAuth.editAuth === 1"
|
|
52
|
+
>{{ $t1("选择需要定制的后台脚本模板") }}
|
|
24
53
|
</el-button>
|
|
25
54
|
</template>
|
|
26
55
|
<template #buttonRight>
|
|
27
|
-
<vxe-button
|
|
28
|
-
|
|
56
|
+
<vxe-button
|
|
57
|
+
icon="el-icon-brush"
|
|
58
|
+
class="button-sty"
|
|
59
|
+
@click="resetEvent"
|
|
60
|
+
type="text"
|
|
61
|
+
status="primary"
|
|
62
|
+
plain
|
|
63
|
+
>{{ $t1("重置") }}
|
|
29
64
|
</vxe-button>
|
|
30
|
-
<vxe-button
|
|
65
|
+
<vxe-button
|
|
66
|
+
status="warning"
|
|
67
|
+
icon="el-icon-search"
|
|
68
|
+
class="button-sty"
|
|
69
|
+
@click="searchEvent"
|
|
70
|
+
>{{ $t1("搜索") }}
|
|
31
71
|
</vxe-button>
|
|
32
72
|
</template>
|
|
33
73
|
<template #tag>
|
|
@@ -37,41 +77,63 @@
|
|
|
37
77
|
class="search-input"
|
|
38
78
|
max="200"
|
|
39
79
|
:value="getTabNames()"
|
|
40
|
-
@clear="
|
|
41
|
-
checkTags = [];
|
|
42
|
-
"
|
|
80
|
+
@clear="checkTags = []"
|
|
43
81
|
v-el-readonly
|
|
44
82
|
clearable
|
|
45
83
|
>
|
|
46
|
-
<i
|
|
84
|
+
<i
|
|
85
|
+
slot="suffix"
|
|
86
|
+
class="el-input__icon el-icon-search"
|
|
87
|
+
@click="openProjectTagDialog3"
|
|
88
|
+
></i>
|
|
47
89
|
</el-input>
|
|
48
90
|
</template>
|
|
49
91
|
</vxe-form-item>
|
|
50
92
|
</template>
|
|
51
93
|
</tableForm>
|
|
52
94
|
</template>
|
|
53
|
-
<template #tag="{row}">
|
|
54
|
-
<projectTagView
|
|
95
|
+
<template #tag="{ row }">
|
|
96
|
+
<projectTagView
|
|
97
|
+
v-model="row.formScriptTagDTOs"
|
|
98
|
+
:readonly="true"
|
|
99
|
+
></projectTagView>
|
|
55
100
|
</template>
|
|
56
101
|
</vxe-grid>
|
|
57
102
|
</div>
|
|
58
103
|
</el-tab-pane>
|
|
59
|
-
<template #editTab="{tab,index,reloadTabContent}">
|
|
60
|
-
<el-tab-pane
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
104
|
+
<template #editTab="{ tab, index, reloadTabContent }">
|
|
105
|
+
<el-tab-pane
|
|
106
|
+
:key="tab.data.id"
|
|
107
|
+
:label.sync="tab.data.scriptName"
|
|
108
|
+
:name="tab.data.id + ''"
|
|
109
|
+
:closable="true"
|
|
110
|
+
>
|
|
111
|
+
<editView
|
|
112
|
+
v-if="tab.showContent"
|
|
113
|
+
:_dataId="tab.dataId"
|
|
114
|
+
:formCode="formTemplate.formCode"
|
|
115
|
+
:formTemplate="formTemplate"
|
|
116
|
+
:parent-target="_self"
|
|
117
|
+
@reload="reloadTabContent"
|
|
118
|
+
></editView>
|
|
65
119
|
</el-tab-pane>
|
|
66
120
|
</template>
|
|
67
121
|
</x-tabs>
|
|
68
|
-
<scriptDialog
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
122
|
+
<scriptDialog
|
|
123
|
+
v-if="showScriptDialog"
|
|
124
|
+
:visiable.sync="showScriptDialog"
|
|
125
|
+
@confirm="confirmScriptDialog"
|
|
126
|
+
:param="{ scriptType: 99 }"
|
|
127
|
+
:multi="true"
|
|
128
|
+
:title="$t1('初始化模板脚本')"
|
|
129
|
+
></scriptDialog>
|
|
130
|
+
<projectTagDialog
|
|
131
|
+
v-if="showProjectTagDialog3"
|
|
132
|
+
:visiable.sync="showProjectTagDialog3"
|
|
133
|
+
@confirm="confirmProjectTagDialog3"
|
|
134
|
+
:rows="checkTags"
|
|
135
|
+
:multi="true"
|
|
136
|
+
></projectTagDialog>
|
|
75
137
|
</div>
|
|
76
138
|
</template>
|
|
77
139
|
|
|
@@ -79,7 +141,7 @@
|
|
|
79
141
|
import mixin from "./mixins/form_list";
|
|
80
142
|
|
|
81
143
|
export default {
|
|
82
|
-
name:
|
|
83
|
-
mixins: [mixin]
|
|
144
|
+
name: "form_script:form_list",
|
|
145
|
+
mixins: [mixin],
|
|
84
146
|
};
|
|
85
147
|
</script>
|
|
@@ -1,118 +1,181 @@
|
|
|
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
|
-
<vxe-button
|
|
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
|
-
|
|
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.formScriptTagDTOs"
|
|
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.scriptName + '(' + tab.data.formCode + ')'"
|
|
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
|
+
<projectTagDialog
|
|
165
|
+
v-if="showProjectTagDialog3"
|
|
166
|
+
:visiable.sync="showProjectTagDialog3"
|
|
167
|
+
@confirm="confirmProjectTagDialog3"
|
|
168
|
+
:rows="checkTags"
|
|
169
|
+
:multi="true"
|
|
170
|
+
></projectTagDialog>
|
|
171
|
+
</div>
|
|
172
|
+
</template>
|
|
173
|
+
|
|
174
|
+
<script>
|
|
175
|
+
import mixin from "./mixins/list1";
|
|
176
|
+
|
|
177
|
+
export default {
|
|
178
|
+
name: "form_script:list1",
|
|
179
|
+
mixins: [mixin],
|
|
180
|
+
};
|
|
181
|
+
</script>
|