|
@@ -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,
|