|  | @@ -113,7 +113,7 @@
 | 
	
		
			
				|  |  |            size="mini"
 | 
	
		
			
				|  |  |            @click="handleChangeCompanyUser"
 | 
	
		
			
				|  |  |            :disabled="multiple"
 | 
	
		
			
				|  |  | -          v-hasPermi="['company:companyUser:change']"
 | 
	
		
			
				|  |  | +          v-hasPermi="['company:companyUser:changeQw']"
 | 
	
		
			
				|  |  |          >更换会员归属</el-button>
 | 
	
		
			
				|  |  |        </el-col>
 | 
	
		
			
				|  |  |        <el-col :span="1.5">
 | 
	
	
		
			
				|  | @@ -122,9 +122,19 @@
 | 
	
		
			
				|  |  |            icon="el-icon-download"
 | 
	
		
			
				|  |  |            size="mini"
 | 
	
		
			
				|  |  |            @click="handleExport"
 | 
	
		
			
				|  |  | -          v-hasPermi="['store:user:export']"
 | 
	
		
			
				|  |  | +          v-hasPermi="['his:user:exportQw']"
 | 
	
		
			
				|  |  |          >导出</el-button>
 | 
	
		
			
				|  |  |        </el-col>
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +      <el-col :span="1.5">
 | 
	
		
			
				|  |  | +        <el-button
 | 
	
		
			
				|  |  | +          type="danger"
 | 
	
		
			
				|  |  | +          icon="el-icon-download"
 | 
	
		
			
				|  |  | +          size="mini"
 | 
	
		
			
				|  |  | +          @click="handleIsAllView"
 | 
	
		
			
				|  |  | +          v-hasPermi="['company:companyUser:isAllView']"
 | 
	
		
			
				|  |  | +        >允许客户能看其他销售课</el-button>
 | 
	
		
			
				|  |  | +      </el-col>
 | 
	
		
			
				|  |  |        <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
 | 
	
		
			
				|  |  |      </el-row>
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -275,6 +285,21 @@
 | 
	
		
			
				|  |  |        <userDetailsByNew  ref="userDetailsByNew" />
 | 
	
		
			
				|  |  |      </el-drawer>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +    <el-dialog :title="isAllViewOpen.title" :visible.sync="isAllViewOpen.open" width="500px" append-to-body>
 | 
	
		
			
				|  |  | +      <el-form :model="isAllViewOpen" ref="allViewForm" label-width="200px">
 | 
	
		
			
				|  |  | +        <el-form-item label="允许客户能看其他销售课">
 | 
	
		
			
				|  |  | +          <el-radio-group v-model="isAllViewOpen.allViewNum">
 | 
	
		
			
				|  |  | +            <el-radio :label="1">是</el-radio>
 | 
	
		
			
				|  |  | +            <el-radio :label="2">否</el-radio>
 | 
	
		
			
				|  |  | +          </el-radio-group>
 | 
	
		
			
				|  |  | +        </el-form-item>
 | 
	
		
			
				|  |  | +      </el-form>
 | 
	
		
			
				|  |  | +      <div slot="footer" class="dialog-footer">
 | 
	
		
			
				|  |  | +        <el-button type="primary" @click="submitFormIsAllView">确 定</el-button>
 | 
	
		
			
				|  |  | +        <el-button @click="cancelIsAllView">取 消</el-button>
 | 
	
		
			
				|  |  | +      </div>
 | 
	
		
			
				|  |  | +    </el-dialog>
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |      <!-- 更换会员归属对话框 -->
 | 
	
		
			
				|  |  |      <el-dialog title="更换会员归属" :visible.sync="changeCompanyUserOpen" width="500px" append-to-body>
 | 
	
		
			
				|  |  |        <el-form ref="changeCompanyUserForm" :model="changeCompanyUserForm" :rules="changeCompanyUserRules" label-width="100px">
 | 
	
	
		
			
				|  | @@ -318,7 +343,13 @@ import {
 | 
	
		
			
				|  |  |    exportListProject,
 | 
	
		
			
				|  |  |    listUserByProjectQw, delUserCompanyUserQw, exportListProjectQw
 | 
	
		
			
				|  |  |  } from '@/api/his/user'
 | 
	
		
			
				|  |  | -import { getCompanyUserList, changeCompanyUser, getCompanyList, changeCompanyUserQw } from '@/api/company/companyUser'
 | 
	
		
			
				|  |  | +import {
 | 
	
		
			
				|  |  | +  getCompanyUserList,
 | 
	
		
			
				|  |  | +  changeCompanyUser,
 | 
	
		
			
				|  |  | +  getCompanyList,
 | 
	
		
			
				|  |  | +  changeCompanyUserQw,
 | 
	
		
			
				|  |  | +  changeCompanyUserAllView, getIsAllowedEveryoneView
 | 
	
		
			
				|  |  | +} from '@/api/company/companyUser'
 | 
	
		
			
				|  |  |  import userDetailsByNew from '@/views/his/user/userDetails.vue'
 | 
	
		
			
				|  |  |  export default {
 | 
	
		
			
				|  |  |    name: "User",
 | 
	
	
		
			
				|  | @@ -404,6 +435,12 @@ export default {
 | 
	
		
			
				|  |  |        },
 | 
	
		
			
				|  |  |        // 更换会员归属对话框
 | 
	
		
			
				|  |  |        changeCompanyUserOpen: false,
 | 
	
		
			
				|  |  | +      //允许客户能看其他销售课-开关
 | 
	
		
			
				|  |  | +      isAllViewOpen:{
 | 
	
		
			
				|  |  | +        open:false,
 | 
	
		
			
				|  |  | +        title:"允许客户能看其他销售课",
 | 
	
		
			
				|  |  | +        allViewNum:1,
 | 
	
		
			
				|  |  | +      },
 | 
	
		
			
				|  |  |        // 更换会员归属表单
 | 
	
		
			
				|  |  |        changeCompanyUserForm: {
 | 
	
		
			
				|  |  |          companyId: null,
 | 
	
	
		
			
				|  | @@ -594,6 +631,16 @@ export default {
 | 
	
		
			
				|  |  |          this.title = "修改用户";
 | 
	
		
			
				|  |  |        });
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | +    submitFormIsAllView(){
 | 
	
		
			
				|  |  | +      changeCompanyUserAllView(this.isAllViewOpen.allViewNum).then(response => {
 | 
	
		
			
				|  |  | +        this.msgSuccess("修改成功");
 | 
	
		
			
				|  |  | +        this.isAllViewOpen.open = false;
 | 
	
		
			
				|  |  | +        this.getList();
 | 
	
		
			
				|  |  | +      });
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +    cancelIsAllView(){
 | 
	
		
			
				|  |  | +      this.isAllViewOpen.open = false;
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  |      /** 提交按钮 */
 | 
	
		
			
				|  |  |      submitForm() {
 | 
	
		
			
				|  |  |        this.$refs["form"].validate(valid => {
 | 
	
	
		
			
				|  | @@ -646,6 +693,13 @@ export default {
 | 
	
		
			
				|  |  |          this.download(response.msg);
 | 
	
		
			
				|  |  |        }).catch(function() {});
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    handleIsAllView(){
 | 
	
		
			
				|  |  | +      getIsAllowedEveryoneView().then(response => {
 | 
	
		
			
				|  |  | +        this.isAllViewOpen.allViewNum=response;
 | 
	
		
			
				|  |  | +        this.isAllViewOpen.open=true;
 | 
	
		
			
				|  |  | +      })
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  |      handleShow(row){
 | 
	
		
			
				|  |  |        var that=this;
 | 
	
		
			
				|  |  |        that.show.open=true;
 |