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.
@@ -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 v-if="showEdit" visible-key="showEdit" :_dataId.sync="dataId" :currentFormType="currentFormType"
6
- :parent-target="_self"
7
- @reload="$reloadHandle" :otherFlag="otherFlag"></editView>
8
- </el-tab-pane>
9
- <el-tab-pane :label="$t1('列表')" name="second">
10
- <div class="tree-box fl">
11
- <div class="tit"><b>{{ $t1('表单分类') }}</b></div>
12
- <div class="tree-btns" style="margin-top: 10px;">
13
- </div>
14
- <el-tree
15
- v-if="showTree"
16
- :props="defaultProps"
17
- :load="loadNode"
18
- node-key="id"
19
- ref="tree"
20
- highlight-current
21
- lazy
22
- :expand-on-click-node="false"
23
- @node-click="handleNodeClick"
24
- class="tree-list"
25
- icon-class="el-icon-arrow-down"
26
- ></el-tree>
27
- </div>
28
- <label id="labBtn">
29
- <div class="icon">
30
- <i class="el-icon-more"></i>
31
- <i class="el-icon-more"></i>
32
- </div>
33
- </label>
34
- <div class="main-right fr" style="padding-left:6px;">
35
- <div class="grid-height">
36
- <vxe-grid ref="table-m1" v-bind="vxeOption" @resizable-change="$vxeTableUtil.onColumnWitchChange"
37
- @custom="$vxeTableUtil.customHandle">
38
- <template #form>
39
- <tableForm :formData.sync="formData" @searchEvent="searchEvent" @resetEvent="resetEvent">
40
- <template #buttonLeft>
41
- <vxe-button status="primary" class="button-sty" icon="el-icon-plus" @click="openEditDialog"
42
- v-if="isDev && currentFormType.editAuth===1">{{ $t1('新增') }}
43
- </vxe-button>
44
- <vxe-button status="success" class="button-sty" icon="el-icon-download" @click="jsonImport">{{ $t1('导入发布') }}
45
- </vxe-button>
46
- <vxe-button status="success" class="button-sty" icon="el-icon-upload2" @click="jsonExport"
47
- v-if="isDev && currentFormType.exportAuth===1">{{ $t1('导出发布') }}
48
- </vxe-button>
49
- <projectTagAddButton :option="addProjectTagOption" v-if="isDev && (currentFormType.editAuth===1 || otherFlag)"></projectTagAddButton>
50
- <projectTagDeleteButton :option="deleteProjectTagOption" v-if="isDev && (currentFormType.editAuth===1 || otherFlag)"></projectTagDeleteButton>
51
- </template>
52
- <template #buttonRight>
53
- <vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
54
- plain>{{ $t1('重置') }}
55
- </vxe-button>
56
- <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">
57
- {{ $t1('搜索') }}
58
- </vxe-button>
59
- </template>
60
- <template #menuKindName>
61
- <vxe-form-item :title="$t1('表单分类') + ':'" field="tag">
62
- <template v-slot>
63
- <el-input v-model="currentMenuKindName" disabled></el-input>
64
- </template>
65
- </vxe-form-item>
66
- </template>
67
- <template #tag>
68
- <vxe-form-item :title="$t1('项目标签') + ':'" field="tag">
69
- <template v-slot>
70
- <el-input
71
- class="search-input"
72
- max="200"
73
- :value="getTabNames()"
74
- @clear="
75
- checkTags = [];
76
- "
77
- v-el-readonly
78
- clearable
79
- >
80
- <i slot="suffix" class="el-input__icon el-icon-search" @click="openProjectTagDialog3"></i>
81
- </el-input>
82
- </template>
83
- </vxe-form-item>
84
- </template>
85
- </tableForm>
86
- </template>
87
- <template #tag="{row}">
88
- <projectTagView v-model="row.formScriptTagDTOs" :readonly="true"></projectTagView>
89
- </template>
90
- </vxe-grid>
91
- </div>
92
- </div>
93
- </el-tab-pane>
94
- <template #editTab="{tab,index,reloadTabContent}">
95
- <el-tab-pane :key="tab.data.id" :label="tab.data.scriptName+'('+tab.data.formCode+')'" :name="tab.data.id+''"
96
- :closable="true">
97
- <editView v-if="tab.showContent" :_dataId="tab.dataId" :currentFormType="currentFormType"
98
- :parent-target="_self"
99
- @reload="reloadTabContent" :otherFlag="otherFlag"></editView>
100
- </el-tab-pane>
101
- </template>
102
- </x-tabs>
103
- <projectTagDialog v-if="showProjectTagDialog3"
104
- :visiable.sync="showProjectTagDialog3"
105
- @confirm="confirmProjectTagDialog3"
106
- :rows="checkTags"
107
- :multi="true"></projectTagDialog>
108
- </div>
109
- </template>
110
-
111
- <script>
112
- import mixin from "./mixins/list1";
113
-
114
- export default {
115
- name: 'form_script:list1',
116
- mixins: [mixin]
117
- };
118
- </script>
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>