浏览代码

fix: PC留资报错问题

cuiyalong 3 年之前
父节点
当前提交
073f3feb27

+ 1 - 1
src/web/staticres/common-module/pc-dialog/js/leave-info-dialog.js

@@ -497,7 +497,7 @@ var vm = new Vue({
             _this.form.phone = res.data.phone ? res.data.phone : ''
             _this.form.phone = res.data.phone ? res.data.phone : ''
             _this.form.mail = res.data.mail ? res.data.mail : ''
             _this.form.mail = res.data.mail ? res.data.mail : ''
             _this.form.companyName = res.data.company ? res.data.company : ''
             _this.form.companyName = res.data.company ? res.data.company : ''
-            _this.form.branch = res.data.branch
+            _this.form.branch = res.data.branch || ''
             if (res.data.position) {
             if (res.data.position) {
               if (jobJson.indexOf(res.data.position) == -1) {
               if (jobJson.indexOf(res.data.position) == -1) {
                 // _this.form.job = '其他'
                 // _this.form.job = '其他'

+ 1 - 1
src/web/staticres/frontRouter/pc/solution/js/pc-collect-solution-info.js

@@ -379,7 +379,7 @@ var vmSolution = new Vue({
             _this.form.name = res.data.name ? res.data.name : ''
             _this.form.name = res.data.name ? res.data.name : ''
             _this.form.phone = res.data.phone ? res.data.phone : '' 
             _this.form.phone = res.data.phone ? res.data.phone : '' 
             _this.form.companyName = res.data.company ? res.data.company : ''
             _this.form.companyName = res.data.company ? res.data.company : ''
-            _this.form.branch = res.data.branch
+            _this.form.branch = res.data.branch || ''
             if (res.data.position) {
             if (res.data.position) {
               if (jobJson.indexOf(res.data.position) == -1) {
               if (jobJson.indexOf(res.data.position) == -1) {
                 // _this.form.job = '其他'
                 // _this.form.job = '其他'

+ 1 - 1
src/web/staticres/js/pc-collect-bid-info.js

@@ -407,7 +407,7 @@ var vmbid = new Vue({
             _this.form.name = res.data.name ? res.data.name : ''
             _this.form.name = res.data.name ? res.data.name : ''
             _this.form.phone = res.data.phone ? res.data.phone : '' 
             _this.form.phone = res.data.phone ? res.data.phone : '' 
             _this.form.companyName = res.data.company ? res.data.company : ''
             _this.form.companyName = res.data.company ? res.data.company : ''
-            _this.form.branch = res.data.branch
+            _this.form.branch = res.data.branch || ''
             if (res.data.position) {
             if (res.data.position) {
               if (jobJson.indexOf(res.data.position) == -1) {
               if (jobJson.indexOf(res.data.position) == -1) {
                 // _this.form.job = '其他'
                 // _this.form.job = '其他'

+ 1 - 1
src/web/staticres/js/pc-collect-user-info.js

@@ -655,7 +655,7 @@ var vm = new Vue({
             _this.form.business = res.data.workScope ? res.data.workScope : ''
             _this.form.business = res.data.workScope ? res.data.workScope : ''
             _this.form.need = res.data.partnerNeeds ? res.data.partnerNeeds : ''
             _this.form.need = res.data.partnerNeeds ? res.data.partnerNeeds : ''
             _this.form.agreeChecked = res.data.agree == undefined ?  true : res.data.agree
             _this.form.agreeChecked = res.data.agree == undefined ?  true : res.data.agree
-            _this.form.branch = res.data.branch
+            _this.form.branch = res.data.branch || ''
           }
           }
         }
         }
       })
       })