Browse Source

Merge branch 'http_test' of git.xiaojukeji.com:jacklijiajia/thoth-frontend into http_test

qinzhipeng_v 5 years ago
parent
commit
ff413f6610

+ 5 - 2
src/components/input/textArea.vue

@@ -11,7 +11,7 @@
         </el-tooltip>
         </el-tooltip>
       </div>
       </div>
       <div v-show="!isEmpty && !edit">
       <div v-show="!isEmpty && !edit">
-        <pre class="text-pre" @click="ImmediateAddition" v-html="value" />
+        <pre class="text-pre" @click="ImmediateAddition" v-html="handlerText(value)" />
       </div>
       </div>
       <div :id="'inputUpload_'+id" style="display: none" @click.stop="blur_textarea" />
       <div :id="'inputUpload_'+id" style="display: none" @click.stop="blur_textarea" />
       <div v-show="edit" class="control">
       <div v-show="edit" class="control">
@@ -120,6 +120,10 @@ export default {
         this.$emit('update:value', this.inputValue)
         this.$emit('update:value', this.inputValue)
         this.$emit('change', this.inputValue)
         this.$emit('change', this.inputValue)
       }
       }
+    },
+    handlerText(val) {
+      const reg = new RegExp(/<\/?p[^>]*>/gi)
+      return val.replace(reg, '')
     }
     }
   }
   }
 }
 }
@@ -142,7 +146,6 @@ article {
   color: #333B4A;
   color: #333B4A;
   cursor: pointer;
   cursor: pointer;
   min-height: 20vh;
   min-height: 20vh;
-  padding: 0 40px;
 }
 }
 /deep/ textarea {
 /deep/ textarea {
   width: calc(100% - 40px);
   width: calc(100% - 40px);

+ 1 - 0
src/styles/detail-pages.scss

@@ -84,6 +84,7 @@
     justify-content: space-between;
     justify-content: space-between;
     align-items: center;
     align-items: center;
     /deep/.icon-add {
     /deep/.icon-add {
+      padding-top: 4px;
       font-size: 20px;
       font-size: 20px;
       color: #409EFF;
       color: #409EFF;
     }
     }

+ 7 - 4
src/views/projectManage/projectList/components/needsList.vue

@@ -18,7 +18,7 @@
           </span>
           </span>
         </template>
         </template>
       </el-table-column>
       </el-table-column>
-      <el-table-column label="需求名称" width="250" align="center" show-overflow-tooltip>
+      <el-table-column label="需求名称" width="250" align="left" show-overflow-tooltip>
         <template slot-scope="scope">
         <template slot-scope="scope">
           <div class="table-project-name" @click="needs_link(scope.row.id)">
           <div class="table-project-name" @click="needs_link(scope.row.id)">
             <span class="id">{{ scope.row.requirementDisplayId }}</span>
             <span class="id">{{ scope.row.requirementDisplayId }}</span>
@@ -99,7 +99,7 @@ export default {
       }
       }
     },
     },
     needs_link(id) {
     needs_link(id) {
-      this.$router.push({ name: '需求详情', params: { id: id + '' }})
+      this.$router.push({ name: '需求详情', query: { id: id }})
     }
     }
   }
   }
 }
 }
@@ -152,10 +152,10 @@ export default {
   @include setStatus(#FF8952)
   @include setStatus(#FF8952)
 }
 }
 .status3 {
 .status3 {
-  @include setStatus(#C97DEA)
+  @include setStatus(#FF8952)
 }
 }
 .status5 {
 .status5 {
-  @include setStatus(#13C2C2)
+  @include setStatus(#FF8952)
 }
 }
 .status9 {
 .status9 {
   @include setStatus(#7ED321)
   @include setStatus(#7ED321)
@@ -180,6 +180,9 @@ export default {
   .name {
   .name {
     font-size: 14px;
     font-size: 14px;
     color: #666666;
     color: #666666;
+    overflow: hidden;
+    white-space: nowrap;
+    text-overflow: ellipsis;
   }
   }
 }
 }
 </style>
 </style>

+ 5 - 12
src/views/projectManage/projectList/components/taskList.vue

@@ -58,14 +58,7 @@
         <template slot-scope="scope">
         <template slot-scope="scope">
           <el-select
           <el-select
             v-model="scope.row.status"
             v-model="scope.row.status"
-            :class="{
-              'status_color': scope.row.status === 0,
-              'status_color1': scope.row.status === 1,
-              'status_color4': scope.row.status === 3,
-              'status_color6': scope.row.status === 2,
-              'status_color7': scope.row.status === 4,
-              'status_color2': scope.row.status === 5
-            }"
+            :class="'status'+scope.row.status"
             class="btns"
             class="btns"
             size="mini"
             size="mini"
             @change="changeStatus(scope.row)"
             @change="changeStatus(scope.row)"
@@ -315,6 +308,9 @@ export default {
     cursor: pointer;
     cursor: pointer;
     color: #666666;
     color: #666666;
     font-size: 14px;
     font-size: 14px;
+    overflow: hidden;
+    white-space: nowrap;
+    text-overflow: ellipsis;
   }
   }
   .task-id {
   .task-id {
     color: #A7AEBC;
     color: #A7AEBC;
@@ -345,12 +341,9 @@ export default {
 .status0 {
 .status0 {
   @include setStatus(#409EFF)
   @include setStatus(#409EFF)
 }
 }
-.status1 {
+.status1, .status2, .status3, .status4{
   @include setStatus(#FF8952)
   @include setStatus(#FF8952)
 }
 }
-.status3 {
-  @include setStatus(#13C2C2)
-}
 .status5 {
 .status5 {
   @include setStatus(#7ED321)
   @include setStatus(#7ED321)
 }
 }

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

@@ -95,7 +95,7 @@
             <div class="title-left-name">项目描述</div>
             <div class="title-left-name">项目描述</div>
           </div>
           </div>
           <div>
           <div>
-            <text-area :id="'pro-desc'" :value.sync="form_query.description" :empty-text="'请输入'" :input-button="'需求描述'" @change="changeArea" />
+            <text-area :id="'pro-desc'" :value.sync="form_query.description" :empty-text="'点击'" :input-button="'添加描述'" @change="changeArea" />
           </div>
           </div>
         </section>
         </section>
         <section class="main-section">
         <section class="main-section">
@@ -182,6 +182,7 @@
     </el-container></div>
     </el-container></div>
 </template>
 </template>
 <script>
 <script>
+const _ = require('lodash')
 import {
 import {
   projectList,
   projectList,
   projectUpdate,
   projectUpdate,
@@ -277,7 +278,7 @@ export default {
   },
   },
   methods: {
   methods: {
     async changeArea(e) { // area修改
     async changeArea(e) { // area修改
-      const projectInfo = this.form_query
+      const projectInfo = _.cloneDeep(this.form_query)
       const res = await projectUpdate({ projectInfo, user: this.user })
       const res = await projectUpdate({ projectInfo, user: this.user })
       if (res.code === 200) {
       if (res.code === 200) {
         this.$message({ message: '修改成功', type: 'success', duration: 1000, offset: 150 })
         this.$message({ message: '修改成功', type: 'success', duration: 1000, offset: 150 })

+ 5 - 12
src/views/projectManage/requirement/components/taskList.vue

@@ -58,14 +58,7 @@
         <template slot-scope="scope">
         <template slot-scope="scope">
           <el-select
           <el-select
             v-model="scope.row.status"
             v-model="scope.row.status"
-            :class="{
-              'status_color': scope.row.status === 0,
-              'status_color1': scope.row.status === 1,
-              'status_color4': scope.row.status === 3,
-              'status_color6': scope.row.status === 2,
-              'status_color7': scope.row.status === 4,
-              'status_color2': scope.row.status === 5
-            }"
+            :class="'status'+scope.row.status"
             class="btns"
             class="btns"
             size="mini"
             size="mini"
             @change="changeStatus(scope.row)"
             @change="changeStatus(scope.row)"
@@ -313,6 +306,9 @@ export default {
     cursor: pointer;
     cursor: pointer;
     color: #666666;
     color: #666666;
     font-size: 14px;
     font-size: 14px;
+    overflow: hidden;
+    white-space: nowrap;
+    text-overflow: ellipsis;
   }
   }
   .task-id {
   .task-id {
     color: #A7AEBC;
     color: #A7AEBC;
@@ -343,12 +339,9 @@ export default {
 .status0 {
 .status0 {
   @include setStatus(#409EFF)
   @include setStatus(#409EFF)
 }
 }
-.status1 {
+.status1, .status2, .status3, .status4{
   @include setStatus(#FF8952)
   @include setStatus(#FF8952)
 }
 }
-.status3 {
-  @include setStatus(#13C2C2)
-}
 .status5 {
 .status5 {
   @include setStatus(#7ED321)
   @include setStatus(#7ED321)
 }
 }

+ 8 - 0
src/views/workbench/person/components/myFullCalendar.vue

@@ -264,6 +264,14 @@ export default {
   height: 52px;
   height: 52px;
   line-height: 52px;
   line-height: 52px;
 }
 }
+>>>#small-calendar .fc-dayGridMonth-view .table-bordered .fc-body .fc-day-number {
+  transform: scale(1);
+  font-size: 12px;
+}
+>>>#small-calendar .fc-view-container .table-bordered .fc-head .fc-day-header {
+  transform: scale(1);
+  font-size: 14px;
+}
 </style>
 </style>
 
 
 // fullcalendar
 // fullcalendar

+ 8 - 5
src/views/workbench/person/index.vue

@@ -316,14 +316,17 @@ export default {
       }
       }
     },
     },
     async queryWorkListByTime(view) { // 获取指定时间段用户日程信息
     async queryWorkListByTime(view) { // 获取指定时间段用户日程信息
-      this.calendarView = view
+      this.calendarView = {
+        activeStart: view.activeStart,
+        activeEnd: view.activeEnd
+      }
       const params = {
       const params = {
         timeInfo: {
         timeInfo: {
-          startTime: view.activeStart
-            ? moment(view.activeStart).format('YYYY.MM.DD')
+          startTime: this.calendarView.activeStart
+            ? moment(this.calendarView.activeStart).format('YYYY.MM.DD')
             : moment().startOf('month').format('YYYY.MM.DD'),
             : moment().startOf('month').format('YYYY.MM.DD'),
-          endTime: view.activeEnd
-            ? moment(view.activeEnd).format('YYYY.MM.DD')
+          endTime: this.calendarView.activeEnd
+            ? moment(this.calendarView.activeEnd).format('YYYY.MM.DD')
             : moment().endOf('month').format('YYYY.MM.DD')
             : moment().endOf('month').format('YYYY.MM.DD')
         },
         },
         teamSearchInfo: { bizId: null },
         teamSearchInfo: { bizId: null },

+ 8 - 6
src/views/workbench/team/index.vue

@@ -122,7 +122,6 @@ import ganntViews from './components/ganntViews'
 import MyFullCalendar from '@/views/workbench/person/components/myFullCalendar'
 import MyFullCalendar from '@/views/workbench/person/components/myFullCalendar'
 import calenderDetail from '@/views/workbench/person/components/calenderDetail'
 import calenderDetail from '@/views/workbench/person/components/calenderDetail'
 import calendarDialog from '@/views/workbench/person/components/calendarFormDialog'
 import calendarDialog from '@/views/workbench/person/components/calendarFormDialog'
-import { View } from '@fullcalendar/core'
 import bugTableList from '@/views/workbench/bugTableList.vue'
 import bugTableList from '@/views/workbench/bugTableList.vue'
 
 
 export default {
 export default {
@@ -333,14 +332,17 @@ export default {
       }
       }
     },
     },
     async queryTeamWorkListByTime(view) { // 获取指定时间段团队日程信息
     async queryTeamWorkListByTime(view) { // 获取指定时间段团队日程信息
-      this.calendarView = View
+      this.calendarView = {
+        activeStart: view.activeStart,
+        activeEnd: view.activeEnd
+      }
       const params = {
       const params = {
         timeInfo: {
         timeInfo: {
-          startTime: view.activeStart
-            ? moment(view.activeStart).format('YYYY.MM.DD')
+          startTime: this.calendarView.activeStart
+            ? moment(this.calendarView.activeStart).format('YYYY.MM.DD')
             : moment().startOf('month').format('YYYY.MM.DD'),
             : moment().startOf('month').format('YYYY.MM.DD'),
-          endTime: view.activeEnd
-            ? moment(view.activeEnd).format('YYYY.MM.DD')
+          endTime: this.calendarView.activeEnd
+            ? moment(this.calendarView.activeEnd).format('YYYY.MM.DD')
             : moment().endOf('month').format('YYYY.MM.DD')
             : moment().endOf('month').format('YYYY.MM.DD')
         },
         },
         teamSearchInfo: this.searchForm,
         teamSearchInfo: this.searchForm,