cloud-web-corejs 1.0.54-dev.274 → 1.0.54-dev.276

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.274",
4
+ "version": "1.0.54-dev.276",
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
7
7
  "lint": "eslint --ext .js,.vue src",
@@ -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