|
@@ -316,6 +316,7 @@ export default {
|
|
|
queryView(flag) {
|
|
|
let postParams = {}
|
|
|
let data = {
|
|
|
+ categoryId: this.$cookie.get('categoryId'),
|
|
|
graphId: this.$cookie.get('graphId'),
|
|
|
projectId: this.$store.state.plazaId,
|
|
|
flag: flag
|
|
@@ -358,9 +359,21 @@ export default {
|
|
|
},
|
|
|
// 编辑数量
|
|
|
queryEdit(val) {
|
|
|
+ let arr = []
|
|
|
+ if (val.length > 0) {
|
|
|
+ val.forEach(el => {
|
|
|
+ let obj = {
|
|
|
+ CategoryId: el.GraphCategoryId,
|
|
|
+ GraphId: this.$cookie.get('graphId'),
|
|
|
+ GraphElementId: el.GraphElementId,
|
|
|
+ Num: el.Num
|
|
|
+ }
|
|
|
+ arr.push(obj)
|
|
|
+ })
|
|
|
+ }
|
|
|
let params = {
|
|
|
postParams: {
|
|
|
- Content: val
|
|
|
+ Content: arr
|
|
|
}
|
|
|
}
|
|
|
updateStatis(params).then(res => {
|