diff --git a/yanzhu-ui-vue3/src/main.js b/yanzhu-ui-vue3/src/main.js
index be73346b..beaba41d 100644
--- a/yanzhu-ui-vue3/src/main.js
+++ b/yanzhu-ui-vue3/src/main.js
@@ -25,6 +25,7 @@ import './permission' // permission control
import { useDict } from '@/utils/dict'
import { parseTime, resetForm, addDateRange, formatDuraDate, formatDuraTime, handleTree, selectDictLabel, selectDictLabels } from '@/utils/ruoyi'
+import request from '@/utils/request'
// 分页组件
import Pagination from '@/components/Pagination'
@@ -70,6 +71,8 @@ app.config.globalProperties.$tryToJson=(str,df)=>{
}
}
app.config.globalProperties.$dt=dayjs;
+app.config.globalProperties.$http=request;
+
// 全局组件挂载
app.component('DictTag', DictTag)
app.component('Pagination', Pagination)
diff --git a/yanzhu-ui-vue3/src/views/manage/proProjectInfoSubdeptsUsers/index.vue b/yanzhu-ui-vue3/src/views/manage/proProjectInfoSubdeptsUsers/index.vue
index 1daf977a..21c63e5e 100644
--- a/yanzhu-ui-vue3/src/views/manage/proProjectInfoSubdeptsUsers/index.vue
+++ b/yanzhu-ui-vue3/src/views/manage/proProjectInfoSubdeptsUsers/index.vue
@@ -245,16 +245,16 @@
+ @change="doImageUpload(1)" />
+ @change="doImageUpload(2)" />
-
+
@@ -382,9 +382,48 @@ function handleBatchEnterState(state) {
}
//图片上传
-function doImageUpload() {
+function doImageUpload(type) {
setTimeout(() => {
+ let url='';
form.value.identificationCard = form.value.certificatePhoto1 && form.value.certificatePhoto2 && form.value.faceImage ? "yes" : ''
+ if(type==1){
+ url=form.value.certificatePhoto1;
+ if(url){
+ url=location.origin+url;
+ //url="http://62.234.3.186/statics/2025/01/19/4491f170cd1609142f9a6f097cbf681f_20250119000046A004.jpg"
+ proxy.$http.get(`/system/tools/id/front?url=${url}`).then(d=>{
+ form.value.userName=form.value.userName||d.data.name||'';
+ form.value.certificateCode=form.value.certificateCode||d.data.cardId||'';
+ form.value.address=form.value.address||d.data.address||'';
+ let nation=d.data.nation||"";
+ if(nation){
+ let tmps= data.nationOpts.filter(it=>it.indexOf(nation)>=0);
+ if(tmps.length>0){
+ form.value.nation=form.value.nation||tmps[0]||'';
+ }
+ }
+ let sex=d.data.sex||'';
+ if(sex){
+ form.value.sex=form.value.sex||(sex=='男'?0:1);
+ }
+ let birthDay=d.data.birthday;
+ if(birthDay && birthDay.length==8){
+ birthDay=birthDay.substr(0,4)+"-"+birthDay.substr(4,2)+"-"+birthDay.substr(6);
+ form.value.birthDay=form.value.birthDay||birthDay;
+ }
+
+ });
+ }
+ }else if(type==2){
+ url=form.value.certificatePhoto2;
+ if(url){
+ url=location.origin+url;
+ //url="https://gss0.baidu.com/9fo3dSag_xI4khGko9WTAnF6hhy/zhidao/pic/item/a8014c086e061d95103a068779f40ad162d9ca14.jpg"
+ proxy.$http.get(`/system/tools/id/back?url=${url}`).then(d=>{
+ form.value.nativePlace=form.value.nativePlace||d.data.issuing||'';
+ });
+ }
+ }
}, 800);
}