|
@ -67,21 +67,17 @@ |
|
|
show:false, |
|
|
show:false, |
|
|
indList: [], |
|
|
indList: [], |
|
|
form: { |
|
|
form: { |
|
|
|
|
|
id:"", |
|
|
role:1, |
|
|
role:1, |
|
|
name: 'jerryxiao', |
|
|
|
|
|
|
|
|
name: '', |
|
|
password: '', |
|
|
password: '', |
|
|
mobile: '13189698114', |
|
|
|
|
|
company:'小小公司', |
|
|
|
|
|
|
|
|
mobile: '', |
|
|
|
|
|
company:'', |
|
|
idCard:'', |
|
|
idCard:'', |
|
|
address:'湖南长沙岳麓区', |
|
|
|
|
|
industryId:'1865294357074157570', |
|
|
|
|
|
industryName:'建筑', |
|
|
|
|
|
businessLicense: '', |
|
|
|
|
|
businessLicenseFile:[ |
|
|
|
|
|
{ |
|
|
|
|
|
url:"https://tennis-oss.xzaiyp.top/2024-12-22/cf84422d-dcf7-4efa-82e7-371454eafbee.png" |
|
|
|
|
|
} |
|
|
|
|
|
] |
|
|
|
|
|
|
|
|
address:'', |
|
|
|
|
|
industryId:'', |
|
|
|
|
|
industryName:'', |
|
|
|
|
|
businessLicenseFile:[] |
|
|
}, |
|
|
}, |
|
|
rules: { |
|
|
rules: { |
|
|
name: [{ |
|
|
name: [{ |
|
@ -146,24 +142,44 @@ |
|
|
}, |
|
|
}, |
|
|
watch: { |
|
|
watch: { |
|
|
|
|
|
|
|
|
fileList(newValue, oldValue) { |
|
|
|
|
|
if (newValue.length > 0) { |
|
|
|
|
|
this.form.file = '有' |
|
|
|
|
|
} else { |
|
|
|
|
|
this.form.file = '' |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
}, |
|
|
onReady() { |
|
|
onReady() { |
|
|
this.onIndustryList() |
|
|
this.onIndustryList() |
|
|
this.$refs.uForm.setRules(this.rules) |
|
|
this.$refs.uForm.setRules(this.rules) |
|
|
}, |
|
|
}, |
|
|
|
|
|
mounted() { |
|
|
|
|
|
let company = uni.getStorageSync("company") |
|
|
|
|
|
if(company){ |
|
|
|
|
|
this.form.id = company.id |
|
|
|
|
|
this.form.name = company.userName |
|
|
|
|
|
this.form.mobile = company.phone |
|
|
|
|
|
this.form.company = company.companyName |
|
|
|
|
|
this.form.address = company.companyAddress |
|
|
|
|
|
this.form.industryId = company.industryId |
|
|
|
|
|
this.form.industryName = company.industryName |
|
|
|
|
|
this.form.businessLicenseFile = this.stringToKeyValueArray(company.businessLicense) |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
stringToKeyValueArray(str, delimiter1 = ',') { |
|
|
|
|
|
if(str){ |
|
|
|
|
|
let arro = str.split(delimiter1); |
|
|
|
|
|
let arr = []; |
|
|
|
|
|
arro.forEach(items=>{ |
|
|
|
|
|
let obj = {}; |
|
|
|
|
|
obj["url"] = items |
|
|
|
|
|
arr.push(obj) |
|
|
|
|
|
}) |
|
|
|
|
|
console.info(arr) |
|
|
|
|
|
return arr |
|
|
|
|
|
}else{ |
|
|
|
|
|
return [] |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
handleIndChange(){ |
|
|
handleIndChange(){ |
|
|
this.show = true |
|
|
this.show = true |
|
|
}, |
|
|
}, |
|
|
selectIndClick(event){ |
|
|
selectIndClick(event){ |
|
|
console.info("selectIndClick",event) |
|
|
|
|
|
this.form.industryId = event.id |
|
|
this.form.industryId = event.id |
|
|
this.form.industryName = event.name |
|
|
this.form.industryName = event.name |
|
|
this.show = false |
|
|
this.show = false |
|
@ -183,7 +199,7 @@ |
|
|
role:that.form.role, |
|
|
role:that.form.role, |
|
|
phone:that.form.mobile, |
|
|
phone:that.form.mobile, |
|
|
companyName:that.form.company, |
|
|
companyName:that.form.company, |
|
|
companyAddress:that.form.companyAddress, |
|
|
|
|
|
|
|
|
companyAddress:that.form.address, |
|
|
industryId:that.form.industryId, |
|
|
industryId:that.form.industryId, |
|
|
industryName:that.form.industryName, |
|
|
industryName:that.form.industryName, |
|
|
businessLicense:that.form.businessLicenseFile.map(item => item.url).join(','), |
|
|
businessLicense:that.form.businessLicenseFile.map(item => item.url).join(','), |
|
|