|
|
|
@ -123,7 +123,7 @@ |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
|
import { mapState, mapActions } from "vuex"; |
|
|
|
|
import { mapState, mapActions, mapMutations } from "vuex"; |
|
|
|
|
import util from "@/libs/util"; |
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
@ -216,7 +216,9 @@ export default { |
|
|
|
|
"userId", "roleId" |
|
|
|
|
]), |
|
|
|
|
...mapState("project", [ |
|
|
|
|
"lastSystemId", "assFields" |
|
|
|
|
"lastSystemId", |
|
|
|
|
"assFields", |
|
|
|
|
"queryDataStatus", |
|
|
|
|
]) |
|
|
|
|
}, |
|
|
|
|
watch: { |
|
|
|
@ -225,15 +227,28 @@ export default { |
|
|
|
|
this.searchTimer = setTimeout(() => { |
|
|
|
|
this.initData(); |
|
|
|
|
}, 500); |
|
|
|
|
}, |
|
|
|
|
queryData: { |
|
|
|
|
handler: function(newVal) { |
|
|
|
|
this.setQueryStatus({...newVal}) |
|
|
|
|
}, |
|
|
|
|
deep: true |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
// created() { |
|
|
|
|
// this.queryData = this.queryDataStatus |
|
|
|
|
// }, |
|
|
|
|
mounted() { |
|
|
|
|
this.getSystemData(); |
|
|
|
|
this.queryData = this.queryDataStatus |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
...mapActions("project", [ |
|
|
|
|
"setSystemId" |
|
|
|
|
]), |
|
|
|
|
...mapMutations({ |
|
|
|
|
setQueryStatus: "project/SET_QUERYDATASTATUS" |
|
|
|
|
}), |
|
|
|
|
getSystemData() { |
|
|
|
|
this.$get(this.api.getSystemIdBySchool).then(res => { |
|
|
|
|
if (res.status == 200){ |
|
|
|
|