|
|
@@ -314,11 +314,11 @@
|
|
|
/** 重置按钮操作 */
|
|
|
function resetQuery() {
|
|
|
// 清空机构ID
|
|
|
- queryParams.value.deptId = undefined
|
|
|
+ // queryParams.value.deptId = undefined
|
|
|
// 清空机构名称
|
|
|
- deptName.value = ""
|
|
|
+ // deptName.value = ""
|
|
|
// 取消树节点的选中状态
|
|
|
- proxy.$refs.deptTreeRef.setCurrentKey(null)
|
|
|
+ // proxy.$refs.deptTreeRef.setCurrentKey(null)
|
|
|
proxy.resetForm("queryRef")
|
|
|
// 清空省市区选择
|
|
|
areaIds.value = []
|
|
|
@@ -369,13 +369,15 @@
|
|
|
};
|
|
|
|
|
|
if (form.value.id != null) {
|
|
|
- updateSchool(form.value).then(response => {
|
|
|
+ // updateSchool(form.value).then(response => {
|
|
|
+ updateSchool(submitData).then(response => {
|
|
|
proxy.$modal.msgSuccess("修改成功")
|
|
|
open.value = false
|
|
|
getList()
|
|
|
})
|
|
|
} else {
|
|
|
- addSchool(form.value).then(response => {
|
|
|
+ // addSchool(form.value).then(response => {
|
|
|
+ addSchool(submitData).then(response => {
|
|
|
proxy.$modal.msgSuccess("新增成功")
|
|
|
open.value = false
|
|
|
getList()
|
|
|
@@ -404,7 +406,7 @@
|
|
|
}
|
|
|
|
|
|
onMounted(() => {
|
|
|
- getDeptTree()
|
|
|
+ // getDeptTree()
|
|
|
getList()
|
|
|
})
|
|
|
</script>
|