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