|
@@ -105,7 +105,8 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</uni-forms>
|
|
|
- <view class="pdlr12 mt55" v-if="rzflag&&checkPermi(['wuYe:staffManage:add'])">
|
|
|
+ <!-- &&checkPermi(['wuYe:staffManage:add']) -->
|
|
|
+ <view class="pdlr12 mt55" v-if="rzflag">
|
|
|
<!-- <view class="rhbtn" @click="getEditFn" v-if="isdisabled">修改</view> -->
|
|
|
<view class="rhbtn" @click="getSubmit">确定</view>
|
|
|
</view>
|
|
@@ -121,7 +122,7 @@
|
|
|
import config from '@/config'
|
|
|
const userType=config.userType;
|
|
|
import {checkPermi,checkRole} from "@/utils/permission"; // 权限判断函数
|
|
|
- import {staffAdd,staffPut,staffDet,staffAddgly,staffrzDet,staffPutgly,staffglrzDet} from "@/api/work/people.js"
|
|
|
+ import {staffAdd,staffPut,staffDet,staffAddgly,staffPutgly,staffglrzDet} from "@/api/work/people.js"
|
|
|
import {getDictionaryFn} from "@/api/system/user.js"
|
|
|
import {selectValueKey,uploadIdentify} from "@/utils/common.js"
|
|
|
import wSelect from "@/people/components/w-select/w-select.vue"
|
|
@@ -191,9 +192,9 @@
|
|
|
this.rztype=e.type
|
|
|
this.rzflag=true;
|
|
|
this.datainfo.phoneNumber=this.$store.state.user.phonenumber;
|
|
|
+ this.datainfo.staffName=this.$store.state.user.nickName;
|
|
|
this.datainfo.userId=this.$store.state.user.userId;
|
|
|
- // var userId=this.$store.state.user.userId;
|
|
|
- // this.staffrzDet(userId)
|
|
|
+
|
|
|
}else{
|
|
|
var tenantId=this.$store.state.user.tenantId;
|
|
|
this.datainfo.tenantId=tenantId;
|
|
@@ -340,7 +341,7 @@
|
|
|
this.$toast("新增成功,请等待审核")
|
|
|
setTimeout(function(){
|
|
|
uni.$emit("refStaffList")
|
|
|
- var initFace='N';
|
|
|
+ var initFace='';
|
|
|
that.$store.dispatch('checkInitFace', initFace).then(() => {
|
|
|
|
|
|
})
|
|
@@ -373,7 +374,7 @@
|
|
|
this.$toast("修改成功")
|
|
|
setTimeout(function(){
|
|
|
uni.$emit("refStaffList")
|
|
|
- var initFace='N';
|
|
|
+ var initFace='';
|
|
|
that.$store.dispatch('checkInitFace', initFace).then(() => {
|
|
|
|
|
|
})
|
|
@@ -428,19 +429,6 @@
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
- // 认证信息详情 ,admin,首页切换到幸福里,修改
|
|
|
- staffrzDet(id){
|
|
|
- staffrzDet(id).then(res=>{
|
|
|
- if(res.code==200&&res.data){
|
|
|
- if(this.rztype=='rzadd'){
|
|
|
- this.datainfo=res.data
|
|
|
- }else{
|
|
|
- this.ptype='edit';
|
|
|
- this.datainfo=res.data;
|
|
|
- }
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
// 头像
|
|
|
getPreview(url) {
|
|
|
var newArr=[];
|