Commit 737c8ae7 by Cat

zd 教师电子档案修改

parent 11f8add3
......@@ -385,6 +385,11 @@
:src="baseUrl + accessory.accessoryUrl"
style="width: 150px"
/>
<a
:src="baseUrl + accessory.accessoryUrl"
style="width: 150px"
>{{ accessory.accessoryName }}</a
>
</el-carousel-item>
</el-carousel>
</template>
......@@ -438,6 +443,11 @@
:src="baseUrl + accessory.accessoryUrl"
style="width: 150px"
/>
<a
:href="baseUrl + accessory.accessoryUrl"
style="width: 150px"
>{{ accessory.accessoryName }}</a
>
</el-carousel-item>
</el-carousel>
</template>
......@@ -490,6 +500,11 @@
:src="baseUrl + accessory.accessoryUrl"
style="width: 150px"
/>
<a
:href="baseUrl + accessory.accessoryUrl"
style="width: 150px"
>{{ accessory.accessoryName }}</a
>
</el-carousel-item>
</el-carousel>
</template>
......@@ -544,6 +559,11 @@
:src="baseUrl + accessory.accessoryUrl"
style="width: 150px"
/>
<a
:href="baseUrl + accessory.accessoryUrl"
style="width: 150px"
>{{ accessory.accessoryName }}</a
>
</el-carousel-item>
</el-carousel>
</template>
......@@ -638,6 +658,7 @@ export default {
tableForthDataInfo: [], //thesisList
tableForthDataInfoRes: [], //4
baseUrl: process.env.VUE_APP_BASE_API,
tableDataInfo: [],
};
},
mounted() {
......@@ -647,32 +668,75 @@ export default {
/** 查询信息列表 */
getList() {
this.loading = true;
// const userId = this.$store.state.user.userId;
// const params = {
// // userId: this.$store.state.user.userId,
// noticeName: this.queryForm.noticeName,
// };
const params = {
userId: this.$store.state.user.userId,
noticeName: this.queryForm.noticeName,
};
getTeacherTnfo(params).then((res) => {
this.tableData = res.rows;
console.log(params, "params");
console.log(res, "res");
this.tableDataInfo = res.rows.map((item) => {
return item.fid; // 如果需要将 fid 属性单独提取出来,可以返回一个包含 fid 的新数组
});
this.total = res.total;
});
},
// 提取 `
// 提取
handleExtract() {
const id = this.form.id;
syncNotice(id).then((res) => {
console.log(id, "id");
console.log("res提取", res);
this.$modal.msgSuccess("提取成功");
this.tableDataInfo.forEach((item) => {
getFileTnfo(item).then((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("页面已刷新");
});
});
});
},
// 搜索按钮
handleQuery() {
this.queryForm.pageNum = 1;
......@@ -683,9 +747,7 @@ export default {
this.queryForm = {
pageNum: 1,
pageSize: 10,
level: "",
name: "",
region: "",
noticeName: "",
};
this.handleQuery();
},
......@@ -794,8 +856,6 @@ export default {
//提交按钮
handleSubmit(row) {
const id = row.fid;
console.log(id, "tijio");
this.$modal
.confirm("是否提交该活动?")
.then(function () {
......@@ -817,7 +877,7 @@ export default {
if (this.form.fid != null) {
// 修改
const params = {
id: this.form.fid,
id: this.form.id,
sex: this.form.sex,
age: this.form.age,
title: this.form.title,
......@@ -845,7 +905,7 @@ export default {
} else {
// 新增
const params = {
id: this.form.fid,
id: this.form.id,
sex: this.form.sex,
age: this.form.age,
title: this.form.title,
......
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