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="right-menu">
<!-- <!--
<div class="hidden-sm-and-down" style="float:left;display:flex;align-items: center;height:100%;"> <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>
<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-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> </div>
--> -->
@ -157,7 +157,7 @@ export default {
'myPosts', 'myPosts',
'myLocations', 'myLocations',
'myShops', 'myShops',
'workShop'
'userInfo'
]), ]),
'deptPostsTree':function(){ 'deptPostsTree':function(){
var deptPostsTree=[] var deptPostsTree=[]
@ -240,13 +240,13 @@ export default {
}, },
sureMethod(row) { sureMethod(row) {
this.selectShopVisible = false; 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) { jumpToOtherSystem(name) {
let href = window.location.protocol + "//" + window.location.host + "/" + name + "/" + process.env.VERSION; 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' return this.nodeKey?this.nodeKey:'id'
}, },
...mapGetters([ ...mapGetters([
'workShop'
'userInfo'
]) ])
}, },
props: ['value','isLeaf','visible','nodeKey','showCount','countTips','showFilter','rootKey','multiple','checkedKeys','refresh','defaultExpandAll','expandOnClickNode','showCheckbox','indent'], 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.isShow='1'
this.addCategory.branchId=this.currentCategory.branchId this.addCategory.branchId=this.currentCategory.branchId
if(!this.addCategory.branchId){ if(!this.addCategory.branchId){
this.addCategory.branchId=this.workShop.branchId
this.addCategory.branchId=this.userInfo.branchId
} }
this.$refs.addCategory.validate((valid) => { this.$refs.addCategory.validate((valid) => {
if (valid) { if (valid) {
@ -250,7 +250,7 @@
branchId:data.branchId branchId:data.branchId
} }
if(!params.branchId){ if(!params.branchId){
params.branchId=this.workShop.branchId
params.branchId=this.userInfo.branchId
} }
this.$confirm('确认删除吗?', '提示', {}).then(() => { this.$confirm('确认删除吗?', '提示', {}).then(() => {
delCategory(params).then(res=>{ delCategory(params).then(res=>{
@ -276,7 +276,7 @@
} }
let params = { let params = {
id: id, id: id,
branchId:this.workShop.branchId,
branchId:this.userInfo.branchId,
}; };
if(refresh){ if(refresh){
params.refresh=true; params.refresh=true;

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

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

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

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

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

@ -113,7 +113,7 @@
export default { export default {
computed: { computed: {
...mapGetters([ ...mapGetters([
'workShop'
'userInfo'
]) ])
}, },
props: ['visible', 'smsBodyParams','smsUserList','loadPhonenoByUserid'], props: ['visible', 'smsBodyParams','smsUserList','loadPhonenoByUserid'],
@ -177,9 +177,9 @@
this.getSmsTemplates(); this.getSmsTemplates();
}, },
showSendDialogVisibleMethod() { 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.sendSmsVisible = true;
// //
this.getSmsSigns(); this.getSmsSigns();
@ -278,7 +278,7 @@
"smsTemplateId": this.smsTemplatesSelectValue.id, "smsTemplateId": this.smsTemplatesSelectValue.id,
"smsTtemplateText": this.smsTemplatesSelectValue.text, "smsTtemplateText": this.smsTemplatesSelectValue.text,
"nationCode": "86", "nationCode": "86",
"userid": this.workShop.userid,
"userid": this.userInfo.userid,
"branchId": this.smsTemplatesSelectValue.branchId, "branchId": this.smsTemplatesSelectValue.branchId,
"shopId": this.smsTemplatesSelectValue.shopId, "shopId": this.smsTemplatesSelectValue.shopId,
"locationId": this.smsTemplatesSelectValue.locationId, "locationId": this.smsTemplatesSelectValue.locationId,
@ -312,9 +312,9 @@
// //
getSmsTemplates() { getSmsTemplates() {
let params = { 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" "status": "0"
}; };
this.finallyShowContent = ''; this.finallyShowContent = '';
@ -338,7 +338,7 @@
getSmsSigns() { getSmsSigns() {
let params = { let params = {
"status": "0", "status": "0",
"shopId": this.workShop.shopId
"shopId": this.userInfo.shopId
}; };
this.smsSignsOptions = []; this.smsSignsOptions = [];
listSmsSign(params).then((res) => { listSmsSign(params).then((res) => {
@ -382,7 +382,7 @@
this.mobilesStr = ''; this.mobilesStr = '';
if(this.loadPhonenoByUserid==true){ if(this.loadPhonenoByUserid==true){
let userids=this.smsUserList.map(user=>user.userid); 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){ if(res.data.tips.isOk){
let users=res.data.data; let users=res.data.data;
let phonenoList=users.map(user=>user.phoneno); 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"; import { addHrSkillCategory } from "@/api/xm/core/hrSkillCategory";
export default { export default {
computed: { computed: {
...mapGetters(["workShop", "userInfo"]),
...mapGetters(["userInfo", "userInfo"]),
}, },
props: ["jump", "visible", "skillIds"], props: ["jump", "visible", "skillIds"],
@ -158,7 +158,7 @@ export default {
methods: { methods: {
getAllHrSkill() { getAllHrSkill() {
let params = {}; let params = {};
params.branchId = this.workShop.branchId;
params.branchId = this.userInfo.branchId;
this.sectionLoading = true; this.sectionLoading = true;
getAllHrSkill(params) getAllHrSkill(params)
.then((res) => { .then((res) => {
@ -256,8 +256,8 @@ export default {
return; return;
} }
let params = { let params = {
branchId: this.workShop.branchId,
shopId: this.workShop.shopId,
branchId: this.userInfo.branchId,
shopId: this.userInfo.shopId,
categoryName: this.needAddTagCategoryNameInputValue, categoryName: this.needAddTagCategoryNameInputValue,
isPub: this.isPub, isPub: this.isPub,
}; };
@ -293,8 +293,8 @@ export default {
return; return;
} }
let params = { let params = {
shopId: this.workShop.shopId,
branchId: this.workShop.branchId,
shopId: this.userInfo.shopId,
branchId: this.userInfo.branchId,
id: categoryId, id: categoryId,
}; };
this.$confirm( this.$confirm(
@ -361,8 +361,8 @@ export default {
let skillName = this.convertSkills[index].showAddButtonInputValue; let skillName = this.convertSkills[index].showAddButtonInputValue;
let categoryId = this.convertSkills[index].categoryId; let categoryId = this.convertSkills[index].categoryId;
let params = { let params = {
branchId: that.workShop.branchId,
shopId: that.workShop.shopId,
branchId: that.userInfo.branchId,
shopId: that.userInfo.shopId,
categoryId: categoryId, categoryId: categoryId,
skillName: skillName, skillName: skillName,
isPub: this.isPub, isPub: this.isPub,

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

@ -16,7 +16,7 @@
name:"tagDialog", name:"tagDialog",
computed: { computed: {
...mapGetters([ ...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 { export default {
computed: { computed: {
...mapGetters([ ...mapGetters([
'workShop','userInfo','roles'
'userInfo','userInfo','roles'
]) ])
}, },
// //

Loading…
Cancel
Save