Browse Source

11

dev-新新版
马魁 3 years ago
parent
commit
313db828d1
  1. 6
      src/assets/scss/people-info.scss
  2. 42
      src/views/modules/plugins/rent/resi.vue
  3. 54
      src/views/modules/shequ/cpts/peopleDetail.vue

6
src/assets/scss/people-info.scss

@ -3,6 +3,7 @@
.m-pop { .m-pop {
@include shield; @include shield;
z-index: 2000;
background-color: rgba(#000, 0.5); background-color: rgba(#000, 0.5);
overflow-y: auto; overflow-y: auto;
@ -51,7 +52,7 @@
.list { .list {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
padding: 10px 97px; padding: 10px 20px 10px 97px;
.item { .item {
position: relative; position: relative;
@ -135,3 +136,6 @@
} }
} }
} }
.bot12{
margin-bottom: 12px
}

42
src/views/modules/plugins/rent/resi.vue

@ -965,27 +965,27 @@ export default {
}) })
this.btnLoading = false this.btnLoading = false
}, },
async getTableHeader () { // async getTableHeader () {
await this.$http // await this.$http
.post('/oper/customize/icform/tableheaders', { // .post('/oper/customize/icform/tableheaders', {
formCode: 'resi_base_info' // formCode: 'resi_base_info'
}) // })
.then(({ data: res }) => { // .then(({ data: res }) => {
if (res.code !== 0) { // if (res.code !== 0) {
return this.$message.error(res.msg) // return this.$message.error(res.msg)
} else { // } else {
this.tableHeader = [] // this.tableHeader = []
res.data.forEach(item => { // res.data.forEach(item => {
if (this.tableHeaderFilter(item.columnName)) { // if (this.tableHeaderFilter(item.columnName)) {
this.tableHeader.push(item) // this.tableHeader.push(item)
} // }
}) // })
} // }
}) // })
.catch(() => { // .catch(() => {
return this.$message.error('网络错误') // return this.$message.error('')
}) // })
}, // },
async getTableData () { async getTableData () {
this.tableLoading = true this.tableLoading = true
let params = { let params = {

54
src/views/modules/shequ/cpts/peopleDetail.vue

@ -44,7 +44,8 @@
v-if="info[field.columnName]!=0" v-if="info[field.columnName]!=0"
> >
<span class="item-field">{{field.label}}<span v-if="field.itemType!='radio'"> </span> </span> <span class="item-field">{{field.label}}<span v-if="field.itemType!='radio'"> </span> </span>
<span v-if="field.columnName==='MOBILE'||field.columnName==='ID_CARD'">{{ info[field.columnName]||'--'}}</span> <!--<el-button type="text" class="div-table-button--blue" style="float: right" @click="handleTuomin(field)"> 显示</el-button> -->
<span v-if="field.columnName==='MOBILE'||field.columnName==='ID_CARD'"><span >{{ info[field.columnName]||'--'}}</span> </span>
<span v-else-if=" <span v-else-if="
field.itemType == 'select' || field.itemType == 'select' ||
field.itemType == 'radio' || field.itemType == 'radio' ||
@ -77,32 +78,24 @@
</div> </div>
</div> </div>
<!-- 详情下方tab --> <!-- 详情下方tab -->
<el-tabs class="top32" @tab-click="handlTabs"> <el-tabs class="top32" v-model="groupIndex" @tab-click="handlTabs">
<!-- <div class="tab-btn" <template>
@click="subStartGroupIndex" <el-dropdown>
v-if="groupList.length > 9"> <span class="el-dropdown-link">
<img src="@/assets/img/shuju/people/arrow-double-left.png" /> <i class="el-icon-arrow-down el-icon-more"></i>
</div> --> </span>
<el-button <el-dropdown-menu slot="dropdown" >
type="text" <el-dropdown-item v-for="(j,index) in groupList" :key="index"><div @click="handlDropdownTabs(`${index}`)"> {{j.label}}</div></el-dropdown-item>
size="small" </el-dropdown-menu>
@click="addTab(editableTabsValue)" </el-dropdown>
> </template>
<i class="el-icon-more"></i>
</el-button>
<el-tab-pane <el-tab-pane
v-for="(item, index) in groupList" v-for="(item, index) in groupList"
:class="groupIndex % groupList.length == index ? 'z-on' : ''" :class="groupIndex % groupList.length == index ? 'z-on' : ''"
:key="'tab' + index" :key="'tab' + index"
:label="item.label"> :label="item.label">
</el-tab-pane> </el-tab-pane>
<!-- <div class="tab-btn"
@click="addStartGroupIndex"
v-if="groupList.length > 9">
<img src="@/assets/img/shuju/people/arrow-double-right.png" />
</div> -->
</el-tabs > </el-tabs >
<div :key="'group' + index" <div :key="'group' + index"
v-show="groupIndex % groupList.length == index" v-show="groupIndex % groupList.length == index"
v-for="(group, index) in groupList"> v-for="(group, index) in groupList">
@ -289,8 +282,13 @@
}}</span> }}</span>
</div> </div>
</div> </div>
</div >
<el-row class="bot12" justify="end" >
<el-col :span="24"> <el-button style="float:right" @click="handleClose">关闭</el-button></el-col>
</el-row>
</div> </div>
</div>
</div> </div>
</div> </div>
</template> </template>
@ -426,17 +424,23 @@ export default {
handlTabs(i){ handlTabs(i){
this.groupIndex = i.index this.groupIndex = i.index
}, },
async handleTuomin () { handlDropdownTabs(index){
this.groupIndex = index
},
async handleTuomin (item) {
console.log();
const url = "/data/aggregator/epmetuser/detailByType"; const url = "/data/aggregator/epmetuser/detailByType";
const { data, code, msg } = await requestPost(url, { const { data, code, msg } = await requestPost(url, {
id: this.userId, id: this.userId,
type: "checkIcResiUser", type: "checkIcResiUser",
}); });
if (code === 0) { if (code === 0) {
if(item.columnName=='MOBILE'){
this.$set(this.info, 'MOBILE', data.mobile) this.$set(this.info, 'MOBILE', data.mobile)
}else if(item.columnName=='ID_CARD'){
this.$set(this.info, 'ID_CARD', data.idCard) this.$set(this.info, 'ID_CARD', data.idCard)
}
} else { } else {
this.$message.error(msg); this.$message.error(msg);
} }
@ -737,8 +741,8 @@ export default {
} }
.el-tabs ::v-deep .el-tabs__content { .el-tabs ::v-deep .el-tabs__content {
position: absolute; position: absolute;
right: 35px; right: 23px;
top: 5px; top: 14px;
} }
.m-pop .wrap{ .m-pop .wrap{
width: 820px; width: 820px;

Loading…
Cancel
Save