|
@@ -213,11 +213,12 @@ import ImageViewer from 'element-ui/packages/image/src/image-viewer'
|
|
|
import RadioFilter from '@/components/AgGridCustomFilter/RadioFilter'
|
|
|
import * as API_User from "@/api/user";
|
|
|
import {ROLE_TYPE} from "@/utils/enum/RoleTypeEnum";
|
|
|
+import ButtonCellRenderList from "@/components/AgGridCellRender/ButtonCellRenderList";
|
|
|
let prevOverflow = ''
|
|
|
const serverUrl = domain.serverUrl
|
|
|
export default {
|
|
|
name: 'CareDoctorManager',
|
|
|
- components: { ButtonCellRender, AgGridImg, ImageViewer, RadioFilter },
|
|
|
+ components: { ButtonCellRenderList, ButtonCellRender, AgGridImg, ImageViewer, RadioFilter },
|
|
|
props: {
|
|
|
partId: {
|
|
|
type: Number,
|
|
@@ -238,7 +239,7 @@ export default {
|
|
|
params: {
|
|
|
page_size: 10,
|
|
|
page_no: 1,
|
|
|
- sort: 'nc.member_id',
|
|
|
+ sort: 'member_id',
|
|
|
dir: 'asc'
|
|
|
},
|
|
|
/** 列表数据 */
|
|
@@ -391,8 +392,7 @@ export default {
|
|
|
onClick: this.deleteSingle,
|
|
|
label: this.$t('action.delete'),
|
|
|
buttonType: 'danger',
|
|
|
- buttonSize: 'mini',
|
|
|
- disabled: param.data['member_name'] === 'superadmin'
|
|
|
+ buttonSize: 'mini'
|
|
|
}
|
|
|
},
|
|
|
pinned: 'right',
|
|
@@ -400,8 +400,36 @@ export default {
|
|
|
width: 90,
|
|
|
resizable: false,
|
|
|
filter: false,
|
|
|
- sortable: false
|
|
|
+ sortable: false,
|
|
|
+ hide: this.part_view
|
|
|
}
|
|
|
+ // { headerName: this.$t('action.handle'), field: 'id',
|
|
|
+ // cellRendererFramework: 'ButtonCellRenderList',
|
|
|
+ // cellRendererParams: param => {
|
|
|
+ // return {
|
|
|
+ // list: [
|
|
|
+ // {
|
|
|
+ // onClick: this.handleEdit,
|
|
|
+ // label: this.$t('action.edit'),
|
|
|
+ // buttonType: 'primary',
|
|
|
+ // buttonSize: 'mini'
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // onClick: this.deleteSingle,
|
|
|
+ // label: this.$t('action.delete'),
|
|
|
+ // buttonType: 'danger',
|
|
|
+ // buttonSize: 'mini',
|
|
|
+ // show: !this.part_view
|
|
|
+ // }
|
|
|
+ // ]}
|
|
|
+ // },
|
|
|
+ // filter: false,
|
|
|
+ // pinned: 'right',
|
|
|
+ // lockPinned: true,
|
|
|
+ // minWidth: this.$i18n.locale === 'zh' ? 60 : 180,
|
|
|
+ // resizable: false,
|
|
|
+ // sortable: false
|
|
|
+ // },
|
|
|
]
|
|
|
this.defaultColDef = {
|
|
|
filter: 'agTextColumnFilter',
|
|
@@ -425,7 +453,7 @@ export default {
|
|
|
} else {
|
|
|
this.shopId = this.partId
|
|
|
}
|
|
|
- this.params.fixedCondition = this.part_view ? 'nc.shop_id=' + this.shopId : '1 = 1'
|
|
|
+ this.params.fixedCondition = this.part_view ? 'shop_id=' + this.shopId : '1 = 1'
|
|
|
this.GET_MemberList()
|
|
|
},
|
|
|
activated() {
|