|
@@ -243,7 +243,7 @@
|
|
<!-- <van-search v-model="userName" placeholder="输入项目名称搜索" @clear="sea()" @blur="sea()" @search="sea()"></van-search> -->
|
|
<!-- <van-search v-model="userName" placeholder="输入项目名称搜索" @clear="sea()" @blur="sea()" @search="sea()"></van-search> -->
|
|
<van-search v-model="userName" placeholder="请输入项目名称" @clear="sea()" @blur="sea()" @search="sea()"/>
|
|
<van-search v-model="userName" placeholder="请输入项目名称" @clear="sea()" @blur="sea()" @search="sea()"/>
|
|
<div style="minHeight:300px;">
|
|
<div style="minHeight:300px;">
|
|
- <div v-for="item in projectss" :key="item.id" class="ryuan" @click="fZr(item)">{{item.projectName}}</div>
|
|
|
|
|
|
+ <div v-for="(item, index) in projectss" :key="item.id" class="ryuan" @click="fZr(item, index)">{{item.projectName}}</div>
|
|
</div>
|
|
</div>
|
|
</van-popup>
|
|
</van-popup>
|
|
</div>
|
|
</div>
|
|
@@ -355,7 +355,7 @@
|
|
this.project = this.proads
|
|
this.project = this.proads
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- fZr(item) {
|
|
|
|
|
|
+ fZr(item,index) {
|
|
var domainItem = this.form.domains[this.proIdx];
|
|
var domainItem = this.form.domains[this.proIdx];
|
|
domainItem.projectId = item.id;
|
|
domainItem.projectId = item.id;
|
|
domainItem.projectName = item.projectName;
|
|
domainItem.projectName = item.projectName;
|
|
@@ -370,6 +370,14 @@
|
|
this.showPickerUserddp = false;
|
|
this.showPickerUserddp = false;
|
|
//获取子项目
|
|
//获取子项目
|
|
this.getSubprojectList(this.form.domains[this.proIdx]);
|
|
this.getSubprojectList(this.form.domains[this.proIdx]);
|
|
|
|
+
|
|
|
|
+ //加载项目相关的工程进度
|
|
|
|
+ if (this.user.company.packageEngineering == 1){
|
|
|
|
+ this.getProjectProfessions(this.form.domains[this.proIdx],index);
|
|
|
|
+ }
|
|
|
|
+ // 获取1相关维度
|
|
|
|
+ var proId = this.form.domains[this.clickIndex].projectId
|
|
|
|
+ this.getTaskList(proId)
|
|
},
|
|
},
|
|
getSubprojectList(domainItem) {
|
|
getSubprojectList(domainItem) {
|
|
domainItem.subProjectList = [];
|
|
domainItem.subProjectList = [];
|
|
@@ -847,8 +855,8 @@
|
|
clickPickerTask(i) {
|
|
clickPickerTask(i) {
|
|
if (!this.canEdit) return;
|
|
if (!this.canEdit) return;
|
|
this.clickIndex = i;
|
|
this.clickIndex = i;
|
|
- var proId = this.form.domains[this.clickIndex].projectId
|
|
|
|
- this.getTaskList(proId)
|
|
|
|
|
|
+ // var proId = this.form.domains[this.clickIndex].projectId
|
|
|
|
+ // this.getTaskList(proId)
|
|
this.showPickerTask = true;
|
|
this.showPickerTask = true;
|
|
},
|
|
},
|
|
choseTask(value, index) {
|
|
choseTask(value, index) {
|
|
@@ -879,10 +887,12 @@
|
|
},
|
|
},
|
|
|
|
|
|
getProjectProfessions(domain, index) {
|
|
getProjectProfessions(domain, index) {
|
|
|
|
+ console.log(domain, '数据')
|
|
this.$axios.post("/project-profession/getMyProfession", {projectId: domain.projectId})
|
|
this.$axios.post("/project-profession/getMyProfession", {projectId: domain.projectId})
|
|
.then(res => {
|
|
.then(res => {
|
|
if(res.code == "ok") {
|
|
if(res.code == "ok") {
|
|
this.form.domains[this.clickIndex].professionProgress = res.data;
|
|
this.form.domains[this.clickIndex].professionProgress = res.data;
|
|
|
|
+ console.log(this.form.domains)
|
|
this.$forceUpdate();
|
|
this.$forceUpdate();
|
|
} else {
|
|
} else {
|
|
this.$toast.fail('获取失败');
|
|
this.$toast.fail('获取失败');
|
|
@@ -1357,6 +1367,10 @@
|
|
height: 40px;
|
|
height: 40px;
|
|
color: #333;
|
|
color: #333;
|
|
border-bottom: 2px solid #f6f6f6;
|
|
border-bottom: 2px solid #f6f6f6;
|
|
|
|
+ width: 100%;
|
|
|
|
+ overflow: hidden;
|
|
|
|
+ text-overflow:ellipsis;
|
|
|
|
+ white-space: nowrap;
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|
|
|
|
|