baiqiu-cms-decoration-dg 0.0.7 → 0.0.9

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": "baiqiu-cms-decoration-dg",
3
3
  "description": "A Vue.js project",
4
- "version": "0.0.7",
4
+ "version": "0.0.9",
5
5
  "author": "anni.zhou",
6
6
  "license": "MIT",
7
7
  "private": false,
@@ -54,6 +54,14 @@ export default {
54
54
  }
55
55
  }
56
56
  },
57
+ // watch: {
58
+ // cmsList: {
59
+ // handler(n) {
60
+ // console.log(n)
61
+ // },
62
+ // immediate: true
63
+ // }
64
+ // },
57
65
  mounted() {
58
66
  this.$nextTick(()=>{
59
67
  var commom = require('../../utils/common')
@@ -111,7 +111,7 @@ export default {
111
111
  componentMethodType: 1,
112
112
  popData: {
113
113
  ...val,
114
- uniqueId: this.recordId + '_' + this.sortId + '_' + val.uniqueId('_')[2],
114
+ uniqueId: this.recordId + '_' + this.sortId + '_' + val.uniqueId.split('_')[2],
115
115
  brand: this.pathType === 1 ? 'defaultPath' : this.brand
116
116
  },
117
117
  materialId: this.item.sort ? this.recordId + '_' + this.item.sort : this.recordId + '_' + this.sortId, //素材id
@@ -126,7 +126,7 @@ export default {
126
126
  this.envUrl
127
127
  )
128
128
  } catch(err) {
129
-
129
+ console.log(err)
130
130
  }
131
131
  }
132
132
  this.$emit('jumpLink', val)
@@ -169,10 +169,11 @@ export default {
169
169
  {
170
170
  uniqueId: this.recordId + '_' + this.sortId, // 组件_id
171
171
  uniqueName: this.uniqueName, // 组件_名称
172
- // componentMethodType: 0,
172
+ componentMethodType: 0,
173
173
  popData: {
174
174
  ...obj,
175
- // brand: this.pathType === 1 ? 'defaultPath' : this.brand
175
+ uniqueId: this.recordId + '_' + this.sortId + '_' + obj.uniqueId.split('_')[2],
176
+ brand: this.pathType === 1 ? 'defaultPath' : this.brand
176
177
  },
177
178
  materialId: this.item.sort ? this.recordId + '_' +this.item.sort : this.recordId + '_' + this.sortId, //素材id
178
179
  materialName: this.item.uniqueName ? this.item.uniqueName : this.uniqueName, //素材名称
@@ -39,15 +39,6 @@ export default {
39
39
  componentName:''
40
40
  };
41
41
  },
42
- watch: {
43
- // layOutData: {
44
- // handler(val) {
45
- // console.log("layOutData", val);
46
- // },
47
- // deep: true,
48
- // immediate: true
49
- // }
50
- },
51
42
  computed: {
52
43
  layoutStyle:function () {
53
44
  if(this.layOutData.layoutStyle){
@@ -63,7 +54,7 @@ export default {
63
54
  methods: {
64
55
  reportData(h) {
65
56
  let refs = this.$refs.singleComponent
66
- refs.forEach(item => {
57
+ refs&&refs.forEach(item => {
67
58
  item.reportData(h)
68
59
  });
69
60
  }
@@ -240,7 +240,7 @@ export default {
240
240
  },
241
241
  reportData(h) {
242
242
  let refs = this.$refs.slideSingle
243
- refs.forEach(item=>{
243
+ refs&&refs.forEach(item=>{
244
244
  item.reportData(h)
245
245
  })
246
246
  }
@@ -16,8 +16,8 @@ module.exports = {
16
16
  })
17
17
 
18
18
  let refs = that.$refs.layModule
19
- refs.forEach(item =>{
20
- item.reportData(h)
19
+ refs&&refs.forEach(item =>{
20
+ item&&item.reportData(h)
21
21
  })
22
22
  }
23
23
  }