From 6b699dc5a69457d76577d17903d54011a6561d97 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 23 八月 2023 11:48:47 +0800 Subject: [PATCH] Merge branch 'master' into positec --- src/tabviews/subtable/index.jsx | 30 +++++++++++++++++++----------- 1 files changed, 19 insertions(+), 11 deletions(-) diff --git a/src/tabviews/subtable/index.jsx b/src/tabviews/subtable/index.jsx index b1652cf..64cc21a 100644 --- a/src/tabviews/subtable/index.jsx +++ b/src/tabviews/subtable/index.jsx @@ -39,7 +39,6 @@ config: null, // 椤甸潰閰嶇疆淇℃伅锛屽寘鎷寜閽�佹悳绱€�佹樉绀哄垪銆佹爣绛剧瓑 actions: null, // 鎸夐挳闆� columns: null, // 鏄剧ず鍒� - arr_field: '', // 鏌ヨ瀛楁闆� setting: null, // 椤甸潰鍏ㄥ眬璁剧疆锛氭暟鎹簮銆佹寜閽強鏄剧ず鍒楀浐瀹氥�佷富閿瓑 data: [], // 鍒楄〃鏁版嵁闆� selectedData: [], // 宸查�夎〃鏍兼暟鎹� @@ -229,6 +228,16 @@ item.$menuId = this.props.MenuID item.$old = true + if (item.OpenType === 'excelOut') { // 瀵煎嚭 + item.$menuName = Tab.label + + if (!item.verify || !item.verify.columns || item.verify.columns.length === 0) { + item.errorType = 'error1' + } else if (item.intertype === 'system' && item.verify.dataType !== 'custom' && config.setting.interType !== 'system') { + item.errorType = 'error2' + } + } + if (item.OpenType === 'funcbutton' && item.funcType === 'print' && item.verify) { // 鎵撳嵃鏈鸿缃� let _item = window.GLOB.UserCacheMap.get(Tab.uuid + item.uuid) @@ -343,6 +352,8 @@ resetContrl: config.setting.resetContrl, } + config.setting.arr_field = _arrField.join(',') + this.setState({ pageSize: config.setting.pageSize || 10, BID: this.props.BID || '', @@ -355,7 +366,6 @@ setting: config.setting, actions: _actions, columns: _columns, - arr_field: _arrField.join(','), search: Utils.initMainSearch(config.search) }, () => { if (config.setting.onload !== 'false' && (!Tab.supMenu || this.props.BID || Tab.isTreeNode)) { // 鍒濆鍖栧彲鍔犺浇 @@ -429,7 +439,7 @@ */ async loadmaindata (id) { const { mainSearch } = this.props - const { setting, BID, arr_field, search, orderBy, pageIndex, pageSize, absFields } = this.state + const { setting, BID, search, orderBy, pageIndex, pageSize, absFields } = this.state let searches = fromJS(search).toJS() if (mainSearch && mainSearch.length > 0) { // 涓昏〃鎼滅储鏉′欢 @@ -441,7 +451,7 @@ }) let _orderBy = orderBy || setting.order - let param = UtilsDM.getQueryDataParams(setting, arr_field, searches, _orderBy, pageIndex, pageSize, BID) + let param = UtilsDM.getQueryDataParams(setting, searches, _orderBy, pageIndex, pageSize, BID) let result = await Api.genericInterface(param) @@ -515,7 +525,7 @@ */ async loadmainLinedata (id) { const { mainSearch } = this.props - const { setting, BID, arr_field, search, orderBy, pageIndex, pageSize, absFields } = this.state + const { setting, BID, search, orderBy, pageIndex, pageSize, absFields } = this.state let searches = fromJS(search).toJS() if (mainSearch && mainSearch.length > 0) { // 涓昏〃鎼滅储鏉′欢 @@ -527,7 +537,7 @@ }) let _orderBy = orderBy || setting.order - let param = UtilsDM.getQueryDataParams(setting, arr_field, searches, _orderBy, pageIndex, pageSize, BID, id) + let param = UtilsDM.getQueryDataParams(setting, searches, _orderBy, pageIndex, pageSize, BID, id) let result = await Api.genericInterface(param) if (result.status) { @@ -687,8 +697,8 @@ * @description 瀵煎嚭Excel鏃讹紝鑾峰彇椤甸潰鎼滅储鎺掑簭绛夊弬鏁� */ queryModuleParam = (menuId, callback) => { - const { Tab, mainSearch, MenuID } = this.props - const { arr_field, orderBy, search, setting} = this.state + const { mainSearch, MenuID } = this.props + const { orderBy, search, setting} = this.state if (MenuID !== menuId) return @@ -698,10 +708,8 @@ } callback({ - arr_field: arr_field, orderBy: orderBy || setting.order, - search: searches, - menuName: Tab.label + search: searches }) } -- Gitblit v1.8.0