修改
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>
|
></right-toolbar>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row :gutter="24">
|
<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
|
<el-table
|
||||||
:data="actionlist"
|
:data="actionlist"
|
||||||
border
|
border
|
||||||
|
|||||||
@ -328,6 +328,7 @@ export default {
|
|||||||
report(item.id).then((res) => {
|
report(item.id).then((res) => {
|
||||||
this.pdfurl = window.URL.createObjectURL(res);
|
this.pdfurl = window.URL.createObjectURL(res);
|
||||||
this.openiframe = true;
|
this.openiframe = true;
|
||||||
|
console.log(this.pdfurl);
|
||||||
// window.open(this.pdfurl);
|
// window.open(this.pdfurl);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
@ -430,25 +430,7 @@
|
|||||||
align="center"
|
align="center"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-input
|
<el-input v-model="scope.row.itemFraction"></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>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
||||||
@ -564,6 +546,7 @@
|
|||||||
<el-input
|
<el-input
|
||||||
type="number"
|
type="number"
|
||||||
v-model="scope.row.itemScore"
|
v-model="scope.row.itemScore"
|
||||||
|
@input="oninputscore2(scope.row)"
|
||||||
v-if="
|
v-if="
|
||||||
scope.row.itemScore != null ||
|
scope.row.itemScore != null ||
|
||||||
scope.row.scoreDictId == ResultType1.dictCode
|
scope.row.scoreDictId == ResultType1.dictCode
|
||||||
@ -1369,18 +1352,51 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
oninputscore(item) {
|
oninputscore2(item) {
|
||||||
getStudentFraction(
|
if (item.itemScore == "") {
|
||||||
this.addqueryParams.studentId,
|
console.log(1);
|
||||||
item.itemId,
|
|
||||||
item.itemScore
|
|
||||||
).then((res) => {
|
|
||||||
this.form.itemScoreList.forEach((e) => {
|
this.form.itemScoreList.forEach((e) => {
|
||||||
if (e.itemId == res.data.itemId) {
|
if (e.testItemId == item.testItemId) {
|
||||||
e.itemFraction = res.data.fraction;
|
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) {
|
handledbClick(row, event, column) {
|
||||||
this.$refs.table.toggleRowSelection(row);
|
this.$refs.table.toggleRowSelection(row);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user