|
|
@@ -424,6 +424,12 @@
|
|
|
},
|
|
|
mounted() {
|
|
|
this.companyId = this.$store.state.companyId ? this.$store.state.companyId : localStorage.getItem('companyId');
|
|
|
+ if(!this.companyId){
|
|
|
+ this.getCompany();
|
|
|
+ }else{
|
|
|
+ //tbas
|
|
|
+ this.getTabsList();
|
|
|
+ }
|
|
|
let inviterCode = this.$route.query.inviterCode
|
|
|
if (inviterCode) {
|
|
|
localStorage.setItem('inviterCode', inviterCode)
|
|
|
@@ -435,18 +441,23 @@
|
|
|
this.getAppDown()
|
|
|
//岗位分类
|
|
|
this.getJobTypeList();
|
|
|
- //tbas
|
|
|
- this.getTabsList();
|
|
|
//banner
|
|
|
this.getBannerList();
|
|
|
- //所有城市的列表
|
|
|
- // this.getAllCityList();
|
|
|
this.getschoolList();
|
|
|
this.getjyList();
|
|
|
this.getMoneyList();
|
|
|
|
|
|
},
|
|
|
methods: {
|
|
|
+ getCompany() {
|
|
|
+ this.$Request.get("/app/company/selectCompanyByUserId").then(res => {
|
|
|
+ if (res.code == 0) {
|
|
|
+ this.$store.commit('SET_COMPANY_ID', res.data.companyId)
|
|
|
+ localStorage.setItem('companyId', res.data.companyId);
|
|
|
+ this.getTabsList();
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
// 点击“+”打开行业标签弹窗
|
|
|
openIndustryDialog() {
|
|
|
// 打开弹窗
|
|
|
@@ -536,7 +547,7 @@
|
|
|
},
|
|
|
getIndustryList() {
|
|
|
let data = {
|
|
|
- ruleClassifyId: this.tabs[this.tabsCurr].ruleClassifyId
|
|
|
+ ruleClassifyId: this.tabs[this.tabsCurr]?.ruleClassifyId
|
|
|
};
|
|
|
this.$Request.get('/app/userFirst/getPostSkill', { params: data }).then(res => {
|
|
|
if (res.code === 0) {
|
|
|
@@ -789,7 +800,7 @@
|
|
|
//获取发布的岗位
|
|
|
getTabsList() {
|
|
|
let data = {
|
|
|
- companyId: this.companyId
|
|
|
+ companyId: (this.$store.state.companyId ? this.$store.state.companyId : localStorage.getItem('companyId')) || this.companyId
|
|
|
}
|
|
|
this.$Request.get('/app/postPush/getCompanyClassify', {
|
|
|
params: data
|