Merge branch 'master' into positec
| | |
| | | window.mkInfo(n) |
| | | }) |
| | | } |
| | | if (res.ErrCode === 'version_error') { |
| | | res.ErrCode = '-2' |
| | | MKEmitter.emit('reloadTabs') |
| | | if (!res.status) { |
| | | if (res.ErrCode === 'version_error') { |
| | | res.ErrCode = '-2' |
| | | MKEmitter.emit('reloadTabs') |
| | | } else if (res.message === 'permission deny') { |
| | | res.message = window.GLOB.dict['permission_deny'] || '无当前菜单或按钮的访问权限,请联系管理员!' |
| | | res.ErrMesg = window.GLOB.dict['permission_deny'] || '无当前菜单或按钮的访问权限,请联系管理员!' |
| | | } |
| | | } |
| | | resolve(res) |
| | | }) |
| | |
| | | const CodeMirror = asyncComponent(() => import('@/templates/zshare/codemirror')) |
| | | const MKTable = asyncComponent(() => import('@/components/normalform/modalform/mkTable')) |
| | | const acTyOptions = { |
| | | pop: ['label', 'OpenType', 'intertype', 'Ot', 'show', 'hover', 'swipe', 'icon', 'class', 'color', 'execSuccess', 'execError', 'syncComponent', 'switchTab', 'anchors', 'width', 'openmenu', 'refreshTab', 'position', 'hoverTitle', 'hidden', 'preButton', 'excache'], |
| | | prompt: ['label', 'OpenType', 'intertype', 'Ot', 'show', 'hover', 'swipe', 'icon', 'class', 'color', 'execSuccess', 'execError', 'syncComponent', 'switchTab', 'anchors', 'width', 'openmenu', 'refreshTab', 'position', 'tipTitle', 'hoverTitle', 'hidden', 'preButton', 'excache'], |
| | | exec: ['label', 'OpenType', 'intertype', 'Ot', 'show', 'hover', 'swipe', 'icon', 'class', 'color', 'execSuccess', 'execError', 'syncComponent', 'switchTab', 'anchors', 'width', 'openmenu', 'refreshTab', 'hoverTitle', 'hidden', 'preButton', 'excache'], |
| | | pop: ['label', 'OpenType', 'intertype', 'Ot', 'show', 'hover', 'swipe', 'icon', 'class', 'color', 'execSuccess', 'execError', 'syncComponent', 'switchTab', 'anchors', 'width', 'openmenu', 'refreshTab', 'position', 'hoverTitle', 'hidden', 'preButton'], |
| | | prompt: ['label', 'OpenType', 'intertype', 'Ot', 'show', 'hover', 'swipe', 'icon', 'class', 'color', 'execSuccess', 'execError', 'syncComponent', 'switchTab', 'anchors', 'width', 'openmenu', 'refreshTab', 'position', 'tipTitle', 'hoverTitle', 'hidden', 'preButton'], |
| | | exec: ['label', 'OpenType', 'intertype', 'Ot', 'show', 'hover', 'swipe', 'icon', 'class', 'color', 'execSuccess', 'execError', 'syncComponent', 'switchTab', 'anchors', 'width', 'openmenu', 'refreshTab', 'hoverTitle', 'hidden', 'preButton'], |
| | | excelIn: ['label', 'Ot', 'OpenType', 'intertype', 'show', 'hover', 'icon', 'class', 'color', 'sheet', 'execSuccess', 'execError', 'syncComponent', 'switchTab', 'width', 'hidden', 'refreshTab'], |
| | | excelOut: ['label', 'Ot', 'OpenType', 'intertype', 'show', 'hover', 'icon', 'class', 'color', 'execSuccess', 'execError', 'syncComponent', 'switchTab', 'pagination', 'search', 'width', 'hidden', 'refreshTab'], |
| | | popview: ['label', 'Ot', 'OpenType', 'show', 'hover', 'icon', 'class', 'color', 'popClose', 'width', 'display', 'ratio', 'syncComponent', 'clickouter', 'maskStyle', 'closeButton', 'hidden'], |
| | |
| | | forbid: viewType === 'popview' |
| | | }, |
| | | { |
| | | type: 'radio', |
| | | key: 'excache', |
| | | label: '清除缓存', |
| | | initVal: card.excache || 'false', |
| | | tooltip: '在使用后端脚本时,是否清除后端缓存,注:需在操作用户或权限时开启。', |
| | | required: false, |
| | | options: [ |
| | | {value: 'true', text: '开启'}, |
| | | {value: 'false', text: '关闭'}, |
| | | ] |
| | | }, |
| | | { |
| | | type: 'splitLine', |
| | | key: 'title', |
| | | label: '表单', |
| | |
| | | {value: 'false', text: '禁用'}, |
| | | ], |
| | | forbid: viewType === 'popview' |
| | | }, |
| | | { |
| | | type: 'radio', |
| | | key: 'excache', |
| | | label: '清除缓存', |
| | | initVal: card.excache || 'false', |
| | | tooltip: '在使用后端脚本时,是否清除后端缓存,注:需在操作用户或权限时开启。', |
| | | required: false, |
| | | options: [ |
| | | {value: 'true', text: '开启'}, |
| | | {value: 'false', text: '关闭'}, |
| | | ] |
| | | }, |
| | | { |
| | | type: 'radio', |
| | |
| | | } |
| | | |
| | | if (_config.wrap.datatype === 'dynamic') { |
| | | _config.setting.onload = _config.setting.sync === 'true' ? 'false' : 'true' |
| | | _config.setting.onload = _config.setting.sync === 'true' ? 'false' : _config.setting.onload || 'true' |
| | | |
| | | if (_config.setting.supModule && !BID) { |
| | | _config.setting.onload = 'false' |
| | |
| | | } |
| | | |
| | | if (_config.wrap.datatype === 'dynamic') { |
| | | _config.setting.onload = _config.setting.sync === 'true' ? 'false' : 'true' |
| | | _config.setting.onload = _config.setting.sync === 'true' ? 'false' : _config.setting.onload || 'true' |
| | | |
| | | if (_config.setting.supModule && !BID) { |
| | | _config.setting.onload = 'false' |
| | |
| | | } |
| | | |
| | | if (_config.wrap.datatype !== 'static') { |
| | | _config.setting.onload = _config.setting.sync === 'true' ? 'false' : 'true' |
| | | _config.setting.onload = _config.setting.sync === 'true' ? 'false' : _config.setting.onload || 'true' |
| | | |
| | | if (_config.setting.supModule && !BID) { |
| | | _config.setting.onload = 'false' |
| | |
| | | } |
| | | |
| | | if (_config.wrap.datatype === 'dynamic') { |
| | | _config.setting.onload = _config.setting.sync === 'true' ? 'false' : 'true' |
| | | _config.setting.onload = _config.setting.sync === 'true' ? 'false' : _config.setting.onload || 'true' |
| | | |
| | | if (_config.setting.supModule && !BID) { |
| | | _config.setting.onload = 'false' |
| | |
| | | } |
| | | |
| | | if (_config.wrap.datatype === 'dynamic') { |
| | | _config.setting.onload = _config.setting.sync === 'true' ? 'false' : 'true' |
| | | _config.setting.onload = _config.setting.sync === 'true' ? 'false' : _config.setting.onload || 'true' |
| | | |
| | | if (_config.setting.supModule && !BID) { |
| | | _config.setting.onload = 'false' |
| | |
| | | } |
| | | |
| | | if (_config.wrap.datatype === 'dynamic') { |
| | | _config.setting.onload = _config.setting.sync === 'true' ? 'false' : 'true' |
| | | _config.setting.onload = _config.setting.sync === 'true' ? 'false' : _config.setting.onload || 'true' |
| | | |
| | | if (_config.setting.supModule && !BID) { |
| | | _config.setting.onload = 'false' |
| | |
| | | } |
| | | |
| | | if (_config.wrap.datatype === 'dynamic') { |
| | | _config.setting.onload = _config.setting.sync === 'true' ? 'false' : 'true' |
| | | _config.setting.onload = _config.setting.sync === 'true' ? 'false' : _config.setting.onload || 'true' |
| | | |
| | | if (_config.setting.supModule && !BID) { |
| | | _config.setting.onload = 'false' |
| | |
| | | } |
| | | |
| | | if (_config.wrap.datatype === 'dynamic') { |
| | | _config.setting.onload = _config.setting.sync === 'true' ? 'false' : 'true' |
| | | _config.setting.onload = _config.setting.sync === 'true' ? 'false' : _config.setting.onload || 'true' |
| | | |
| | | if (_config.setting.supModule && !BID) { |
| | | _config.setting.onload = 'false' |
| | |
| | | tabId = btn.refreshTab[btn.refreshTab.length - 1] |
| | | } |
| | | |
| | | if (btn.excache === 'true') { |
| | | if (window.backend && btn.outerFunc && ['bd_workers_create_user_sso', 's_susers_del', 's_susers_add', 's_susers_update', 's_susers_start', 's_susers_admin'].includes(btn.outerFunc)) { |
| | | this.clearBackSqlCache() |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | clearBackSqlCache = () => { |
| | | if (!window.backend) return |
| | | |
| | | Api.cacheInterface({}).then(res => { |
| | | if (!res.status) { |
| | | notification.warning({ |
| | |
| | | delete config.force |
| | | } |
| | | |
| | | if (config.MenuID === 'home_page_id' || MenuType === 'billPrint') { |
| | | config.permission = 'false' |
| | | } |
| | | |
| | | let long_data = '' |
| | | if (config.enabled) { |
| | | let sqls = getAllSqls(config) |
| | |
| | | } |
| | | |
| | | long_data = [] |
| | | let oriIds = {} |
| | | if (config.allSqls) { |
| | | config.allSqls.forEach(item => { |
| | | if (!item.md5) return |
| | | oriIds[item.uuid + item.md5] = item.v_id |
| | | }) |
| | | } |
| | | // let oriIds = {} |
| | | // if (config.allSqls) { |
| | | // config.allSqls.forEach(item => { |
| | | // if (!item.md5) return |
| | | // oriIds[item.uuid + item.md5] = item.v_id |
| | | // }) |
| | | // } |
| | | |
| | | config.allSqls = sqls.map(item => { |
| | | let v_id = _t + getguid() |
| | | |
| | | if (oriIds[item.uuid + item.md5]) { |
| | | v_id = oriIds[item.uuid + item.md5] |
| | | } |
| | | // if (oriIds[item.uuid + item.md5]) { |
| | | // v_id = oriIds[item.uuid + item.md5] |
| | | // } |
| | | |
| | | long_data.push(`${md5(window.GLOB.appkey + v_id)},${item.uuid},${v_id},${window.btoa(window.encodeURIComponent(item.LText))},${config.permission === 'false' ? '' : item.roleId || ''}`) |
| | | |
| | |
| | | v_id: v_id, |
| | | type: item.type, |
| | | reps: item.reps, |
| | | md5: item.md5 || '', |
| | | // md5: item.md5 || '', |
| | | luser: item.luser === true |
| | | } |
| | | }) |
| | |
| | | |
| | | if (config.cacheUseful !== 'true') { |
| | | config.components = this.resetSyncQuery(config.components) |
| | | } |
| | | |
| | | if (config.MenuID === 'home_page_id') { |
| | | config.permission = 'false' |
| | | } |
| | | |
| | | let tbs = [] |
| | |
| | | } |
| | | |
| | | long_data = [] |
| | | let oriIds = {} |
| | | if (config.allSqls) { |
| | | config.allSqls.forEach(item => { |
| | | if (!item.md5) return |
| | | oriIds[item.uuid + item.md5] = item.v_id |
| | | }) |
| | | } |
| | | // let oriIds = {} |
| | | // if (config.allSqls) { |
| | | // config.allSqls.forEach(item => { |
| | | // if (!item.md5) return |
| | | // oriIds[item.uuid + item.md5] = item.v_id |
| | | // }) |
| | | // } |
| | | |
| | | config.allSqls = sqls.map(item => { |
| | | let v_id = _t + getguid() |
| | | |
| | | if (oriIds[item.uuid + item.md5]) { |
| | | v_id = oriIds[item.uuid + item.md5] |
| | | } |
| | | // if (oriIds[item.uuid + item.md5]) { |
| | | // v_id = oriIds[item.uuid + item.md5] |
| | | // } |
| | | |
| | | long_data.push(`${md5(window.GLOB.appkey + v_id)},${item.uuid},${v_id},${window.btoa(window.encodeURIComponent(item.LText))},${item.roleId || ''}`) |
| | | |
| | |
| | | v_id: v_id, |
| | | type: item.type, |
| | | reps: item.reps, |
| | | md5: item.md5 || '', |
| | | // md5: item.md5 || '', |
| | | luser: item.luser === true |
| | | } |
| | | }) |
| | |
| | | } |
| | | |
| | | long_data = [] |
| | | let oriIds = {} |
| | | if (config.allSqls) { |
| | | config.allSqls.forEach(item => { |
| | | if (!item.md5) return |
| | | oriIds[item.uuid + item.md5] = item.v_id |
| | | }) |
| | | } |
| | | // let oriIds = {} |
| | | // if (config.allSqls) { |
| | | // config.allSqls.forEach(item => { |
| | | // if (!item.md5) return |
| | | // oriIds[item.uuid + item.md5] = item.v_id |
| | | // }) |
| | | // } |
| | | |
| | | config.allSqls = sqls.map(item => { |
| | | let v_id = _t + getguid() |
| | | |
| | | if (oriIds[item.uuid + item.md5]) { |
| | | v_id = oriIds[item.uuid + item.md5] |
| | | } |
| | | // if (oriIds[item.uuid + item.md5]) { |
| | | // v_id = oriIds[item.uuid + item.md5] |
| | | // } |
| | | |
| | | long_data.push(`${md5(window.GLOB.appkey + v_id)},${item.uuid},${v_id},${window.btoa(window.encodeURIComponent(item.LText))},${item.roleId || ''}`) |
| | | |
| | |
| | | v_id: v_id, |
| | | type: item.type, |
| | | reps: item.reps, |
| | | md5: item.md5 || '', |
| | | // md5: item.md5 || '', |
| | | luser: item.luser === true |
| | | } |
| | | }) |
| | |
| | | } |
| | | |
| | | long_data = [] |
| | | let oriIds = {} |
| | | if (config.allSqls) { |
| | | config.allSqls.forEach(item => { |
| | | if (!item.md5) return |
| | | oriIds[item.uuid + item.md5] = item.v_id |
| | | }) |
| | | } |
| | | // let oriIds = {} |
| | | // if (config.allSqls) { |
| | | // config.allSqls.forEach(item => { |
| | | // if (!item.md5) return |
| | | // oriIds[item.uuid + item.md5] = item.v_id |
| | | // }) |
| | | // } |
| | | |
| | | config.allSqls = sqls.map(item => { |
| | | let v_id = _t + getguid() |
| | | |
| | | if (oriIds[item.uuid + item.md5]) { |
| | | v_id = oriIds[item.uuid + item.md5] |
| | | } |
| | | // if (oriIds[item.uuid + item.md5]) { |
| | | // v_id = oriIds[item.uuid + item.md5] |
| | | // } |
| | | |
| | | long_data.push(`${md5(window.GLOB.appkey + v_id)},${item.uuid},${v_id},${window.btoa(window.encodeURIComponent(item.LText))},${item.roleId || ''}`) |
| | | |
| | |
| | | v_id: v_id, |
| | | type: item.type, |
| | | reps: item.reps, |
| | | md5: item.md5 || '', |
| | | // md5: item.md5 || '', |
| | | luser: item.luser === true |
| | | } |
| | | }) |