Commit 76421d2f authored by 黄奎's avatar 黄奎

页面修改

parent d74e5f09
...@@ -79,10 +79,8 @@ ...@@ -79,10 +79,8 @@
</q-td> </q-td>
</template> </template>
</q-table> </q-table>
<assistant-form v-if="persistent" :save-obj="objOption" @close="closeSaveForm" @success="addAfterQuery"> <assistant-form v-if="isShowStuForm" :save-obj="stuOption" @close="closeStuForm" @success="refreshPage">
</assistant-form> </assistant-form>
<assistant-shenhe v-if="persistentExamine" :show-obj="objOption" @close="closeSaveForm" @success="addAfterQuery">
</assistant-shenhe>
</div> </div>
</div> </div>
</template> </template>
...@@ -184,17 +182,16 @@ ...@@ -184,17 +182,16 @@
}, },
schoolTemp: "", schoolTemp: "",
pageCount: 0, pageCount: 0,
persistent: false, stuOption: null,
objOption: null,
schoolList: [], schoolList: [],
persistentExamine: false, isShowStuForm: false,
resetLoading: false resetLoading: false
} }
}, },
mounted() { mounted() {
this.currentUrl = this.$route.path this.currentUrl = this.$route.path
this.getSchool() this.getSchool()
this.getAssistant() this.getStudent()
}, },
methods: { methods: {
resetSearch() { resetSearch() {
...@@ -204,7 +201,7 @@ ...@@ -204,7 +201,7 @@
} else { } else {
this.msg.School_Id = 0 this.msg.School_Id = 0
} }
this.getAssistant() this.getStudent()
}, },
resetPw(id) { resetPw(id) {
let that = this let that = this
...@@ -276,14 +273,14 @@ ...@@ -276,14 +273,14 @@
}, },
changePage(val) { changePage(val) {
this.msg.pageIndex = val; this.msg.pageIndex = val;
this.getAssistant(); this.getStudent();
}, },
getSchool() { getSchool() {
getSchoolDropdown({}).then(res => { getSchoolDropdown({}).then(res => {
this.schoolList = res.Data; this.schoolList = res.Data;
}) })
}, },
getAssistant() { getStudent() {
this.loading = true; this.loading = true;
getStudentPage(this.msg).then(res => { getStudentPage(this.msg).then(res => {
this.loading = false; this.loading = false;
...@@ -294,8 +291,8 @@ ...@@ -294,8 +291,8 @@
this.loading = false this.loading = false
}) })
}, },
addAfterQuery() { refreshPage() {
if (!this.objOption) { if (!this.stuOption) {
this.msg.pageIndex = 1; this.msg.pageIndex = 1;
this.msg.StuName = ""; this.msg.StuName = "";
this.msg.StuTel = ""; this.msg.StuTel = "";
...@@ -306,19 +303,19 @@ ...@@ -306,19 +303,19 @@
}, },
addObj(obj) { addObj(obj) {
if (obj) { if (obj) {
this.objOption = obj this.stuOption = obj
} else { } else {
this.objOption = null this.stuOption = null
} }
this.persistent = true this.isShowStuForm = false
}, },
showExamine(obj) { showExamine(obj) {
this.objOption = obj this.stuOption = obj
this.persistentExamine = true this.isShowStuForm = true
}, },
closeSaveForm() { closeStuForm() {
this.persistent = false
this.persistentExamine = false this.isShowStuForm = false
} }
}, },
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment