Browse Source

去掉workShop

master
陈裕财 4 years ago
parent
commit
68e9d21016
  1. 26
      src/views/layout/components/Navbar.vue
  2. 8
      src/views/mdp/arc/category/CategoryTree.vue
  3. 2
      src/views/mdp/arc/tag/TagDialog.vue
  4. 18
      src/views/mdp/arc/tag/TagMng.vue
  5. 20
      src/views/mdp/sms/SendSms.vue
  6. 16
      src/views/xm/core/skill/skillMng.vue
  7. 2
      src/views/xm/core/xmGroup/XmGroupDialog.vue
  8. 2
      src/views/xm/core/xmGroup/XmGroupSelect.vue

26
src/views/layout/components/Navbar.vue

@ -9,13 +9,13 @@
<div class="right-menu">
<!--
<div class="hidden-sm-and-down" style="float:left;display:flex;align-items: center;height:100%;">
<el-tooltip v-if="workShop.locationName" class="item" effect="dark" :content="workShop.branchId+' '+workShop.shopId+' '+workShop.locationId" placement="top-start">
<el-tag>{{workShop.branchName}} {{workShop.locationName}}</el-tag>
<el-tooltip v-if="userInfo.locationName" class="item" effect="dark" :content="userInfo.branchId+' '+userInfo.shopId+' '+userInfo.locationId" placement="top-start">
<el-tag>{{userInfo.branchName}} {{userInfo.locationName}}</el-tag>
</el-tooltip>
<el-tooltip v-else class="item" effect="dark" :content="workShop.branchId+' '+workShop.deptid" placement="top-start">
<el-tag>{{workShop.branchName}} {{workShop.deptName}}</el-tag>
<el-tooltip v-else class="item" effect="dark" :content="userInfo.branchId+' '+userInfo.deptid" placement="top-start">
<el-tag>{{userInfo.branchName}} {{userInfo.deptName}}</el-tag>
</el-tooltip>
<el-button @click="showSelectShopMethod" type="primary" v-if="workShop.isSuperAdmin||workShop.isPlatFormAdmin">切换商户</el-button>
<el-button @click="showSelectShopMethod" type="primary" v-if="userInfo.isSuperAdmin||userInfo.isPlatFormAdmin">切换商户</el-button>
</div>
-->
@ -157,7 +157,7 @@ export default {
'myPosts',
'myLocations',
'myShops',
'workShop'
'userInfo'
]),
'deptPostsTree':function(){
var deptPostsTree=[]
@ -240,13 +240,13 @@ export default {
},
sureMethod(row) {
this.selectShopVisible = false;
this.workShop.shopId=row.shopId;
this.workShop.branchId=row.branchId;
this.workShop.branchName=row.sysBranchName;
this.workShop.locationId=row.id;
this.workShop.deptid=row.deptid;
this.workShop.locationName=row.businessName;
this.$store.commit('SET_WORK_SHOP',this.workShop);
this.userInfo.shopId=row.shopId;
this.userInfo.branchId=row.branchId;
this.userInfo.branchName=row.sysBranchName;
this.userInfo.locationId=row.id;
this.userInfo.deptid=row.deptid;
this.userInfo.locationName=row.businessName;
this.$store.commit('SET_WORK_SHOP',this.userInfo);
},
jumpToOtherSystem(name) {
let href = window.location.protocol + "//" + window.location.host + "/" + name + "/" + process.env.VERSION;

8
src/views/mdp/arc/category/CategoryTree.vue

@ -116,7 +116,7 @@
return this.nodeKey?this.nodeKey:'id'
},
...mapGetters([
'workShop'
'userInfo'
])
},
props: ['value','isLeaf','visible','nodeKey','showCount','countTips','showFilter','rootKey','multiple','checkedKeys','refresh','defaultExpandAll','expandOnClickNode','showCheckbox','indent'],
@ -182,7 +182,7 @@
this.addCategory.isShow='1'
this.addCategory.branchId=this.currentCategory.branchId
if(!this.addCategory.branchId){
this.addCategory.branchId=this.workShop.branchId
this.addCategory.branchId=this.userInfo.branchId
}
this.$refs.addCategory.validate((valid) => {
if (valid) {
@ -250,7 +250,7 @@
branchId:data.branchId
}
if(!params.branchId){
params.branchId=this.workShop.branchId
params.branchId=this.userInfo.branchId
}
this.$confirm('确认删除吗?', '提示', {}).then(() => {
delCategory(params).then(res=>{
@ -276,7 +276,7 @@
}
let params = {
id: id,
branchId:this.workShop.branchId,
branchId:this.userInfo.branchId,
};
if(refresh){
params.refresh=true;

2
src/views/mdp/arc/tag/TagDialog.vue

@ -16,7 +16,7 @@
name:"tagDialog",
computed: {
...mapGetters([
'workShop', 'userInfo'
'userInfo', 'userInfo'
])
},
//

18
src/views/mdp/arc/tag/TagMng.vue

@ -124,7 +124,7 @@
export default {
computed: {
...mapGetters([
'workShop', 'userInfo'
'userInfo', 'userInfo'
])
},
//
@ -265,8 +265,8 @@
//params.xxx=xxxxx
}
params.shopId = this.workShop.shopId;
params.branchId = this.workShop.branchId;
params.shopId = this.userInfo.shopId;
params.branchId = this.userInfo.branchId;
this.sectionLoading = true;
this.convertTags = [];
getAllTag(params).then((res) => {
@ -450,8 +450,8 @@
let tagName = this.convertTags[index].showAddButtonInputValue;
let categoryId = this.convertTags[index].categoryId;
let params = {
"branchId": that.workShop.branchId,
"shopId": that.workShop.shopId,
"branchId": that.userInfo.branchId,
"shopId": that.userInfo.shopId,
"categoryId": categoryId,
"tagName": tagName,
"isPub": this.isPub
@ -554,8 +554,8 @@
return;
}
let params = {
"branchId": this.workShop.branchId,
"shopId": this.workShop.shopId,
"branchId": this.userInfo.branchId,
"shopId": this.userInfo.shopId,
"categoryName": this.needAddTagCategoryNameInputValue,
"isPub": this.isPub
};
@ -604,8 +604,8 @@
return;
};
let params = {
"shopId": this.workShop.shopId,
"branchId": this.workShop.branchId,
"shopId": this.userInfo.shopId,
"branchId": this.userInfo.branchId,
"id": categoryId
}
if (!this.userInfo.isPlatformAdmin && !this.userInfo.isSuperAdmin) {

20
src/views/mdp/sms/SendSms.vue

@ -113,7 +113,7 @@
export default {
computed: {
...mapGetters([
'workShop'
'userInfo'
])
},
props: ['visible', 'smsBodyParams','smsUserList','loadPhonenoByUserid'],
@ -177,9 +177,9 @@
this.getSmsTemplates();
},
showSendDialogVisibleMethod() {
this.shopId = this.workShop.shopId;
this.locationId = this.workShop.locationId;
this.branchId = this.workShop.branchId;
this.shopId = this.userInfo.shopId;
this.locationId = this.userInfo.locationId;
this.branchId = this.userInfo.branchId;
this.sendSmsVisible = true;
//
this.getSmsSigns();
@ -278,7 +278,7 @@
"smsTemplateId": this.smsTemplatesSelectValue.id,
"smsTtemplateText": this.smsTemplatesSelectValue.text,
"nationCode": "86",
"userid": this.workShop.userid,
"userid": this.userInfo.userid,
"branchId": this.smsTemplatesSelectValue.branchId,
"shopId": this.smsTemplatesSelectValue.shopId,
"locationId": this.smsTemplatesSelectValue.locationId,
@ -312,9 +312,9 @@
//
getSmsTemplates() {
let params = {
"shopId": this.workShop.shopId,
"locationId": this.workShop.locationId,
"branchId": this.workShop.branchId,
"shopId": this.userInfo.shopId,
"locationId": this.userInfo.locationId,
"branchId": this.userInfo.branchId,
"status": "0"
};
this.finallyShowContent = '';
@ -338,7 +338,7 @@
getSmsSigns() {
let params = {
"status": "0",
"shopId": this.workShop.shopId
"shopId": this.userInfo.shopId
};
this.smsSignsOptions = [];
listSmsSign(params).then((res) => {
@ -382,7 +382,7 @@
this.mobilesStr = '';
if(this.loadPhonenoByUserid==true){
let userids=this.smsUserList.map(user=>user.userid);
listUser({userids:userids,branchId:this.workShop.branchId}).then(res=>{
listUser({userids:userids,branchId:this.userInfo.branchId}).then(res=>{
if(res.data.tips.isOk){
let users=res.data.data;
let phonenoList=users.map(user=>user.phoneno);

16
src/views/xm/core/skill/skillMng.vue

@ -116,7 +116,7 @@ import { mapGetters } from "vuex";
import { addHrSkillCategory } from "@/api/xm/core/hrSkillCategory";
export default {
computed: {
...mapGetters(["workShop", "userInfo"]),
...mapGetters(["userInfo", "userInfo"]),
},
props: ["jump", "visible", "skillIds"],
@ -158,7 +158,7 @@ export default {
methods: {
getAllHrSkill() {
let params = {};
params.branchId = this.workShop.branchId;
params.branchId = this.userInfo.branchId;
this.sectionLoading = true;
getAllHrSkill(params)
.then((res) => {
@ -256,8 +256,8 @@ export default {
return;
}
let params = {
branchId: this.workShop.branchId,
shopId: this.workShop.shopId,
branchId: this.userInfo.branchId,
shopId: this.userInfo.shopId,
categoryName: this.needAddTagCategoryNameInputValue,
isPub: this.isPub,
};
@ -293,8 +293,8 @@ export default {
return;
}
let params = {
shopId: this.workShop.shopId,
branchId: this.workShop.branchId,
shopId: this.userInfo.shopId,
branchId: this.userInfo.branchId,
id: categoryId,
};
this.$confirm(
@ -361,8 +361,8 @@ export default {
let skillName = this.convertSkills[index].showAddButtonInputValue;
let categoryId = this.convertSkills[index].categoryId;
let params = {
branchId: that.workShop.branchId,
shopId: that.workShop.shopId,
branchId: that.userInfo.branchId,
shopId: that.userInfo.shopId,
categoryId: categoryId,
skillName: skillName,
isPub: this.isPub,

2
src/views/xm/core/xmGroup/XmGroupDialog.vue

@ -16,7 +16,7 @@
name:"tagDialog",
computed: {
...mapGetters([
'workShop', 'userInfo'
'userInfo', 'userInfo'
])
},
//

2
src/views/xm/core/xmGroup/XmGroupSelect.vue

@ -36,7 +36,7 @@ import XmProductSelect from '@/views/xm/core/components/XmProductSelect.vue'
export default {
computed: {
...mapGetters([
'workShop','userInfo','roles'
'userInfo','userInfo','roles'
])
},
//

Loading…
Cancel
Save