|
@@ -3,7 +3,7 @@ import REST from 'vuejs/api/rest-axios'
|
|
import MA from 'vuejs/api/ma-axios'
|
|
import MA from 'vuejs/api/ma-axios'
|
|
import qs from 'querystring-es3'
|
|
import qs from 'querystring-es3'
|
|
|
|
|
|
-import materiauGQL from 'vuejs/api/gql/materiauflaglist.fragment.gql'
|
|
|
|
|
|
+import materiauFlaglistGQL from 'vuejs/api/gql/materiauflaglist.fragment.gql'
|
|
|
|
|
|
// import router from 'vuejs/route' // this is not working
|
|
// import router from 'vuejs/route' // this is not working
|
|
|
|
|
|
@@ -331,7 +331,7 @@ export default {
|
|
if (state.flagcolls[collid].items.length) {
|
|
if (state.flagcolls[collid].items.length) {
|
|
dispatch('loadMaterialsGQL', {
|
|
dispatch('loadMaterialsGQL', {
|
|
ids: state.flagcolls[collid].items,
|
|
ids: state.flagcolls[collid].items,
|
|
- gqlfragment: materiauGQL,
|
|
|
|
|
|
+ gqlfragment: materiauFlaglistGQL,
|
|
callBack: 'loadMaterialsCallBack',
|
|
callBack: 'loadMaterialsCallBack',
|
|
callBackArgs: { collid: collid }
|
|
callBackArgs: { collid: collid }
|
|
}).then(() => {
|
|
}).then(() => {
|
|
@@ -369,7 +369,7 @@ export default {
|
|
|
|
|
|
dispatch('loadMaterialsGQL', {
|
|
dispatch('loadMaterialsGQL', {
|
|
ids: state.flagcolls[collid].items,
|
|
ids: state.flagcolls[collid].items,
|
|
- gqlfragment: materiauGQL,
|
|
|
|
|
|
+ gqlfragment: materiauFlaglistGQL,
|
|
callBack: 'loadMaterialsCallBack',
|
|
callBack: 'loadMaterialsCallBack',
|
|
callBackArgs: { collid: collid }
|
|
callBackArgs: { collid: collid }
|
|
})
|
|
})
|