cloud-web-corejs 1.0.54-dev.535 → 1.0.54-dev.537

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 (23) hide show
  1. package/package.json +1 -1
  2. package/src/components/excelExport/exportFieldDialog.vue +0 -1
  3. package/src/components/excelExport/mixins.js +1 -963
  4. package/src/components/hiprint/css/bootstrap.min.css +6 -0
  5. package/src/components/hiprint/fonts/glyphicons-halflings-regular.eot +0 -0
  6. package/src/components/hiprint/fonts/glyphicons-halflings-regular.svg +288 -0
  7. package/src/components/hiprint/fonts/glyphicons-halflings-regular.ttf +0 -0
  8. package/src/components/hiprint/fonts/glyphicons-halflings-regular.woff +0 -0
  9. package/src/components/hiprint/fonts/glyphicons-halflings-regular.woff2 +0 -0
  10. package/src/components/hiprint/view/design/index.vue +1 -0
  11. package/src/components/table/index.js +0 -1
  12. package/src/components/xform/form-designer/form-widget/field-widget/copy_button-widget.vue +8 -2
  13. package/src/components/xform/form-designer/form-widget/field-widget/static-text-widget.vue +8 -3
  14. package/src/components/xform/form-designer/setting-panel/property-editor/copyButton-editor.vue +1 -1
  15. package/src/components/xform/form-designer/setting-panel/property-editor/field-static-text/preWrap-editor.vue +23 -0
  16. package/src/components/xform/form-designer/setting-panel/property-editor/field-static-text/textContent-editor.vue +1 -1
  17. package/src/components/xform/form-designer/setting-panel/propertyRegister.js +1 -0
  18. package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +2 -0
  19. package/src/components/xform/form-render/container-item/data-table-mixin.js +83 -82
  20. package/src/components/xform/form-render/indexMixin.js +383 -208
  21. package/src/components/xform/lang/zh-CN.js +1 -0
  22. package/src/router/modules/customer.js +9 -0
  23. package/src/views/user/position/list.vue +124 -68
@@ -349,6 +349,7 @@ export default {
349
349
  disabled: "禁用",
350
350
  hidden: "隐藏",
351
351
  textContent: "静态文字",
352
+ preWrap: '自动换行',
352
353
  htmlContent: "HTML",
353
354
  clearable: "可清除",
354
355
  editable: "可输入",
@@ -80,6 +80,15 @@ export const constantRoutes = [
80
80
  },
81
81
  },
82
82
 
83
+ // {
84
+ // path: "/test_table",
85
+ // component: () =>
86
+ // import("@/views/test/handsontable/index1.vue"),
87
+ // name: "test_table",
88
+ // meta: {
89
+ // title: "测试表格",
90
+ // },
91
+ // },
83
92
  ],
84
93
  },
85
94
 
@@ -2,35 +2,70 @@
2
2
  <div id="containt">
3
3
  <el-tabs 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" :parent-target="_self"
6
- @reload="$reloadHandle"></editView>
5
+ <editView
6
+ v-if="showEdit"
7
+ visible-key="showEdit"
8
+ :_dataId.sync="dataId"
9
+ :parent-target="_self"
10
+ @reload="$reloadHandle"
11
+ ></editView>
7
12
  </el-tab-pane>
8
13
  <el-tab-pane :label="$t1('列表')" name="second">
9
14
  <div class="grid-height">
10
- <vxe-grid ref="table-m1" v-bind="vxeOption" @resizable-change="$vxeTableUtil.onColumnWitchChange"
11
- @custom="$vxeTableUtil.customHandle">
15
+ <vxe-grid
16
+ ref="table-m1"
17
+ v-bind="vxeOption"
18
+ @resizable-change="$vxeTableUtil.onColumnWitchChange"
19
+ @custom="$vxeTableUtil.customHandle"
20
+ >
12
21
  <template #form>
13
22
  <div class="clearfix screen-btns">
14
23
  <div class="fl">
15
- <vxe-button status="primary" class="button-sty" icon="el-icon-plus" @click="openEditDialog">
16
- {{ $t1('新增') }}
24
+ <vxe-button
25
+ status="primary"
26
+ class="button-sty"
27
+ icon="el-icon-plus"
28
+ @click="openEditDialog"
29
+ >
30
+ {{ $t1("新增") }}
17
31
  </vxe-button>
18
- <base-table-export :option="{ title: $t1('岗位导出'), targetRef: 'table-m1'}" :parent-target="_self"/>
32
+ <base-table-export
33
+ :option="{ title: $t1('岗位导出'), targetRef: 'table-m1' }"
34
+ :parent-target="_self"
35
+ />
19
36
  </div>
20
37
  <div class="fr">
21
- <vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
22
- plain>{{ $t1('重置') }}
38
+ <vxe-button
39
+ icon="el-icon-brush"
40
+ class="button-sty"
41
+ @click="resetEvent"
42
+ type="text"
43
+ status="primary"
44
+ plain
45
+ >{{ $t1("重置") }}
23
46
  </vxe-button>
24
- <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">
25
- {{ $t1('搜索') }}
47
+ <vxe-button
48
+ status="warning"
49
+ icon="el-icon-search"
50
+ class="button-sty"
51
+ @click="searchEvent"
52
+ >
53
+ {{ $t1("搜索") }}
26
54
  </vxe-button>
27
55
  </div>
28
56
  </div>
29
- <vxe-form ref="form" class="screen-box" title-width="92px" title-align="right" :data="formData"
30
- @submit="searchEvent" @reset="searchEvent">
31
- <vxe-form-item :title="$t1('岗位名称')+':'" field="name">
57
+ <vxe-form
58
+ ref="form"
59
+ class="screen-box"
60
+ title-width="92px"
61
+ title-align="right"
62
+ :data="formData"
63
+ @submit="searchEvent"
64
+ @reset="searchEvent"
65
+ >
66
+ <vxe-form-item :title="$t1('岗位名称') + ':'" field="name">
32
67
  <template v-slot>
33
- <el-input v-model="formData.name" size="small" clearable/>
68
+ <el-input v-model="formData.name" size="small" clearable />
34
69
  </template>
35
70
  </vxe-form-item>
36
71
  <!-- <vxe-form-item :title="$t1('岗位编码')+':'" field="code">
@@ -48,18 +83,18 @@
48
83
  </template>
49
84
 
50
85
  <script>
51
- import editView from './edit.vue';
86
+ import editView from "./edit.vue";
52
87
 
53
88
  export default {
54
- name: 'position:list',
55
- components: {editView},
89
+ name: "position:list",
90
+ components: { editView },
56
91
  data() {
57
92
  return {
58
- activeName: 'second',
93
+ activeName: "second",
59
94
  dataId: 0,
60
95
  showEdit: false,
61
96
  vxeOption: {},
62
- formData: {}
97
+ formData: {},
63
98
  };
64
99
  },
65
100
  mounted() {
@@ -67,85 +102,85 @@ export default {
67
102
  },
68
103
  methods: {
69
104
  searchEvent() {
70
- this.$refs['table-m1'].commitProxy('reload');
105
+ this.$refs["table-m1"].commitProxy("reload");
71
106
  },
72
107
  resetEvent() {
73
108
  this.formData = {};
74
- this.$refs['table-m1'].commitProxy('reload');
109
+ this.$refs["table-m1"].commitProxy("reload");
75
110
  },
76
111
  openEditDialog(id) {
77
- this.dataId = !id || typeof id == 'object' ? 0 : id;
78
- this.activeName = 'first';
79
- this.$openEditView('showEdit');
112
+ this.dataId = !id || typeof id == "object" ? 0 : id;
113
+ this.activeName = "first";
114
+ this.$openEditView("showEdit");
80
115
  },
81
116
  initTableList() {
82
117
  let that = this;
83
118
  let tableOption = {
84
119
  vue: this,
85
- tableRef: 'table-m1',
86
- tableName: 'basic_position_list-m2',
87
- path: USER_PREFIX + '/position/listCurrentPage',
120
+ tableRef: "table-m1",
121
+ tableName: "basic_position_list-m2",
122
+ path: USER_PREFIX + "/position/listCurrentPage",
88
123
  param: () => {
89
124
  return this.formData;
90
125
  },
91
126
  columns: [
92
- {type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
127
+ { type: "checkbox", width: 48, resizable: false, fixed: "left" },
93
128
  {
94
- title: this.$t1('岗位名称'),
95
- field: 'name',
129
+ title: this.$t1("岗位名称"),
130
+ field: "name",
96
131
  width: 150,
97
- fixed: 'left'
132
+ fixed: "left",
98
133
  },
99
134
  /* {
100
135
  field: 'code',
101
136
  title: this.$t1('岗位编码'),
102
137
  width: 250
103
138
  }, */
104
- {title: this.$t1('所属组织'), field: 'companyName', width: 150},
139
+ { title: this.$t1("所属组织"), field: "companyName", width: 150 },
105
140
  {
106
- field: 'enabled',
107
- title: this.$t1('是否启用'),
141
+ field: "enabled",
142
+ title: this.$t1("是否启用"),
108
143
  width: 150,
109
144
  slots: {
110
- default: ({row}) => {
145
+ default: ({ row }) => {
111
146
  if (row.enabled) {
112
147
  return [
113
148
  <div class="txt-status">
114
- <span>{this.$t1('启用')}</span>
115
- </div>
149
+ <span>{this.$t1("启用")}</span>
150
+ </div>,
116
151
  ];
117
152
  } else {
118
153
  return [
119
154
  <div class="txt-status disable">
120
- <span>{this.$t1('禁用')}</span>
121
- </div>
155
+ <span>{this.$t1("禁用")}</span>
156
+ </div>,
122
157
  ];
123
158
  }
124
- }
125
- }
159
+ },
160
+ },
126
161
  },
127
162
  {
128
- field: 'createDate',
129
- title: this.$t1('创建时间'),
130
- width: 150
163
+ field: "createDate",
164
+ title: this.$t1("创建时间"),
165
+ width: 150,
131
166
  },
132
167
  {
133
- field: '_createBy',
134
- title: this.$t1('创建人'),
135
- width: 150
168
+ field: "_createBy",
169
+ title: this.$t1("创建人"),
170
+ width: 150,
136
171
  },
137
172
  {
138
- field: '_modifyBy',
139
- title: this.$t1('更新人'),
140
- width: 150
173
+ field: "_modifyBy",
174
+ title: this.$t1("更新人"),
175
+ width: 150,
141
176
  },
142
177
  {
143
178
  width: 47,
144
- fixed: 'right',
145
- title: '',
179
+ fixed: "right",
180
+ title: "",
146
181
  sortable: false,
147
182
  slots: {
148
- default: ({row}) => {
183
+ default: ({ row }) => {
149
184
  return [
150
185
  <div>
151
186
  <a
@@ -155,19 +190,40 @@ export default {
155
190
  this.openEditDialog(row.id);
156
191
  }}
157
192
  >
158
- <el-tooltip enterable={false} effect="dark" content={this.$t1('查看')} placement="top"
159
- popper-class="tooltip-skin">
160
- <i class="el-icon-edit"/>
193
+ <el-tooltip
194
+ enterable={false}
195
+ effect="dark"
196
+ content={this.$t1("查看")}
197
+ placement="top"
198
+ popper-class="tooltip-skin"
199
+ >
200
+ <i class="el-icon-edit" />
161
201
  </el-tooltip>
162
202
  </a>
163
- </div>
203
+ </div>,
164
204
  ];
165
- }
166
- }
167
- }
168
- ]
205
+ },
206
+ },
207
+ },
208
+ ],
209
+ config: {
210
+ loadingConfig: {
211
+ icon: "vxe-icon-indicator roll",
212
+ text: "正在拼命加载中...",
213
+ },
214
+ slots: {
215
+ loading() {
216
+ return `<div class="vxe-loading tttt">
217
+ <div class="vxe-loading__text">{this.loadingConfig.text}</div>
218
+ <div class="vxe-loading__icon">
219
+ <i class={this.loadingConfig.icon}></i>
220
+ </div>
221
+ </div>`;
222
+ },
223
+ },
224
+ },
169
225
  };
170
- this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
226
+ this.$vxeTableUtil.initVxeTable(tableOption).then((opts) => {
171
227
  this.vxeOption = opts;
172
228
  });
173
229
  },
@@ -175,14 +231,14 @@ export default {
175
231
  let that = this;
176
232
  that.$excelImport({
177
233
  prefix: USER_PREFIX,
178
- excel: USER_PREFIX + '/excelTemplate/position/position.xlsx',
234
+ excel: USER_PREFIX + "/excelTemplate/position/position.xlsx",
179
235
  multi: false,
180
- saveUrl: USER_PREFIX + '/position/save',
236
+ saveUrl: USER_PREFIX + "/position/save",
181
237
  callback: () => {
182
238
  that.searchEvent();
183
- }
239
+ },
184
240
  });
185
- }
186
- }
241
+ },
242
+ },
187
243
  };
188
244
  </script>