|
@@ -86,6 +86,9 @@
|
|
|
<div>
|
|
|
<el-button @click="openScore(a, 1)">评分</el-button>
|
|
|
</div>
|
|
|
+ <div v-if="a.score">
|
|
|
+ <el-button @click="lookAnliScore(a.id)">查看评分</el-button>
|
|
|
+ </div>
|
|
|
<!-- <div>
|
|
|
<el-button @click="openScore(a, 2)">推荐</el-button>
|
|
|
</div> -->
|
|
@@ -130,6 +133,9 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="aName">
|
|
|
+ <div class="searchImg">
|
|
|
+ <img src="../../../assets/icon/search.png" alt="" />
|
|
|
+ </div>
|
|
|
<el-input
|
|
|
v-model="assCaseName"
|
|
|
auto-complete="off"
|
|
@@ -203,7 +209,7 @@
|
|
|
<div>请选择评分</div>
|
|
|
<div>
|
|
|
<div class="scoreDiv">
|
|
|
- <div>评审维度1</div>
|
|
|
+ <div>项目式学习</div>
|
|
|
<div>
|
|
|
<el-input
|
|
|
placeholder="输入分数"
|
|
@@ -213,7 +219,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="scoreDiv">
|
|
|
- <div>评审维度2</div>
|
|
|
+ <div>项目成果</div>
|
|
|
<div>
|
|
|
<el-input
|
|
|
placeholder="输入分数"
|
|
@@ -223,7 +229,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="scoreDiv">
|
|
|
- <div>评审维度3</div>
|
|
|
+ <div>项目评价</div>
|
|
|
<div>
|
|
|
<el-input
|
|
|
placeholder="输入分数"
|
|
@@ -232,7 +238,7 @@
|
|
|
></el-input>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="scoreDiv">
|
|
|
+ <!-- <div class="scoreDiv">
|
|
|
<div>评审维度4</div>
|
|
|
<div>
|
|
|
<el-input
|
|
@@ -251,7 +257,7 @@
|
|
|
@change="isNumber($event, 5)"
|
|
|
></el-input>
|
|
|
</div>
|
|
|
- </div>
|
|
|
+ </div> -->
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="anliContent">
|
|
@@ -298,6 +304,111 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
+ <el-dialog
|
|
|
+ title="查看评分"
|
|
|
+ :visible.sync="dialogVisibleAllScore"
|
|
|
+ :append-to-body="true"
|
|
|
+ width="70%"
|
|
|
+ height="80%"
|
|
|
+ :before-close="handleClose"
|
|
|
+ class="dialog_diy customWidth1"
|
|
|
+ >
|
|
|
+ <!-- <div v-for="(item, index) in anliScoreList" :key="index">
|
|
|
+ <el-descriptions class="margin-top" :column="3" border>
|
|
|
+ <el-descriptions-item>
|
|
|
+ <template slot="label">
|
|
|
+ <i class="el-icon-s-custom"></i>
|
|
|
+ 姓名
|
|
|
+ </template>
|
|
|
+ {{ item.name }}
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item>
|
|
|
+ <template slot="label">
|
|
|
+ <i class="el-icon-s-custom"></i>
|
|
|
+ 项目式学习
|
|
|
+ </template>
|
|
|
+ {{ item.score.first }}
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item>
|
|
|
+ <template slot="label">
|
|
|
+ <i class="el-icon-s-custom"></i>
|
|
|
+ 项目成果
|
|
|
+ </template>
|
|
|
+ {{ item.score.second }}
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item>
|
|
|
+ <template slot="label">
|
|
|
+ <i class="el-icon-s-custom"></i>
|
|
|
+ 项目评价
|
|
|
+ </template>
|
|
|
+ {{ item.score.third }}
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item>
|
|
|
+ <template slot="label">
|
|
|
+ <i class="el-icon-s-custom"></i>
|
|
|
+ 平均分
|
|
|
+ </template>
|
|
|
+ {{ item.sum }}
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item>
|
|
|
+ <template slot="label">
|
|
|
+ <i class="el-icon-s-custom"></i>
|
|
|
+ 评价时间
|
|
|
+ </template>
|
|
|
+ {{ item.time }}
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item>
|
|
|
+ <template slot="label">
|
|
|
+ <i class="el-icon-s-custom"></i>
|
|
|
+ 评语
|
|
|
+ </template>
|
|
|
+ {{ item.score.content }}
|
|
|
+ </el-descriptions-item>
|
|
|
+ </el-descriptions>
|
|
|
+ </div> -->
|
|
|
+
|
|
|
+ <el-table :data="anliScoreList" stripe border style="width: 100%">
|
|
|
+ <el-table-column label="姓名" min-width="10" align="center">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <div>{{ scope.row.name ? scope.row.name : "-" }}</div>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="项目式学习" min-width="10">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <div>{{ scope.row.score.first ? scope.row.score.first : "-" }}</div>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="项目成果" min-width="10">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <div>
|
|
|
+ {{ scope.row.score.second ? scope.row.score.second : "-" }}
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="项目评价" min-width="10">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <div>{{ scope.row.score.third ? scope.row.score.third : "-" }}</div>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="平均分" min-width="10">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <div>{{ scope.row.sum ? scope.row.sum : "-" }}</div>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="评价时间" min-width="10">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <div>{{ scope.row.time ? scope.row.time : "-" }}</div>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="评语" min-width="30">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <div>
|
|
|
+ {{ scope.row.score.content ? scope.row.score.content : "-" }}
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -313,7 +424,7 @@ export default {
|
|
|
courseTypeId: {},
|
|
|
courseTypeSon: [],
|
|
|
anliName: "",
|
|
|
- assCaseName:"",
|
|
|
+ assCaseName: "",
|
|
|
caseLoading: false,
|
|
|
anliBox: "",
|
|
|
tableData: [],
|
|
@@ -329,6 +440,8 @@ export default {
|
|
|
dialogVisibleMember: false,
|
|
|
dialogVisibleScore: false,
|
|
|
dialogVisibleRecommend: false,
|
|
|
+ dialogVisibleAllScore: false,
|
|
|
+ anliScoreList: [],
|
|
|
noBanner: require("../../../assets/noBanner.jpg"),
|
|
|
scoreDetail: [
|
|
|
{
|
|
@@ -340,8 +453,8 @@ export default {
|
|
|
first: "",
|
|
|
second: "",
|
|
|
third: "",
|
|
|
- fourth: "",
|
|
|
- fivth: "",
|
|
|
+ // fourth: "",
|
|
|
+ // fivth: "",
|
|
|
content: "",
|
|
|
},
|
|
|
sumScore: 0,
|
|
@@ -371,13 +484,14 @@ export default {
|
|
|
this.scoreDetail[0].scoreAll.first = "";
|
|
|
} else if (t == 2) {
|
|
|
this.scoreDetail[0].scoreAll.second = "";
|
|
|
- } else if (t == 3) {
|
|
|
- this.scoreDetail[0].scoreAll.third = "";
|
|
|
- } else if (t == 4) {
|
|
|
- this.scoreDetail[0].scoreAll.fourth = "";
|
|
|
} else {
|
|
|
- this.scoreDetail[0].scoreAll.fivth = "";
|
|
|
+ this.scoreDetail[0].scoreAll.third = "";
|
|
|
}
|
|
|
+ // else if (t == 4) {
|
|
|
+ // this.scoreDetail[0].scoreAll.fourth = "";
|
|
|
+ // } else {
|
|
|
+ // this.scoreDetail[0].scoreAll.fivth = "";
|
|
|
+ // }
|
|
|
return;
|
|
|
} else if (e > 100) {
|
|
|
this.$message.error("数值不能大于100");
|
|
@@ -385,13 +499,14 @@ export default {
|
|
|
this.scoreDetail[0].scoreAll.first = "";
|
|
|
} else if (t == 2) {
|
|
|
this.scoreDetail[0].scoreAll.second = "";
|
|
|
- } else if (t == 3) {
|
|
|
- this.scoreDetail[0].scoreAll.third = "";
|
|
|
- } else if (t == 4) {
|
|
|
- this.scoreDetail[0].scoreAll.fourth = "";
|
|
|
} else {
|
|
|
- this.scoreDetail[0].scoreAll.fivth = "";
|
|
|
+ this.scoreDetail[0].scoreAll.third = "";
|
|
|
}
|
|
|
+ // else if (t == 4) {
|
|
|
+ // this.scoreDetail[0].scoreAll.fourth = "";
|
|
|
+ // } else {
|
|
|
+ // this.scoreDetail[0].scoreAll.fivth = "";
|
|
|
+ // }
|
|
|
return;
|
|
|
}
|
|
|
} else {
|
|
@@ -399,19 +514,19 @@ export default {
|
|
|
this.scoreDetail[0].scoreAll.first = "";
|
|
|
} else if (t == 2) {
|
|
|
this.scoreDetail[0].scoreAll.second = "";
|
|
|
- } else if (t == 3) {
|
|
|
- this.scoreDetail[0].scoreAll.third = "";
|
|
|
- } else if (t == 4) {
|
|
|
- this.scoreDetail[0].scoreAll.fourth = "";
|
|
|
} else {
|
|
|
- this.scoreDetail[0].scoreAll.fivth = "";
|
|
|
+ this.scoreDetail[0].scoreAll.third = "";
|
|
|
}
|
|
|
+ // else if (t == 4) {
|
|
|
+ // this.scoreDetail[0].scoreAll.fourth = "";
|
|
|
+ // } else {
|
|
|
+ // this.scoreDetail[0].scoreAll.fivth = "";
|
|
|
+ // }
|
|
|
this.$message.error("请输入数字");
|
|
|
return;
|
|
|
}
|
|
|
-
|
|
|
- value = value.replace(/^0+(d)/, "$1"); // 第一位0开头,0后面为数字,则过滤掉,取后面的数字
|
|
|
- value = value.replace(/(d{15})d*/, "$1"); // 最多保留15位整数
|
|
|
+ value = e.replace(/^0+(d)/, "$1"); // 第一位0开头,0后面为数字,则过滤掉,取后面的数字
|
|
|
+ value = e.replace(/(d{15})d*/, "$1"); // 最多保留15位整数
|
|
|
// this.height = value;
|
|
|
},
|
|
|
handleCheckAllChange(val) {
|
|
@@ -439,6 +554,31 @@ export default {
|
|
|
this.anliBox = "";
|
|
|
this.getAnliList();
|
|
|
},
|
|
|
+ lookAnliScore(id) {
|
|
|
+ this.anliScoreList = [];
|
|
|
+ let params = {
|
|
|
+ rid: id,
|
|
|
+ };
|
|
|
+ this.ajax
|
|
|
+ .get(this.$store.state.api + "selectAnliScore", params)
|
|
|
+ .then((res) => {
|
|
|
+ var sList = res.data[0];
|
|
|
+ for (var i = 0; i < sList.length; i++) {
|
|
|
+ sList[i].score = JSON.parse(sList[i].score);
|
|
|
+ var point = sList[i].score;
|
|
|
+ var a = parseInt(point.first);
|
|
|
+ var b = parseInt(point.second);
|
|
|
+ var c = parseInt(point.third);
|
|
|
+ var sumScore = Math.round((a + b + c) / 3);
|
|
|
+ sList[i].sum = sumScore;
|
|
|
+ }
|
|
|
+ this.anliScoreList = sList;
|
|
|
+ this.dialogVisibleAllScore = true;
|
|
|
+ })
|
|
|
+ .catch((err) => {
|
|
|
+ console.error(err);
|
|
|
+ });
|
|
|
+ },
|
|
|
getAnliList(rc) {
|
|
|
this.isLoading = true;
|
|
|
var typeE = [];
|
|
@@ -475,18 +615,33 @@ export default {
|
|
|
this.tableData = res.data[0];
|
|
|
for (var i = 0; i < this.tableData.length; i++) {
|
|
|
this.tableData[i].info = JSON.parse(this.tableData[i].info);
|
|
|
- this.tableData[i].overview = JSON.parse(this.tableData[i].overview);
|
|
|
- this.tableData[i].process = JSON.parse(this.tableData[i].process);
|
|
|
- this.tableData[i].proact = JSON.parse(this.tableData[i].proact);
|
|
|
- this.tableData[i].proexc = JSON.parse(this.tableData[i].proexc);
|
|
|
- this.tableData[i].results = JSON.parse(this.tableData[i].results);
|
|
|
}
|
|
|
+ this.sScore(this.tableData);
|
|
|
this.isLoading = false;
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
console.error(err);
|
|
|
});
|
|
|
},
|
|
|
+ sScore(t) {
|
|
|
+ this.ajax
|
|
|
+ .get(this.$store.state.api + "selectAllScore")
|
|
|
+ .then((res) => {
|
|
|
+ var scoreList = res.data[0];
|
|
|
+ for (var i = 0; i < t.length; i++) {
|
|
|
+ for (var j = 0; j < scoreList.length; j++) {
|
|
|
+ if (t[i].id == scoreList[j].rid) {
|
|
|
+ t[i].score = scoreList[j].score;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.tableData = t;
|
|
|
+ this.$forceUpdate();
|
|
|
+ })
|
|
|
+ .catch((err) => {
|
|
|
+ console.error(err);
|
|
|
+ });
|
|
|
+ },
|
|
|
selectType(rc) {
|
|
|
this.ajax
|
|
|
.get(this.$store.state.api + "selectMatType")
|
|
@@ -617,6 +772,7 @@ export default {
|
|
|
getScore(id, t) {
|
|
|
let params = {
|
|
|
rid: id,
|
|
|
+ suser: this.$store.state.userInfo.userid,
|
|
|
};
|
|
|
this.ajax
|
|
|
.get(this.$store.state.api + "selectScore", params)
|
|
@@ -626,16 +782,17 @@ export default {
|
|
|
var a = parseInt(this.scoreDetail[0].scoreAll.first);
|
|
|
var b = parseInt(this.scoreDetail[0].scoreAll.second);
|
|
|
var c = parseInt(this.scoreDetail[0].scoreAll.third);
|
|
|
- var d = parseInt(this.scoreDetail[0].scoreAll.fourth);
|
|
|
- var e = parseInt(this.scoreDetail[0].scoreAll.fivth);
|
|
|
- this.scoreDetail[0].sumScore = Math.round((a + b + c + d + e) / 5);
|
|
|
+ // var d = parseInt(this.scoreDetail[0].scoreAll.fourth);
|
|
|
+ // var e = parseInt(this.scoreDetail[0].scoreAll.fivth);
|
|
|
+ // this.scoreDetail[0].sumScore = Math.round((a + b + c + d + e) / 5);
|
|
|
+ this.scoreDetail[0].sumScore = Math.round((a + b + c) / 3);
|
|
|
} else {
|
|
|
this.scoreDetail[0].scoreAll = {
|
|
|
first: "",
|
|
|
second: "",
|
|
|
third: "",
|
|
|
- fourth: "",
|
|
|
- fivth: "",
|
|
|
+ // fourth: "",
|
|
|
+ // fivth: "",
|
|
|
content: "",
|
|
|
};
|
|
|
this.scoreDetail[0].sumScore = 0;
|
|
@@ -660,13 +817,14 @@ export default {
|
|
|
} else if (this.scoreDetail[0].scoreAll.third == "") {
|
|
|
this.$message.error("请将信息填写完整");
|
|
|
return;
|
|
|
- } else if (this.scoreDetail[0].scoreAll.fourth == "") {
|
|
|
- this.$message.error("请将信息填写完整");
|
|
|
- return;
|
|
|
- } else if (this.scoreDetail[0].scoreAll.fivth == "") {
|
|
|
- this.$message.error("请将信息填写完整");
|
|
|
- return;
|
|
|
}
|
|
|
+ // else if (this.scoreDetail[0].scoreAll.fourth == "") {
|
|
|
+ // this.$message.error("请将信息填写完整");
|
|
|
+ // return;
|
|
|
+ // } else if (this.scoreDetail[0].scoreAll.fivth == "") {
|
|
|
+ // this.$message.error("请将信息填写完整");
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
let params = {
|
|
|
rid: this.scoreDetail[0].id,
|
|
|
suser: this.$store.state.userInfo.userid,
|
|
@@ -689,8 +847,8 @@ export default {
|
|
|
first: "",
|
|
|
second: "",
|
|
|
third: "",
|
|
|
- fourth: "",
|
|
|
- fivth: "",
|
|
|
+ // fourth: "",
|
|
|
+ // fivth: "",
|
|
|
content: "",
|
|
|
},
|
|
|
sumScore: 0,
|
|
@@ -897,7 +1055,7 @@ export default {
|
|
|
flex-direction: row;
|
|
|
flex-wrap: nowrap;
|
|
|
align-items: center;
|
|
|
- justify-content: flex-end;
|
|
|
+ justify-content: center;
|
|
|
padding: 10px 0 0 0;
|
|
|
}
|
|
|
|
|
@@ -908,8 +1066,6 @@ export default {
|
|
|
.anliButton > div > .el-button {
|
|
|
background: #409efe;
|
|
|
color: #fff;
|
|
|
- width: 80px;
|
|
|
- border-radius: 5px;
|
|
|
}
|
|
|
|
|
|
.customWidth >>> .el-dialog {
|
|
@@ -971,7 +1127,7 @@ export default {
|
|
|
}
|
|
|
|
|
|
.people_search > div:nth-child(1) {
|
|
|
- font-size: 20px;
|
|
|
+ font-size: 16px;
|
|
|
margin-right: 10px;
|
|
|
}
|
|
|
|
|
@@ -1086,6 +1242,10 @@ export default {
|
|
|
align-items: center;
|
|
|
padding: 10px 0;
|
|
|
}
|
|
|
+.scoreDiv > div:nth-child(1) {
|
|
|
+ min-width: 90px;
|
|
|
+ width: 90px;
|
|
|
+}
|
|
|
.scoreDiv > div:nth-child(2) {
|
|
|
margin-left: 10px;
|
|
|
}
|
|
@@ -1201,10 +1361,25 @@ export default {
|
|
|
}
|
|
|
|
|
|
.aName {
|
|
|
- margin-left: 10px;
|
|
|
+ position: relative;
|
|
|
}
|
|
|
|
|
|
.aName >>> .el-input__inner {
|
|
|
- width: 300px;
|
|
|
+ width: 290px;
|
|
|
+ text-indent: 12px;
|
|
|
+}
|
|
|
+
|
|
|
+.searchImg {
|
|
|
+ width: 20px;
|
|
|
+ height: 20px;
|
|
|
+ position: absolute;
|
|
|
+ z-index: 9;
|
|
|
+ top: 10px;
|
|
|
+ left: 5px;
|
|
|
+}
|
|
|
+
|
|
|
+.searchImg > img {
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
}
|
|
|
</style>
|