fix:增加评估管理-创建人 创建时间

This commit is contained in:
wyx
2023-03-03 18:04:45 +08:00
parent 31129433b2
commit 9f5fee0473
2 changed files with 12 additions and 8 deletions

View File

@@ -31,7 +31,7 @@
</div> </div>
<div style="width: 103px; margin-right: 126px; float: left"> <div style="width: 103px; margin-right: 126px; float: left">
<span class="name">创建人:</span> <span class="name">创建人:</span>
<span class="descript">{{ basicInfo.createName }}</span> <span class="descript">{{ createName }}</span>
</div> </div>
<div style="width: 88px; margin-right: 126px; float: left"> <div style="width: 88px; margin-right: 126px; float: left">
<span class="name">状态:</span> <span class="name">状态:</span>
@@ -40,7 +40,7 @@
</div> </div>
<div style="width: 192px; margin-right: 126px; float: left"> <div style="width: 192px; margin-right: 126px; float: left">
<span class="name">创建时间:</span> <span class="name">创建时间:</span>
<span class="descript">{{ basicInfo.createTime }}</span> <span class="descript">{{ createTime }}</span>
</div> </div>
<div style="width: 192px; margin-right: 126px; float: left"> <div style="width: 192px; margin-right: 126px; float: left">
<span class="name">发布时间:</span> <span class="name">发布时间:</span>
@@ -82,7 +82,7 @@
import ViewAssess from "../../components/drawers/ViewAssess"; import ViewAssess from "../../components/drawers/ViewAssess";
import { reactive, toRefs } from "vue"; import { reactive, toRefs } from "vue";
import { queryAssessmentDetailList } from "@/api/indexResearch"; import { queryAssessmentDetailList } from "@/api/indexResearch";
import { useRouter } from "vue-router"; import { useRouter, useRoute } from "vue-router";
import * as api from "@/api/indexTaskManage"; import * as api from "@/api/indexTaskManage";
export default { export default {
@@ -90,6 +90,7 @@ export default {
components: { ViewAssess }, components: { ViewAssess },
setup() { setup() {
const router = useRouter(); const router = useRouter();
const { query: { createName, createTime }} = useRoute();
const state = reactive({ const state = reactive({
Assessvisible: false, Assessvisible: false,
basicInfo: "", basicInfo: "",
@@ -322,7 +323,9 @@ export default {
], ],
showassess, showassess,
changePaginationStu, changePaginationStu,
exportStudentInfo exportStudentInfo,
createName,
createTime
}; };
}, },
}; };

View File

@@ -76,7 +76,7 @@
@click=" handleEditPage(record.id)" type="link">基础信息 @click=" handleEditPage(record.id)" type="link">基础信息
</a-button> </a-button>
<a-button v-if="record.releaseStatus === '2' && checkPer(record.permissions)" <a-button v-if="record.releaseStatus === '2' && checkPer(record.permissions)"
@click=" toManage(record.id)" type="link">管理 @click=" toManage(record.id, record)" type="link">管理
</a-button> </a-button>
<a-button v-if="checkPer(record.permissions)" @click=" handleOper(record,'copy')" type="link">复制 <a-button v-if="checkPer(record.permissions)" @click=" handleOper(record,'copy')" type="link">复制
</a-button> </a-button>
@@ -369,9 +369,10 @@ function handleEditPage(id) {
router.push("/researchadd/" + id); router.push("/researchadd/" + id);
} }
function toManage(id) { function toManage(id, record) {
router.push("/managepage/" + id); router.push({ path: `/managepage/${id}`, query: { createName:record.createName, createTime:record.createTime } });
} }
const handleNext = async () => { const handleNext = async () => {
await validate().catch(({ errorFields }) => { await validate().catch(({ errorFields }) => {
message.warning(errorFields[0].errors.join()); message.warning(errorFields[0].errors.join());