Quellcode durchsuchen

BUG:子任务编辑点完成后返回到子项目列表时,那个状态按钮会有个关闭打开的动画

Lijy vor 2 Jahren
Ursprung
Commit
6a251c7f8f
1 geänderte Dateien mit 6 neuen und 10 gelöschten Zeilen
  1. 6 10
      fhKeeper/formulahousekeeper/timesheet/src/views/project/list.vue

+ 6 - 10
fhKeeper/formulahousekeeper/timesheet/src/views/project/list.vue

@@ -819,11 +819,6 @@
         <!-- 子项目列表 -->
         <el-dialog :title="$t('listofsubitems')" show-header="false" v-if="subProjectVisible" :visible.sync="subProjectVisible" :close-on-click-modal="false" customClass="customWidth" width="500px">
             <el-table :data="subProjectList" highlight-current-row  height="400" style="width: 100%;">
-            <!-- <el-table-column type="index" width="60" label="序号">
-                <template slot-scope="scope" >
-                        {{scope.$index+1+(page-1)*size}}
-                    </template>
-            </el-table-column> -->
             <el-table-column width="120" :label="$t('subprojectno')" prop="code"></el-table-column>
             <el-table-column prop="name" :label="$t('names')" ></el-table-column>
             <el-table-column :label="$t('operation')" width="220">
@@ -3649,8 +3644,9 @@ a {
                 if (subProject == null) {
                     this.temaddForm = {projectId: this.currentProject.id, level:1}
                 } else {
-                    subProject.status=subProject.status==true?1:0
-                    this.temaddForm = JSON.parse(JSON.stringify(subProject));
+                    let aac = JSON.parse(JSON.stringify(subProject))
+                    aac.status=aac.status==true?1:0
+                    this.temaddForm = JSON.parse(JSON.stringify(aac));
                 }
                 this.addSubProject = true;
             },
@@ -3663,10 +3659,10 @@ a {
                 },
                 res => {
                     if (res.code == "ok") {
-                        this.subProjectList = res.data;
-                        for(let i = 0; i < this.subProjectList.length; i++){
-                            this.subProjectList[i].status=this.subProjectList[i].status==1?true:false
+                        for(let i = 0; i < res.data.length; i++){
+                            res.data[i].status=res.data[i].status==1?true:false
                         }
+                        this.subProjectList = res.data
                     } else {
                         this.$message({
                         message: res.msg,