Commit 4fe83a30 authored by 罗超's avatar 罗超

1

parent 9fc508e2
<template> <template>
<div v-loading="loading" class="addLecturer"> <div v-loading="loading" class="addfxs">
<div class="head-title"> <div class="head-title">
<span @click="CommonJump('schoolAndCompanyList')" class="blue point" <span @click="CommonJump('schoolAndCompanyList')" class="blue point"
>校企合作列表</span >校企合作列表</span
...@@ -82,7 +82,20 @@ ...@@ -82,7 +82,20 @@
> >
<el-table-column type="selection" width="55"></el-table-column> <el-table-column type="selection" width="55"></el-table-column>
<el-table-column prop="Id" label="ID" width="100"> </el-table-column> <el-table-column prop="Id" label="ID" width="100"> </el-table-column>
<el-table-column prop="NickName" label="名称"></el-table-column> <el-table-column label="名称">
<template slot-scope="scope">
<div style="display: flex; align-items: center">
<div
class="app-image"
:style="{
backgroundImage: 'url(' + scope.row.Photo + ')',
backgroundSize: 'cover',
}"
></div>
<div>{{ scope.row.NickName }}</div>
</div>
</template>
</el-table-column>
</el-table> </el-table>
<el-pagination <el-pagination
style="text-align: right" style="text-align: right"
...@@ -91,8 +104,7 @@ ...@@ -91,8 +104,7 @@
:page-size="DistributorMsg.pageSize" :page-size="DistributorMsg.pageSize"
layout="prev, pager, next" layout="prev, pager, next"
:current-page.sync="DistributorMsg.pageIndex" :current-page.sync="DistributorMsg.pageIndex"
:total="digcount" :total="fxsCount"
v-if="digcount > 0"
> >
</el-pagination> </el-pagination>
</div> </div>
...@@ -135,7 +147,7 @@ export default { ...@@ -135,7 +147,7 @@ export default {
showDialog: false, showDialog: false,
sels: [], sels: [],
fxsList: [], fxsList: [],
digcount: 0, fxsCount: 0,
}; };
}, },
created() { created() {
...@@ -196,7 +208,7 @@ export default { ...@@ -196,7 +208,7 @@ export default {
this.DistributorMsg, this.DistributorMsg,
(res) => { (res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.digcount = res.data.data.pageCount; this.fxsCount = res.data.data.pageCount;
this.DLoptions = res.data.data.pageData; this.DLoptions = res.data.data.pageData;
if (this.DLoptions.length > 0) { if (this.DLoptions.length > 0) {
this.sels = []; this.sels = [];
...@@ -208,10 +220,10 @@ export default { ...@@ -208,10 +220,10 @@ export default {
); );
}, },
submitForm(formName) { submitForm(formName) {
// if (!this.addMsg.CoverPhoto) { if (!this.addMsg.CoverPhoto) {
// this.Error("请上传logo"); this.Error("请上传logo");
// return; return;
// } }
this.$refs[formName].validate((valid) => { this.$refs[formName].validate((valid) => {
if (valid) { if (valid) {
if (this.fxsList.length === 0) { if (this.fxsList.length === 0) {
...@@ -270,7 +282,7 @@ export default { ...@@ -270,7 +282,7 @@ export default {
}; };
</script> </script>
<style scoped> <style scoped>
.addLecturer .content { .addfxs .content {
background: #fff; background: #fff;
margin-top: 10px; margin-top: 10px;
padding: 20px; padding: 20px;
...@@ -302,6 +314,7 @@ export default { ...@@ -302,6 +314,7 @@ export default {
} }
.check-box { .check-box {
display: flex; display: flex;
flex-wrap: wrap;
} }
.check-box-item { .check-box-item {
margin-right: 10px; margin-right: 10px;
...@@ -316,4 +329,12 @@ export default { ...@@ -316,4 +329,12 @@ export default {
z-index: 10; z-index: 10;
font-size: 16px; font-size: 16px;
} }
.addfxs .app-image {
background-size: cover;
background-position: center center;
width: 80px;
height: 80px;
border-radius: 0%;
margin-right: 10px;
}
</style> </style>
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