From 5306746a8d4845e82364599a0ab4c23be04b0900 Mon Sep 17 00:00:00 2001 From: zmj <1493694146@qq.com> Date: Sat, 20 Jan 2024 16:11:37 +0800 Subject: [PATCH] a --- src/views/app/recharge/index.vue | 8 +- src/views/custom_follow/edit.vue | 8 +- src/views/customer_demand/edit.vue | 49 +---- src/views/customer_demand_solution/edit.vue | 53 ++--- src/views/project_plan/edit.vue | 5 +- src/views/project_total_budget/edit.vue | 8 +- src/views/project_type_set/edit.vue | 8 +- src/views/test/index.vue | 219 ++++++++++++++++++++ 8 files changed, 259 insertions(+), 99 deletions(-) diff --git a/src/views/app/recharge/index.vue b/src/views/app/recharge/index.vue index aad882f..b29e464 100644 --- a/src/views/app/recharge/index.vue +++ b/src/views/app/recharge/index.vue @@ -2,7 +2,7 @@
@@ -16,11 +16,7 @@
- +
最低充值金额要求,不填或填0表示不限制最低充值金额
diff --git a/src/views/custom_follow/edit.vue b/src/views/custom_follow/edit.vue index 62669ae..4d9c476 100644 --- a/src/views/custom_follow/edit.vue +++ b/src/views/custom_follow/edit.vue @@ -123,10 +123,10 @@ const setFormData = async (data: Record) => { } } - //@ts-ignore - formData.date = timeFormat(formData.date, 'yyyy-mm-dd') - //@ts-ignore - formData.next_follow_date = timeFormat(formData.next_follow_date, 'yyyy-mm-dd') + // //@ts-ignore + // formData.date = timeFormat(formData.date, 'yyyy-mm-dd') + // //@ts-ignore + // formData.next_follow_date = timeFormat(formData.next_follow_date, 'yyyy-mm-dd') } const getDetail = async (row: Record) => { diff --git a/src/views/customer_demand/edit.vue b/src/views/customer_demand/edit.vue index c3321fc..7ace7f4 100644 --- a/src/views/customer_demand/edit.vue +++ b/src/views/customer_demand/edit.vue @@ -54,22 +54,8 @@ - - -
-
- {{ item.name }} - x -
-
+
@@ -88,6 +74,15 @@ import projectTable from "@/components/project/index.vue" import { apiCustomerDemandAdd, apiCustomerDemandEdit, apiCustomerDemandDetail } from '@/api/customer_demand' import { timeFormat } from '@/utils/util' import type { PropType } from 'vue' +// 上传文件 +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>, @@ -107,29 +102,7 @@ const project_code const custom_name = ref('') const formDataannex = reactive([]) -import configs from "@/config" -const base_url = configs.baseUrl + configs.urlPrefix -import useUserStore from "@/stores/modules/user"; -const userStore = useUserStore(); -// 上传文件 -const handleAvatarSuccess_four = ( - response, - uploadFile -) => { - if (response.code == 0) { - ElMessage.error(response.msg); - return; - } - formDataannex.push( - { uri: response.data.uri, name: response.data.name } - - ); -}; -// 删除上传的文件 -const delFileFn = (index: number) => { - formDataannex.splice(index, 1) -} // dialog const showDialog = ref(false) const customEvent = (e: any) => { diff --git a/src/views/customer_demand_solution/edit.vue b/src/views/customer_demand_solution/edit.vue index 56c1ae4..bc3185f 100644 --- a/src/views/customer_demand_solution/edit.vue +++ b/src/views/customer_demand_solution/edit.vue @@ -44,22 +44,8 @@ - - -
-
- {{ item.name }} - x -
-
+
@@ -84,6 +70,18 @@ import customerdemand from "@/components/customerdemand/index.vue" import { apiCustomerDemandSolutionAdd, apiCustomerDemandSolutionEdit, apiCustomerDemandSolutionDetail } from '@/api/customer_demand_solution' import { timeFormat } from '@/utils/util' import type { PropType } from 'vue' + + +// 上传文件 +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>, @@ -104,30 +102,7 @@ const custom_name = ref('') const customer_demand_name = ref('') const formDataannex = reactive([]) -import configs from "@/config" -const base_url = configs.baseUrl + configs.urlPrefix -import useUserStore from "@/stores/modules/user"; -const userStore = useUserStore(); -// 上传文件 -const handleAvatarSuccess_four = ( - response, - uploadFile -) => { - if (response.code == 0) { - ElMessage.error(response.msg); - return; - } - formDataannex.push( - { uri: response.data.uri, name: response.data.name } - - ); -}; -// 删除上传的文件 -const delFileFn = (index: number) => { - formDataannex.splice(index, 1) -} -// dialog const showDialog = ref(false) const showDialog1 = ref(false) const customEvent = (e: any) => { diff --git a/src/views/project_plan/edit.vue b/src/views/project_plan/edit.vue index fb4aa45..9ba6cad 100644 --- a/src/views/project_plan/edit.vue +++ b/src/views/project_plan/edit.vue @@ -2,11 +2,11 @@
- +
@@ -20,7 +20,6 @@ - diff --git a/src/views/project_total_budget/edit.vue b/src/views/project_total_budget/edit.vue index 214f7ca..7de098b 100644 --- a/src/views/project_total_budget/edit.vue +++ b/src/views/project_total_budget/edit.vue @@ -2,12 +2,12 @@
- +
@@ -36,8 +36,7 @@ - + @@ -52,7 +51,6 @@ - diff --git a/src/views/project_type_set/edit.vue b/src/views/project_type_set/edit.vue index 6a8c465..a27fcf5 100644 --- a/src/views/project_type_set/edit.vue +++ b/src/views/project_type_set/edit.vue @@ -35,10 +35,10 @@ const emit = defineEmits(['success', 'close']) const formRef = shallowRef() const popupRef = shallowRef>() const mode = ref('add') -const showDialog = ref(false) -const showDialog1 = ref(false) -const project_name = ref('') -const project_code = ref('') +// const showDialog = ref(false) +// const showDialog1 = ref(false) +// const project_name = ref('') +// const project_code = ref('') // 弹窗标题 const popupTitle = computed(() => { diff --git a/src/views/test/index.vue b/src/views/test/index.vue index e69de29..c0cc8c5 100644 --- a/src/views/test/index.vue +++ b/src/views/test/index.vue @@ -0,0 +1,219 @@ + + + \ No newline at end of file