cyl/dev
wangxia 2 years ago
parent 4fe8f6499a
commit f177e97290

@ -86,7 +86,6 @@
<a-col :span="4">角色</a-col> <a-col :span="4">角色</a-col>
<a-col :span="18">{{ currentMember.role }}</a-col> <a-col :span="18">{{ currentMember.role }}</a-col>
</a-row> </a-row>
<a-row style="margin-bottom:24px"> <a-row style="margin-bottom:24px">
<a-col :span="4">权限</a-col> <a-col :span="4">权限</a-col>
<a-col :span="18">{{ currentMember.permission }}</a-col> <a-col :span="18">{{ currentMember.permission }}</a-col>
@ -490,8 +489,8 @@ export default {
agencyRole: this.currentMember.agencyRole + '', agencyRole: this.currentMember.agencyRole + '',
aliasName: this.currentMember.aliasName, aliasName: this.currentMember.aliasName,
tel: this.currentMember.tel, tel: this.currentMember.tel,
permission: this.currentMember.permission,
group: this.currentMember.group, group: this.currentMember.group,
agencyTeamId: this.currentMember.agencyTeamName,
}) })
}, 200) }, 200)
} else if (type == 'detail') { } else if (type == 'detail') {
@ -553,7 +552,7 @@ export default {
if (data.status == 200) { if (data.status == 200) {
this.$message.success('修改成功') this.$message.success('修改成功')
this.visible = false this.visible = false
this.permission = getAgencyPermissionsByRole(1) this.permission = getAgencyPermissionsByRole()
this.permissionName = getAgencyPermissionNameById(this.permission) this.permissionName = getAgencyPermissionNameById(this.permission)
this.getMemberList() this.getMemberList()
} else { } else {

@ -379,25 +379,25 @@ export default {
// scopedSlots: { customRender: 'userName' }, // scopedSlots: { customRender: 'userName' },
customRender: (text, row, index) => { customRender: (text, row, index) => {
let sex let sex
if(row.sex == '1'){ if (row.sex == '1') {
sex ='男' sex = '男'
}else if(row.sex == '2'){ } else if (row.sex == '2') {
sex = '女' sex = '女'
}else{ } else {
sex = "未知" sex = '未知'
} }
// switch (row.sex) { // switch (row.sex) {
// case 0: // case '0':
// sex = '' // sex = ''
// case 1: // case '1':
// sex = '' // sex = ''
// case 2: // case '2':
// sex = '' // sex = ''
// default: // default:
// break // break
// } // }
return text.trim() + '/' + (sex ? sex + '/' : '') + (row.age ? row.age + '/' : '') + (row.nation ? row.nation : '') return text.trim() + (sex ? '/' + sex : '') + (row.age ? '/' + row.age : '') + (row.nation ? '/' + row.nation : '')
}, },
}, },
// { // {
@ -816,9 +816,9 @@ export default {
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
table { table {
font-size: 14px; font-size: 14px;
} }
.dataStatisticsContainer { .dataStatisticsContainer {
height: 100%; height: 100%;
@ -866,21 +866,20 @@ export default {
} }
} }
/deep/ .ant-table-thead > tr > th, /deep/ .ant-table-tbody > tr > td { /deep/ .ant-table-thead > tr > th,
/deep/ .ant-table-tbody > tr > td {
padding: 12px 8px !important; padding: 12px 8px !important;
} }
/deep/ .ant-table.ant-table-fixed-header .ant-table-scroll .ant-table-header{ /deep/ .ant-table.ant-table-fixed-header .ant-table-scroll .ant-table-header {
overflow: auto !important; overflow: auto !important;
margin-bottom: -20px !important; margin-bottom: -20px !important;
padding-bottom: 20px !important; padding-bottom: 20px !important;
} }
/deep/ .ant-table { /deep/ .ant-table {
table{ table {
font-size: 14px; font-size: 14px;
} }
.ant-table-pagination.ant-pagination { .ant-table-pagination.ant-pagination {
float: unset; float: unset;
@ -968,14 +967,14 @@ export default {
/deep/.ant-table-body { /deep/.ant-table-body {
.ant-table-thead { .ant-table-thead {
.ant-table-row-cell-break-word { .ant-table-row-cell-break-word {
padding:12px 8px; padding: 12px 8px;
// text-align: center; // text-align: center;
} }
} }
.ant-table-tbody { .ant-table-tbody {
> tr > td { > tr > td {
font-size: 14px; font-size: 14px;
padding:12px 8px; padding: 12px 8px;
// height: 20px; // height: 20px;
// display: inline-block; // display: inline-block;
// padding: 0px 16px; // padding: 0px 16px;
@ -992,10 +991,7 @@ export default {
} }
} }
.dataTable { .dataTable {
/deep/.ant-table-tbody { /deep/.ant-table-tbody {
> tr > td { > tr > td {
font-size: 14px; font-size: 14px;

Loading…
Cancel
Save