浏览代码

创建用户时图片大小超过2MB显示的提示框去掉

Jing 1 天之前
父节点
当前提交
1fc61c34b7

+ 8 - 8
src/layout/components/Navbar.vue

@@ -240,7 +240,7 @@
                     <img src="@/assets/public/nav/job.png">
                   </div>
                   <div class="noticeTabsDataItemContent">
-                    <div class="noticeNewsTitle">{{ item.user_name + ':' + item.website_name + '-' + '发布求职信息了' }}</div>
+                    <div class="noticeNewsTitle">{{ item.user_name + ':' + item.website_name + '-' + '发布了求职信息' }}</div>
                     <div class="noticeNewsTime">{{ item.updated_at }}</div>
                   </div>
                 </div>
@@ -264,7 +264,7 @@
                     <img src="@/assets/public/nav/job.png">
                   </div>
                   <div class="noticeTabsDataItemContent">
-                    <div class="noticeNewsTitle">{{ item.business_name + ':' + item.website_name + ' ' + '关注了' +
+                    <div class="noticeNewsTitle">{{ item.business_name + '' + item.website_name + ' ' + '关注了' +
                       item.user_name
                       + '的简历' }}</div>
                     <div class="noticeNewsTime">{{ item.updated_at }}</div>
@@ -291,7 +291,7 @@
                     <img src="@/assets/public/nav/job.png">
                   </div>
                   <div class="noticeTabsDataItemContent">
-                    <div class="noticeNewsTitle">{{ item.user_name + ':' + item.website_name + ' ' + '-' + item.title
+                    <div class="noticeNewsTitle">{{ item.user_name + '' + item.website_name + ' ' + '-' + item.title
                       + '岗位' }}
                     </div>
                     <div class="noticeNewsTime">{{ item.updated_at }}</div>
@@ -319,7 +319,7 @@
                   </div>
                   <div class="noticeTabsDataItemContent">
 
-                    <div class="noticeNewsTitle">{{ item.user_name + ': 求职了' + '-' + item.business_name +
+                    <div class="noticeNewsTitle">{{ item.user_name + ' 求职了' + '-' + item.business_name +
                       '-' +
                       item.job_name }}</div>
                     <div class="noticeNewsTime">{{ item.updated_at }}</div>
@@ -346,7 +346,7 @@
                     <img src="@/assets/public/nav/job.png">
                   </div>
                   <div class="noticeTabsDataItemContent">
-                    <div class="noticeNewsTitle">{{ item.user_name + ':' + item.website_name + '-' + '发布求职信息了' }}</div>
+                    <div class="noticeNewsTitle">{{ item.user_name + ':' + item.website_name + '-' + '发布了求职信息' }}</div>
                     <div class="noticeNewsTime">{{ item.updated_at }}</div>
                   </div>
                 </div>
@@ -370,7 +370,7 @@
                     <img src="@/assets/public/nav/job.png">
                   </div>
                   <div class="noticeTabsDataItemContent">
-                    <div class="noticeNewsTitle">{{ item.business_name + ':' + item.website_name + ' ' + '关注了' +
+                    <div class="noticeNewsTitle">{{ item.business_name + '' + item.website_name + ' ' + '关注了' +
                       item.user_name
                       + '的简历' }}</div>
                     <div class="noticeNewsTime">{{ item.updated_at }}</div>
@@ -397,7 +397,7 @@
                     <img src="@/assets/public/nav/job.png">
                   </div>
                   <div class="noticeTabsDataItemContent">
-                    <div class="noticeNewsTitle">{{ item.user_name + ':' + item.website_name + ' ' + '-' + item.title
+                    <div class="noticeNewsTitle">{{ item.user_name + '' + item.website_name + ' ' + '-' + item.title
                       + '岗位' }}
                     </div>
                     <div class="noticeNewsTime">{{ item.updated_at }}</div>
@@ -425,7 +425,7 @@
                   </div>
                   <div class="noticeTabsDataItemContent">
 
-                    <div class="noticeNewsTitle">{{ item.user_name + ': 求职了' + '-' + item.business_name +
+                    <div class="noticeNewsTitle">{{ item.user_name + ' 求职了' + '-' + item.business_name +
                       '-' +
                       item.job_name }}</div>
                     <div class="noticeNewsTime">{{ item.updated_at }}</div>

+ 1 - 1
src/views/role/components/userDefault.vue

@@ -452,7 +452,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() {

+ 35 - 30
src/views/role/components/userEnterprise.vue

@@ -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>

+ 1 - 1
src/views/role/components/userInvestigate.vue

@@ -469,7 +469,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() {

+ 1 - 1
src/views/role/components/userPolitician.vue

@@ -446,7 +446,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() {