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

页面修改

parent d74e5f09
......@@ -79,10 +79,8 @@
</q-td>
</template>
</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-shenhe v-if="persistentExamine" :show-obj="objOption" @close="closeSaveForm" @success="addAfterQuery">
</assistant-shenhe>
</div>
</div>
</template>
......@@ -184,17 +182,16 @@
},
schoolTemp: "",
pageCount: 0,
persistent: false,
objOption: null,
stuOption: null,
schoolList: [],
persistentExamine: false,
isShowStuForm: false,
resetLoading: false
}
},
mounted() {
this.currentUrl = this.$route.path
this.getSchool()
this.getAssistant()
this.getStudent()
},
methods: {
resetSearch() {
......@@ -204,7 +201,7 @@
} else {
this.msg.School_Id = 0
}
this.getAssistant()
this.getStudent()
},
resetPw(id) {
let that = this
......@@ -276,14 +273,14 @@
},
changePage(val) {
this.msg.pageIndex = val;
this.getAssistant();
this.getStudent();
},
getSchool() {
getSchoolDropdown({}).then(res => {
this.schoolList = res.Data;
})
},
getAssistant() {
getStudent() {
this.loading = true;
getStudentPage(this.msg).then(res => {
this.loading = false;
......@@ -294,8 +291,8 @@
this.loading = false
})
},
addAfterQuery() {
if (!this.objOption) {
refreshPage() {
if (!this.stuOption) {
this.msg.pageIndex = 1;
this.msg.StuName = "";
this.msg.StuTel = "";
......@@ -306,19 +303,19 @@
},
addObj(obj) {
if (obj) {
this.objOption = obj
this.stuOption = obj
} else {
this.objOption = null
this.stuOption = null
}
this.persistent = true
this.isShowStuForm = false
},
showExamine(obj) {
this.objOption = obj
this.persistentExamine = true
this.stuOption = obj
this.isShowStuForm = true
},
closeSaveForm() {
this.persistent = false
this.persistentExamine = false
closeStuForm() {
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