|
@@ -1408,10 +1408,18 @@
|
|
|
|
|
|
<el-rate
|
|
|
class="rate_size"
|
|
|
+ v-if="worksDetail[sIndex].state == 5"
|
|
|
style="min-width: 120px"
|
|
|
v-model="worksDetail[sIndex].rateList[item.detail]"
|
|
|
@change="getStar(sIndex)"
|
|
|
></el-rate>
|
|
|
+ <el-rate
|
|
|
+ class="rate_size"
|
|
|
+ v-else
|
|
|
+ style="min-width: 120px"
|
|
|
+ v-model="worksDetail[sIndex].rateList[item.value]"
|
|
|
+ @change="getStar(sIndex)"
|
|
|
+ ></el-rate>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="worksTarget" v-if="isShow(worksDetail[sIndex].eList)"><span>目标</span></div>
|
|
@@ -2713,7 +2721,11 @@ export default {
|
|
|
result[l].eList = eList;
|
|
|
for (var i = 0; i < eList.length; i++) {
|
|
|
_ooption.push({ value: 0, name: eList[i].value });
|
|
|
- result[l].rateList[eList[i].detail] = 0;
|
|
|
+ if (this.DState == 5) {
|
|
|
+ result[l].rateList[eList[i].detail] = 0;
|
|
|
+ }else{
|
|
|
+ result[l].rateList[eList[i].value] = 0;
|
|
|
+ }
|
|
|
}
|
|
|
result[l].rateList.content = "";
|
|
|
this.ooption[l] = _ooption;
|
|
@@ -2766,7 +2778,11 @@ export default {
|
|
|
|
|
|
for (var i = 0; i < eList.length; i++) {
|
|
|
_ooption.push({ value: 0, name: eList[i].value });
|
|
|
- result[l].rateList[eList[i].detail] = 0;
|
|
|
+ if (this.DState == 5) {
|
|
|
+ result[l].rateList[eList[i].detail] = 0;
|
|
|
+ }else{
|
|
|
+ result[l].rateList[eList[i].value] = 0;
|
|
|
+ }
|
|
|
}
|
|
|
result[l].rateList.content = "";
|
|
|
this.ooption[l] = _ooption;
|
|
@@ -3195,7 +3211,7 @@ export default {
|
|
|
},
|
|
|
updatePj() {
|
|
|
for (var i = 0; i < this.worksDetail.length; i++) {
|
|
|
- if (!this.worksDetail[i].eList.length) {
|
|
|
+ if (this.worksDetail[i].eList && !this.worksDetail[i].eList.length) {
|
|
|
continue;
|
|
|
}
|
|
|
this.updateWorks(
|
|
@@ -3243,6 +3259,8 @@ export default {
|
|
|
rate: rateList,
|
|
|
uid: this.studentId,
|
|
|
};
|
|
|
+ // return console.log('params',params);
|
|
|
+
|
|
|
const k = i;
|
|
|
this.ajax
|
|
|
.get(this.$store.state.api + "updateWorksEva", params)
|