投票实况
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
<script>
|
||||
import electionList from "./components/electionList.vue";
|
||||
import electionAdd from "./components/electionAdd.vue";
|
||||
import Statistics from "./components/Statistics.vue";
|
||||
|
||||
export default {
|
||||
name: "AppGeneralElection",
|
||||
@@ -17,7 +18,7 @@ export default {
|
||||
instance: Function,
|
||||
dict: Object,
|
||||
},
|
||||
components: {electionAdd, electionList},
|
||||
components: {electionAdd, electionList,Statistics},
|
||||
data() {
|
||||
return {
|
||||
component: "electionList",
|
||||
@@ -32,6 +33,11 @@ export default {
|
||||
this.params = data.params;
|
||||
}
|
||||
|
||||
if (data.type === "Statistics") {
|
||||
this.component = "Statistics";
|
||||
this.params = data.params;
|
||||
}
|
||||
|
||||
if (data.type === "electionList") {
|
||||
this.component = "electionList";
|
||||
this.params = data.params;
|
||||
@@ -44,9 +50,6 @@ export default {
|
||||
}
|
||||
},
|
||||
},
|
||||
created() {
|
||||
// this.dict.load("portalUserStatus", "enterpriseStatus", "userEnterpriseStatus","enterpriseType")
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user