qinzhipeng_v 5 anni fa
parent
commit
a2e8384f80

BIN
src/assets/home_images/home_u.png


+ 4 - 4
src/views/projectManage/Drawer.vue

@@ -14,7 +14,7 @@
             <div v-for="item in val" :key="item.member" class="loop">
               <span style="display: flex">
                 <el-avatar style="background: #FFF;" class="phoneUrl" :src="item.memberInfoResponse.phoneUrl !== '' ? item.memberInfoResponse.phoneUrl : image_role " />
-                <div style="display: flex; flex-direction: column">
+                <div style="display: flex; flex-direction: column; margin-left: 10px;">
                   <span class="titName">{{ item.memberInfoResponse.name }}<span v-if="item.isLeader === 1 ? true : false" class="responsibility">负责人</span></span>
                   <span class="userName">{{ item.member }}</span>
                 </div>
@@ -182,8 +182,8 @@ export default {
       gridData2: [], // 临时储存成员
       dialogVisible: false, // 删除确认dialog
       dialogTableVisible: false, // 添加成员dialog
-      teamOptions: [],
-      options1: [],
+      teamOptions: [], // 搜索团队数据
+      options1: [], // 搜索成员数据
       test: [],
       Gradient: true,
       role: true,
@@ -333,7 +333,6 @@ export default {
     },
 
     deletePersonnel(e, index) { // 删除diolag
-      console.log(e, 'cdscsc')
       switch (index) {
         case 1:
           this.gridData2 = this.gridData2.filter(item => {
@@ -653,6 +652,7 @@ export default {
     color:rgba(64,158,255,1);
     opacity:1;
     margin-left: 10px;
+    padding: 0 5px;
   }
 }
 </style>

+ 5 - 2
src/views/projectManage/dialog_vue.vue

@@ -179,7 +179,6 @@ export default {
           this.projectId = url.split('?id=')
           projectList({ id: Number(this.projectId[1]), curIndex: 1, pageSize: 15 }).then(res => {
             this.dialogFormVisible = true
-            console.log(res.data[0].id, 'ddsdssdssdds')
             var that = this
             setTimeout(function() {
               that.task_form = {}
@@ -219,6 +218,10 @@ export default {
                 hash[next.idap] ? '' : hash[next.idap] = true && item.push(next)
                 return item
               }, [])
+              that.options1 = arr_object.reduce(function(item, next) {
+                hash[next.idap] ? '' : hash[next.idap] = true && item.push(next)
+                return item
+              }, [])
             }, 100)
           })
           break
@@ -350,7 +353,7 @@ export default {
           })
         }, 200)
       } else {
-        this.options = []
+        this.options1 = []
       }
     },
     get_source(e) {

+ 17 - 2
src/views/projectManage/projectList/projectViewDetails.vue

@@ -30,7 +30,7 @@
           </el-dropdown>
         </span>
         <span style="float: right;">
-          <span style="vertical-align: bottom; cursor: pointer; color: #6F7C93;" @click.stop="display = true"><img :src="image_url">&nbsp; {{ num }} &nbsp;</span>
+          <span style="vertical-align: bottom; cursor: pointer; color: #6F7C93;" @click.stop="setChild(), display = true"><img style="width: 24px; display: inline-block;" :src="image_url">&nbsp; {{ num }} &nbsp;</span>
           <el-button size="mini" @click="dele_pro()">删除项目</el-button>
           <el-dropdown placement="bottom" style="margin-left: 10px;">
             <el-button size="mini" type="primary">
@@ -568,7 +568,19 @@
     <TestReport v-if="dialogTestReport" ref="TestReport" />
     <DailyReport v-if="dialogDailyReport" ref="DailyReport" />
     <ClientReport v-if="dialogClientReport" ref="ClientReport" />
-    <drawer title="项目成员" center :display.sync="display" width="28%" :delete="Number(projectId[1])" :types="false" :inner="true" :mask="false" @childValInput="childVal" @click.stop />
+    <drawer
+      ref="drawer"
+      title="项目成员"
+      center
+      :display.sync="display"
+      width="28%"
+      :delete="Number(projectId[1])"
+      :types="false"
+      :inner="true"
+      :mask="false"
+      @childValInput="childVal"
+      @click.stop
+    />
   </div>
 </template>
 
@@ -891,6 +903,9 @@ export default {
         this.total = res.total
       })
     },
+    setChild() {
+      this.$refs.drawer.getRoleList()
+    },
     click_name(e) {
       this.condition = ''
       this.condition = e

+ 17 - 2
src/views/projectManage/requirement/details/index.vue

@@ -27,7 +27,7 @@
             </el-dropdown-menu>
           </el-dropdown>
           <div style="display: inline-block;float: right">
-            <span style="line-height: 45px;vertical-align: bottom; cursor: pointer; color: #6F7C93;" @click.stop="display = true"><img :src="image_url">&nbsp; {{ num }} </span>
+            <span style="line-height: 45px;vertical-align: bottom; cursor: pointer; color: #6F7C93;" @click.stop="setChild(), display = true"><img style="width: 24px; display: inline-block;" :src="image_url">&nbsp; {{ num }} </span>
             <el-button size="mini" style="margin-left: 10px" @click="deleteRequirement">删除需求</el-button>
             <el-button type="primary" size="mini" @click="createTask">新建任务</el-button>
           </div>
@@ -244,7 +244,19 @@
         @confirm="getRequirementById();updateDialogVisible=false"
       />
       <task-create v-if="createTaskDialogVisible" ref="task_createdUpdata" />
-      <drawer title="需求成员" center :display.sync="display" width="28%" :delete="Number(id)" :types="false" :inner="true" :mask="false" @childValInput="childVal" @click.stop />
+      <drawer
+        ref="drawer"
+        title="需求成员"
+        center
+        :display.sync="display"
+        width="28%"
+        :delete="Number(id)"
+        :types="false"
+        :inner="true"
+        :mask="false"
+        @childValInput="childVal"
+        @click.stop
+      />
     </el-container>
   </div>
 </template>
@@ -685,6 +697,9 @@ export default {
       }
       return arr
     },
+    setChild() {
+      this.$refs.drawer.getRoleList()
+    },
     getPmName() {
       const names = []
       for (const i in this.requirement.pm) {

+ 17 - 2
src/views/projectManage/taskList/taskViewDetails.vue

@@ -32,7 +32,7 @@
             </el-dropdown>
           </div>
           <span style="float: right;">
-            <span style="vertical-align: bottom; cursor: pointer; color: #6F7C93;" @click.stop="display = true"><img :src="image_url">&nbsp; {{ num }} </span>
+            <span style="vertical-align: bottom; cursor: pointer; color: #6F7C93;" @click.stop="setChild(), display = true"><img style="width: 24px; display: inline-block;" :src="image_url">&nbsp; {{ num }} </span>
             <el-button style="margin: 0 10px;" size="mini" @click="centerDialogVisible_task = true">删除任务</el-button>
             <el-dropdown trigger="click" placement="bottom">
               <el-button size="mini" type="primary">
@@ -440,7 +440,19 @@
         <bug-details :id="bugId + ''" ref="bugDetails" :init-count="initCount + ''" :type="'drawer'" @close="drawerShow = false" @delete="drawerShow = false;bug_list(codeCache)" @update="bug_list(codeCache)" />
       </div>
     </el-drawer>
-    <drawer title="任务成员" center :display.sync="display" width="28%" :delete="Number(taskId[1])" :types="true" :inner="true" :mask="false" @childValInput="childVal" @click.stop />
+    <drawer
+      ref="drawer"
+      title="任务成员"
+      center
+      :display.sync="display"
+      width="28%"
+      :delete="Number(taskId[1])"
+      :types="true"
+      :inner="true"
+      :mask="false"
+      @childValInput="childVal"
+      @click.stop
+    />
   </div>
 </template>
 
@@ -888,6 +900,9 @@ export default {
       }
       return result
     },
+    setChild() {
+      this.$refs.drawer.getRoleList()
+    },
     open_created(e) {
       // 打开弹窗
       var url = window.location.href // 获取url中"?"符后的字串