浏览代码

优化迭代

qinzhipeng_v 5 年之前
父节点
当前提交
40b90c7a87

+ 2 - 2
src/views/projectManage/iteration/components/PlanningIteration.vue

@@ -233,7 +233,7 @@ export default {
       })
       const data = [
         { id: -1, requirementIds: requiredArr.toString() },
-        { id: this.iterationId, requirementIds: requirementIds.toString() }
+        { id: this.iterationId, bizId: this.bizId, requirementIds: requirementIds.toString() }
       ]
       iterationUpdateBelongingIteration(data).then(res => {
         if (res.code === 200) {
@@ -381,7 +381,7 @@ export default {
   }
 
   .RequirementName {
-    width:46px;
+    width:100px;
     font-size:12px;
     line-height:17px;
     color:rgba(102,102,102,1);

+ 4 - 1
src/views/projectManage/iteration/components/requiredTable.vue

@@ -2,7 +2,7 @@
   <el-container>
     <div v-if="showHeader === false" class="Layout_space_between" style="padding: 9px 0;border-bottom:1px solid rgba(242,243,246,1);">
       <div class="Layout_flex_start" style="width: 90%">
-        <el-checkbox v-model="checkAlls" style="margin-left: 60px;" @change="toggleSelection" />
+        <el-checkbox v-model="checkAlls" style="margin-left: 53px;" @change="toggleSelection" />
         <div style="margin: 0 8% 0 10px" class="startCheck"> 已选择 {{ selectedData.length }} 个</div>
         <div class="iterationCode" @click="dialogVisibleDelete = true"><img class="iterationImage" src="@/assets/建立档案@2x.png"> 移出迭代</div>
         <div style="margin: 0 5%" class="iterationCode"><img class="iterationImage" src="@/assets/建立档案@2x.png">
@@ -58,6 +58,7 @@
     </div>
     <el-table
       ref="topicTable"
+      v-loading="loading"
       :data="RequirementSet"
       row-key="id"
       :show-header="showHeader"
@@ -177,6 +178,7 @@ export default {
       requiredArray: [], // 需求状态
       showHeader: true, // 是否显示表头
       checkAll: [],
+      loading: true,
       searchResult: [], // 变更迭代下的数据
       SearchIterationValue: '',
       checkAlls: false,
@@ -204,6 +206,7 @@ export default {
       this.RequirementSet = listRequire.data.right.list
       this.requiredArray = requiredstatus.data.requirementStatus
       this.checkAll = this.RequirementSet
+      this.loading = false
     },
 
     SearchIteration(e) { // 筛选change

+ 4 - 0
src/views/projectManage/iteration/index.vue

@@ -32,6 +32,7 @@
     </el-header>
     <el-main class="public_main">
       <el-table
+        v-loading="loading"
         :data="iterationTableData"
         :header-cell-style="{ 'color':'rgba(74,74,74,1)','font-size':'14px','font-weight':'500' }"
         :cell-style="{ 'font-size':'14px','color':'rgba(102,102,102,1)' }"
@@ -99,6 +100,7 @@ export default {
       iteration: {}, // 筛选项
       curIndex: 1, // 分页
       pageSize: 15, // 分页
+      loading: true,
       options: [],
       test: [],
       filterItems: {},
@@ -120,6 +122,7 @@ export default {
   },
   methods: {
     iteratioFilter(e, val) { // 筛选change
+      this.loading = true
       let data = {}
       e === 1 ? data = this.filterItems : this.filterItems = {}
       data.bizId = this.bizId
@@ -129,6 +132,7 @@ export default {
       iterationList(data).then(res => {
         this.iterationTableData = res.data.list
         this.total = res.data.total
+        this.loading = false
       })
     },