This commit is contained in:
jiask 2025-12-08 10:52:31 +08:00
parent be8cd0e6e7
commit ab69ad8ef9
4 changed files with 93 additions and 59 deletions

View File

@ -164,6 +164,18 @@ export function getSysUserListApi(data) {
params:data params:data
}) })
} }
export function getApplyUserListApi(data) {
return request({
url: '/certificate/certificate_check/certificateCheck/applyUserlist',
method: 'get',
headers: {
//"merchant-id":"378915229716713472",
},
params:data
})
}
export function getDevicelistApi(data) { export function getDevicelistApi(data) {
return request({ return request({
url: '/certificate/certificate_returnmanage/certificateSave/devicelist', url: '/certificate/certificate_returnmanage/certificateSave/devicelist',

View File

@ -425,7 +425,7 @@
// //
open: false, open: false,
checked: false, checked: false,
isCreateFlage:true, isCreateFlage:false,
userNameFlage:false, userNameFlage:false,
certificateNos:[], certificateNos:[],
userIds:[], userIds:[],

View File

@ -123,6 +123,14 @@
<!-- 添加或修改参数配置对话框 --> <!-- 添加或修改参数配置对话框 -->
<el-dialog :title="title+''" :visible.sync="open" width="900px" append-to-body> <el-dialog :title="title+''" :visible.sync="open" width="900px" append-to-body>
<el-form ref="baseForm" :model="baseForm" :rules="baseFormRules" label-width="120px" style="height: 650px;overflow-y: auto;"> <el-form ref="baseForm" :model="baseForm" :rules="baseFormRules" label-width="120px" style="height: 650px;overflow-y: auto;">
<el-row>
<el-form-item label-width="120px" label="申请类型" prop="applyType">
<el-radio-group v-model="baseForm.applyType" size="small">
<el-radio @change="handleRadioChange('1')" label="1">存证</el-radio>
<el-radio @change="handleRadioChange('2')" label="2">取证</el-radio>
</el-radio-group>
</el-form-item>
</el-row>
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="申请人" prop="name"> <el-form-item label="申请人" prop="name">
@ -275,7 +283,7 @@
<el-row> <el-row>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="手机号码" prop="phone"> <el-form-item label="手机号码" prop="phone">
<el-input style="width: 100%;background-color:#DAE1EE;" v-model="baseForm2.phone" readonly="true" maxlength="30" clearable/> <el-input style="width: 100%;background-color:#DAE1EE;" v-model="baseForm2.phone" readonly maxlength="30" clearable/>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
@ -302,7 +310,7 @@
<script> <script>
import { getUser } from '@/api/system/user' import { getUser } from '@/api/system/user'
import { getCertificateApplyListPageApi,addCertificateApplyApi, editCertificateApplyApi, import { getCertificateApplyListPageApi,addCertificateApplyApi, editCertificateApplyApi,
delCertificateApplyApi,getSysUserListApi,addCertificateCheckApi } from "@/api/certificateManage/index"; delCertificateApplyApi,getSysUserListApi,getApplyUserListApi,addCertificateCheckApi } from "@/api/certificateManage/index";
import base64 from 'base-64'; import base64 from 'base-64';
import { getToken } from '@/utils/auth' import { getToken } from '@/utils/auth'
import { downloadFileByUrl } from '@/utils/download' import { downloadFileByUrl } from '@/utils/download'
@ -365,6 +373,7 @@
startTime:"", startTime:"",
startTime:"", startTime:"",
endTime:"", endTime:"",
applyType:"1",
dateRange:[] dateRange:[]
}, },
isView:false, isView:false,
@ -572,10 +581,21 @@
this.open = false; this.open = false;
this.reset(); this.reset();
}, },
handleRadioChange(val){
// const param={"applyType":val}
// getApplyUserListApi(param).then(response => {
// console.log("response",response);
// this.allUserList=response;
// this.$set(this.baseForm2,"userId",this.baseForm.userId)
// this.$set(this.baseForm2,"phone",this.baseForm.phone)
// });
},
// //
handleSelect(){ handleSelect(){
this.openSelectUser = true; this.openSelectUser = true;
getSysUserListApi({}).then(response => { console.log("this.baseForm",this.baseForm);
const param={"applyType":this.baseForm.applyType}
getApplyUserListApi(param).then(response => {
console.log("response",response); console.log("response",response);
this.allUserList=response; this.allUserList=response;
this.$set(this.baseForm2,"userId",this.baseForm.userId) this.$set(this.baseForm2,"userId",this.baseForm.userId)

View File

@ -145,7 +145,7 @@
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="功能接口" prop="funImp"> <el-form-item label="功能接口" prop="funImp">
<el-input v-model="baseForm.funImp" placeholder="请输入功能接口" maxlength="30" clearable/> <el-input v-model="baseForm.funImp" placeholder="http://xxx.xxx.xxx:8088/externaltask/accessfunction" maxlength="30" clearable/>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
@ -254,7 +254,8 @@
deviceAddr:"", deviceAddr:"",
deviceMac:"", deviceMac:"",
deviceGateway:"", deviceGateway:"",
devicePwd:"" devicePwd:"",
funImp:"http://xxx.xxx.xxx:8088/externaltask/accessfunction"
}, },
// //
baseFormRules: { baseFormRules: {
@ -377,7 +378,8 @@
deviceAddr:"", deviceAddr:"",
deviceMac:"", deviceMac:"",
deviceGateway:"", deviceGateway:"",
devicePwd:"" devicePwd:"",
funImp:"http://xxx.xxx.xxx:8088/externaltask/accessfunction"
}; };
this.resetForm("baseForm"); this.resetForm("baseForm");
}, },