修改
This commit is contained in:
parent
6d4c7bcd7f
commit
9b2771d30a
3
src/api/baseurl.js
Normal file
3
src/api/baseurl.js
Normal file
@ -0,0 +1,3 @@
|
||||
var baseurl = "http://192.168.16.64:8080";
|
||||
|
||||
export default baseurl
|
||||
@ -29,7 +29,7 @@
|
||||
></right-toolbar>
|
||||
</el-row>
|
||||
<el-row :gutter="24">
|
||||
<div v-if="itemshow" style="margin: 10px auto; width: 100% ">
|
||||
<div v-if="itemshow" style="margin: 10px auto; width: 100%">
|
||||
<el-table
|
||||
:data="actionlist"
|
||||
border
|
||||
|
||||
@ -328,6 +328,7 @@ export default {
|
||||
report(item.id).then((res) => {
|
||||
this.pdfurl = window.URL.createObjectURL(res);
|
||||
this.openiframe = true;
|
||||
console.log(this.pdfurl);
|
||||
// window.open(this.pdfurl);
|
||||
});
|
||||
},
|
||||
|
||||
@ -430,25 +430,7 @@
|
||||
align="center"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<el-input
|
||||
type="number"
|
||||
v-model="scope.row.itemFraction"
|
||||
@input="oninputscore(scope.row)"
|
||||
placeholder="请先输入个人成绩"
|
||||
:disabled="true"
|
||||
v-if="
|
||||
scope.row.itemScore != null ||
|
||||
scope.row.scoreDictId == ResultType1.dictCode
|
||||
"
|
||||
></el-input>
|
||||
<el-input
|
||||
@input="oninputscore(scope.row)"
|
||||
v-model="scope.row.itemFraction"
|
||||
v-if="
|
||||
scope.row.scoreDictValue != null ||
|
||||
scope.row.scoreDictId == ResultType2.dictCode
|
||||
"
|
||||
></el-input>
|
||||
<el-input v-model="scope.row.itemFraction"></el-input>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
@ -564,6 +546,7 @@
|
||||
<el-input
|
||||
type="number"
|
||||
v-model="scope.row.itemScore"
|
||||
@input="oninputscore2(scope.row)"
|
||||
v-if="
|
||||
scope.row.itemScore != null ||
|
||||
scope.row.scoreDictId == ResultType1.dictCode
|
||||
@ -1369,18 +1352,51 @@ export default {
|
||||
},
|
||||
|
||||
methods: {
|
||||
oninputscore(item) {
|
||||
getStudentFraction(
|
||||
this.addqueryParams.studentId,
|
||||
item.itemId,
|
||||
item.itemScore
|
||||
).then((res) => {
|
||||
oninputscore2(item) {
|
||||
if (item.itemScore == "") {
|
||||
console.log(1);
|
||||
this.form.itemScoreList.forEach((e) => {
|
||||
if (e.itemId == res.data.itemId) {
|
||||
e.itemFraction = res.data.fraction;
|
||||
if (e.testItemId == item.testItemId) {
|
||||
e.itemFraction = "";
|
||||
}
|
||||
});
|
||||
});
|
||||
} else {
|
||||
console.log(item);
|
||||
getStudentFraction(
|
||||
this.addqueryParams.studentId,
|
||||
item.testItemId,
|
||||
item.itemScore
|
||||
).then((res) => {
|
||||
this.form.itemScoreList.forEach((e) => {
|
||||
if (e.testItemId == res.data.itemId) {
|
||||
e.itemFraction = res.data.fraction;
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
},
|
||||
oninputscore(item) {
|
||||
console.log(item);
|
||||
if (item.itemScore == "") {
|
||||
console.log(1);
|
||||
this.form.itemScoreList.forEach((e) => {
|
||||
if (e.itemId == item.itemId) {
|
||||
e.itemFraction = "";
|
||||
}
|
||||
});
|
||||
} else {
|
||||
getStudentFraction(
|
||||
this.addqueryParams.studentId,
|
||||
item.itemId,
|
||||
item.itemScore
|
||||
).then((res) => {
|
||||
this.form.itemScoreList.forEach((e) => {
|
||||
if (e.itemId == res.data.itemId) {
|
||||
e.itemFraction = res.data.fraction;
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
},
|
||||
handledbClick(row, event, column) {
|
||||
this.$refs.table.toggleRowSelection(row);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user