|
|
@@ -86,7 +86,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
- import {postAction} from '@/api/manage'
|
|
|
+ import {postAction,getAction} from '@/api/manage'
|
|
|
import {staffRegister} from '@/api/index'
|
|
|
import {Button, Cell, CellGroup, Field, Toast, Col, Row, Dialog} from 'vant';
|
|
|
import {getUrlParams} from '@/utils/util';
|
|
|
@@ -127,6 +127,7 @@
|
|
|
},
|
|
|
url: {
|
|
|
getSmsCaptcha: '/f/api/login/getAuthCode',
|
|
|
+ getenterpriseName: '/f/api/punchClock/getEnterPriseName',
|
|
|
}
|
|
|
};
|
|
|
},
|
|
|
@@ -134,7 +135,8 @@
|
|
|
created() {
|
|
|
const str = decodeURIComponent(window.location.href);
|
|
|
this.enterprise_id = getUrlParams(str).enterprise_id;
|
|
|
- this.enterprise_name = getUrlParams(str).enterprise_name;
|
|
|
+ //获取企业名称
|
|
|
+ this.getName();
|
|
|
//员工已登录,跳转员工首页
|
|
|
if (getStore('staff')) {
|
|
|
setStore('role', 'staff');
|
|
|
@@ -238,6 +240,17 @@
|
|
|
},
|
|
|
join() {
|
|
|
this.$router.push({name: 'join'})
|
|
|
+ },
|
|
|
+ getName(){
|
|
|
+ let params = {};
|
|
|
+ params.enterprise_id = this.enterprise_id;
|
|
|
+ getAction(this.url.getenterpriseName,params)
|
|
|
+ .then(data => {
|
|
|
+ this.enterprise_name = data.data.dkEnterprise.enterpriseName;
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ Toast('信息获取失败,请刷新后重试')
|
|
|
+ });
|
|
|
}
|
|
|
}
|
|
|
}
|