|
@@ -69,8 +69,8 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="公司简介:" prop="introduction" class="custom-align-right">
|
|
|
- <el-input v-model="form.introduction" autocomplete="off" type="textarea" :rows="2"
|
|
|
- placeholder="请输入公司简介"> </el-input>
|
|
|
+ <el-input v-model="form.introduction" autocomplete="off" type="textarea" :rows="2" placeholder="请输入公司简介">
|
|
|
+ </el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="公司网址:" prop="company_url" class="custom-align-right">
|
|
|
<el-input v-model="form.company_url" autocomplete="off" placeholder="请输入公司网址"></el-input>
|
|
@@ -199,9 +199,9 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
const validateArray = (rule, value, callback) => {
|
|
|
- if(value == undefined){
|
|
|
+ if (value == undefined) {
|
|
|
callback(new Error('该项不能为空!'))
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
if (value.length == 0 || value == undefined) {
|
|
|
callback(new Error('该项不能为空!'))
|
|
|
} else {
|
|
@@ -242,9 +242,9 @@ export default {
|
|
|
pageSize: 666666,//一共多少条
|
|
|
name: "",
|
|
|
},
|
|
|
- companysize_array: [],//公司规模
|
|
|
- companynature_array: [],//公司性质
|
|
|
- company_hyid_array: [],//行业分类
|
|
|
+ companysize_array: [],//公司规模
|
|
|
+ companynature_array: [],//公司性质
|
|
|
+ company_hyid_array: [],//行业分类
|
|
|
form: {
|
|
|
websiteTag_arr_id: [],//站点标识下拉id only
|
|
|
websiteTag_reg: [],
|
|
@@ -276,7 +276,7 @@ export default {
|
|
|
company_nature: "",//公司性质
|
|
|
introduction: "",//公司简介
|
|
|
company_url: "",//公司网址
|
|
|
-
|
|
|
+
|
|
|
position: "",//负责人职务
|
|
|
legal_person_real_name: "",//法人姓名
|
|
|
legal_person_mobile: "",//法人手机号
|
|
@@ -407,28 +407,28 @@ export default {
|
|
|
|
|
|
//1.5更新详细地址
|
|
|
update_address_arr_id(value) {
|
|
|
- console.log("详细地址ID已更新:", value);
|
|
|
- this.form.address_arr_id = value;
|
|
|
- },
|
|
|
- // 1.6所属行业
|
|
|
- getCompanyHyid() {
|
|
|
- this.$store.dispatch('news/getIndustry').then(res => {
|
|
|
- this.company_hyid_array = res.data;
|
|
|
+ console.log("详细地址ID已更新:", value);
|
|
|
+ this.form.address_arr_id = value;
|
|
|
+ },
|
|
|
+ // 1.6所属行业
|
|
|
+ getCompanyHyid() {
|
|
|
+ this.$store.dispatch('news/getIndustry').then(res => {
|
|
|
+ this.company_hyid_array = res.data;
|
|
|
console.log(this.company_hyid_array); // 打印结果以确认是否正确获取了行业数据
|
|
|
- })
|
|
|
- },
|
|
|
- // 1.7公司规模
|
|
|
- getCompanySize() {
|
|
|
- this.$store.dispatch('news/getCompanySize').then(res => {
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 1.7公司规模
|
|
|
+ getCompanySize() {
|
|
|
+ this.$store.dispatch('news/getCompanySize').then(res => {
|
|
|
this.companysize_array = res.data;
|
|
|
- })
|
|
|
- },
|
|
|
- // 1.8公司性质
|
|
|
- getCompanyNature() {
|
|
|
- this.$store.dispatch('news/getCompanyNature').then(res => {
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 1.8公司性质
|
|
|
+ getCompanyNature() {
|
|
|
+ this.$store.dispatch('news/getCompanyNature').then(res => {
|
|
|
this.companynature_array = res.data;
|
|
|
- })
|
|
|
- },
|
|
|
+ })
|
|
|
+ },
|
|
|
//1.5重置表单
|
|
|
clearData() {
|
|
|
|
|
@@ -445,7 +445,7 @@ export default {
|
|
|
for (let item of fileList) {
|
|
|
this.form.other = this.form.other.filter(item => item !== file.url);
|
|
|
}
|
|
|
- return this.$confirm(`确定移除 ${file.name}?`);
|
|
|
+ // return this.$confirm(`确定移除 ${file.name}?`);
|
|
|
},
|
|
|
//获取token
|
|
|
getTokenFromCookie() {
|
|
@@ -563,7 +563,10 @@ export default {
|
|
|
//获得用户信息
|
|
|
getUserInfo() {
|
|
|
this.$store.dispatch('userMember/getUser', { id: this.editId }).then(res => {
|
|
|
- console.log(res);
|
|
|
+ console.log('res_res',res);
|
|
|
+ console.log('res_res_data',typeof(res.data.company_nature));
|
|
|
+
|
|
|
+
|
|
|
//回显数据
|
|
|
this.form.type_id = res.data.type_id;
|
|
|
this.form.user_name = res.data.user_name;
|
|
@@ -582,7 +585,7 @@ export default {
|
|
|
this.form.company_nature = res.data.company_nature;
|
|
|
this.form.introduction = res.data.introduction;
|
|
|
this.form.company_url = res.data.company_url;
|
|
|
-
|
|
|
+
|
|
|
this.form.legal_person_id_card = res.data.legal_person_id_card;
|
|
|
this.form.legal_person_mobile = res.data.legal_person_mobile;
|
|
|
this.form.legal_person_real_name = res.data.legal_person_real_name;
|
|
@@ -753,6 +756,8 @@ export default {
|
|
|
this.setHeaders(); // 在组件挂载时设置 headers
|
|
|
//获取所有网站列表
|
|
|
this.getWebsiteList();
|
|
|
+ // this.getUserInfo();
|
|
|
+
|
|
|
}
|
|
|
};
|
|
|
</script>
|