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

1

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