cloud-web-corejs 1.0.54-dev.273 → 1.0.54-dev.275
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/components/excelExport/index.js +48 -48
- package/src/components/excelExport/mixins.js +1 -1
- package/src/components/table/vxeFilter/mixin.js +300 -6
- package/src/components/wf/content.vue +4 -7
- package/src/components/xform/form-designer/form-widget/field-widget/select-export-button-widget.vue +86 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/select-export-button-editor.vue +56 -0
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +2 -1
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +748 -666
- package/src/components/xform/lang/zh-CN.js +1 -0
- package/src/views/bd/setting/push_data/edit.vue +30 -30
- package/src/views/bd/setting/push_data/list.vue +29 -25
- package/src/views/bd/setting/push_data_h/edit.vue +44 -37
- package/src/views/bd/setting/push_data_h/list.vue +35 -27
package/package.json
CHANGED
@@ -1,48 +1,48 @@
|
|
1
|
-
import vue from "vue"
|
2
|
-
import excelExport from './index.vue'
|
3
|
-
|
4
|
-
const moudule = {};
|
5
|
-
const ExcelExportInstance = vue.extend(excelExport);
|
6
|
-
let instance = null;
|
7
|
-
const initInstance = (containter) => {
|
8
|
-
// 实例化vue实例
|
9
|
-
instance = new ExcelExportInstance({i18n: window.$vueRoot._i18n}).$mount();
|
10
|
-
let dom = instance.$el;
|
11
|
-
containter.appendChild(dom);
|
12
|
-
return instance;
|
13
|
-
};
|
14
|
-
|
15
|
-
function toDo(options) {
|
16
|
-
// let containter = this && this.$el ? this.$el : document.body;
|
17
|
-
// let containter = document.body;
|
18
|
-
let containter = this && this.$el ? this.$el : document.body;
|
19
|
-
|
20
|
-
let vueTarget = this && this.$el ? this : window.$vueRoot;
|
21
|
-
let currentInstance = initInstance(containter);
|
22
|
-
currentInstance.param = {};
|
23
|
-
Object.assign(currentInstance.param, {vue: vueTarget, destroyComponent: destroyComponent}, options);
|
24
|
-
return currentInstance.exc(destroyComponent);
|
25
|
-
};
|
26
|
-
|
27
|
-
function destroyComponent(loadingObj) {
|
28
|
-
if (instance) {
|
29
|
-
setTimeout(()=>{
|
30
|
-
instance.$destroy(); // 触发销毁生命周期
|
31
|
-
instance.$el.remove(); // 移除 DOM 节点
|
32
|
-
instance = null;
|
33
|
-
setTimeout(function (){
|
34
|
-
loadingObj.close()
|
35
|
-
},200)
|
36
|
-
},0)
|
37
|
-
}
|
38
|
-
}
|
39
|
-
|
40
|
-
|
41
|
-
// vue的install方法,用于定义vue插件
|
42
|
-
moudule.install = function (Vue) {
|
43
|
-
// 在Vue的原型上添加实例方法,以全局调用
|
44
|
-
Vue.prototype.$excelExport = toDo;
|
45
|
-
};
|
46
|
-
moudule.excelExport = toDo;
|
47
|
-
|
48
|
-
export default moudule;
|
1
|
+
import vue from "vue"
|
2
|
+
import excelExport from './index.vue'
|
3
|
+
|
4
|
+
const moudule = {};
|
5
|
+
const ExcelExportInstance = vue.extend(excelExport);
|
6
|
+
let instance = null;
|
7
|
+
const initInstance = (containter) => {
|
8
|
+
// 实例化vue实例
|
9
|
+
instance = new ExcelExportInstance({i18n: window.$vueRoot._i18n}).$mount();
|
10
|
+
let dom = instance.$el;
|
11
|
+
containter.appendChild(dom);
|
12
|
+
return instance;
|
13
|
+
};
|
14
|
+
|
15
|
+
function toDo(options) {
|
16
|
+
// let containter = this && this.$el ? this.$el : document.body;
|
17
|
+
// let containter = document.body;
|
18
|
+
let containter = this && this.$el ? this.$el : document.body;
|
19
|
+
|
20
|
+
let vueTarget = this && this.$el ? this : window.$vueRoot;
|
21
|
+
let currentInstance = initInstance(containter);
|
22
|
+
currentInstance.param = {};
|
23
|
+
Object.assign(currentInstance.param, {vue: vueTarget, destroyComponent: destroyComponent}, options);
|
24
|
+
return currentInstance.exc(destroyComponent);
|
25
|
+
};
|
26
|
+
|
27
|
+
function destroyComponent(loadingObj) {
|
28
|
+
if (instance) {
|
29
|
+
setTimeout(()=>{
|
30
|
+
instance.$destroy(); // 触发销毁生命周期
|
31
|
+
instance.$el.remove(); // 移除 DOM 节点
|
32
|
+
instance = null;
|
33
|
+
setTimeout(function (){
|
34
|
+
loadingObj.close()
|
35
|
+
},200)
|
36
|
+
},0)
|
37
|
+
}
|
38
|
+
}
|
39
|
+
|
40
|
+
|
41
|
+
// vue的install方法,用于定义vue插件
|
42
|
+
moudule.install = function (Vue) {
|
43
|
+
// 在Vue的原型上添加实例方法,以全局调用
|
44
|
+
Vue.prototype.$excelExport = toDo;
|
45
|
+
};
|
46
|
+
moudule.excelExport = toDo;
|
47
|
+
|
48
|
+
export default moudule;
|
@@ -124,7 +124,6 @@ function getGrid(that, tableRef) {
|
|
124
124
|
return;
|
125
125
|
}
|
126
126
|
}
|
127
|
-
this.lockMenu()
|
128
127
|
|
129
128
|
this.isMinimize = false;
|
130
129
|
this.showExportFieldDialog = true;
|
@@ -158,6 +157,7 @@ function getGrid(that, tableRef) {
|
|
158
157
|
this.clearExportTimer();
|
159
158
|
},
|
160
159
|
startProcess() {
|
160
|
+
this.lockMenu();
|
161
161
|
this.createCountTimer();
|
162
162
|
this.tableTarget = getGrid(this.option.vue, this.option.targetRef);
|
163
163
|
|