cloud-web-corejs-haier 1.0.23 → 1.0.24

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.
Files changed (44) hide show
  1. package/package.json +1 -1
  2. package/src/components/xform/form-designer/designer.js +1 -1
  3. package/src/components/xform/form-designer/form-widget/components/gantt/index.vue +1 -1
  4. package/src/components/xform/form-designer/form-widget/container-widget/containerMixin.js +3 -3
  5. package/src/components/xform/form-designer/form-widget/container-widget/data-table-mixin.js +1 -1
  6. package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +1 -1
  7. package/src/components/xform/form-designer/form-widget/field-widget/copy_button-widget.vue +8 -2
  8. package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +1 -1
  9. package/src/components/xform/form-designer/form-widget/field-widget/gantt-widget.vue +1 -1
  10. package/src/components/xform/form-designer/form-widget/field-widget/print-button-widget.vue +11 -1
  11. package/src/components/xform/form-designer/form-widget/field-widget/print-detail-button-widget.vue +4 -1
  12. package/src/components/xform/form-designer/form-widget/field-widget/static-text-widget.vue +8 -3
  13. package/src/components/xform/form-designer/form-widget/field-widget/table-export-button-widget.vue +37 -37
  14. package/src/components/xform/form-designer/form-widget/field-widget/text-widget.vue +1 -1
  15. package/src/components/xform/form-designer/form-widget/indexMixin.js +1 -1
  16. package/src/components/xform/form-designer/indexMixin.js +1 -1
  17. package/src/components/xform/form-designer/refMixinDesign.js +1 -28
  18. package/src/components/xform/form-designer/setting-panel/indexMixin.js +1 -1
  19. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +57 -47
  20. package/src/components/xform/form-designer/setting-panel/property-editor/copyButton-editor.vue +1 -1
  21. package/src/components/xform/form-designer/setting-panel/property-editor/field-static-text/textContent-editor.vue +1 -1
  22. package/src/components/xform/form-designer/setting-panel/propertyRegister.js +2 -0
  23. package/src/components/xform/form-designer/toolbar-panel/indexMixin.js +1 -1
  24. package/src/components/xform/form-designer/widget-panel/indexMixin.js +1 -290
  25. package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +60 -34
  26. package/src/components/xform/form-render/container-item/containerItemMixin.js +1 -1
  27. package/src/components/xform/form-render/container-item/data-table-item.vue +6 -1
  28. package/src/components/xform/form-render/container-item/data-table-mixin.js +1 -1
  29. package/src/components/xform/form-render/container-item/table2-item.vue +12 -4
  30. package/src/components/xform/form-render/dynamicDialogRender.js +1 -195
  31. package/src/components/xform/form-render/index.vue +7 -7
  32. package/src/components/xform/form-render/indexMixin.js +1 -1
  33. package/src/components/xform/form-render/refMixin.js +1 -1
  34. package/src/components/xform/lang/zh-CN.js +2 -0
  35. package/src/components/xform/mixins/defaultHandle.js +1 -338
  36. package/src/components/xform/mixins/scriptHttp.js +1 -172
  37. package/src/components/xform/utils/util.js +1 -1460
  38. package/src/components/xform/utils/validators.js +1 -133
  39. package/src/views/user/form/form_template/itemList.vue +221 -221
  40. package/src/views/user/form/form_template/list.vue +512 -512
  41. package/src/views/user/form/form_type/list.vue +142 -142
  42. package/src/views/user/form/report_requestaccess/list.vue +198 -198
  43. package/src/views/user/form/vform/render.vue +8 -0
  44. package/src/views/user/form/view/list.vue +9 -0
@@ -1,198 +1,198 @@
1
- <template>
2
- <div id="containt">
3
- <el-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" :reportCode.sync="reportCode"
6
- :parent-target="_self" @reload="$reloadHandle"></editView>
7
- </el-tab-pane>
8
- <el-tab-pane :label="$t1('列表')" name="second">
9
- <div class="grid-height" style="height: calc(100vh - 122px);">
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">{{ $t1('新增') }}
16
- </vxe-button>
17
- <base-table-export :option="{ title: '报表请求访问导出', targetRef: 'table-m1'}"
18
- :parent-target="_self"/>
19
- <!-- <vxe-button status="primary" class="button-sty" icon="el-icon-download" @click="importExcel">导入</vxe-button> -->
20
- </div>
21
- <div class="fr">
22
- <vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
23
- plain>{{ $t1('重置') }}
24
- </vxe-button>
25
- <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">
26
- {{ $t1('搜索') }}
27
- </vxe-button>
28
- </div>
29
- </div>
30
- <vxe-form ref="form" class="screen-box" title-width="92px" title-align="right" :data="formData"
31
- @submit="searchEvent" @reset="searchEvent">
32
- <vxe-form-item title="请求访问名称:" field="accessName">
33
- <template v-slot>
34
- <el-input v-model="formData.accessName" size="small" clearable/>
35
- </template>
36
- </vxe-form-item>
37
- <vxe-form-item title="请求访问编码:" field="accessCode">
38
- <template v-slot>
39
- <el-input v-model="formData.accessCode" size="small" clearable/>
40
- </template>
41
- </vxe-form-item>
42
- <vxe-form-item title="是否启用:" field="enable">
43
- <template v-slot>
44
- <el-select v-model="formData.enable" clearable>
45
- <el-option :value="true" label="启用"></el-option>
46
- <el-option :value="false" label="禁用"></el-option>
47
- </el-select>
48
- </template>
49
- </vxe-form-item>
50
- </vxe-form>
51
- </template>
52
- </vxe-grid>
53
- </div>
54
- </el-tab-pane>
55
- </el-tabs>
56
- </div>
57
- </template>
58
-
59
- <script>
60
- import editView from './edit.vue';
61
-
62
- export default {
63
- name: 'report_requestaccess:list',
64
- props: ['reportCode'],
65
- components: {editView},
66
- data() {
67
- return {
68
- activeName: 'second',
69
- dataId: 0,
70
- showEdit: false,
71
- vxeOption: {},
72
- formData: {}
73
- };
74
- },
75
- mounted() {
76
- this.initTableList();
77
- },
78
- methods: {
79
- searchEvent() {
80
- this.$refs['table-m1'].commitProxy('reload');
81
- },
82
- resetEvent() {
83
- this.formData = {};
84
- this.$refs['table-m1'].commitProxy('reload');
85
- },
86
- openEditDialog(id) {
87
- this.dataId = !id || typeof id == 'object' ? 0 : id;
88
- this.activeName = 'first';
89
- this.$openEditView('showEdit');
90
- },
91
- initTableList() {
92
- let that = this;
93
- let returnTypeMap = {
94
- 0: '集合List',
95
- 1: '分页集合数据',
96
- 2: '单条数据'
97
- };
98
- let tableOption = {
99
- vue: this,
100
- tableRef: 'table-m1',
101
- tableName: 'user_report_requestaccess_list-m1',
102
- path: SUPPORT_PREFIX + '/report_requestaccess/listPage',
103
- param: () => {
104
- return {
105
- reportCode: this.reportCode,
106
- ...this.formData
107
- };
108
- },
109
- columns: [
110
- {type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
111
- {
112
- title: '请求访问名称',
113
- field: 'accessName',
114
- width: 150,
115
- fixed: 'left'
116
- },
117
- {
118
- title: '请求访问编码',
119
- field: 'accessCode',
120
- width: 150
121
- },
122
- {
123
- title: '模板编码',
124
- field: 'reportCode',
125
- width: 150
126
- },
127
- {
128
- title: '返回类型',
129
- field: 'returnType',
130
- width: 150,
131
- slots: {
132
- default: ({row}) => {
133
- return returnTypeMap[row.returnType] || '';
134
- }
135
- }
136
- },
137
- {
138
- field: 'enabled',
139
- title: this.$t1('是否启用'),
140
- width: 150,
141
- slots: {
142
- default: ({row}) => {
143
- if (row.enabled) {
144
- return [
145
- <div class="txt-status">
146
- <span>启用</span>
147
- </div>
148
- ];
149
- } else {
150
- return [
151
- <div class="txt-status disable">
152
- <span>禁用</span>
153
- </div>
154
- ];
155
- }
156
- }
157
- }
158
- },
159
- {
160
- field: 'createDate',
161
- title: this.$t1('创建时间'),
162
- width: 150
163
- },
164
- {
165
- width: 47,
166
- fixed: 'right',
167
- title: '',
168
- sortable: false,
169
- slots: {
170
- default: ({row}) => {
171
- return [
172
- <div>
173
- <a
174
- href="javascript:void(0);"
175
- class="a-link"
176
- onclick={() => {
177
- this.openEditDialog(row.id);
178
- }}
179
- >
180
- <el-tooltip enterable={false} effect="dark" content={ this.$t1('查看') } placement="top"
181
- popper-class="tooltip-skin">
182
- <i class="el-icon-edit"/>
183
- </el-tooltip>
184
- </a>
185
- </div>
186
- ];
187
- }
188
- }
189
- }
190
- ]
191
- };
192
- this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
193
- this.vxeOption = opts;
194
- });
195
- }
196
- }
197
- };
198
- </script>
1
+ <template>
2
+ <div id="containt">
3
+ <el-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" :reportCode.sync="reportCode"
6
+ :parent-target="_self" @reload="$reloadHandle"></editView>
7
+ </el-tab-pane>
8
+ <el-tab-pane :label="$t1('列表')" name="second">
9
+ <div class="grid-height" style="height: calc(100vh - 122px);">
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">{{ $t1('新增') }}
16
+ </vxe-button>
17
+ <base-table-export :option="{ title: '报表请求访问导出', targetRef: 'table-m1'}"
18
+ :parent-target="_self"/>
19
+ <!-- <vxe-button status="primary" class="button-sty" icon="el-icon-download" @click="importExcel">导入</vxe-button> -->
20
+ </div>
21
+ <div class="fr">
22
+ <vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
23
+ plain>{{ $t1('重置') }}
24
+ </vxe-button>
25
+ <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">
26
+ {{ $t1('搜索') }}
27
+ </vxe-button>
28
+ </div>
29
+ </div>
30
+ <vxe-form ref="form" class="screen-box" title-width="92px" title-align="right" :data="formData"
31
+ @submit="searchEvent" @reset="searchEvent">
32
+ <vxe-form-item title="请求访问名称:" field="accessName">
33
+ <template v-slot>
34
+ <el-input v-model="formData.accessName" size="small" clearable/>
35
+ </template>
36
+ </vxe-form-item>
37
+ <vxe-form-item title="请求访问编码:" field="accessCode">
38
+ <template v-slot>
39
+ <el-input v-model="formData.accessCode" size="small" clearable/>
40
+ </template>
41
+ </vxe-form-item>
42
+ <vxe-form-item title="是否启用:" field="enable">
43
+ <template v-slot>
44
+ <el-select v-model="formData.enable" clearable>
45
+ <el-option :value="true" label="启用"></el-option>
46
+ <el-option :value="false" label="禁用"></el-option>
47
+ </el-select>
48
+ </template>
49
+ </vxe-form-item>
50
+ </vxe-form>
51
+ </template>
52
+ </vxe-grid>
53
+ </div>
54
+ </el-tab-pane>
55
+ </el-tabs>
56
+ </div>
57
+ </template>
58
+
59
+ <script>
60
+ import editView from './edit.vue';
61
+
62
+ export default {
63
+ name: 'report_requestaccess:list',
64
+ props: ['reportCode'],
65
+ components: {editView},
66
+ data() {
67
+ return {
68
+ activeName: 'second',
69
+ dataId: 0,
70
+ showEdit: false,
71
+ vxeOption: {},
72
+ formData: {}
73
+ };
74
+ },
75
+ mounted() {
76
+ this.initTableList();
77
+ },
78
+ methods: {
79
+ searchEvent() {
80
+ this.$refs['table-m1'].commitProxy('reload');
81
+ },
82
+ resetEvent() {
83
+ this.formData = {};
84
+ this.$refs['table-m1'].commitProxy('reload');
85
+ },
86
+ openEditDialog(id) {
87
+ this.dataId = !id || typeof id == 'object' ? 0 : id;
88
+ this.activeName = 'first';
89
+ this.$openEditView('showEdit');
90
+ },
91
+ initTableList() {
92
+ let that = this;
93
+ let returnTypeMap = {
94
+ 0: '集合List',
95
+ 1: '分页集合数据',
96
+ 2: '单条数据'
97
+ };
98
+ let tableOption = {
99
+ vue: this,
100
+ tableRef: 'table-m1',
101
+ tableName: 'user_report_requestaccess_list-m1',
102
+ path: SUPPORT_PREFIX + '/report_requestaccess/listPage',
103
+ param: () => {
104
+ return {
105
+ reportCode: this.reportCode,
106
+ ...this.formData
107
+ };
108
+ },
109
+ columns: [
110
+ {type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
111
+ {
112
+ title: '请求访问名称',
113
+ field: 'accessName',
114
+ width: 150,
115
+ fixed: 'left'
116
+ },
117
+ {
118
+ title: '请求访问编码',
119
+ field: 'accessCode',
120
+ width: 150
121
+ },
122
+ {
123
+ title: '模板编码',
124
+ field: 'reportCode',
125
+ width: 150
126
+ },
127
+ {
128
+ title: '返回类型',
129
+ field: 'returnType',
130
+ width: 150,
131
+ slots: {
132
+ default: ({row}) => {
133
+ return returnTypeMap[row.returnType] || '';
134
+ }
135
+ }
136
+ },
137
+ {
138
+ field: 'enabled',
139
+ title: this.$t1('是否启用'),
140
+ width: 150,
141
+ slots: {
142
+ default: ({row}) => {
143
+ if (row.enabled) {
144
+ return [
145
+ <div class="txt-status">
146
+ <span>启用</span>
147
+ </div>
148
+ ];
149
+ } else {
150
+ return [
151
+ <div class="txt-status disable">
152
+ <span>禁用</span>
153
+ </div>
154
+ ];
155
+ }
156
+ }
157
+ }
158
+ },
159
+ {
160
+ field: 'createDate',
161
+ title: this.$t1('创建时间'),
162
+ width: 150
163
+ },
164
+ {
165
+ width: 47,
166
+ fixed: 'right',
167
+ title: '',
168
+ sortable: false,
169
+ slots: {
170
+ default: ({row}) => {
171
+ return [
172
+ <div>
173
+ <a
174
+ href="javascript:void(0);"
175
+ class="a-link"
176
+ onclick={() => {
177
+ this.openEditDialog(row.id);
178
+ }}
179
+ >
180
+ <el-tooltip enterable={false} effect="dark" content={ this.$t1('查看') } placement="top"
181
+ popper-class="tooltip-skin">
182
+ <i class="el-icon-edit"/>
183
+ </el-tooltip>
184
+ </a>
185
+ </div>
186
+ ];
187
+ }
188
+ }
189
+ }
190
+ ]
191
+ };
192
+ this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
193
+ this.vxeOption = opts;
194
+ });
195
+ }
196
+ }
197
+ };
198
+ </script>
@@ -59,6 +59,14 @@ export default {
59
59
  this.getReportTemplate();
60
60
  },
61
61
  methods: {
62
+ dataTableSearch() {
63
+ let gridRef = this.$refs.vFormRef.getGridWidgetRef()
64
+ if(!gridRef)return
65
+ let options = gridRef.widget.options;
66
+ if(options.searchOnSwitchTab && options.isQueryTable){
67
+ gridRef.searchEvent();
68
+ }
69
+ },
62
70
  initReportCode() {
63
71
  let code = this.$attrs.formCode;
64
72
  if (!code) {
@@ -159,6 +159,7 @@ export default {
159
159
  let num = Number(val.substring("otherTab".length));
160
160
  this.otherTabList[num].showContent = true;
161
161
  }
162
+ this.handleTabChange(val)
162
163
  },
163
164
  },
164
165
  created() {
@@ -171,6 +172,14 @@ export default {
171
172
  };
172
173
  },
173
174
  methods: {
175
+ handleTabChange(tabName){
176
+ if(tabName == "second"){
177
+ this.$refs.list.dataTableSearch();
178
+ }else if(tabName.startsWith("otherTab")){
179
+ let refName = tabName.replace("otherTab","list")
180
+ if(this.$refs[refName]?.length)this.$refs[refName][0].dataTableSearch();
181
+ }
182
+ },
174
183
  initParam() {
175
184
  let path = this.$route.path;
176
185
  let param = path.split("/").reverse();