1
This commit is contained in:
@@ -170,4 +170,13 @@ export function queryDictByTypeList(types: string[]) {
|
|||||||
typeList: types,
|
typeList: types,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
export function editDormrange(obj: any) {
|
||||||
|
return request({
|
||||||
|
url: '/admin/dict/editDormrange',
|
||||||
|
method: 'post',
|
||||||
|
data: obj,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
import { ref, reactive, watch, nextTick } from 'vue'
|
import { ref, reactive, watch, nextTick } from 'vue'
|
||||||
import { useMessage, useMessageBox } from '/@/hooks/message'
|
import { useMessage, useMessageBox } from '/@/hooks/message'
|
||||||
import { loadTiandituMap } from "/@/api/recruit/recruitstudentsignup"
|
import { loadTiandituMap } from "/@/api/recruit/recruitstudentsignup"
|
||||||
import { putItemObj } from "/@/api/admin/dict"
|
import { editDormrange } from "/@/api/admin/dict"
|
||||||
import { getDicts } from "/@/api/admin/dict"
|
import { getDicts } from "/@/api/admin/dict"
|
||||||
import { TIANDITU_TOKEN } from '/@/config/map'
|
import { TIANDITU_TOKEN } from '/@/config/map'
|
||||||
|
|
||||||
@@ -221,7 +221,7 @@ const dataFormSubmit = async () => {
|
|||||||
formRef.value?.validate((valid: boolean) => {
|
formRef.value?.validate((valid: boolean) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
canSubmit.value = false
|
canSubmit.value = false
|
||||||
putItemObj({ id: dictId.value, value: form.raidus }).then(() => {
|
editDormrange({ id: dictId.value, value: form.raidus }).then(() => {
|
||||||
message.success('修改成功')
|
message.success('修改成功')
|
||||||
visible.value = false
|
visible.value = false
|
||||||
canSubmit.value = true
|
canSubmit.value = true
|
||||||
|
|||||||
Reference in New Issue
Block a user