Przeglądaj źródła

样式改动,Bug修复

PrinceLee 5 lat temu
rodzic
commit
cb4bd4755c

+ 20 - 1
src/views/projectManage/bugList/details/bugTableDialog.vue

@@ -21,7 +21,7 @@
           <statusChange :status-code="Number(scope.row.status)" :bug-data="scope.row" />
         </template>
       </el-table-column>
-      <el-table-column prop="taskName" label="所属任务" align="center" min-width="250" show-overflow-tooltip />
+      <el-table-column v-if="noShow !== 'taskName'" prop="taskName" label="所属任务" align="center" min-width="250" show-overflow-tooltip />
       <el-table-column prop="creatorList" label="提报人" align="center" />
       <el-table-column prop="assignerList" label="责任人" min-width="150" align="center" show-overflow-tooltip />
       <el-table-column prop="currentHandlerList" label="修复人" min-width="150" align="center" show-overflow-tooltip />
@@ -76,6 +76,18 @@ export default {
       return da[0]
     }
   },
+  props: {
+    noShow: {
+      type: String,
+      default: '',
+      required: false
+    },
+    objId: {
+      type: Object,
+      default: () => null,
+      required: true
+    }
+  },
   data() {
     return {
       tableData: [], // tableData
@@ -95,6 +107,13 @@ export default {
   watch: {
     clickCount(newVal, oldVal) {
       this.drawerShow = false
+    },
+    objId: {
+      handler(newV, oldV) {
+        this.bugGetTableList(newV)
+      },
+      deep: true,
+      immediate: true
     }
   },
   // created() {

+ 2 - 2
src/views/projectManage/projectList/components/mileStone.vue

@@ -219,7 +219,7 @@ export default {
     async mileStoneCreate(milestone, user) {
       const res = await mileStoneCreate({ milestone, user })
       if (res.code === 200) {
-        this.$message({ message: res.msg, type: 'success', duration: 1000, offset: 150 })
+        this.$message({ message: '添加成功', type: 'success', duration: 1000, offset: 150 })
       }
       this.dialogFormVisible = false
       this.change()
@@ -227,7 +227,7 @@ export default {
     async mileStoneUpdate(milestone, user) {
       const res = await mileStoneUpdate({ milestone, user })
       if (res.code === 200) {
-        this.$message({ message: res.msg, type: 'success', duration: 1000, offset: 150 })
+        this.$message({ message: '修改成功', type: 'success', duration: 1000, offset: 150 })
       }
       this.dialogFormVisible = false
       this.change()

+ 1 - 1
src/views/projectManage/projectList/components/modifyProject.vue

@@ -181,7 +181,7 @@ export default {
       const res = await projectUpdate({ projectInfo, user })
       if (res.code === 200) {
         this.modify_project = false
-        this.$message({ message: res.msg, type: 'success', duration: 1000, offset: 150 })
+        this.$message({ message: '修改成功', type: 'success', duration: 1000, offset: 150 })
       }
     },
     change() {

+ 1 - 1
src/views/projectManage/projectList/components/needsList.vue

@@ -94,7 +94,7 @@ export default {
       const modifier = localStorage.getItem('username')
       const res = await updateRequirementStatus({ id: e.id, status: e.status, modifier: modifier })
       if (res.code === 200) {
-        this.$message({ message: res.msg, type: 'success', offset: 150 })
+        this.$message({ message: '修改成功', type: 'success', offset: 150 })
       }
     },
     needs_link(id) {

+ 19 - 10
src/views/projectManage/projectList/components/scheduleList.vue

@@ -16,15 +16,17 @@
       >
         <template>
           <el-tooltip class="item" effect="dark" content="代表移动,鼠标选中区域可以向上移动" placement="bottom">
-            <div class="sortable-tip" />
+            <div class="sortable-tip">
+              <img :src="move">
+            </div>
           </el-tooltip>
         </template>
       </el-table-column>
       <el-table-column
         prop="type"
         label="类型"
-        width="180"
-        align="center"
+        width="100"
+        align="left"
       >
         <template slot-scope="scope">
           {{ getType(scope.row.type) }}
@@ -33,27 +35,27 @@
       <el-table-column
         prop="desc"
         label="描述"
-        min-width="250"
-        align="center"
+        min-width="150"
+        align="left"
         show-overflow-tooltip
       />
       <el-table-column
         prop="seperateDaysNoHoliday"
         label="排期"
-        min-width="250"
+        min-width="200"
         align="center"
         show-overflow-tooltip
       />
       <el-table-column
         prop="dayLength"
         label="时长"
-        width="200"
+        width="50"
         align="center"
       />
       <el-table-column
         prop="peopleList"
         label="参与人员"
-        min-width="200"
+        min-width="100"
         align="center"
       />
       <el-table-column
@@ -92,6 +94,7 @@ import moment from 'moment'
 import 'moment/locale/zh-cn'
 import { listByTask, scheduleDelete, sortForTask } from '@/api/projectViewDetails'
 import modifySchedule from './modifySchedule'
+import move from '@/assets/麻将@2x.png'
 export default {
   components: {
     modifySchedule
@@ -115,6 +118,7 @@ export default {
   },
   data() {
     return {
+      move: move,
       scheduleList: [],
       scheduleDetail: {},
       visibleSchedule: false,
@@ -155,7 +159,7 @@ export default {
     async sortForTask(arr) {
       const res = await sortForTask(this.id, arr)
       if (res.code === 200) {
-        this.$message({ message: '移动成功', type: 'success', duration: 1000, offset: 150 })
+        this.$message({ message: 'success', type: 'success', duration: 1000, offset: 150 })
       }
     },
     getType(value) {
@@ -243,9 +247,14 @@ export default {
 .sortable-tip {
   height: 26px;
   width: 15px;
-  border:1px solid rgba(0,0,0,0.15);
   border-radius:2px;
   margin: auto;
+  display: flex;
+  justify-content: center;
+  align-items: center;
+  img {
+    width: 8px;
+  }
 }
 </style>
 <style>

+ 7 - 10
src/views/projectManage/projectList/projectViewDetails.vue

@@ -116,28 +116,28 @@
       </el-container>
       <!-- 概览 -->
       <!-- 需求 -->
-      <el-container v-show="activeName === '2'" style="height: calc(100vh - 125px);">
+      <el-container v-show="activeName === '2'">
         <section class="main-section">
           <needs-list />
         </section>
       </el-container>
       <!-- 需求 -->
       <!-- 任务 -->
-      <el-container v-show="activeName === '3'" class="is-vertical" style="height: calc(100vh - 125px);">
+      <el-container v-show="activeName === '3'" class="is-vertical">
         <section class="main-section">
           <tasks-list />
         </section>
       </el-container>
       <!-- 任务 -->
       <!-- 缺陷 -->
-      <el-container v-show="activeName === '4'" class="is-vertical" style="height: calc(100vh - 125px);">
+      <el-container v-show="activeName === '4'" class="is-vertical">
         <section class="main-section">
-          <bugTableDialog ref="bugTableDialog" />
+          <bugTableDialog ref="bugTableDialog" :obj-id="{ projectId: Number(this.$route.query.id) }" />
         </section>
       </el-container>
       <!-- 缺陷 -->
       <!-- 统计 -->
-      <el-container v-if="activeName === '5'" class="is-vertical" style="height: calc(100vh - 125px);">
+      <el-container v-if="activeName === '5'" class="is-vertical">
         <section class="main-section">
           <data-statistics @change="get_list" />
         </section>
@@ -271,9 +271,6 @@ export default {
     this.$store.state.data.status = true
     this.$store.state.data.bizId = true
   },
-  mounted() {
-    this.$refs.bugTableDialog.bugGetTableList({ projectId: Number(this.$route.query.id) })
-  },
   destroyed() {
     this.$store.state.data.status = false
     this.$store.state.data.bizId = false
@@ -283,7 +280,7 @@ export default {
       const projectInfo = this.form_query
       const res = await projectUpdate({ projectInfo, user: this.user })
       if (res.code === 200) {
-        this.$message({ message: res.msg, type: 'success', duration: 1000, offset: 150 })
+        this.$message({ message: '修改成功', type: 'success', duration: 1000, offset: 150 })
       }
     },
     childVal(val) {
@@ -351,7 +348,7 @@ export default {
       const user = this.user
       projectUpdate({ projectInfo, user }).then(res => {
         if (res.code === 200) {
-          this.$message({ message: res.msg, type: 'success', duration: 1000, offset: 150 })
+          this.$message({ message: '修改成功', type: 'success', duration: 1000, offset: 150 })
         }
       })
     },

+ 1 - 1
src/views/projectManage/requirement/components/modifySchedule.vue

@@ -230,7 +230,7 @@ export default {
     async scheduleUpdate(params) { // 更新排期
       const res = await scheduleUpdate(params)
       if (res.code === 200) {
-        this.$message({ message: '更新成功', type: 'success', duration: 1000, offset: 150 })
+        this.$message({ message: '修改成功', type: 'success', duration: 1000, offset: 150 })
       }
       this.$emit('update')
       this.cancel()

+ 17 - 9
src/views/projectManage/requirement/components/scheduleList.vue

@@ -16,15 +16,17 @@
       >
         <template>
           <el-tooltip class="item" effect="dark" content="代表移动,鼠标选中区域可以向上移动" placement="bottom">
-            <div class="sortable-tip" />
+            <div class="sortable-tip">
+              <img :src="move">
+            </div>
           </el-tooltip>
         </template>
       </el-table-column>
       <el-table-column
         prop="type"
         label="类型"
-        width="180"
-        align="center"
+        width="100"
+        align="left"
       >
         <template slot-scope="scope">
           {{ getType(scope.row.type) }}
@@ -33,27 +35,27 @@
       <el-table-column
         prop="desc"
         label="描述"
-        min-width="250"
-        align="center"
+        min-width="150"
+        align="left"
         show-overflow-tooltip
       />
       <el-table-column
         prop="seperateDaysNoHoliday"
         label="排期"
-        min-width="250"
+        min-width="200"
         align="center"
         show-overflow-tooltip
       />
       <el-table-column
         prop="dayLength"
         label="时长"
-        width="200"
+        width="50"
         align="center"
       />
       <el-table-column
         prop="peopleList"
         label="参与人员"
-        min-width="200"
+        min-width="100"
         align="center"
       />
       <el-table-column
@@ -93,6 +95,7 @@ import 'moment/locale/zh-cn'
 import { getTaskByRequireId } from '@/api/requirement.js'
 import { listByTask, scheduleDelete, sortForTask } from '@/api/projectViewDetails'
 import modifySchedule from './modifySchedule'
+import move from '@/assets/麻将@2x.png'
 export default {
   components: {
     modifySchedule
@@ -121,6 +124,7 @@ export default {
   },
   data() {
     return {
+      move: move,
       scheduleList: [],
       scheduleDetail: {},
       visibleSchedule: false,
@@ -249,9 +253,13 @@ export default {
 .sortable-tip {
   height: 26px;
   width: 15px;
-  border:1px solid rgba(0,0,0,0.15);
   border-radius:2px;
   margin: auto;
+  justify-content: center;
+  align-items: center;
+  img {
+    width: 8px;
+  }
 }
 </style>
 <style>

+ 2 - 2
src/views/projectManage/requirement/components/taskList.vue

@@ -204,7 +204,7 @@ export default {
         const taskInfoDO = e
         const resTask = await taskUpdate({ taskInfoDO, user })
         if (resTask.code === 200) {
-          this.$message({ message: resTask.msg, type: 'success', offset: 150 })
+          this.$message({ message: '修改成功', type: 'success', offset: 150 })
         }
       }
     },
@@ -218,7 +218,7 @@ export default {
       taskInfoDO.onlineRealTime = this.changeStatusDate
       const resTask = await taskUpdate({ taskInfoDO, user })
       if (resTask.code === 200) {
-        this.$message({ message: resTask.msg, type: 'success', offset: 150 })
+        this.$message({ message: '修改成功', type: 'success', offset: 150 })
       }
     },
     handleSelectionChange(val) { // 任务列表删选操作

+ 9 - 12
src/views/projectManage/requirement/requirementDetail.vue

@@ -47,7 +47,7 @@
         </div>
       </el-header>
       <!-- 概览 -->
-      <el-container v-show="activeName === '1'" class="is-vertical">
+      <el-container v-if="activeName === '1'" class="is-vertical">
         <section class="main-section">
           <div class="el-main-title">
             <div class="title-left-icon" />
@@ -148,21 +148,21 @@
       </el-container>
       <!-- 概览 -->
       <!-- 任务 -->
-      <el-container v-show="activeName === '2'" class="is-vertical" style="height: calc(100vh - 125px);">
+      <el-container v-if="activeName === '2'" class="is-vertical">
         <section class="main-section">
           <tasks-list />
         </section>
       </el-container>
       <!-- 任务 -->
       <!-- 缺陷 -->
-      <el-container v-show="activeName === '3'" class="is-vertical" style="height: calc(100vh - 125px);">
+      <el-container v-if="activeName === '3'" class="is-vertical">
         <section class="main-section">
-          <bugTableDialog ref="bugTableDialog" />
+          <bugTableDialog ref="bugTableDialog" :obj-id="{ requireId: Number(this.$route.query.id) }" />
         </section>
       </el-container>
       <!-- 缺陷 -->
       <!-- 统计 -->
-      <el-container v-if="activeName === '4'" class="is-vertical" style="height: calc(100vh - 125px);">
+      <el-container v-if="activeName === '4'" class="is-vertical">
         <section class="main-section">
           <data-statistics @change="getRequirementById" />
         </section>
@@ -198,7 +198,7 @@
       <createdBug v-if="bug_open" ref="createdBug" />
       <drawer
         ref="drawer"
-        title="项目成员"
+        title="需求成员"
         center
         :display.sync="display"
         width="28%"
@@ -302,9 +302,6 @@ export default {
     this.$store.state.data.status = true
     this.$store.state.data.bizId = true
   },
-  mounted() {
-    this.$refs.bugTableDialog.bugGetTableList({ requireId: Number(this.$route.query.id) })
-  },
   destroyed() {
     this.$store.state.data.status = false
     this.$store.state.data.bizId = false
@@ -315,7 +312,7 @@ export default {
       requirementInfo.pm = requirementInfo.pm.idap
       const res = await updateRequirement(requirementInfo)
       if (res.code === 200) {
-        this.$message({ message: res.msg, type: 'success', duration: 1000, offset: 150 })
+        this.$message({ message: '修改成功', type: 'success', duration: 1000, offset: 150 })
       }
       this.getRequirementById()
     },
@@ -387,7 +384,7 @@ export default {
         modifier: localStorage.getItem('username')
       })
       if (res.code === 200) {
-        this.$message({ message: '状态修改成功', type: 'success', duration: 1000, offset: 150 })
+        this.$message({ message: '修改成功', type: 'success', duration: 1000, offset: 150 })
       }
       this.getRequirementById()
     },
@@ -403,7 +400,7 @@ export default {
         modifier: localStorage.getItem('username')
       })
       if (res.code === 200) {
-        this.$message({ message: '删除成功', type: 'warning', duration: 1000, offset: 150 })
+        this.$message({ message: '删除成功', type: 'success', duration: 1000, offset: 150 })
       }
     },
     reated_task() { // 新建任务

+ 1 - 1
src/views/projectManage/taskList/components/reportList.vue

@@ -275,7 +275,7 @@ export default {
       } else if (this.Str === '删除') {
         const res = await launchTestDelete(userData, this.CallBackId)
         if (res.code === 200) {
-          this.$message({ type: 'warning', message: '已删除' })
+          this.$message({ type: 'success', message: '删除成功' })
         }
       }
     },

+ 18 - 9
src/views/projectManage/taskList/components/scheduleList.vue

@@ -16,15 +16,17 @@
       >
         <template>
           <el-tooltip class="item" effect="dark" content="代表移动,鼠标选中区域可以向上移动" placement="bottom">
-            <div class="sortable-tip" />
+            <div class="sortable-tip">
+              <img :src="move">
+            </div>
           </el-tooltip>
         </template>
       </el-table-column>
       <el-table-column
         prop="type"
         label="类型"
-        width="180"
-        align="center"
+        width="100"
+        align="left"
       >
         <template slot-scope="scope">
           {{ getType(scope.row.type) }}
@@ -33,27 +35,27 @@
       <el-table-column
         prop="desc"
         label="描述"
-        min-width="250"
-        align="center"
+        min-width="150"
+        align="left"
         show-overflow-tooltip
       />
       <el-table-column
         prop="seperateDaysNoHoliday"
         label="排期"
-        min-width="250"
+        min-width="200"
         align="center"
         show-overflow-tooltip
       />
       <el-table-column
         prop="dayLength"
         label="时长"
-        width="200"
+        width="50"
         align="center"
       />
       <el-table-column
         prop="peopleList"
         label="参与人员"
-        min-width="200"
+        min-width="100"
         align="center"
       />
       <el-table-column
@@ -92,6 +94,7 @@ import moment from 'moment'
 import 'moment/locale/zh-cn'
 import { listByTask, scheduleDelete, sortForTask } from '@/api/projectViewDetails'
 import modifySchedule from './modifySchedule'
+import move from '@/assets/麻将@2x.png'
 export default {
   components: {
     modifySchedule
@@ -115,6 +118,7 @@ export default {
   },
   data() {
     return {
+      move: move,
       scheduleList: [],
       scheduleDetail: {},
       visibleSchedule: false,
@@ -243,9 +247,14 @@ export default {
 .sortable-tip {
   height: 26px;
   width: 15px;
-  border:1px solid rgba(0,0,0,0.15);
   border-radius:2px;
   margin: auto;
+  display: flex;
+  justify-content: center;
+  align-items: center;
+  img {
+    width: 8px;
+  }
 }
 </style>
 <style>

+ 9 - 12
src/views/projectManage/taskList/taskViewDetail.vue

@@ -57,7 +57,7 @@
         </div>
       </el-header>
       <!-- 概览 -->
-      <el-container v-show="activeName === '1'" class="is-vertical">
+      <el-container v-if="activeName === '1'" class="is-vertical">
         <section class="main-section">
           <div class="el-main-title">
             <div class="title-left-icon" />
@@ -154,19 +154,19 @@
       </el-container>
       <!-- 概览 -->
       <!-- 缺陷 -->
-      <el-container v-show="activeName === '2'" class="is-vertical" style="height: calc(100vh - 125px);">
+      <el-container v-if="activeName === '2'" class="is-vertical">
         <section class="main-section">
-          <bugTableDialog ref="bugTableDialog" />
+          <bugTableDialog ref="bugTableDialog" no-show="taskName" :obj-id="{ taskId: Number(this.$route.query.id) }" />
         </section>
       </el-container>
       <!-- 缺陷 -->
       <!-- 报告 -->
-      <el-container v-show="activeName === '3'" class="is-vertical" style="height: calc(100vh - 125px);">
+      <el-container v-if="activeName === '3'" class="is-vertical">
         <report-list />
       </el-container>
       <!-- 报告 -->
       <!-- 统计 -->
-      <el-container v-if="activeName === '4'" class="is-vertical" style="height: calc(100vh - 125px);">
+      <el-container v-if="activeName === '4'" class="is-vertical">
         <section class="main-section">
           <data-statistics />
         </section>
@@ -193,7 +193,7 @@
       <task-dialog v-if="showTaskDialog" :show.sync="showTaskDialog" :task-id="taskIds.id" :status-name="taskIds.statusString" @getList="taskGet" />
       <drawer
         ref="drawer"
-        title="项目成员"
+        title="任务成员"
         center
         :display.sync="display"
         width="28%"
@@ -306,9 +306,6 @@ export default {
     this.$store.state.data.status = true
     this.$store.state.data.bizId = true
   },
-  mounted() {
-    this.$refs.bugTableDialog.bugGetTableList({ taskId: Number(this.$route.query.id) })
-  },
   destroyed() {
     this.$store.state.data.status = false
     this.$store.state.data.bizId = false
@@ -323,7 +320,7 @@ export default {
       }
       const res = await taskUpdate({ taskInfoDO, user })
       if (res.code === 200) {
-        this.$message({ message: '修改', type: 'success', duration: 1000, offset: 150 })
+        this.$message({ message: '修改成功', type: 'success', duration: 1000, offset: 150 })
       }
       this.taskGet()
     },
@@ -417,13 +414,13 @@ export default {
       const user = { name: this.userNames, ename: this.userInformation, id: '' }
       const res = await tasktaskDelete(user, this.taskId)
       if (res.code === 200) {
-        this.$message({ message: '删除成功', type: 'warning', duration: 1000, offset: 150 })
+        this.$message({ message: '删除成功', type: 'success', duration: 1000, offset: 150 })
       }
     },
     created_bug() { // 缺陷创建
       this.bug_open = true
       this.$nextTick(() => {
-        this.$refs.createdBug.init(1)
+        this.$refs.createdBug.init(1, { id: this.taskId })
       })
     },
     createReport(e, ele) { // 创建报告