This commit is contained in:
parent
62e8ef22c1
commit
1fd6a4c644
|
|
@ -13,12 +13,5 @@ export const getTable = (params) => {
|
||||||
return WeaTools.callApi('/api/bs/hrmorganization/cardAccess/getTable', 'GET', params);
|
return WeaTools.callApi('/api/bs/hrmorganization/cardAccess/getTable', 'GET', params);
|
||||||
}
|
}
|
||||||
export const cardAccessSave = (params) => {
|
export const cardAccessSave = (params) => {
|
||||||
return fetch('/api/bs/hrmorganization/cardAccess/save', {
|
return WeaTools.callApi('/api/bs/hrmorganization/cardAccess/save', 'POST', params);
|
||||||
method: 'POST',
|
|
||||||
mode: 'cors',
|
|
||||||
headers: {
|
|
||||||
'Content-Type': 'application/json'
|
|
||||||
},
|
|
||||||
body: JSON.stringify(params)
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -51,6 +51,7 @@ class PermissionItem extends Component {
|
||||||
<WeaBrowser
|
<WeaBrowser
|
||||||
inputStyle={{ width: 200 }}
|
inputStyle={{ width: 200 }}
|
||||||
type={65}
|
type={65}
|
||||||
|
isSingle={false}
|
||||||
value={record[c.dataIndex]}
|
value={record[c.dataIndex]}
|
||||||
title="多角色"
|
title="多角色"
|
||||||
linkUrl="/spa/hrm/engine.html#/hrmengine/roleInfo/info?id="
|
linkUrl="/spa/hrm/engine.html#/hrmengine/roleInfo/info?id="
|
||||||
|
|
@ -73,14 +74,6 @@ class PermissionItem extends Component {
|
||||||
comsWeaTableStore={tableStore}
|
comsWeaTableStore={tableStore}
|
||||||
hasOrder={true}
|
hasOrder={true}
|
||||||
needScroll={true}
|
needScroll={true}
|
||||||
// rowSelection={{
|
|
||||||
// getCheckboxProps: record => {
|
|
||||||
// console.log(record);
|
|
||||||
// return {
|
|
||||||
// disabled: true // 配置无法勾选的列
|
|
||||||
// };
|
|
||||||
// }
|
|
||||||
// }}
|
|
||||||
getColumns={c => this.renderRenderColumns(c)}
|
getColumns={c => this.renderRenderColumns(c)}
|
||||||
onOperatesClick={(record, index, operate) =>
|
onOperatesClick={(record, index, operate) =>
|
||||||
this.onOperatesClick(record, index, operate)}
|
this.onOperatesClick(record, index, operate)}
|
||||||
|
|
|
||||||
|
|
@ -194,7 +194,9 @@ export class ColumnPermission {
|
||||||
}
|
}
|
||||||
|
|
||||||
arrColumnsToJson(arr, rows) {
|
arrColumnsToJson(arr, rows) {
|
||||||
let jsonColumn = {};
|
let jsonColumn = {
|
||||||
|
rownum:arr.length
|
||||||
|
};
|
||||||
arr.map((item, index) => {
|
arr.map((item, index) => {
|
||||||
for (let key in item) {
|
for (let key in item) {
|
||||||
jsonColumn[key + "_" + index] = item[key];
|
jsonColumn[key + "_" + index] = item[key];
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue