Explorar el Código

新增电签页面调整

huangjn hace 3 años
padre
commit
283c11f0a1
Se han modificado 1 ficheros con 4 adiciones y 10 borrados
  1. 4 10
      src/views/certificate/lists/addList.vue

+ 4 - 10
src/views/certificate/lists/addList.vue

@@ -235,7 +235,7 @@ export default {
       form: {
         certificateType: 1,
         certificateUserName: '',
-        certificateUserName: '',//所持证书者身份证ID
+        certificateId: '',//所持证书者身份证ID
         enterpriseUnifiedCode: '',//企业统一社会信用代码
         certificateNumber: '',
         certificatePassword: '',
@@ -263,7 +263,7 @@ export default {
     }
   },
   methods: {
-    //#region 
+    //#region
     cancel () {//取消按钮
       this.$router.push('/certificate/list')
     },
@@ -275,6 +275,7 @@ export default {
             certificateUserName: this.form.certificateUserName,
             certificateNumber: this.form.certificateNumber,
             certificatePassword: this.form.certificatePassword,
+            certificateId: this.form.certificateId,
           }
           if (this.form.certificateFileUrl[0].name) {
             fromData.certificateFileUrl = await this.addFileInfo(this.form.certificateFileUrl[0].raw)
@@ -363,7 +364,6 @@ export default {
     //#region //接口
     async getById () {//获取详细信息
       const { data: res } = await getById({ id: this.$route.query.id })
-      console.log(res);
       if (res.code == 200) {
         this.form = res.data
         this.form.certificateFileUrl = [{ raw: res.data.certificateFileUrl }]
@@ -372,7 +372,6 @@ export default {
     },
     async save (da) {//新增
       const { data: res } = await save(da)
-      console.log(res);
       if (res.code == 200) {
         this.$message({
           type: 'success',
@@ -383,21 +382,18 @@ export default {
     },
     async findUserByName () { //关联用户
       const { data: res } = await findUserByName()
-      console.log(res);
       if (res.code == 200) {
         this.userData = res.data
       }
     },
     async queryRole () { //获取角色方
       const { data: res } = await queryRole()
-      console.log(res);
       if (res.code == 200) {
         this.ParticipationConstruction = res.data
       }
     },
     async queryProjectAndContract () {//获取项目和合同段
       const { data: res } = await queryProjectAndContract()
-      console.log(res);
       if (res.code == 200) {
         this.projectMeiju = res.data
       }
@@ -406,14 +402,12 @@ export default {
       let fromData = new FormData();
       fromData.append('file', file);
       const { data: res } = await addFileInfo(fromData)
-      console.log(res);
       if (res.code == 200) {
         return res.data.link
       }
     },
     async update (da) {//编辑保存接口
       const { data: res } = await update(da)
-      console.log(res);
       if (res.code == 200) {
         this.$message({
           type: 'success',
@@ -436,4 +430,4 @@ export default {
 </script>
 
 <style lang="scss" scoped>
-</style>
+</style>