|
@@ -43,19 +43,19 @@
|
|
|
</div>
|
|
|
<div>上传项目内容</div>
|
|
|
</div>
|
|
|
- <!-- <div v-if="steps == 4" class="four">
|
|
|
+ <div v-if="steps == 4 && type == 2" class="four">
|
|
|
<div>
|
|
|
<img src="../../../assets/icon/five.png" alt style="width:33px" />
|
|
|
</div>
|
|
|
- <div>项目管理</div>
|
|
|
- </div>
|
|
|
- <div v-else class="fourNo" @click="navSteps(4)">
|
|
|
+ <div>项目进展</div>
|
|
|
+ </div>
|
|
|
+ <div v-else-if="type == 2" class="fourNo" @click="navSteps(4)">
|
|
|
<div>
|
|
|
<img src="../../../assets/icon/fiveNo.png" alt style="width:33px" />
|
|
|
</div>
|
|
|
- <div>项目管理</div>
|
|
|
- </div>-->
|
|
|
- <div v-if="steps == 4" class="four">
|
|
|
+ <div>项目进展</div>
|
|
|
+ </div>
|
|
|
+ <div v-if="steps == 5" class="four">
|
|
|
<div>
|
|
|
<img src="../../../assets/icon/four.png" alt />
|
|
|
</div>
|
|
@@ -90,8 +90,8 @@
|
|
|
<h3 class="info_title" v-if="steps == 1">项目内容填写</h3>
|
|
|
<h3 class="info_title" v-if="steps == 2">请选择项目框架</h3>
|
|
|
<h3 class="info_title" v-if="steps == 3">项目内容填写</h3>
|
|
|
- <!-- <h3 class="info_title" v-if="steps == 4">项目管理</h3> -->
|
|
|
- <h3 class="info_title" v-if="steps == 4">上传项目</h3>
|
|
|
+ <h3 class="info_title" v-if="steps == 4">项目管理</h3>
|
|
|
+ <h3 class="info_title" v-if="steps == 5">上传项目</h3>
|
|
|
<el-breadcrumb separator-class="el-icon-arrow-right" style="margin-top: 15px">
|
|
|
<!-- /studentCourse -->
|
|
|
<el-breadcrumb-item :to="{
|
|
@@ -590,7 +590,7 @@
|
|
|
<div class="line"></div>
|
|
|
</div>
|
|
|
<div>
|
|
|
- <editor-bar style="width: 90% !important; margin: 0" placeholder="请输入任务描述" v-model="
|
|
|
+ <editor-bar style="width: 90% !important; margin: 0;height: 500px;" class="ed_s" placeholder="请输入任务描述" v-model="
|
|
|
unitJson[unitIndex].chapterInfo[0].taskJson[
|
|
|
itemTaskIndex
|
|
|
].taskDetail
|
|
@@ -863,21 +863,21 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <!-- <div class="rightBox" v-if="this.steps == 4">
|
|
|
+ <div class="rightBox" v-if="steps == 4">
|
|
|
<div class="proMan">
|
|
|
<div class="title"><img src="../../../assets/icon/task.png" alt />任务进展甘特图</div>
|
|
|
- <ganChart :Json="unitJson"></ganChart>
|
|
|
+ <ganChart :Json="unitJson" v-if="steps == 4"></ganChart>
|
|
|
</div>
|
|
|
<div class="proMan">
|
|
|
<div class="title"><img src="../../../assets/icon/proMan.png" alt />负责人看板</div>
|
|
|
- <proMan :Json="unitJson"></proMan>
|
|
|
+ <proMan :Json="unitJson" :ManAarray="ManAarray"></proMan>
|
|
|
</div>
|
|
|
- </div> -->
|
|
|
+ </div>
|
|
|
<div style="
|
|
|
width: calc(100% - 20px);
|
|
|
background: rgb(255, 255, 255);
|
|
|
border-radius: 10px;
|
|
|
- " v-if="this.steps == 4">
|
|
|
+ " v-if="steps == 5">
|
|
|
<div class="basic_box_success">
|
|
|
<div class="right_img">
|
|
|
<img src="../../../assets/icon/right.png" alt />
|
|
@@ -899,11 +899,11 @@
|
|
|
">
|
|
|
返回项目
|
|
|
</button>
|
|
|
- <button class="info_btn" v-if="steps > 1 && steps != 5" @click="lastSteps">
|
|
|
- {{ steps == 4 ? "返回首页" : "上一步" }}
|
|
|
+ <button class="info_btn" v-if="steps > 1 && steps != 6" @click="lastSteps">
|
|
|
+ {{ steps == 5 ? "返回首页" : "上一步" }}
|
|
|
</button>
|
|
|
- <button class="info_btn" v-if="steps < 4" @click="nextSteps">
|
|
|
- {{ steps == 3 ? "确认上传" : "下一步" }}
|
|
|
+ <button class="info_btn" v-if="steps < 5" @click="nextSteps">
|
|
|
+ {{ (steps == 4 && type == 2) || (steps == 3 && type != 2) ? "确认上传" : "下一步" }}
|
|
|
</button>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -1752,6 +1752,7 @@ export default {
|
|
|
userid: this.$route.query.userid,
|
|
|
oid: this.$route.query.oid,
|
|
|
org: this.$route.query.org,
|
|
|
+ type: this.$route.query.type,
|
|
|
cid: this.$route.query.cid != undefined ? this.$route.query.cid : "",
|
|
|
orgArray: ["150e3120-9195-11ed-b13d-005056b86db5"],
|
|
|
oidArray: [],
|
|
@@ -2038,7 +2039,7 @@ export default {
|
|
|
return _guid;
|
|
|
},
|
|
|
lastSteps() {
|
|
|
- if (this.steps == 4) {
|
|
|
+ if (this.steps == 5) {
|
|
|
this.goTo(
|
|
|
this.fpath + "?userid=" +
|
|
|
this.userid +
|
|
@@ -2263,14 +2264,22 @@ export default {
|
|
|
return;
|
|
|
} else {
|
|
|
this.addWork();
|
|
|
- this.steps++;
|
|
|
+ if(this.type != 2){
|
|
|
+ this.steps = 5
|
|
|
+ }else{
|
|
|
+ this.steps++;
|
|
|
+ }
|
|
|
}
|
|
|
} else {
|
|
|
if (this.courseName == "") {
|
|
|
this.$message.error("请将信息填写完整");
|
|
|
return;
|
|
|
} else {
|
|
|
- this.steps++;
|
|
|
+ if(this.type != 2){
|
|
|
+ this.steps = 5
|
|
|
+ }else{
|
|
|
+ this.steps++;
|
|
|
+ }
|
|
|
if (this.userid != this.courseUserid) {
|
|
|
this.updateWork2();
|
|
|
} else {
|
|
@@ -2278,15 +2287,14 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ }else if (this.steps == 4) {
|
|
|
+ if (this.userid != this.courseUserid) {
|
|
|
+ this.updateWork2();
|
|
|
+ } else {
|
|
|
+ this.updateWork();
|
|
|
+ }
|
|
|
+ this.steps++
|
|
|
}
|
|
|
- // else if (this.steps == 4) {
|
|
|
- // if (this.userid != this.courseUserid) {
|
|
|
- // this.updateWork2();
|
|
|
- // } else {
|
|
|
- // this.updateWork();
|
|
|
- // }
|
|
|
- // this.steps++
|
|
|
- // }
|
|
|
} else {
|
|
|
if (this.steps == 1) {
|
|
|
if (this.courseName != "") {
|
|
@@ -2321,14 +2329,22 @@ export default {
|
|
|
return;
|
|
|
} else {
|
|
|
this.addWork();
|
|
|
- this.steps++;
|
|
|
+ if(this.type != 2){
|
|
|
+ this.steps = 5
|
|
|
+ }else{
|
|
|
+ this.steps++;
|
|
|
+ }
|
|
|
}
|
|
|
} else {
|
|
|
if (this.courseName == "") {
|
|
|
this.$message.error("请将信息填写完整");
|
|
|
return;
|
|
|
} else {
|
|
|
- this.steps++
|
|
|
+ if(this.type != 2){
|
|
|
+ this.steps = 5
|
|
|
+ }else{
|
|
|
+ this.steps++;
|
|
|
+ }
|
|
|
if (this.userid != this.courseUserid) {
|
|
|
this.updateWork2();
|
|
|
} else {
|
|
@@ -2336,15 +2352,14 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ }else if (this.steps == 4) {
|
|
|
+ if (this.userid != this.courseUserid) {
|
|
|
+ this.updateWork2();
|
|
|
+ } else {
|
|
|
+ this.updateWork();
|
|
|
+ }
|
|
|
+ this.steps++
|
|
|
}
|
|
|
- // else if (this.steps == 4) {
|
|
|
- // if (this.userid != this.courseUserid) {
|
|
|
- // this.updateWork2();
|
|
|
- // } else {
|
|
|
- // this.updateWork();
|
|
|
- // }
|
|
|
- // this.steps++
|
|
|
- // }
|
|
|
}
|
|
|
this.$refs.stepBox.scrollTop = 0;
|
|
|
},
|
|
@@ -3363,7 +3378,11 @@ export default {
|
|
|
}
|
|
|
if (cPan == 2) {
|
|
|
if (this.steps != 3) {
|
|
|
- this.steps--;
|
|
|
+ if(this.type == 2 && this.steps == 5){
|
|
|
+ this.steps == 3;
|
|
|
+ }else{
|
|
|
+ this.steps--;
|
|
|
+ }
|
|
|
}
|
|
|
return;
|
|
|
}
|
|
@@ -7559,4 +7578,8 @@ ol {
|
|
|
height: 17px;
|
|
|
width: 17px;
|
|
|
}
|
|
|
+
|
|
|
+.ed_s >>> .text{
|
|
|
+ height: calc(100% - 42px);
|
|
|
+}
|
|
|
</style>
|