qymljy před 2 roky
rodič
revize
05526501ee

+ 5 - 2
src/HManagement/accountManage/modules/account_detail.vue

@@ -22,7 +22,7 @@
         <detailInfo :more="true" :data="detailInfo"></detailInfo>
       </div>
 <!--      <div slot="slot1" >
-        团队信息
+        <teamInformation></teamInformation>
       </div>-->
       <div class="container normal-panel" slot="slot1" >
         <tableLayout :layout="table_roleinfo" :data="roleData" :opwidth="200" :custom="false">
@@ -40,6 +40,8 @@ import unuseTemp from './unuseAccount.vue'
 import useTemp from './useAccdount.vue'
 
 import detailInfo from '@/components/detailInfo/index'
+import teamInformation from './teamInformation/index'
+
 export default {
   name: "detail",
   data() {
@@ -59,7 +61,8 @@ export default {
   components:{
     unuseTemp,
     useTemp,
-    detailInfo
+    detailInfo,
+    teamInformation
   },
   methods:{
     async queryMainData(id) {

+ 46 - 0
src/HManagement/accountManage/modules/teamInformation/add.vue

@@ -0,0 +1,46 @@
+<template>
+  <div>
+    <el-button size="small" type="primary" >添 加</el-button>
+    <el-drawer
+        title="创建用户"
+        :visible.sync="drawer"
+        size="664px"
+        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>
+      </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>
+      </div>
+    </el-drawer>
+  </div>
+</template>
+
+<script>
+export default {
+  name: "add",
+  data(){
+    return {
+      drawer:'',
+      form:{},
+      rules:{}
+    }
+  }
+}
+</script>
+
+<style scoped>
+
+</style>

+ 13 - 0
src/HManagement/accountManage/modules/teamInformation/edit.vue

@@ -0,0 +1,13 @@
+<template>
+
+</template>
+
+<script>
+export default {
+  name: "edit"
+}
+</script>
+
+<style scoped>
+
+</style>

+ 115 - 0
src/HManagement/accountManage/modules/teamInformation/index.vue

@@ -0,0 +1,115 @@
+<template>
+  <div>
+    <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>
+        </div>
+        <div style="margin-top: 15px">
+          <tableLayout :layout="tablecols" :data="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>
+              <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-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">
+            <template v-slot:customcol="scope">
+              <div v-if="scope.column.columnname === 'operation'">
+                <span>{{scope.column.data[scope.column.columnname]}}</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>
+  </div>
+</template>
+
+<script>
+import add from './add'
+export default {
+  name: "index",
+  components:{add},
+  data(){
+    return {
+      tablecols:[],
+      list:[],
+      total:0,
+      currentPage:0,
+      activeName: '我负责的',
+      params:{
+        "id": 20230302174201,
+        "content": {
+          "pageNumber": 1,
+          "pageSize": 20,
+          "where":{
+            "conditino":""
+          }
+        }
+      }
+    }
+  },
+  methods:{
+    handleClick(){},
+    handleSizeChange(val) {
+      // console.log(`每页 ${val} 条`);
+      this.params.content.pageSize = val
+      this.listData()
+    },
+    handleCurrentChange(val) {
+      // console.log(`当前页: ${val}`);
+      this.params.content.pageNumber = val
+      this.listData()
+    },
+  },
+  created() {
+    this.tablecols = this.tool.tabelCol(this.$route.name).teamTable.tablecols
+  }
+}
+</script>
+
+<style scoped>
+
+</style>