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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cloud-web-corejs",
3
3
  "private": false,
4
- "version": "1.0.54-dev.460",
4
+ "version": "1.0.54-dev.461",
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
7
7
  "lint": "eslint --ext .js,.vue src",
package/src/App.vue CHANGED
@@ -48,9 +48,7 @@ export default {
48
48
  });
49
49
  }
50
50
 
51
- if (settting.title) {
52
- document.title = settting.title;
53
- }
51
+ document.title = settting.title;
54
52
  },
55
53
  mounted() {},
56
54
  methods: {
@@ -649,14 +649,16 @@ modules = {
649
649
  col.width = t.width;
650
650
  if (isChild) {
651
651
  if (col.title && col.field) {
652
- col.filters = [
653
- {
654
- data: {},
655
- },
656
- ];
657
- col.filterRender = {
658
- name: "FilterContent",
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 v-if="showEdit" visible-key="showEdit" :_dataId.sync="dataId"
6
- :formCode="formTemplate.formCode" :formTemplate="formTemplate" :parent-target="_self"
7
- @reload="$reloadHandle"></editView>
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 ref="table-m1" v-bind="vxeOption" @resizable-change="$vxeTableUtil.onColumnWitchChange"
12
- @custom="$vxeTableUtil.customHandle">
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 :formData.sync="formData" @searchEvent="searchEvent" @resetEvent="resetEvent">
24
+ <tableForm
25
+ :formData.sync="formData"
26
+ @searchEvent="searchEvent"
27
+ @resetEvent="resetEvent"
28
+ >
15
29
  <template #buttonLeft>
16
- <vxe-button status="primary" class="button-sty" icon="el-icon-plus" @click="openEditDialog"
17
- v-if="isDev && menuKindAuth.editAuth===1">{{ $t1('新增') }}
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 :option="addProjectTagOption" v-if="isDev && menuKindAuth.editAuth===1"></projectTagAddButton>
20
- <projectTagDeleteButton :option="deleteProjectTagOption" v-if="isDev && menuKindAuth.editAuth===1"></projectTagDeleteButton>
21
- <el-button icon="el-icon-setting" class="button-sty" @click="showScriptDialog=true" type="success"
22
- v-if="isDev && menuKindAuth.editAuth===1"
23
- >{{ $t1('选择需要定制的后台脚本模板') }}
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 icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
28
- plain>{{$t1('重置')}}
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 status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">{{ $t1('搜索') }}
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 slot="suffix" class="el-input__icon el-icon-search" @click="openProjectTagDialog3"></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 v-model="row.formScriptTagDTOs" :readonly="true"></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 :key="tab.data.id" :label.sync="tab.data.scriptName" :name="tab.data.id+''"
61
- :closable="true">
62
- <editView v-if="tab.showContent" :_dataId="tab.dataId" :formCode="formTemplate.formCode"
63
- :formTemplate="formTemplate" :parent-target="_self"
64
- @reload="reloadTabContent"></editView>
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 v-if="showScriptDialog" :visiable.sync="showScriptDialog" @confirm="confirmScriptDialog"
69
- :param="{ scriptType:99 }" :multi="true" :title="$t1('初始化模板脚本')"></scriptDialog>
70
- <projectTagDialog v-if="showProjectTagDialog3"
71
- :visiable.sync="showProjectTagDialog3"
72
- @confirm="confirmProjectTagDialog3"
73
- :rows="checkTags"
74
- :multi="true"></projectTagDialog>
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: 'form_script:form_list',
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 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>