1
This commit is contained in:
@@ -171,3 +171,12 @@ export function queryDictByTypeList(types: string[]) {
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
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 { useMessage, useMessageBox } from '/@/hooks/message'
|
||||
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 { TIANDITU_TOKEN } from '/@/config/map'
|
||||
|
||||
@@ -221,7 +221,7 @@ const dataFormSubmit = async () => {
|
||||
formRef.value?.validate((valid: boolean) => {
|
||||
if (valid) {
|
||||
canSubmit.value = false
|
||||
putItemObj({ id: dictId.value, value: form.raidus }).then(() => {
|
||||
editDormrange({ id: dictId.value, value: form.raidus }).then(() => {
|
||||
message.success('修改成功')
|
||||
visible.value = false
|
||||
canSubmit.value = true
|
||||
|
||||
Reference in New Issue
Block a user