Commit 418fd5ff by Cat

zd 教师电子档案

parent 0710817a
...@@ -202,7 +202,7 @@ ...@@ -202,7 +202,7 @@
@pagination="getList" @pagination="getList"
/> />
<!--弹窗--> <!--弹窗-->
<el-dialog :title="title" :visible.sync="dialogVisible" width="100%"> <el-dialog :title="title" :visible.sync="dialogVisible" width="95%">
<div style="display: flex"> <div style="display: flex">
<div class="leftContent"> <div class="leftContent">
<div style="margin-bottom: 10px"> <div style="margin-bottom: 10px">
...@@ -374,22 +374,23 @@ ...@@ -374,22 +374,23 @@
</el-table-column> </el-table-column>
<el-table-column align="center" label="附件" prop="thesisList"> <el-table-column align="center" label="附件" prop="thesisList">
<template slot-scope="scope"> <template slot-scope="scope">
<el-carousel trigger="click" height="60px"> <!-- <el-carousel trigger="click" height="60px"> -->
<el-carousel-item <span
v-for="(accessory, index) in scope.row.thesisListInfo" v-for="(accessory, index) in scope.row.thesisListInfo"
:key="index" :key="index"
> >
<!-- <a <el-link
:href="baseUrl + accessory.accessoryUrl" :href="`${baseUrl}${accessory.accessoryUrl}`"
:underline="false"
target="_blank" target="_blank"
>{{ accessory.accessoryName }}</a >
> --> <span class="el-icon-document">
<img {{ accessory.accessoryName }}
:src="baseUrl + accessory.accessoryUrl" </span>
style="width: 150px" </el-link>
/> </span>
</el-carousel-item> <!-- </el-carousel-item> -->
</el-carousel> <!-- </el-carousel> -->
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -418,22 +419,31 @@ ...@@ -418,22 +419,31 @@
prop="materialList" prop="materialList"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-carousel trigger="click" height="60px"> <!-- <el-carousel trigger="click" height="60px">
<el-carousel-item <el-carousel-item
v-for="(accessory, index) in scope.row.matListInfo" v-for="(accessory, index) in scope.row.matListInfo"
:key="index" :key="index"
> >
<!-- <a
:href="baseUrl + accessory.accessoryUrl"
target="_blank"
>{{ accessory.accessoryName }}</a
> -->
<img <img
:src="baseUrl + accessory.accessoryUrl" :src="baseUrl + accessory.accessoryUrl"
style="width: 150px" style="width: 150px"
/> />
</el-carousel-item> </el-carousel-item>
</el-carousel> </el-carousel> -->
<span
v-for="(accessory, index) in scope.row.matListInfo"
:key="index"
>
<el-link
:href="`${baseUrl}${accessory.accessoryUrl}`"
:underline="false"
target="_blank"
>
<span class="el-icon-document">
{{ accessory.accessoryName }}
</span>
</el-link>
</span>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -466,22 +476,31 @@ ...@@ -466,22 +476,31 @@
</el-table-column> </el-table-column>
<el-table-column align="center" label="附件"> <el-table-column align="center" label="附件">
<template slot-scope="scope"> <template slot-scope="scope">
<el-carousel trigger="click" height="60px"> <!-- <el-carousel trigger="click" height="60px">
<el-carousel-item <el-carousel-item
v-for="(accessory, index) in scope.row.trainingListInfo" v-for="(accessory, index) in scope.row.trainingListInfo"
:key="index" :key="index"
> >
<!-- <a
:href="baseUrl + accessory.accessoryUrl"
target="_blank"
>{{ accessory.accessoryName }}</a
> -->
<img <img
:src="baseUrl + accessory.accessoryUrl" :src="baseUrl + accessory.accessoryUrl"
style="width: 150px" style="width: 150px"
/> />
</el-carousel-item> </el-carousel-item>
</el-carousel> </el-carousel> -->
<span
v-for="(accessory, index) in scope.row.trainingListInfo"
:key="index"
>
<el-link
:href="`${baseUrl}${accessory.accessoryUrl}`"
:underline="false"
target="_blank"
>
<span class="el-icon-document">
{{ accessory.accessoryName }}
</span>
</el-link>
</span>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -525,22 +544,31 @@ ...@@ -525,22 +544,31 @@
" "
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-carousel trigger="click" height="60px"> <!-- <el-carousel trigger="click" height="60px">
<el-carousel-item <el-carousel-item
v-for="(accessory, index) in scope.row.accListInfo" v-for="(accessory, index) in scope.row.accListInfo"
:key="index" :key="index"
> >
<!-- <a
:href="baseUrl + accessory.accessoryUrl"
target="_blank"
>{{ accessory.accessoryName }}</a
> -->
<img <img
:src="baseUrl + accessory.accessoryUrl" :src="baseUrl + accessory.accessoryUrl"
style="width: 150px" style="width: 150px"
/> />
</el-carousel-item> </el-carousel-item>
</el-carousel> </el-carousel> -->
<span
v-for="(accessory, index) in scope.row.accListInfo"
:key="index"
>
<el-link
:href="`${baseUrl}${accessory.accessoryUrl}`"
:underline="false"
target="_blank"
>
<span class="el-icon-document">
{{ accessory.accessoryName }}
</span>
</el-link>
</span>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
......
...@@ -98,22 +98,21 @@ ...@@ -98,22 +98,21 @@
> >
<template slot-scope="scope"> <template slot-scope="scope">
<!-- 未填写 --> <!-- 未填写 -->
<div> <div v-if="scope.row.state === 4">
<el-button size="mini" type="text" @click="handleEdit(scope.row)" <el-button size="mini" type="text" @click="handleEdit(scope.row)"
>填写 >填写
</el-button> </el-button>
<el-button size="mini" type="text" @click="handleEdit(scope.row)" <el-button size="mini" type="text" @click="handleEdit(scope.row)"
>修改 >修改
</el-button> </el-button>
<el-button size="mini" type="text" @click="handleCheck(scope.row)"
>查看
</el-button>
<el-button size="mini" type="text" @click="handleSubmit(scope.row)" <el-button size="mini" type="text" @click="handleSubmit(scope.row)"
>提交 >提交
</el-button> </el-button>
<!-- </div> -->
<!-- <div> -->
</div> </div>
<el-button size="mini" type="text" @click="handleCheck(scope.row)"
>查看
</el-button>
<div></div>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -125,7 +124,7 @@ ...@@ -125,7 +124,7 @@
@pagination="getList" @pagination="getList"
/> />
<!--弹窗--> <!--弹窗-->
<el-dialog :title="title" :visible.sync="dialogVisible" width="100%"> <el-dialog :title="title" :visible.sync="dialogVisible" width="95%">
<div style="display: flex"> <div style="display: flex">
<div class="leftContent"> <div class="leftContent">
<div style="margin-bottom: 10px"> <div style="margin-bottom: 10px">
...@@ -146,7 +145,7 @@ ...@@ -146,7 +145,7 @@
> >
<el-input <el-input
v-model="form.filesSemester" v-model="form.filesSemester"
:disabled="status == '7' ? true : false" :disabled="form.state == '4' ? true : false"
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item <el-form-item
...@@ -156,7 +155,7 @@ ...@@ -156,7 +155,7 @@
> >
<el-input <el-input
v-model="form.gradeName" v-model="form.gradeName"
:disabled="status == '7' ? true : false" :disabled="form.state == '4' ? true : false"
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item <el-form-item
...@@ -166,7 +165,7 @@ ...@@ -166,7 +165,7 @@
> >
<el-input <el-input
v-model="form.teacherName" v-model="form.teacherName"
:disabled="status == '7' ? true : false" :disabled="form.state == '4' ? true : false"
></el-input> ></el-input>
</el-form-item> </el-form-item>
<!-- <el-form-item label="性别:" style="padding-right: 10px"> <!-- <el-form-item label="性别:" style="padding-right: 10px">
...@@ -178,7 +177,7 @@ ...@@ -178,7 +177,7 @@
style="padding-right: 10px" style="padding-right: 10px"
> >
<el-select <el-select
:disabled="status == '7' ? true : false" :disabled="form.state == '4' ? true : false"
v-model="form.sex" v-model="form.sex"
placeholder="请输入性别" placeholder="请输入性别"
style="width: 100%" style="width: 100%"
...@@ -199,7 +198,7 @@ ...@@ -199,7 +198,7 @@
> >
<el-input <el-input
v-model="form.age" v-model="form.age"
:disabled="status == '7' ? true : false" :disabled="form.state == '4' ? true : false"
> >
</el-input> </el-input>
</el-form-item> </el-form-item>
...@@ -210,7 +209,7 @@ ...@@ -210,7 +209,7 @@
> >
<el-input <el-input
v-model="form.title" v-model="form.title"
:disabled="status == '7' ? true : false" :disabled="form.state == '4' ? true : false"
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item <el-form-item
...@@ -220,7 +219,7 @@ ...@@ -220,7 +219,7 @@
> >
<el-input <el-input
v-model="form.education" v-model="form.education"
:disabled="status == '7' ? true : false" :disabled="form.state == '4' ? true : false"
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item <el-form-item
...@@ -230,7 +229,7 @@ ...@@ -230,7 +229,7 @@
> >
<el-input <el-input
v-model="form.appearance" v-model="form.appearance"
:disabled="status == '7' ? true : false" :disabled="form.state == '4' ? true : false"
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item <el-form-item
...@@ -240,7 +239,7 @@ ...@@ -240,7 +239,7 @@
> >
<el-input <el-input
v-model="form.courseName" v-model="form.courseName"
:disabled="status == '7' ? true : false" :disabled="form.state == '4' ? true : false"
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item <el-form-item
...@@ -250,7 +249,7 @@ ...@@ -250,7 +249,7 @@
> >
<el-input <el-input
v-model="form.className" v-model="form.className"
:disabled="status == '7' ? true : false" :disabled="form.state == '4' ? true : false"
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item <el-form-item
...@@ -260,7 +259,7 @@ ...@@ -260,7 +259,7 @@
> >
<el-input <el-input
v-model="form.bzrClassName" v-model="form.bzrClassName"
:disabled="status == '7' ? true : false" :disabled="form.state == '4' ? true : false"
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item <el-form-item
...@@ -270,7 +269,7 @@ ...@@ -270,7 +269,7 @@
> >
<el-input <el-input
v-model="form.fbzrClassName" v-model="form.fbzrClassName"
:disabled="status == '7' ? true : false" :disabled="form.state == '4' ? true : false"
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item <el-form-item
...@@ -280,7 +279,7 @@ ...@@ -280,7 +279,7 @@
> >
<el-input <el-input
v-model="form.isTeachingGroupLeader" v-model="form.isTeachingGroupLeader"
:disabled="status == '7' ? true : false" :disabled="form.state == '4' ? true : false"
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item <el-form-item
...@@ -290,7 +289,7 @@ ...@@ -290,7 +289,7 @@
> >
<el-input <el-input
v-model="form.isResearchGroupLeader" v-model="form.isResearchGroupLeader"
:disabled="status == '7' ? true : false" :disabled="form.state == '4' ? true : false"
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item <el-form-item
...@@ -300,7 +299,7 @@ ...@@ -300,7 +299,7 @@
> >
<el-input <el-input
v-model="form.classHour" v-model="form.classHour"
:disabled="status == '7' ? true : false" :disabled="form.state == '4' ? true : false"
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item <el-form-item
...@@ -310,7 +309,7 @@ ...@@ -310,7 +309,7 @@
> >
<el-input <el-input
v-model="form.classTeacherDetails" v-model="form.classTeacherDetails"
:disabled="status == '7' ? true : false" :disabled="form.state == '4' ? true : false"
></el-input> ></el-input>
</el-form-item> </el-form-item>
</el-form> </el-form>
...@@ -341,7 +340,7 @@ ...@@ -341,7 +340,7 @@
<span class="line"></span> <span class="line"></span>
<span class="title">教育科研</span> <span class="title">教育科研</span>
<el-button <el-button
:disabled="status == '7' ? true : false" :disabled="form.state == '4' ? true : false"
type="success" type="success"
size="mini" size="mini"
style="float: right; margin-right: 50px; margin-top: 10px" style="float: right; margin-right: 50px; margin-top: 10px"
...@@ -376,22 +375,32 @@ ...@@ -376,22 +375,32 @@
</el-table-column> </el-table-column>
<el-table-column align="center" label="附件" prop="thesisList"> <el-table-column align="center" label="附件" prop="thesisList">
<template slot-scope="scope"> <template slot-scope="scope">
<el-carousel trigger="click" height="60px"> <!-- <el-carousel trigger="click" height="60px">
<el-carousel-item <el-carousel-item
v-for="(accessory, index) in scope.row.thesisListInfo" v-for="(accessory, index) in scope.row.thesisListInfo"
:key="index" :key="index"
> >
<img <template>
:src="baseUrl + accessory.accessoryUrl" <a :href="baseUrl + accessory.accessoryUrl">{{
style="width: 150px" accessory.accessoryName
/> }}</a>
<a </template>
:src="baseUrl + accessory.accessoryUrl"
style="width: 150px"
>{{ accessory.accessoryName }}</a
>
</el-carousel-item> </el-carousel-item>
</el-carousel> </el-carousel> -->
<span
v-for="(accessory, index) in scope.row.thesisListInfo"
:key="index"
>
<el-link
:href="`${baseUrl}${accessory.accessoryUrl}`"
:underline="false"
target="_blank"
>
<span class="el-icon-document">
{{ accessory.accessoryName }}
</span>
</el-link>
</span>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -420,36 +429,30 @@ ...@@ -420,36 +429,30 @@
prop="materialList" prop="materialList"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<!-- <div <!-- <el-carousel trigger="click" height="60px">
<el-carousel-item
v-for="(accessory, index) in scope.row.matListInfo" v-for="(accessory, index) in scope.row.matListInfo"
:key="index" :key="index"
> --> >
<!-- <a <a :href="baseUrl + accessory.accessoryUrl">{{
:href="baseUrl + accessory.accessoryUrl" accessory.accessoryName
target="_blank" }}</a>
>{{ accessory.accessoryName }}</a </el-carousel-item>
> --> </el-carousel> -->
<!-- <img <span
:src="baseUrl + accessory.accessoryUrl"
style="width: 100px"
/>
</div> -->
<el-carousel trigger="click" height="60px">
<el-carousel-item
v-for="(accessory, index) in scope.row.matListInfo" v-for="(accessory, index) in scope.row.matListInfo"
:key="index" :key="index"
> >
<img <el-link
:src="baseUrl + accessory.accessoryUrl" :href="`${baseUrl}${accessory.accessoryUrl}`"
style="width: 150px" :underline="false"
/> target="_blank"
<a
:href="baseUrl + accessory.accessoryUrl"
style="width: 150px"
>{{ accessory.accessoryName }}</a
> >
</el-carousel-item> <span class="el-icon-document">
</el-carousel> {{ accessory.accessoryName }}
</span>
</el-link>
</span>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -482,31 +485,30 @@ ...@@ -482,31 +485,30 @@
</el-table-column> </el-table-column>
<el-table-column align="center" label="附件"> <el-table-column align="center" label="附件">
<template slot-scope="scope"> <template slot-scope="scope">
<!-- <div <!-- <el-carousel trigger="click" height="60px">
<el-carousel-item
v-for="(accessory, index) in scope.row.trainingListInfo" v-for="(accessory, index) in scope.row.trainingListInfo"
:key="index" :key="index"
> >
<img <a :href="baseUrl + accessory.accessoryUrl">{{
:src="baseUrl + accessory.accessoryUrl" accessory.accessoryName
style="width: 100px" }}</a>
/> </el-carousel-item>
</div> --> </el-carousel> -->
<el-carousel trigger="click" height="60px"> <span
<el-carousel-item
v-for="(accessory, index) in scope.row.trainingListInfo" v-for="(accessory, index) in scope.row.trainingListInfo"
:key="index" :key="index"
> >
<img <el-link
:src="baseUrl + accessory.accessoryUrl" :href="`${baseUrl}${accessory.accessoryUrl}`"
style="width: 150px" :underline="false"
/> target="_blank"
<a
:href="baseUrl + accessory.accessoryUrl"
style="width: 150px"
>{{ accessory.accessoryName }}</a
> >
</el-carousel-item> <span class="el-icon-document">
</el-carousel> {{ accessory.accessoryName }}
</span>
</el-link>
</span>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -550,22 +552,30 @@ ...@@ -550,22 +552,30 @@
" "
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-carousel trigger="click" height="60px"> <!-- <el-carousel trigger="click" height="60px">
<el-carousel-item <el-carousel-item
v-for="(accessory, index) in scope.row.accListInfo" v-for="(accessory, index) in scope.row.accListInfo"
:key="index" :key="index"
> >
<img <a :href="baseUrl + accessory.accessoryUrl">{{
:src="baseUrl + accessory.accessoryUrl" accessory.accessoryName
style="width: 150px" }}</a>
/>
<a
:href="baseUrl + accessory.accessoryUrl"
style="width: 150px"
>{{ accessory.accessoryName }}</a
>
</el-carousel-item> </el-carousel-item>
</el-carousel> </el-carousel> -->
<span
v-for="(accessory, index) in scope.row.accListInfo"
:key="index"
>
<el-link
:href="`${baseUrl}${accessory.accessoryUrl}`"
:underline="false"
target="_blank"
>
<span class="el-icon-document">
{{ accessory.accessoryName }}
</span>
</el-link>
</span>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -680,6 +690,9 @@ export default { ...@@ -680,6 +690,9 @@ export default {
this.total = res.total; this.total = res.total;
}); });
}, },
isImage(url) {
return /\.(jpg|jpeg|png|gif)$/i.test(url);
},
// 提取 // 提取
handleExtract() { handleExtract() {
......
...@@ -71,8 +71,14 @@ ...@@ -71,8 +71,14 @@
? "未发布" ? "未发布"
: row.state == 2 : row.state == 2
? "已发布" ? "已发布"
: row.state == 7 : row.state == 3
? "已完成" ? "已填写"
: row.state == 4
? "已提交"
: row.state == 5
? "已确认"
: row.state == 9
? "驳回"
: "" : ""
}} }}
</template> </template>
...@@ -363,22 +369,31 @@ ...@@ -363,22 +369,31 @@
</el-table-column> </el-table-column>
<el-table-column align="center" label="附件" prop="thesisList"> <el-table-column align="center" label="附件" prop="thesisList">
<template slot-scope="scope"> <template slot-scope="scope">
<el-carousel trigger="click" height="60px"> <!-- <el-carousel trigger="click" height="60px">
<el-carousel-item <el-carousel-item
v-for="(accessory, index) in scope.row.thesisListInfo" v-for="(accessory, index) in scope.row.thesisListInfo"
:key="index" :key="index"
> >
<!-- <a
:href="baseUrl + accessory.accessoryUrl"
target="_blank"
>{{ accessory.accessoryName }}</a
> -->
<img <img
:src="baseUrl + accessory.accessoryUrl" :src="baseUrl + accessory.accessoryUrl"
style="width: 150px" style="width: 150px"
/> />
</el-carousel-item> </el-carousel-item>
</el-carousel> </el-carousel> -->
<span
v-for="(accessory, index) in scope.row.thesisListInfo"
:key="index"
>
<el-link
:href="`${baseUrl}${accessory.accessoryUrl}`"
:underline="false"
target="_blank"
>
<span class="el-icon-document">
{{ accessory.accessoryName }}
</span>
</el-link>
</span>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -407,22 +422,31 @@ ...@@ -407,22 +422,31 @@
prop="materialList" prop="materialList"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-carousel trigger="click" height="60px"> <!-- <el-carousel trigger="click" height="60px">
<el-carousel-item <el-carousel-item
v-for="(accessory, index) in scope.row.matListInfo" v-for="(accessory, index) in scope.row.matListInfo"
:key="index" :key="index"
> >
<!-- <a
:href="baseUrl + accessory.accessoryUrl"
target="_blank"
>{{ accessory.accessoryName }}</a
> -->
<img <img
:src="baseUrl + accessory.accessoryUrl" :src="baseUrl + accessory.accessoryUrl"
style="width: 150px" style="width: 150px"
/> />
</el-carousel-item> </el-carousel-item>
</el-carousel> </el-carousel> -->
<span
v-for="(accessory, index) in scope.row.matListInfo"
:key="index"
>
<el-link
:href="`${baseUrl}${accessory.accessoryUrl}`"
:underline="false"
target="_blank"
>
<span class="el-icon-document">
{{ accessory.accessoryName }}
</span>
</el-link>
</span>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -455,22 +479,31 @@ ...@@ -455,22 +479,31 @@
</el-table-column> </el-table-column>
<el-table-column align="center" label="附件"> <el-table-column align="center" label="附件">
<template slot-scope="scope"> <template slot-scope="scope">
<el-carousel trigger="click" height="60px"> <!-- <el-carousel trigger="click" height="60px">
<el-carousel-item <el-carousel-item
v-for="(accessory, index) in scope.row.trainingListInfo" v-for="(accessory, index) in scope.row.trainingListInfo"
:key="index" :key="index"
> >
<!-- <a
:href="baseUrl + accessory.accessoryUrl"
target="_blank"
>{{ accessory.accessoryName }}</a
> -->
<img <img
:src="baseUrl + accessory.accessoryUrl" :src="baseUrl + accessory.accessoryUrl"
style="width: 150px" style="width: 150px"
/> />
</el-carousel-item> </el-carousel-item>
</el-carousel> </el-carousel> -->
<span
v-for="(accessory, index) in scope.row.trainingListInfo"
:key="index"
>
<el-link
:href="`${baseUrl}${accessory.accessoryUrl}`"
:underline="false"
target="_blank"
>
<span class="el-icon-document">
{{ accessory.accessoryName }}
</span>
</el-link>
</span>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -514,22 +547,31 @@ ...@@ -514,22 +547,31 @@
" "
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-carousel trigger="click" height="60px"> <!-- <el-carousel trigger="click" height="60px">
<el-carousel-item <el-carousel-item
v-for="(accessory, index) in scope.row.accListInfo" v-for="(accessory, index) in scope.row.accListInfo"
:key="index" :key="index"
> >
<!-- <a
:href="baseUrl + accessory.accessoryUrl"
target="_blank"
>{{ accessory.accessoryName }}</a
> -->
<img <img
:src="baseUrl + accessory.accessoryUrl" :src="baseUrl + accessory.accessoryUrl"
style="width: 150px" style="width: 150px"
/> />
</el-carousel-item> </el-carousel-item>
</el-carousel> </el-carousel> -->
<span
v-for="(accessory, index) in scope.row.accListInfo"
:key="index"
>
<el-link
:href="`${baseUrl}${accessory.accessoryUrl}`"
:underline="false"
target="_blank"
>
<span class="el-icon-document">
{{ accessory.accessoryName }}
</span>
</el-link>
</span>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -621,6 +663,7 @@ export default { ...@@ -621,6 +663,7 @@ export default {
tableForthDataInfo: [], //thesisList tableForthDataInfo: [], //thesisList
tableForthDataInfoRes: [], //4 tableForthDataInfoRes: [], //4
baseUrl: process.env.VUE_APP_BASE_API, baseUrl: process.env.VUE_APP_BASE_API,
tableDataInfo: [],
}; };
}, },
mounted() { mounted() {
...@@ -641,6 +684,9 @@ export default { ...@@ -641,6 +684,9 @@ export default {
}; };
getteacherNotice(params).then((res) => { getteacherNotice(params).then((res) => {
this.tableData = res.rows; this.tableData = res.rows;
this.tableDataInfo = res.rows.map((item) => {
return item.id; // 如果需要将 fid 属性单独提取出来,可以返回一个包含 fid 的新数组
});
this.total = res.total; this.total = res.total;
}); });
}, },
...@@ -715,8 +761,49 @@ export default { ...@@ -715,8 +761,49 @@ export default {
handleExtract() { handleExtract() {
const id = this.form.id; const id = this.form.id;
syncNotice(id).then((res) => { syncNotice(id).then((res) => {
console.log(id, "id"); getFileTnfo(id).then((res) => {
console.log("res提取", res); this.form = res.data;
this.tableFirstData = res.data.thesisList;
this.tableSecondData = res.data.materialList;
this.tableThirdData = res.data.trainingList;
this.tableForthData = res.data.awardList;
// ----------------------------------------4
this.tableForthDataInfo = res.data.awardList.map((item) => {
item.accList = item.accessories;
return item;
});
this.tableForthDataInfoRes = this.tableForthDataInfo.map((val) => {
val.accListInfo = val.accList;
return val;
});
// ---------------------------------------2
this.tableSecondDataInfo = res.data.materialList.map((item) => {
item.accessoriesInfo = item.accessories;
return item;
});
this.tableSecondDataInfoRes = this.tableSecondDataInfo.map((val) => {
val.matListInfo = val.accessories;
return val;
});
// ---------------------------------------3
this.tableThirdDataInfo = res.data.trainingList.map((item) => {
item.accessoriesInfo = item.accessories;
return item;
});
this.tableThirdDataInfoRes = this.tableThirdDataInfo.map((val) => {
val.trainingListInfo = val.accessories;
return val;
});
// -----------------------------1
this.tableFirstDataInfo = res.data.thesisList.map((item) => {
item.accessoriesInfo = item.schoolAccessoryList;
return item;
});
this.tableFirstDataInfoRes = this.tableFirstDataInfo.map((val) => {
val.thesisListInfo = val.schoolAccessoryList;
return val;
});
});
this.$modal.msgSuccess("提取成功"); this.$modal.msgSuccess("提取成功");
}); });
}, },
...@@ -796,6 +883,7 @@ export default { ...@@ -796,6 +883,7 @@ export default {
updateInfo(params).then((res) => { updateInfo(params).then((res) => {
console.log(res, "res"); console.log(res, "res");
this.form = res; this.form = res;
this.$modal.msgSuccess("修改成功");
}); });
this.dialogVisible = false; this.dialogVisible = false;
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment