Commit 737c8ae7 by Cat

zd 教师电子档案修改

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