diff --git a/dist.zip b/dist.zip new file mode 100644 index 0000000..7bb340e Binary files /dev/null and b/dist.zip differ diff --git a/src/components/toolTip/index.vue b/src/components/toolTip/index.vue index 1e14864..b6d683d 100644 --- a/src/components/toolTip/index.vue +++ b/src/components/toolTip/index.vue @@ -1,18 +1,18 @@ - - diff --git a/src/views/project_document/edit.vue b/src/views/project_document/edit.vue index de5beb2..eb40147 100644 --- a/src/views/project_document/edit.vue +++ b/src/views/project_document/edit.vue @@ -1,16 +1,14 @@ @@ -84,12 +86,13 @@ import { getAllProjectTypes } from '@/api/projecttype' const protype = reactive([]) import feedback from '@/utils/feedback' import EditPopup from './edit.vue' -import DetailPopup from './detail.vue' +import detailConfig from './detail' + const detailRef = shallowRef>() const editRef = shallowRef>() // 是否显示编辑框 const showEdit = ref(false) -const showDtail = ref(false) +const showDetail = ref(false) const dtimevalue = ref([]) //查询 @@ -154,14 +157,17 @@ const handleDelete = async (id: number | any[]) => { await appointmentDelete({ id }) getLists() } -const handledetail = async (data: any) => { - let res = await appointmentDetail({ id: data.id }) - showDtail.value = true +// 详情 +const handleDetail = async (id: any) => { + let res = await appointmentDetail({ id }) + showDetail.value = true await nextTick() detailRef.value?.open() detailRef.value?.setFormData(res) } + + getLists() diff --git a/src/views/project_member/index.vue b/src/views/project_member/index.vue index 9a589d3..fefda9e 100644 --- a/src/views/project_member/index.vue +++ b/src/views/project_member/index.vue @@ -11,8 +11,6 @@ - - 查询 重置 @@ -78,13 +76,15 @@ import { getAllProjectTypes } from '@/api/projecttype' const protype = reactive([]) import feedback from '@/utils/feedback' import EditPopup from './edit.vue' -const detailRef = shallowRef>() -const editRef = shallowRef>() import detailConfig from './detail' + +const detailRef = shallowRef>() +const editRef = shallowRef>() // 是否显示编辑框 const showEdit = ref(false) const showDetail = ref(false) + // 查询条件 const queryParams = reactive({ project_role_name: '', diff --git a/src/views/project_stakeholder/detail.js b/src/views/project_stakeholder/detail.js new file mode 100644 index 0000000..6682fea --- /dev/null +++ b/src/views/project_stakeholder/detail.js @@ -0,0 +1,39 @@ +const detailConfig = { + title: "项目干系人详情", + config: [ + { + label: "项目名称", + value: "project_name" + }, + { + label: "项目编号", + value: "project_code" + }, + { + label: "姓名", + value: "name" + }, + { + label: "身份", + value: "identity_text" + }, + { + label: "电话", + value: "phone" + }, + { + label: "邮箱", + value: "email" + }, + { + label: "对我方态度", + value: "degree_adaptability_text" + }, + { + label: "备注", + value: "remark", + } + ] + +} +export default detailConfig; \ No newline at end of file diff --git a/src/views/project_stakeholder/detail.vue b/src/views/project_stakeholder/detail.vue deleted file mode 100644 index b7c13b1..0000000 --- a/src/views/project_stakeholder/detail.vue +++ /dev/null @@ -1,151 +0,0 @@ - - - - - diff --git a/src/views/project_stakeholder/index.vue b/src/views/project_stakeholder/index.vue index 59362f1..199e4c3 100644 --- a/src/views/project_stakeholder/index.vue +++ b/src/views/project_stakeholder/index.vue @@ -39,43 +39,31 @@
- - - - - + + - - - - - - - + - @@ -110,12 +99,14 @@ import { getAllProjectTypes } from '@/api/projecttype' const protype = reactive([]) import feedback from '@/utils/feedback' import EditPopup from './edit.vue' -import DetailPopup from './detail.vue' +import detailConfig from './detail' + + const detailRef = shallowRef>() const editRef = shallowRef>() // 是否显示编辑框 const showEdit = ref(false) -const showDtail = ref(false) +const showDetail = ref(false) // 查询条件 const queryParams = reactive({ @@ -166,9 +157,10 @@ const handleDelete = async (id: number | any[]) => { await apiProjectstakeholderDelete({ id }) getLists() } -const handledetail = async (data: any) => { - let res = await apiProjectstakeholderDetail({ id: data.id }) - showDtail.value = true +// 详情 +const handleDetail = async (id: any) => { + let res = await apiProjectstakeholderDetail({ id }) + showDetail.value = true await nextTick() detailRef.value?.open() detailRef.value?.setFormData(res)