隐藏列表中的领导列 - 如何隐藏列表中的领导列
你可以通过修改列表字段中的"checked"属性来隐藏领导这一列。将"checked"属性设为false即可隐藏该列。修改后的代码如下:\n\n columns: [\n { id: '0', name: '序号', code: 'xh', width: 65, align: 'center' , checked: true },\n { id: '1', name: '标题', code: 'title', minWidth: 200, sortable: 'custom' , checked: true },\n { id: '2', name: '发文号', code: 'fwh', width: 200, sortable: 'custom' },\n { id: '2', name: '拟稿人', code: 'createusername', width: 120, sortable: 'custom', checked: true },\n { id: '3', name: '拟稿部门', code: 'createdeptname', width: 150, sortable: 'custom', checked: true },\n { id: '4', name: '发文类型', code: 'ywname', minWidth: 170, sortable: 'custom' , checked: true },\n { id: '5', name: '拟稿时间', code: 'createtime', width: 140, sortable: 'custom'},\n { id: '2', name: '缓急状态', code: 'hjname', width: 110, sortable: 'custom' },\n { id: '6', name: '到达日期', code: 'taskCreateTime', width: 200, sortable: 'custom' , checked: true },\n { id: '4', name: '密级', code: 'mjname', width: 90, align: 'center', sortable: 'custom'},\n { id: '7', name: '当前节点', code: 'taskName', minWidth: 110, sortable: 'custom', checked: true },\n { id: '8', name: '传阅状态', code: 'handlerstatus', minWidth: 110, sortable: 'custom', checked: true },\n { id: '8', name: '领导', code: 'ld', width: 100, sortable: 'custom', checked: false },\n { id: '9', name: '延误天数', code: 'duration', minWidth: 110, sortable: 'custom' , checked: true },\n { id: '10', name: '状态', code: 'status', width: 90, align: 'center', sortable: 'custom'}\n ]
原文地址: https://www.cveoy.top/t/topic/pKia 著作权归作者所有。请勿转载和采集!