diff --git a/src/components/annexUpload/index.vue b/src/components/annexUpload/index.vue index b1e17bf..257746f 100644 --- a/src/components/annexUpload/index.vue +++ b/src/components/annexUpload/index.vue @@ -1,24 +1,33 @@ -import type { isTemplate } from 'element-plus/es/utils'; - \ No newline at end of file diff --git a/src/views/custom/edit.vue b/src/views/custom/edit.vue index 1ae0548..82f5190 100644 --- a/src/views/custom/edit.vue +++ b/src/views/custom/edit.vue @@ -3,7 +3,6 @@
- @@ -322,13 +321,19 @@ import { } from "@/api/common"; import customDialog from '@/components/custom-dialog/index.vue' import type { FormInstance } from 'element-plus' - -import useUserStore from "@/stores/modules/user"; import Popup from '@/components/popup/index.vue' import { apiCustomAdd, apiCustomEdit, apiCustomDetail } from '@/api/custom' import { timeFormat } from '@/utils/util' import type { PropType } from 'vue' +import { deptAll } from '@/api/org/department' +import { getAll } from '@/api/org/organization' +import feedback from "@/utils/feedback"; +import configs from "@/config" +import useUserStore from "@/stores/modules/user"; const userStore = useUserStore(); +const base_url = configs.baseUrl + configs.urlPrefix + + defineProps({ dictData: { type: Object as PropType>, @@ -344,12 +349,6 @@ const list1 = reactive([]) const showDialog = ref(false); const list2 = reactive([]) const otherList = reactive([{}]) -import configs from "@/config" - -const base_url = configs.baseUrl + configs.urlPrefix -import { deptAll } from '@/api/org/department' -import { getAll } from '@/api/org/organization' -import feedback from "@/utils/feedback"; const datas = reactive({ provinceOptions: [], cityOptions: [], diff --git a/src/views/custom_contacts/edit.vue b/src/views/custom_contacts/edit.vue index b2adb02..e5063ba 100644 --- a/src/views/custom_contacts/edit.vue +++ b/src/views/custom_contacts/edit.vue @@ -44,24 +44,8 @@ --> - - -
-
- {{ item.name }} - x -
-
- - - +
@@ -83,31 +67,19 @@ import Popup from '@/components/popup/index.vue' import customDialog from '@/components/custom-dialog/index.vue' import { apiCustomContactsAdd, apiCustomContactsEdit, apiCustomContactsDetail } from '@/api/custom_contacts' import { apiCustomLists } from '@/api/custom' -import useUserStore from "@/stores/modules/user"; -import { timeFormat } from '@/utils/util' import type { PropType } from 'vue' -import configs from "@/config" -const base_url = configs.baseUrl + configs.urlPrefix -const userStore = useUserStore(); + + // 上传文件 -const handleAvatarSuccess_four = ( - response, - uploadFile -) => { - if (response.code == 0) { - ElMessage.error(response.msg); - return; - } - formData.annex.push( - { uri: response.data.uri, name: response.data.name } - - - ); +import annexUpload from "@/components/annexUpload/index.vue" +const handleAvatarSuccess_four = (response: any) => { + // @ts-ignore + response.code != 0 ? formData.annex.push({ uri: response.data.uri, name: response.data.name }) : ElMessage.error(response.msg); }; + // 删除上传的文件 -const delFileFn = (index: number) => { - formData.annex.splice(index, 1) -} +const delFileFn = (index: number) => { formData.annex.splice(index, 1) } + defineProps({ dictData: { @@ -115,17 +87,13 @@ defineProps({ default: () => ({}) } }) + const showDialog = ref(false); const emit = defineEmits(['success', 'close']) const formRef = shallowRef() const popupRef = shallowRef>() const mode = ref('add') -const customEvent = (e: any) => { - formData.custom_id = e.id; - formData.custom_name = e.name; - showDialog.value = false; -}; // 弹窗标题 const popupTitle = computed(() => { @@ -154,7 +122,11 @@ const formData = reactive({ status: '', }) - +const customEvent = (e: any) => { + formData.custom_id = e.id; + formData.custom_name = e.name; + showDialog.value = false; +}; // 表单验证 const formRules = reactive({ custom_name: [{ diff --git a/src/views/custom_follow/edit.vue b/src/views/custom_follow/edit.vue index 7bb5b6b..62669ae 100644 --- a/src/views/custom_follow/edit.vue +++ b/src/views/custom_follow/edit.vue @@ -23,29 +23,15 @@ :value="parseInt(item.value)" /> - - + + - - -
-
- {{ item.name }} - x -
-
+
@@ -72,10 +58,18 @@ import { timeFormat } from '@/utils/util' import type { PropType } from 'vue' import { usePaging } from '@/hooks/usePaging' import { apiCustomLists } from '@/api/custom' -import configs from "@/config" -import useUserStore from "@/stores/modules/user"; -const base_url = configs.baseUrl + configs.urlPrefix -const userStore = useUserStore(); +// 上传文件 +import annexUpload from "@/components/annexUpload/index.vue" +const handleAvatarSuccess_four = (response: any) => { + // @ts-ignore + response.code != 0 ? formData.annex.push({ uri: response.data.uri, name: response.data.name }) : ElMessage.error(response.msg); +}; + +// 删除上传的文件 +const delFileFn = (index: number) => { formData.annex.splice(index, 1) } +// + defineProps({ dictData: { type: Object as PropType>, @@ -102,7 +96,7 @@ const formData = reactive({ contacts: '', date: '', types: '', - admin_id: '', + executor: '', description: '', annex: [], coordinate: '', @@ -110,15 +104,6 @@ const formData = reactive({ status: '', }) -// 上传文件 -const handleAvatarSuccess_four = (response: any) => { - // @ts-ignore - response.code != 0 ? formData.annex.push({ uri: response.data.uri, name: response.data.name }) : ElMessage.error(response.msg); -}; -// 删除上传的文件 -const delFileFn = (index: number) => { - formData.annex.splice(index, 1) -} // 表单验证 const formRules = reactive({ diff --git a/src/views/custom_follow/index.vue b/src/views/custom_follow/index.vue index 9c030a4..23ac172 100644 --- a/src/views/custom_follow/index.vue +++ b/src/views/custom_follow/index.vue @@ -10,7 +10,8 @@ - + @@ -27,7 +28,8 @@ 新增 - + 删除
@@ -43,7 +45,7 @@ - +