Browse Source

社区自组织dd

shibei_master
13176889840 4 years ago
parent
commit
c65d8ea56b
  1. 3
      src/App.vue
  2. 7
      src/views/components/scoreRecord.vue
  3. 3
      src/views/modules/base/resi.vue
  4. 11
      src/views/modules/communityService/sqzzz/cpts/edit.vue
  5. 192
      src/views/modules/communityService/sqzzz/index.vue

3
src/App.vue

@ -125,6 +125,9 @@ export default {
padding: 20px 20px 0 20px; padding: 20px 20px 0 20px;
} }
} }
.name-a {
cursor: pointer;
}
.dialog-h { .dialog-h {
.el-dialog__body { .el-dialog__body {
position: relative; position: relative;

7
src/views/components/scoreRecord.vue

@ -54,12 +54,13 @@
header-align="center" header-align="center"
align="center" align="center"
label="需求人" label="需求人"
width="100"> width="120">
</el-table-column> </el-table-column>
<el-table-column prop="content" <el-table-column prop="content"
header-align="center" header-align="center"
align="center" align="center"
label="需求内容" label="需求内容"
:show-overflow-tooltip="true"
min-width="230"> min-width="230">
</el-table-column> </el-table-column>
@ -74,14 +75,14 @@
header-align="center" header-align="center"
align="center" align="center"
label="评价" label="评价"
width="80"> width="120">
</el-table-column> </el-table-column>
<el-table-column prop="point" <el-table-column prop="point"
header-align="center" header-align="center"
align="center" align="center"
label="积分" label="积分"
width="80"> width="100">
</el-table-column> </el-table-column>
</el-table> </el-table>

3
src/views/modules/base/resi.vue

@ -1120,9 +1120,6 @@ export default {
color: rgba(0, 167, 169, 1); color: rgba(0, 167, 169, 1);
} }
} }
.name-a {
cursor: pointer;
}
</style> </style>
<style lang="scss" scoped> <style lang="scss" scoped>

11
src/views/modules/communityService/sqzzz/cpts/edit.vue

@ -1,6 +1,6 @@
<template> <template>
<div> <div>
<div> <div class="dialog-h-content scroll-h">
<el-form <el-form
ref="ref_form" ref="ref_form"
:inline="true" :inline="true"
@ -192,11 +192,12 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
<div class="div_btn"> <div class="div_btn resi-btns">
<el-button @click="handleCancle"> </el-button> <el-button size="small" @click="handleCancle"> </el-button>
<el-button <el-button
v-if="formType != 'detail'" v-if="formType != 'detail'"
type="primary" type="primary"
size="small"
:disabled="btnDisable" :disabled="btnDisable"
@click="handleComfirm" @click="handleComfirm"
> </el-button > </el-button
@ -487,8 +488,8 @@ export default {
} }
.div_btn { .div_btn {
display: flex; // display: flex;
justify-content: flex-end; // justify-content: flex-end;
} }
.el-tabs { .el-tabs {
margin: 0 20px; margin: 0 20px;

192
src/views/modules/communityService/sqzzz/index.vue

@ -1,13 +1,8 @@
<template> <template>
<div>
<div class="resi-container"> <div class="resi-container">
<el-card class="resi-card"> <el-card ref="searchCard" class="search-card">
<el-row class="resi-row-box" :class="openSearch && 'resi-row-more'"> <el-form ref="searchForm" :inline="true" :model="fmData" class="demo-form-inline">
<el-row class="resi-row" :gutter="20"> <el-form-item label="组织名称" prop="organizationName">
<el-col :span="8">
<div class="resi-cell">
<div class="resi-cell-label">组织名称</div>
<div class="resi-cell-value" :class="'resi-cell-value-radio'">
<el-input <el-input
v-model="fmData.organizationName" v-model="fmData.organizationName"
class="resi-cell-input" class="resi-cell-input"
@ -16,13 +11,8 @@
placeholder="请输入" placeholder="请输入"
> >
</el-input> </el-input>
</div> </el-form-item>
</div> <el-form-item label="创建时间" prop="createTime">
</el-col>
<el-col :span="12">
<div class="resi-cell">
<div class="resi-cell-label">创建时间</div>
<div class="resi-cell-value" :class="'resi-cell-value-radio'">
<el-date-picker <el-date-picker
v-model="fmData.createTime" v-model="fmData.createTime"
type="daterange" type="daterange"
@ -32,20 +22,14 @@
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
> >
</el-date-picker> </el-date-picker>
</div> </el-form-item>
</div> <el-form-item>
</el-col> <el-button type="primary" @click="handleSearch">查询</el-button>
<el-button type="yellow" @click="resetForm('searchForm')">重置</el-button>
</el-form-item>
</el-form>
<el-col :span="4">
<el-button style="float:right;" type="primary" size="small" @click="handleSearch"
>查询</el-button
>
</el-col>
</el-row>
</el-row>
</el-card> </el-card>
</div>
<el-card class="resi-card-table"> <el-card class="resi-card-table">
<div class="resi-row-btn"> <div class="resi-row-btn">
<el-button type="success" size="small" @click="handleAdd" <el-button type="success" size="small" @click="handleAdd"
@ -78,29 +62,34 @@
border border
style="width: 100%" style="width: 100%"
class="resi-table" class="resi-table"
:max-height="maxTableHeight" :height="maxTableHeight"
> >
<el-table-column label="序号" type="index" align="center" width="50" /> <el-table-column label="序号" type="index" align="center" width="50" />
<el-table-column prop="organizationName" label="组织名称"> <el-table-column prop="organizationName" label="组织名称" align="center">
<template slot-scope="scope">
<a class="name-a" @click="handleWatch(scope.row)">
{{ scope.row.organizationName }}
</a>
</template>
</el-table-column> </el-table-column>
<el-table-column prop="organizationPersonCount" label="组织人数"> <el-table-column prop="organizationPersonCount" align="center" label="组织人数">
</el-table-column> </el-table-column>
<el-table-column prop="serviceItem" label="服务事项"> </el-table-column> <el-table-column prop="serviceItem" label="服务事项" align="center" :show-overflow-tooltip="true"> </el-table-column>
<el-table-column prop="score" width="80" label="积分"> <el-table-column prop="score" width="100" align="center" label="积分">
</el-table-column> </el-table-column>
<el-table-column prop="principalName" label="负责人"> </el-table-column> <el-table-column prop="principalName" align="center" label="负责人"> </el-table-column>
<el-table-column prop="principalPhone" label="联系电话"> <el-table-column prop="principalPhone" align="center" label="联系电话">
</el-table-column> </el-table-column>
<el-table-column prop="organizationCreatedTime" label="创建时间"> <el-table-column prop="organizationCreatedTime" align="center" label="创建时间">
</el-table-column> </el-table-column>
<el-table-column fixed="right" label="操作" align="center" width="120"> <el-table-column fixed="right" label="操作" align="center" width="160">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <!-- <el-button
@click="handleWatch(scope.$index)" @click="handleWatch(scope.$index)"
type="text" type="text"
size="small" size="small"
>查看</el-button >查看</el-button
> > -->
<el-button <el-button
type="text" type="text"
style="color: #1c6afd" style="color: #1c6afd"
@ -140,7 +129,7 @@
:current-page.sync="pageNo" :current-page.sync="pageNo"
:page-sizes="[20, 50, 100, 200]" :page-sizes="[20, 50, 100, 200]"
:page-size="parseInt(pageSize)" :page-size="parseInt(pageSize)"
layout="sizes, prev, pager, next" layout="sizes, prev, pager, next, total"
:total="total" :total="total"
> >
</el-pagination> </el-pagination>
@ -155,6 +144,7 @@
:title="formTitle" :title="formTitle"
width="850px" width="850px"
top="5vh" top="5vh"
class="dialog-h"
@closed="handleClose" @closed="handleClose"
> >
<edit-form <edit-form
@ -170,7 +160,7 @@
:close-on-click-modal="false" :close-on-click-modal="false"
:close-on-press-escape="false" :close-on-press-escape="false"
:title="scoreDiaTitle" :title="scoreDiaTitle"
width="1050px" width="70%"
top="5vh" top="5vh"
@closed="diaClose" @closed="diaClose"
> >
@ -197,7 +187,7 @@ export default {
openSearch: false, openSearch: false,
formShow: false, formShow: false,
formTitle: "", formTitle: "组织信息",
pageNo: 1, pageNo: 1,
pageSize: window.localStorage.getItem("pageSize") || 20, pageSize: window.localStorage.getItem("pageSize") || 20,
@ -222,7 +212,7 @@ export default {
}, },
computed: { computed: {
maxTableHeight() { maxTableHeight() {
return this.clientHeight - 410; return this.clientHeight - 360;
}, },
...mapGetters(["clientHeight"]), ...mapGetters(["clientHeight"]),
}, },
@ -340,7 +330,10 @@ export default {
this.pageNo = 1; this.pageNo = 1;
this.getTableData(); this.getTableData();
}, },
resetForm(formName) {
this.$refs[formName].resetFields()
this.handleSearch()
},
async handleAdd() { async handleAdd() {
this.formShow = true; this.formShow = true;
await nextTick(); await nextTick();
@ -455,30 +448,13 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.tabs-other-info { .resi-container .resi-card-table {
.el-tabs__item { ::v-deep .el-table th {
// width: 50px; color: #fff;
height: 20px; background-color: rgba(33, 149, 254, 1);
box-sizing: border-box; // border-right: 1px solid rgba(33, 149, 254, 1);
margin-right: 7px;
padding: 0 10px !important;
font-size: 8px;
font-weight: 500;
color: #666666;
line-height: 20px;
background: #ebecf1;
border-radius: 2px;
}
.el-tabs__nav-wrap::after,
.el-tabs__active-bar {
display: none;
}
.el-tabs__nav-next,
.el-tabs__nav-prev {
line-height: 20px;
} }
} }
.resi-card-table { .resi-card-table {
margin-top: 20px; margin-top: 20px;
} }
@ -489,23 +465,6 @@ export default {
margin: 0 10px; margin: 0 10px;
} }
} }
.resi-other {
width: 100%;
display: flex;
.resi-other-title {
width: 100px;
box-sizing: border-box;
margin-bottom: 10px;
// padding: 6px 12px 0 0;
font-size: 16px;
font-weight: 500;
color: #333;
text-align: center;
}
.tabs-other-info {
// padding-left: 60px;
}
}
.resi-btns { .resi-btns {
margin-top: 20px; margin-top: 20px;
@ -516,72 +475,5 @@ export default {
position: relative; position: relative;
overflow: visible; overflow: visible;
} }
.resi-down {
position: absolute;
left: 50%;
bottom: -10px;
display: flex;
justify-content: center;
align-items: center;
width: 46px;
height: 12px;
box-sizing: border-box;
margin-left: -23rpx;
cursor: pointer;
background: #ffffff;
border-radius: 0 0 10px 10px;
img {
display: block;
}
}
.resi-row-box {
// height: 104px;
overflow: hidden;
transition: height 0.5s;
}
.resi-row-more {
height: max-content;
transition: height 0.5s;
}
.resi-row {
margin-bottom: 20px;
}
.resi-search {
.el-col {
text-align: right;
}
}
.resi-cell {
display: flex;
align-items: center;
.resi-cell-label {
width: 70px;
box-sizing: border-box;
margin-right: 15px;
text-align: right;
// line-height: 32;
}
.resi-cell-value-radio {
display: flex;
align-items: center;
min-height: 32px;
}
.resi-cell-input {
width: 180px;
}
.resi-cell-select {
width: 180px;
box-sizing: border-box;
margin-right: 10px;
&-middle {
width: 130px;
}
&-small {
width: 88px;
}
}
.resi-cell-select:last-child {
margin-right: 0;
}
}
</style> </style>

Loading…
Cancel
Save