diff --git a/policeManagement/.env.development b/policeManagement/.env.development index 6b84780..ee79f73 100644 --- a/policeManagement/.env.development +++ b/policeManagement/.env.development @@ -21,4 +21,8 @@ VITE_APP_RSA_PUBLIC_KEY=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDJps/EXxxSpEM1Ix4R # 高德 lz VITE_APP_GAODE_KEY=f379a3f860a68d7438526275d6a94b05 VITE_APP_GAODE_VERSION=2.0 -VITE_APP_SECURITY_JS_CODE=432125a0f8d8cad2dac38b77d6f6728f \ No newline at end of file +VITE_APP_SECURITY_JS_CODE=432125a0f8d8cad2dac38b77d6f6728f + +# minio +VITE_APP_MINIO_URL=http://118.253.177.137:9000 +VITE_APP_MINIO_BUCKET=police-security-dev \ No newline at end of file diff --git a/policeManagement/.env.production b/policeManagement/.env.production index 3d56736..1b3fd28 100644 --- a/policeManagement/.env.production +++ b/policeManagement/.env.production @@ -12,4 +12,8 @@ VITE_APP_RSA_PUBLIC_KEY=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCpu1C3JHZ+Ng/eVVCZ # 高德 VITE_APP_GAODE_KEY=f379a3f860a68d7438526275d6a94b05 VITE_APP_GAODE_VERSION=2.0 -VITE_APP_SECURITY_JS_CODE=432125a0f8d8cad2dac38b77d6f6728f \ No newline at end of file +VITE_APP_SECURITY_JS_CODE=432125a0f8d8cad2dac38b77d6f6728f + +# minio +VITE_APP_MINIO_URL=https://www.hnjinglian.cn:9002 +VITE_APP_MINIO_BUCKET=police-security \ No newline at end of file diff --git a/policeManagement/components.d.ts b/policeManagement/components.d.ts index f757bec..2a4c0ca 100644 --- a/policeManagement/components.d.ts +++ b/policeManagement/components.d.ts @@ -34,6 +34,7 @@ declare module 'vue' { APagination: typeof import('ant-design-vue/es')['Pagination'] APopconfirm: typeof import('ant-design-vue/es')['Popconfirm'] APopover: typeof import('ant-design-vue/es')['Popover'] + AProgress: typeof import('ant-design-vue/es')['Progress'] ARadioGroup: typeof import('ant-design-vue/es')['RadioGroup'] ARangePicker: typeof import('ant-design-vue/es')['RangePicker'] ARow: typeof import('ant-design-vue/es')['Row'] diff --git a/policeManagement/index.html b/policeManagement/index.html index d821b0d..99cdddc 100644 --- a/policeManagement/index.html +++ b/policeManagement/index.html @@ -1,15 +1,18 @@ + - - - + + + - Vite + Vue + TS + 公安后台 + -
- +
+ - + + \ No newline at end of file diff --git a/policeManagement/src/components/upload/SingleImageFileUpload.vue b/policeManagement/src/components/upload/SingleImageFileUpload.vue index da2f465..e15f0a6 100644 --- a/policeManagement/src/components/upload/SingleImageFileUpload.vue +++ b/policeManagement/src/components/upload/SingleImageFileUpload.vue @@ -1,8 +1,9 @@ diff --git a/policeManagement/src/views/query/index.tsx b/policeManagement/src/views/query/index.tsx index 43e5a76..2815e23 100644 --- a/policeManagement/src/views/query/index.tsx +++ b/policeManagement/src/views/query/index.tsx @@ -14,6 +14,7 @@ import FormProMax from '@/components/form/FormProMax.vue' import { debounce } from 'lodash-es' import { SearchOutlined } from '@ant-design/icons-vue' import axios from 'axios' +import SingleImageFileUpload from '@/components/upload/SingleImageFileUpload.vue' type _TableProps = TableProMaxProps const _formParams = reactive({ @@ -78,8 +79,14 @@ const saveOrUpdateEnterprisesUnit = (callback: Function, params, type: string) = } const _formRef = ref(null) - + const uploadFileRef = ref(null) const _formOptions = ref>({ + photo: { + type: 'custom', + label: '头像', + customRender: () => , + }, + name: { type: 'input', label: '姓名', @@ -274,7 +281,7 @@ export const showEnterprisesUnit = (record_) => { onClick={() => deleteDataModal(record.name, async () => { const resp = await api.delete('/m2/eu/del_security_user_id', { - securityUserId: record?.securityUnitId, + securityUserId: record?.snowFlakeId, }) message.success(resp.message) await _tableRef.value?.requestGetTableData()