|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <div id="classHoursReview">
|
|
|
+ <div id="studyTimes">
|
|
|
<div class="topBoxStyle">
|
|
|
<div class="dis_fs" :style="showBox ? '' : 'height:0px;'">
|
|
|
<ul class="ul_ls">
|
|
@@ -19,7 +19,9 @@
|
|
|
v-else
|
|
|
style="width: 100%; height: 100%"
|
|
|
:src="$methodsTools.splitImgHost(userData.oneInchPhotos)"
|
|
|
- :preview-src-list="[$methodsTools.splitImgHost(userData.oneInchPhotos)]"
|
|
|
+ :preview-src-list="[
|
|
|
+ $methodsTools.splitImgHost(userData.oneInchPhotos),
|
|
|
+ ]"
|
|
|
>
|
|
|
</el-image>
|
|
|
<div class="pos_bottom">一寸头像图</div>
|
|
@@ -35,7 +37,9 @@
|
|
|
v-else
|
|
|
style="width: 100%; height: 100%"
|
|
|
:src="$methodsTools.splitImgHost(userData.idCardImg1)"
|
|
|
- :preview-src-list="[$methodsTools.splitImgHost(userData.idCardImg1)]"
|
|
|
+ :preview-src-list="[
|
|
|
+ $methodsTools.splitImgHost(userData.idCardImg1),
|
|
|
+ ]"
|
|
|
>
|
|
|
</el-image>
|
|
|
<div class="pos_bottom">身份证头像照</div>
|
|
@@ -964,6 +968,7 @@
|
|
|
|
|
|
<script>
|
|
|
export default {
|
|
|
+ props: ["setData"],
|
|
|
data() {
|
|
|
return {
|
|
|
showBox: true,
|
|
@@ -1198,9 +1203,9 @@ export default {
|
|
|
created() {
|
|
|
this.$api
|
|
|
.inquireGradegradelockPeriodStatus({
|
|
|
- gradeId: Number(this.$route.query.id),
|
|
|
- userId: Number(this.$route.query.userId),
|
|
|
- goodsId: Number(this.$route.query.goodsId),
|
|
|
+ gradeId: Number(this.setData.id),
|
|
|
+ userId: Number(this.setData.userId),
|
|
|
+ goodsId: Number(this.setData.goodsId),
|
|
|
})
|
|
|
.then((res) => {
|
|
|
if (res.msg) {
|
|
@@ -1208,11 +1213,20 @@ export default {
|
|
|
dangerouslyUseHTMLString: true,
|
|
|
showClose: false,
|
|
|
}).then((result) => {
|
|
|
- this.$store
|
|
|
- .dispatch("tagsView/delView", this.$route)
|
|
|
- .then((results) => {
|
|
|
- this.$router.go(-1);
|
|
|
- });
|
|
|
+ const SESSION = sessionStorage.getItem("hoursAudit");
|
|
|
+ let parseSession = {};
|
|
|
+ if (SESSION) {
|
|
|
+ parseSession = JSON.parse(SESSION);
|
|
|
+ }
|
|
|
+ if (parseSession.options.length > 1) {
|
|
|
+ this.$emit("removeTab",this.setData.keyId)
|
|
|
+ } else {
|
|
|
+ this.$store
|
|
|
+ .dispatch("tagsView/delView", this.$route)
|
|
|
+ .then((results) => {
|
|
|
+ this.$router.go(-1);
|
|
|
+ });
|
|
|
+ }
|
|
|
});
|
|
|
} else {
|
|
|
this.getSetTime();
|
|
@@ -1237,9 +1251,9 @@ export default {
|
|
|
getSetTime() {
|
|
|
this.$api
|
|
|
.inquireGradegradelockPeriod({
|
|
|
- gradeId: Number(this.$route.query.id),
|
|
|
- userId: Number(this.$route.query.userId),
|
|
|
- goodsId: Number(this.$route.query.goodsId),
|
|
|
+ gradeId: Number(this.setData.id),
|
|
|
+ userId: Number(this.setData.userId),
|
|
|
+ goodsId: Number(this.setData.goodsId),
|
|
|
})
|
|
|
.then((res) => {});
|
|
|
},
|
|
@@ -1249,9 +1263,9 @@ export default {
|
|
|
approvedOKFunc() {
|
|
|
this.disabledBtn = true;
|
|
|
let data = {
|
|
|
- gradeId: Number(this.$route.query.id),
|
|
|
- userId: Number(this.$route.query.userId),
|
|
|
- goodsId: Number(this.$route.query.goodsId),
|
|
|
+ gradeId: Number(this.setData.id),
|
|
|
+ userId: Number(this.setData.userId),
|
|
|
+ goodsId: Number(this.setData.goodsId),
|
|
|
};
|
|
|
this.$api
|
|
|
.editGradeUsereditrollconfirmPeriod(data)
|
|
@@ -1271,9 +1285,9 @@ export default {
|
|
|
uploadForm() {
|
|
|
this.disabledBtn = true;
|
|
|
let data = {
|
|
|
- gradeId: Number(this.$route.query.id),
|
|
|
- userId: Number(this.$route.query.userId),
|
|
|
- goodsId: Number(this.$route.query.goodsId),
|
|
|
+ gradeId: Number(this.setData.id),
|
|
|
+ userId: Number(this.setData.userId),
|
|
|
+ goodsId: Number(this.setData.goodsId),
|
|
|
ids: this.checkList,
|
|
|
};
|
|
|
this.$api
|
|
@@ -1552,9 +1566,9 @@ export default {
|
|
|
return;
|
|
|
}
|
|
|
var data = {
|
|
|
- gradeId: Number(this.$route.query.id),
|
|
|
- userId: Number(this.$route.query.userId),
|
|
|
- goodsId: Number(this.$route.query.goodsId),
|
|
|
+ gradeId: Number(this.setData.id),
|
|
|
+ userId: Number(this.setData.userId),
|
|
|
+ goodsId: Number(this.setData.goodsId),
|
|
|
};
|
|
|
if (int === 1) {
|
|
|
data.status = 1;
|
|
@@ -1576,9 +1590,9 @@ export default {
|
|
|
submitOK(int, msg) {
|
|
|
this.disabledBtn = true;
|
|
|
var data = {
|
|
|
- gradeId: Number(this.$route.query.id),
|
|
|
- userId: Number(this.$route.query.userId),
|
|
|
- goodsId: Number(this.$route.query.goodsId),
|
|
|
+ gradeId: Number(this.setData.id),
|
|
|
+ userId: Number(this.setData.userId),
|
|
|
+ goodsId: Number(this.setData.goodsId),
|
|
|
ids: this.checkList,
|
|
|
};
|
|
|
if (int === 1) {
|
|
@@ -1622,9 +1636,9 @@ export default {
|
|
|
moduleId: item.moduleId,
|
|
|
chapterId: item.chapterId,
|
|
|
numIndex: int,
|
|
|
- userId: this.$route.query.userId,
|
|
|
- goodsId: this.$route.query.goodsId,
|
|
|
- gradeId: this.$route.query.id,
|
|
|
+ userId: this.setData.userId,
|
|
|
+ goodsId: this.setData.goodsId,
|
|
|
+ gradeId: this.setData.id,
|
|
|
};
|
|
|
if (item.type === 3) {
|
|
|
data.sectionId = item.id;
|
|
@@ -1651,9 +1665,9 @@ export default {
|
|
|
moduleId: item.moduleId,
|
|
|
chapterId: item.chapterId,
|
|
|
numIndex: int,
|
|
|
- userId: this.$route.query.userId,
|
|
|
- goodsId: this.$route.query.goodsId,
|
|
|
- gradeId: this.$route.query.id,
|
|
|
+ userId: this.setData.userId,
|
|
|
+ goodsId: this.setData.goodsId,
|
|
|
+ gradeId: this.setData.id,
|
|
|
};
|
|
|
if (item.type === 3) {
|
|
|
data.sectionId = item.id;
|
|
@@ -1685,9 +1699,9 @@ export default {
|
|
|
moduleId: item.moduleId,
|
|
|
chapterId: item.chapterId,
|
|
|
numIndex: int,
|
|
|
- userId: this.$route.query.userId,
|
|
|
- goodsId: this.$route.query.goodsId,
|
|
|
- gradeId: this.$route.query.id,
|
|
|
+ userId: this.setData.userId,
|
|
|
+ goodsId: this.setData.goodsId,
|
|
|
+ gradeId: this.setData.id,
|
|
|
};
|
|
|
if (item.type === 3) {
|
|
|
data.sectionId = item.id;
|
|
@@ -1709,9 +1723,9 @@ export default {
|
|
|
return new Promise((resolve, reject) => {
|
|
|
this.$api
|
|
|
.inquireGradegradelistUserlistPeriod({
|
|
|
- gradeId: this.$route.query.id,
|
|
|
- userId: this.$route.query.userId,
|
|
|
- goodsId: this.$route.query.goodsId,
|
|
|
+ gradeId: this.setData.id,
|
|
|
+ userId: this.setData.userId,
|
|
|
+ goodsId: this.setData.goodsId,
|
|
|
})
|
|
|
.then((res) => {
|
|
|
this.userData = res.rows[0];
|
|
@@ -1723,9 +1737,9 @@ export default {
|
|
|
search() {
|
|
|
var self = this;
|
|
|
let data = {
|
|
|
- gradeId: this.$route.query.id,
|
|
|
- userId: this.$route.query.userId,
|
|
|
- goodsId: this.$route.query.goodsId,
|
|
|
+ gradeId: this.setData.id,
|
|
|
+ userId: this.setData.userId,
|
|
|
+ goodsId: this.setData.goodsId,
|
|
|
};
|
|
|
this.loading = true;
|
|
|
this.$api
|
|
@@ -1878,10 +1892,10 @@ export default {
|
|
|
box-shadow: 0px 0px 4px 2px rgba(0, 0, 0, 0.2);
|
|
|
}
|
|
|
}
|
|
|
-#classHoursReview {
|
|
|
+#studyTimes {
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
- height: calc(100vh - 126px);
|
|
|
+ height: calc(100vh - 190px);
|
|
|
}
|
|
|
.styFlex {
|
|
|
width: 80px;
|