提交 ef7aaebc authored 作者: 钟是志's avatar 钟是志

韩才说的 把这个权限控制屏蔽了 isSelf= true表示 表的创建者才能批量删除.

上级 74c50eea
...@@ -71,7 +71,7 @@ const text = [ ...@@ -71,7 +71,7 @@ const text = [
'TIBYTEXT', 'TIBYTEXT',
'VARBINARY', 'VARBINARY',
'VARCHAR', 'VARCHAR',
'VARCHAR2', 'VARCHAR2',
'NVARCHAR2' 'NVARCHAR2'
]; ];
const number = ['BIGINT', 'DOUBLE', 'FLOAT', 'INT', 'INTEGER', 'NUMERIC', 'SMALLINT', 'TINYINT','NUMBER']; const number = ['BIGINT', 'DOUBLE', 'FLOAT', 'INT', 'INTEGER', 'NUMERIC', 'SMALLINT', 'TINYINT','NUMBER'];
...@@ -438,7 +438,7 @@ class FormList extends React.Component { ...@@ -438,7 +438,7 @@ class FormList extends React.Component {
} }
initColumn = () => { initColumn = () => {
const { dispatch, isFormCom, isSelect, callback, valueName } = this.props; const { dispatch, isFormCom, isSelect, callback, valueName } = this.props;
const { rights, columnRights } = this.state; const { rights, columnRights } = this.state;
if (this.props.value && this.props.value.columns) { if (this.props.value && this.props.value.columns) {
this.columns = this.props.value.columns; this.columns = this.props.value.columns;
...@@ -509,7 +509,7 @@ class FormList extends React.Component { ...@@ -509,7 +509,7 @@ class FormList extends React.Component {
} }
return; return;
} }
if (this.props.objCode == 1 || this.props.objCode == '1') { if (this.props.objCode == 1 || this.props.objCode == '1') {
} else { } else {
dispatch({ dispatch({
...@@ -807,7 +807,7 @@ class FormList extends React.Component { ...@@ -807,7 +807,7 @@ class FormList extends React.Component {
payload: { payload: {
keys: JSON.stringify(Keys), keys: JSON.stringify(Keys),
objId: this.state.objId, objId: this.state.objId,
isSelf: true, // isSelf: true,
}, },
callback: () => { callback: () => {
this.setState({ this.setState({
...@@ -1181,13 +1181,13 @@ class FormList extends React.Component { ...@@ -1181,13 +1181,13 @@ class FormList extends React.Component {
} = this.props; } = this.props;
const { showMobileDiv, isView } = this.state; const { showMobileDiv, isView } = this.state;
let scrollWidth = document.documentElement.clientWidth || document.body.clientWidth; //可使宽度 let scrollWidth = document.documentElement.clientWidth || document.body.clientWidth; //可使宽度
let isMobile = scrollWidth < 1000; let isMobile = scrollWidth < 1000;
if (document.querySelector('#previewDiv')) { if (document.querySelector('#previewDiv')) {
isMobile = true; isMobile = true;
} }
let showDiv =json.twidth?json.twidth:( let showDiv =json.twidth?json.twidth:(
document.querySelector('#mobelDiv') && document.querySelector('#mobelDiv') &&
document.querySelector('#mobelDiv')?.parentNode.clientWidth); document.querySelector('#mobelDiv')?.parentNode.clientWidth);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论