zhangqiOMG 2 лет назад
Родитель
Сommit
4c4717e9bc

+ 2 - 3
src/Form/cashcouponPay/add.vue

@@ -183,9 +183,8 @@ export default {
   name: "add",
   data() {
     var amountData = (rule,value,callback) =>{
-      if (this.form.amount < 0 ){
-        callback(new Error('不能下于0'))
-      }else if(this.form.amount > this.cashCouponAmount){
+
+     if(this.form.amount > this.cashCouponAmount){
         callback(new Error('不能超过代金券可用金额'))
       }
       else {

+ 1 - 3
src/Form/cashcouponPay/edit.vue

@@ -184,9 +184,7 @@ export default {
   props:["data"],
   data() {
     var amountData = (rule,value,callback) =>{
-      if (this.form.amount < 0 ){
-        callback(new Error('不能下于0'))
-      }else if(this.form.amount > this.cashCouponAmount){
+      if(this.form.amount > this.cashCouponAmount){
         callback(new Error('不能超过代金券可用金额'))
       }
       else {

+ 22 - 2
src/HDrpManagement/contractManage/modules/detail.vue

@@ -187,14 +187,34 @@ export default {
   },
   watch: {
     mainData: {
-      handler (val) {
+      async handler (val) {
+        const res = await this.$api.requested({
+          "id": 20220930103501,
+          "content": {
+            "ownertable":"sa_contract",
+            "ownerid":this.$route.query.id
+          }
+        })
         if (this.mainData.leader.length !== 0){
           if (JSON.parse(window.sessionStorage.getItem('active_account')).userid === this.mainData.leader[0].userid){
             /*是负责人*/
             this.isLeader = true
           }else {
+            let flag = 0
+            for (var i=0;i<res.data[0].team.length;i++){
+              if (res.data[0].team[i].userid === JSON.parse(window.sessionStorage.getItem('active_account')).userid){
+                if (res.data[0].team[i].editable === 1){
+                  this.isLeader = true
+                  flag =1
+                  break
+                }else {
+                  flag = 0
+                  break
+                }
+              }
+            }
             /*不是负责人*/
-            this.isLeader = false
+            flag === 0?this.isLeader = false:this.isLeader = true
           }
         }
                /*if (Object.keys(JSON.parse(window.sessionStorage.getItem('userInfo'))).length > 0) {

+ 2 - 2
src/HDrpManagement/orderManage/details/tabs/changeOrderMx.vue

@@ -116,14 +116,14 @@ export default {
     checkRowData () {
       let valid = true
       let arr = this.listData.filter((row,index)=>{
-        if (row.newvalue >= row.qty) {
+        if (row.newvalue > row.qty) {
           this.$message({
             message:row.itemname+"变更数量不能大于原数量",
             type:"error",
             offset:index * 60
           })
           return row
-        } else if (row.newvalue  <= row.deliedqty) {
+        } else if (row.newvalue  < row.deliedqty) {
           this.$message({
             message:row.itemname+"变更数量不能小于已发货数量",
             type:"error",

+ 22 - 2
src/HDrpManagement/projectChange/modules/detail.vue

@@ -142,14 +142,34 @@ export default {
     }
   },
   watch:{
-    mainData(val) {
+   async mainData(val) {
+     const res = await this.$api.requested({
+       "id": 20220930103501,
+       "content": {
+         "ownertable":"sa_project",
+         "ownerid":this.$route.query.id
+       }
+     })
       if (this.mainData.leader.length !== 0){
         if (JSON.parse(window.sessionStorage.getItem('active_account')).userid === this.mainData.leader[0].userid){
           /*是负责人*/
           this.mainData.disabled = true
         }else {
+          let flag = 0
+          for (var i=0;i<res.data[0].team.length;i++){
+            if (res.data[0].team[i].userid === JSON.parse(window.sessionStorage.getItem('active_account')).userid){
+              if (res.data[0].team[i].editable === 1){
+                this.mainData.disabled = true
+                flag =1
+                break
+              }else {
+                flag = 0
+                break
+              }
+            }
+          }
           /*不是负责人*/
-          this.mainData.disabled = false
+          flag === 0?this.mainData.disabled = false:this.mainData.disabled = true
         }
       }
       console.log("权限结果",this.mainData.disabled)

+ 4 - 4
src/HManagement/accountManage/modules/account_detail.vue

@@ -11,7 +11,7 @@
       idname="userid"
       ownertable="sys_users"
       tags=""
-      :tabs="[this.mainData.usertype === 1 || this.mainData.usertype === 0 ? '人员信息' : '基本信息','角色信息']"
+      :tabs="[this.mainData.usertype === 1 || this.mainData.usertype === 0 ? '人员信息' : '基本信息','团队信息','角色信息']"
       @pageChange="pageChange"
       @onEditSuccess="queryMainData($route.query.id)">
       <div slot="customOperation" >
@@ -21,10 +21,10 @@
       <div slot="slot0" >
         <detailInfo :more="true" :data="detailInfo"></detailInfo>
       </div>
-<!--      <div slot="slot1" >
+      <div slot="slot1" >
         <teamInformation></teamInformation>
-      </div>-->
-      <div class="container normal-panel" slot="slot1" >
+      </div>
+      <div class="container normal-panel" slot="slot2" >
         <tableLayout :layout="table_roleinfo" :data="roleData" :opwidth="200" :custom="false">
           <!-- <template v-slot:opreation="scope">
             <el-button type="text" size="small" @click="$router.push({path:'/roleDetail',query:{id:scope.data.roleid}})">详 情</el-button>

+ 122 - 14
src/HManagement/accountManage/modules/teamInformation/add.vue

@@ -1,28 +1,84 @@
 <template>
   <div>
-    <el-button size="small" type="primary" >添 加</el-button>
+    <el-button size="small" type="primary" @click="onShow">添 加</el-button>
     <el-drawer
-        title="创建用户"
+        title="添加团队成员"
         :visible.sync="drawer"
-        size="664px"
+        size="900px"
         direction="rtl"
         append-to-body
         :show-close="false"
        >
       <div class="drawer__panel">
-        <el-row>
-          <el-form :model="form" :rules="rules" ref="form"  size="mini" label-position="right">
-            <el-col :span="24">
-              <el-form-item label="账号" label-width="80px">
-                <el-input v-model="form.accountno" autocomplete="off" placeholder="编辑账号"></el-input>
-              </el-form-item>
-            </el-col>
-          </el-form>
+        <el-row :gutter="20">
+          <el-col :span="24">
+            <el-input  style="width:200px;margin-bottom: 20px;margin-top: -10px" placeholder="搜索" :suffix-icon="param.content.where.condition?param.content.where.condition.length > 0?'':'':'el-icon-search'" v-model="param.content.where.condition" @keyup.native.enter="listData(param.content.pageNumber = 1)" @clear="listData(param.content.pageNumber = 1)" size="small" class="input-with-select inline-16 layout_search__panel" clearable>
+            </el-input>
+            <el-table :data="list" @row-click="selectData" height="802px" border size="mini">
+              <el-table-column
+                  label="登录账号"
+                  width="100">
+                <template slot-scope="scope">
+                  <span style="margin-left: 10px">{{ scope.row.accountno?scope.row.accountno:'--'}}</span>
+                </template>
+              </el-table-column>
+              <el-table-column
+                  label="姓名"
+                  width="120">
+                <template slot-scope="scope">
+                  <span style="margin-left: 10px">{{ scope.row.name?scope.row.name:'--'}}</span>
+                </template>
+              </el-table-column>
+              <el-table-column
+                  label="角色名称"
+                  width="200">
+                <template slot-scope="scope">
+                  <span style="margin-left: 10px" v-for="(item,index) in scope.row.userrole">
+                    <span v-if="scope.row.userrole.length -1 === index">{{item}}</span>
+                    <span v-else>{{item + ','}}</span>
+                  </span>
+                </template>
+              </el-table-column>
+              <el-table-column
+                  label="部门"
+                  width="150">
+                <template slot-scope="scope">
+                  <span style="margin-left: 10px">{{ scope.row.depname?scope.row.depname:'--'}}</span>
+                </template>
+              </el-table-column>
+              <el-table-column
+                  label="职位"
+                  width="160">
+                <template slot-scope="scope">
+                  <span style="margin-left: 10px">{{ scope.row.position?scope.row.position:'--'}}</span>
+                </template>
+              </el-table-column>
+              <el-table-column
+                  label="手机号"
+                  width="150">
+                <template slot-scope="scope">
+                  <span style="margin-left: 10px">{{ scope.row.phonenumber?scope.row.phonenumber:'--'}}</span>
+                </template>
+              </el-table-column>
+            </el-table>
+            <div  class="container normal-panel" style="text-align:right">
+              <el-pagination
+                  background
+                  @size-change="handleSizeChange"
+                  @current-change="handleCurrentChange"
+                  :current-page="currentPage"
+                  :page-sizes="[20, 50, 100, 200]"
+                  layout="total,sizes, prev, pager, next, jumper"
+                  :total="total">
+              </el-pagination>
+            </div>
+            <!--                  <el-input slot="reference" :readonly="true" v-model="form.enterprisename" autocomplete="off" placeholder="请选择客户"  @input="selectCustomer"></el-input>-->
+          </el-col>
         </el-row>
       </div>
       <div class="fixed__btn__panel">
         <el-button size="small" @click="drawer = false" class="normal-btn-width">取 消</el-button>
-        <el-button size="small" type="primary"  class="normal-btn-width">确 定</el-button>
+<!--        <el-button size="small" type="primary"  class="normal-btn-width">确 定</el-button>-->
       </div>
     </el-drawer>
   </div>
@@ -33,10 +89,62 @@ export default {
   name: "add",
   data(){
     return {
-      drawer:'',
+      drawer:false,
       form:{},
-      rules:{}
+      rules:{},
+      currentPage:0,
+      total:0,
+      list:[],
+      param:{
+        "id": 20221102090303,
+        "content": {
+          "pageNumber": 1,
+          "pageSize": 20,
+          "containssub":1,
+          "isAll":1,
+          "departmentids":[],
+          "where": {
+            "condition": "",
+          }
+        }
+      }
     }
+  },
+  methods:{
+    async listData(){
+      const res = await this.$api.requested(this.param)
+      this.list = res.data
+      this.total = res.total
+      this.currentPage = res.pageNumber
+    },
+    onShow(){
+      this.drawer = true
+      this.listData()
+    },
+    async selectData(row){
+      console.log(row)
+      const res = await this.$api.requested({
+        "id":"20230302174301",
+        "content":{
+          "editable":1,
+          "userid":row.userid
+        }
+      })
+      this.tool.showMessage(res,()=>{
+        this.drawer = false
+        this.$emit('addSuccess')
+      })
+    },
+    handleSizeChange(val) {
+      // console.log(`每页 ${val} 条`);
+      this.param.content.pageSize = val
+      this.listData()
+    },
+    handleCurrentChange(val) {
+      // console.log(`当前页: ${val}`);
+      this.param.content.pageNumber = val
+      this.listData()
+    },
   }
 }
 </script>

+ 134 - 51
src/HManagement/accountManage/modules/teamInformation/index.vue

@@ -3,67 +3,72 @@
     <el-tabs v-model="activeName" type="card" @tab-click="handleClick">
       <el-tab-pane label="我负责的" name="我负责的">
         <div style="margin-bottom: 15px">
-          <add  class="inline-16"  ></add>
+          <add  class="inline-16"  @addSuccess="leaderData"></add>
+<!--          <el-input  style="width:200px;" placeholder="搜索" :suffix-icon="leader.params.content.where.condition?leader.params.content.where.condition.length > 0?'':'':'el-icon-search'" v-model="leader.params.content.where.condition"
+                     @keyup.native.enter="leaderData(leader.params.content.pageNumber = 1)" @clear="leaderData(leader.params.content.pageNumber = 1)" size="small" class="input-with-select inline-16 layout_search__panel" clearable>
+          </el-input>-->
         </div>
         <div style="margin-top: 15px">
-          <tableLayout :layout="tablecols" :data="list" :opwidth="200" :custom="true"  fixedName="operation">
+          <tableLayout :layout="tablecols" :data="leader.list" :opwidth="200" :custom="true"  fixedName="operation">
             <template v-slot:customcol="scope">
               <div v-if="scope.column.columnname === 'operation'">
                 <span>{{scope.column.data[scope.column.columnname]}}</span>
               </div>
+              <div v-else-if="scope.column.columnname === 'editable'">
+                <span>{{scope.column.data[scope.column.columnname] === 1 ? '是' : '否'}}</span>
+              </div>
+              <div v-else-if="scope.column.columnname === 'userrole'">
+                <span style="margin-left: 10px" v-for="(item,index) in scope.column.data.userrole">
+                    <span v-if="scope.column.data.userrole.length -1 === index">{{item.rolename}}</span>
+                    <span v-else>{{item.rolename + ','}}</span>
+                  </span>
+              </div>
               <p v-else>{{scope.column.data[scope.column.columnname]?scope.column.data[scope.column.columnname]:'--'}}</p>
             </template>
             <template v-slot:opreation="scope">
-              <!--          <edit  :data="scope.data" class="inline-16" @editSuccess="onSuccess" :disabled="data.disabled"></edit>
-                        <delContact  :data="scope.data" @delSuccess="onSuccess" class="inline-16" :disabled="data.disabled"></delContact>-->
+                <el-button slot="reference" type="text" size="mini" class="inline-16" @click="onEdit(scope.data)">设置</el-button>
+                <el-popconfirm
+                    title="确定删除该团队人员吗?"
+                    @confirm="onDel(scope.data)"
+                >
+                  <el-button slot="reference" class="inline-16" type="text" size="mini">删除</el-button>
+                </el-popconfirm>
             </template>
           </tableLayout>
         </div>
-        <div style="margin-top:16px;text-align:right">
-          <el-pagination
-              background
-              small
-              @size-change="handleSizeChange"
-              @current-change="handleCurrentChange"
-              :current-page="currentPage"
-              :page-size="params.content.pageSize"
-              layout="total, prev, pager, next, jumper"
-              :total="total">
-          </el-pagination>
-        </div>
       </el-tab-pane>
       <el-tab-pane label="我参与的" name="我参与的">
-        <div style="margin-bottom: 15px">
-
-        </div>
         <div style="margin-top: 15px">
-          <tableLayout :layout="tablecols" :data="list" :opwidth="200" :custom="true"  fixedName="operation">
+          <tableLayout :layout="tablecolsPartake" :data="partake.list" :opwidth="200" :custom="true"  fixedName="operation">
             <template v-slot:customcol="scope">
               <div v-if="scope.column.columnname === 'operation'">
                 <span>{{scope.column.data[scope.column.columnname]}}</span>
               </div>
+              <div v-else-if="scope.column.columnname === 'editable'">
+                <span>{{scope.column.data[scope.column.columnname] === 1 ? '是' : '否'}}</span>
+              </div>
+              <div v-else-if="scope.column.columnname === 'userrole'">
+                <span style="margin-left: 10px" v-for="(item,index) in scope.column.data.userrole">
+                    <span v-if="scope.column.data.userrole.length -1 === index">{{item.rolename}}</span>
+                    <span v-else>{{item.rolename + ','}}</span>
+                  </span>
+              </div>
               <p v-else>{{scope.column.data[scope.column.columnname]?scope.column.data[scope.column.columnname]:'--'}}</p>
             </template>
             <template v-slot:opreation="scope">
-              <!--          <edit  :data="scope.data" class="inline-16" @editSuccess="onSuccess" :disabled="data.disabled"></edit>
-                        <delContact  :data="scope.data" @delSuccess="onSuccess" class="inline-16" :disabled="data.disabled"></delContact>-->
             </template>
           </tableLayout>
         </div>
-        <div style="margin-top:16px;text-align:right">
-          <el-pagination
-              background
-              small
-              @size-change="handleSizeChange"
-              @current-change="handleCurrentChange"
-              :current-page="currentPage"
-              :page-size="params.content.pageSize"
-              layout="total, prev, pager, next, jumper"
-              :total="total">
-          </el-pagination>
-        </div>
       </el-tab-pane>
     </el-tabs>
+    <el-dialog title="设置" :visible.sync="dialogTableVisible" append-to-body width="400px">
+      <el-radio v-model="isEdit" label="1"  >允许编辑</el-radio>
+      <el-radio v-model="isEdit" label="0" >不允许编辑</el-radio>
+      <span slot="footer" class="dialog-footer">
+        <el-button @click="dialogTableVisible = false" size="small">取 消</el-button>
+        <el-button type="primary" @click="onSubmit" size="small">确 定</el-button>
+      </span>
+    </el-dialog>
   </div>
 </template>
 
@@ -75,37 +80,115 @@ export default {
   data(){
     return {
       tablecols:[],
-      list:[],
-      total:0,
-      currentPage:0,
+      tablecolsPartake:[],
+      dialogTableVisible:false,
       activeName: '我负责的',
-      params:{
-        "id": 20230302174201,
-        "content": {
-          "pageNumber": 1,
-          "pageSize": 20,
-          "where":{
-            "conditino":""
+      radio:'1',
+      leader:{
+        params:{
+          "id": 20230302174201,
+          "content": {
           }
-        }
-      }
+        },
+        list:[],
+        total:0,
+        currentPage:0,
+      },
+      partake:{
+        params:{
+          "id": 20230302174501,
+          "content": {
+          }
+        },
+        list:[],
+        total:0,
+        currentPage:0,
+      },
+      row:'',
+      isEdit:''
     }
   },
   methods:{
-    handleClick(){},
+    /*我负责的*/
+    async leaderData(){
+      const res = await this.$api.requested(this.leader.params)
+      this.leader.list = res.data
+    },
+    /*我参与的*/
+    async partakeData(){
+      const res = await this.$api.requested(this.partake.params)
+      this.partake.list = res.data
+    },
+    handleClick(){
+      if (this.activeName === '我负责的'){
+        this.leaderData()
+      }else {
+        this.partakeData()
+      }
+    },
+    onEdit(row){
+      this.row = row
+      this.isEdit = row.editable
+      if (this.isEdit === 1){
+        this.isEdit = '1'
+      }else {
+        this.isEdit = '0'
+      }
+      console.log(this.row)
+      this.dialogTableVisible = true
+    },
     handleSizeChange(val) {
       // console.log(`每页 ${val} 条`);
-      this.params.content.pageSize = val
-      this.listData()
+      this.leader.params.content.pageSize = val
+      this.leaderData()
     },
     handleCurrentChange(val) {
       // console.log(`当前页: ${val}`);
-      this.params.content.pageNumber = val
-      this.listData()
+      this.leader.params.content.pageNumber = val
+      this.leaderData()
+    },
+    editClick(){
+      this.editShow = true
     },
+    async onSubmit(){
+      if (this.isEdit === '1'){
+        this.isEdit = 1
+      }else {
+        this.isEdit = 0
+      }
+      const res = await this.$api.requested({
+        "id":"20230302174301",
+        "content":{
+          "editable":this.isEdit,
+          "userid":this.row.userid
+        }
+      })
+      this.tool.showMessage(res,()=>{
+        this.dialogTableVisible = false
+        this.leaderData()
+      })
+    },
+    async onDel(row){
+      const res = await this.$api.requested({
+        "id":"20230302174401",
+        "content":{
+          "userid":row.userid
+        }
+      })
+      this.tool.showMessage(res,()=>{
+        this.dialogTableVisible = false
+        this.leaderData()
+      })
+    }
+  },
+  mounted() {
+    this.leaderData()
+    this.partakeData()
   },
   created() {
     this.tablecols = this.tool.tabelCol(this.$route.name).teamTable.tablecols
+    /*partakeTeamTable*/
+    this.tablecolsPartake = this.tool.tabelCol(this.$route.name).partakeTeamTable.tablecols
   }
 }
 </script>

+ 22 - 2
src/HManagement/clueManage/m_activity/modules/details.vue

@@ -60,14 +60,34 @@ export default {
     }
   },
   watch:{
-    mainData(val) {
+    async mainData(val) {
+      const res = await this.$api.requested({
+        "id": 20220930103501,
+        "content": {
+          "ownertable":"sat_campaign",
+          "ownerid":this.$route.query.id
+        }
+      })
       if (this.mainData.leader.length !== 0){
         if (JSON.parse(window.sessionStorage.getItem('active_account')).userid === this.mainData.leader[0].userid){
           /*是负责人*/
           this.mainData.disabled = true
         }else {
+          let flag = 0
+          for (var i=0;i<res.data[0].team.length;i++){
+            if (res.data[0].team[i].userid === JSON.parse(window.sessionStorage.getItem('active_account')).userid){
+              if (res.data[0].team[i].editable === 1){
+                this.mainData.disabled = true
+                flag =1
+                break
+              }else {
+                flag = 0
+                break
+              }
+            }
+          }
           /*不是负责人*/
-          this.mainData.disabled = false
+          flag === 0?this.mainData.disabled = false:this.mainData.disabled = true
         }
       }
       console.log("权限结果", this.mainData.disabled)

+ 23 - 3
src/SDrpManagement/QuotedPrice/detail/index.vue

@@ -95,14 +95,34 @@ export default {
     itemClass
   },
   watch:{
-    mainData(val) {
+   async mainData(val) {
+     const res = await this.$api.requested({
+       "id": 20220930103501,
+       "content": {
+         "ownertable":"sa_quotedprice",
+         "ownerid":this.$route.query.id
+       }
+     })
       if (this.mainData.leader.length !== 0){
         if (JSON.parse(window.sessionStorage.getItem('active_account')).userid === this.mainData.leader[0].userid){
 
           this.mainData.disabled = true
         }else {
-
-          this.mainData.disabled = false
+          let flag = 0
+          for (var i=0;i<res.data[0].team.length;i++){
+            if (res.data[0].team[i].userid === JSON.parse(window.sessionStorage.getItem('active_account')).userid){
+              if (res.data[0].team[i].editable === 1){
+                this.mainData.disabled = true
+                flag =1
+                break
+              }else {
+                flag = 0
+                break
+              }
+            }
+          }
+          /*不是负责人*/
+          flag === 0?this.mainData.disabled = false:this.mainData.disabled = true
         }
       }
       console.log("权限结果",this.mainData.disabled)

+ 23 - 2
src/SDrpManagement/salerPrivatecustomer/detail/customerDetail.vue

@@ -125,14 +125,35 @@ export default {
     bankCard
   },
   watch:{
-    mainData(val) {
+   async mainData(val) {
+      const res = await this.$api.requested({
+        "id": 20220930103501,
+        "content": {
+          "ownertable":"sa_customers",
+          "ownerid":this.$route.query.id
+        }
+      })
+     console.log(res.data[0].team,'数据团队')
       if (this.mainData.leader.length !== 0){
         if (JSON.parse(window.sessionStorage.getItem('active_account')).userid === this.mainData.leader[0].userid){
           /*是负责人*/
           this.mainData.disabled = true
         }else {
+          let flag = 0
+          for (var i=0;i<res.data[0].team.length;i++){
+            if (res.data[0].team[i].userid === JSON.parse(window.sessionStorage.getItem('active_account')).userid){
+              if (res.data[0].team[i].editable === 1){
+                this.mainData.disabled = true
+                flag =1
+                break
+              }else {
+                flag = 0
+                break
+              }
+            }
+          }
           /*不是负责人*/
-          this.mainData.disabled = false
+          flag === 0?this.mainData.disabled = false:this.mainData.disabled = true
         }
       }
       console.log("权限结果", this.mainData.disabled)

+ 22 - 2
src/SManagement/orderclue_detail/index.vue

@@ -73,14 +73,34 @@ export default {
     edit
   },
   watch: {
-   mainData(val) {
+   async mainData(val) {
+     const res = await this.$api.requested({
+       "id": 20220930103501,
+       "content": {
+         "ownertable":"sat_orderclue",
+         "ownerid":this.$route.query.id
+       }
+     })
      if (this.mainData.leader.length !== 0){
        if (JSON.parse(window.sessionStorage.getItem('active_account')).userid === this.mainData.leader[0].userid){
          /*是负责人*/
          this.isHandle = true
        }else {
+         let flag = 0
+         for (var i=0;i<res.data[0].team.length;i++){
+           if (res.data[0].team[i].userid === JSON.parse(window.sessionStorage.getItem('active_account')).userid){
+             if (res.data[0].team[i].editable === 1){
+               this.isHandle = true
+               flag =1
+               break
+             }else {
+               flag = 0
+               break
+             }
+           }
+         }
          /*不是负责人*/
-         this.isHandle = false
+         flag === 0?this.isHandle = false:this.isHandle = true
        }
      }
      /* let is

+ 44 - 0
src/components/normal-basic-layout/details/modules/group/group.vue

@@ -51,10 +51,22 @@
           <p>{{ men.name }}&nbsp;<small style="color:#999999ad">&nbsp;账号:{{ men.username }}</small></p>
           <small style="color:#999999ad;margin-top:10px">部门:{{ men.depname?men.depname:"未知部门" }}&emsp;职位:{{ men.position?men.position:"未知部门" }}</small>
         </div>
+        <div style="float: right;margin-left: 60px">
+          <el-button type="text" @click="setClick(men)" size="mini">设置</el-button>
+        </div>
       </div>
+
       <div v-if="showEmpty(item.team)">
         <el-empty description="暂无成员" :image-size="40"></el-empty>
       </div>
+      <el-dialog title="设置" :visible.sync="dialogTableVisible" append-to-body width="400px">
+        <el-radio v-model="isEdit" label="1"  >允许编辑</el-radio>
+        <el-radio v-model="isEdit" label="0" >不允许编辑</el-radio>
+        <span slot="footer" class="dialog-footer">
+        <el-button @click="dialogTableVisible = false" size="small">取 消</el-button>
+        <el-button type="primary" @click="setOnSubmit" size="small">确 定</el-button>
+      </span>
+      </el-dialog>
     </div>
   </div>
 </div>
@@ -71,6 +83,8 @@ export default {
     return {
       visible1:false,
       visible:false,
+      dialogTableVisible:false,
+      isEdit:'',
       list:[
         {
           ismyteam:1,
@@ -182,6 +196,36 @@ export default {
         return e.isleader !== 1
       })
       if (team.length === 0) return true
+    },
+    setClick(row){
+      console.log(row)
+      this.row = row
+      this.isEdit = row.editable
+      if (this.isEdit === 1){
+        this.isEdit = '1'
+      }else {
+        this.isEdit = '0'
+      }
+      console.log(this.row)
+      this.dialogTableVisible = true
+    },
+    async setOnSubmit(){
+      if (this.isEdit === '1'){
+        this.isEdit = 1
+      }else {
+        this.isEdit = 0
+      }
+      const res = await this.$api.requested({
+        "id":"20230302183101",
+        "content":{
+          "editable":this.isEdit,
+          "sys_datateamid":this.row.sys_datateamid
+        }
+      })
+      this.tool.showMessage(res,()=>{
+        this.dialogTableVisible = false
+        this.queryGroup()
+      })
     }
   },
   mounted() {