From ae9d98eee5c49a98fd8aa375ffcea0e25817444f Mon Sep 17 00:00:00 2001 From: Leo_Ding <2405260743@qq.com> Date: Thu, 6 Nov 2025 14:25:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=89=E4=B8=AA=E5=B9=B3=E5=8F=B0=E9=83=BD?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=AB=99=E7=82=B9=E7=9A=84=E9=80=89=E6=8B=A9?= =?UTF-8?q?=EF=BC=9B=E6=89=80=E6=9C=89=E9=9C=80=E8=A6=81=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=E5=9B=BE=E7=89=87=E7=9A=84=E7=BC=96=E8=BE=91=E5=AF=B9=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/login/platForm.vue | 31 +++++++-------- .../serverList/components/BasicInfo.vue | 10 ----- .../serverList/components/EditDialog.vue | 16 ++++---- .../serverList/components/TransferOut.vue | 38 ++++++++++--------- .../serverList/components/detail.vue | 9 ++++- src/views/serverObj/serverList/index.vue | 22 +++++------ .../serviceSites/components/EditDialog.vue | 34 ++++------------- .../workorderMenu/serviceWorkOrder/index.vue | 4 +- 8 files changed, 72 insertions(+), 92 deletions(-) diff --git a/src/views/login/platForm.vue b/src/views/login/platForm.vue index 72da4f9..f847191 100644 --- a/src/views/login/platForm.vue +++ b/src/views/login/platForm.vue @@ -2,7 +2,7 @@
{{ formData.name }}
@@ -54,12 +54,13 @@ import {
nextTick
} from 'vue'
import { useForm, useModal } from '@/hooks'
+import { config } from '@/config'
import apis from '@/apis'
const childData = ref({})
const emit = defineEmits(['ok'])
// 当前 tab key
const activeKey = ref(1)
-
+const idCardPhotos = ref([])
const { modal, showModal, hideModal, showLoading, hideLoading } = useModal()
const { formData, resetForm } = useForm()
@@ -106,6 +107,9 @@ const getBasicInfo = async () => {
if (!success) {
return
}
+
+ idCardPhotos.value = data.archive.idCardPhotos ? data.archive.idCardPhotos.map(item => config('http.apiUpload') + item) : []
+ console.log('idCardPhotos.value', idCardPhotos.value)
return data;
}
const getDisabledPersonInfo = async () => {
@@ -152,6 +156,7 @@ function handleEdit(record = {}) {
})
recordId.value = record.id
formData.value = cloneDeep(record)
+ idCardPhotos.value = record.archive.idCardPhotos ? record.archive.idCardPhotos.map(item => config('http.apiUpload') + item) : []
}
function handleOk() {
diff --git a/src/views/serverObj/serverList/index.vue b/src/views/serverObj/serverList/index.vue
index 93aca76..1a2d2ef 100644
--- a/src/views/serverObj/serverList/index.vue
+++ b/src/views/serverObj/serverList/index.vue
@@ -615,22 +615,21 @@ const detailRef = ref()
const lineOrderRef = ref()
onMounted(() => {
- searchFormData.value.serviceNodeIds = dicsStore.orgTree[0].value
- getCount(searchFormData.value.serviceNodeIds)
+ searchFormData.value.stationId = storage.local.getItem('stationId') || ''
})
getPageList()
-async function getCount(params) {
- try {
- const { success, data } = await apis.serverObj.getCount({ serviceNodeCodes: params })
- if (config('http.code.success') === success) {
- totalCount.value = data.count
- }
- } catch (error) {
+// async function getCount(params) {
+// try {
+// const { success, data } = await apis.serverObj.getCount({ serviceNodeCodes: params })
+// if (config('http.code.success') === success) {
+// totalCount.value = data.count
+// }
+// } catch (error) {
- }
+// }
-}
+// }
/**
* 获取表格数据
* @returns {Promise