Selaa lähdekoodia

修复选择班级bug

shilipojs 3 vuotta sitten
vanhempi
commit
0fe0e34d23

+ 5 - 3
src/components/MxCondition/condition-object/condition-dispatch-class.js

@@ -2,7 +2,7 @@ import conditionObjectBase from '../condition-object-base.js'
 import { getClass } from '@/api/webApi/elective/dispatch.js'
 export default {
   ...conditionObjectBase,
-  dependentKeys: ['localGroupId'],
+  dependentKeys: ['groupId'],
   key: 'class',
   title: '班级',
   isDependencyReady(params) {
@@ -10,8 +10,10 @@ export default {
   },
   getList: function(param) {
     return new Promise((resolve, reject) => {
-      getClass().then(res => {
-        console.log(res.data)
+      getClass({
+        groupId: 10
+      }).then(res => {
+        console.log('111111111111',res.data)
         resolve(res.data)
       })
       .catch(e => reject(e))