Merge remote-tracking branch 'origin/master'
| | |
| | | } |
| | | |
| | | // å¯¼åº |
| | | export function exportExcel (params) { |
| | | export function exportExcel(params) { |
| | | return request({ |
| | | url: '/api/portalVIController/exportExcel', |
| | | method: 'post', |
| | |
| | | }) |
| | | } |
| | | |
| | | const obj ={ |
| | | "id": "",// ä¿®æ¹æ¶åå¿
ä¼ |
| | | "prm": { |
| | | "formQtName": "", // 表åå称对åºä¸é¢è§å¾åç§° |
| | | "prmItemList": [ |
| | | { |
| | | "itemAddFilter": "", |
| | | "itemBat": "", |
| | | "itemCols": "0", |
| | | "itemCtrlDisplyCol": "", |
| | | "itemCtrlDisplyCondition": "", |
| | | "itemCustomClass": "", |
| | | "itemCut": "", |
| | | "itemDateFormat": "", |
| | | "itemDbl": "", |
| | | "itemEQ": "", |
| | | "itemEditCondition": "", |
| | | "itemEditableProgram": "", |
| | | "itemField": "anticollaboration", |
| | | "itemFieldWidth": "", |
| | | "itemFieldWidthList": [], |
| | | "itemHrefConf": "", |
| | | "itemHrefFields": "", |
| | | "itemHttpPathField": "", |
| | | "itemHttpVolumnPath": "", |
| | | "itemImgWH": "", |
| | | "itemInObj": "", |
| | | "itemIsEditable": "1", |
| | | "itemIsHidden": "0", |
| | | "itemIsHttpSave": "0", |
| | | "itemIsNavigatorExpand": "", |
| | | "itemIsRequired": "0", |
| | | "itemIsShowFolder": "", |
| | | "itemKeyFieldList": [], |
| | | "itemKeyFields": "", |
| | | "itemListTable": "", |
| | | "itemListTxt": "", |
| | | "itemListVal": "", |
| | | "itemName": "åå使 è¯", |
| | | "itemOR": "", |
| | | "itemOutFieldList": [], |
| | | "itemOutFields": "", |
| | | "itemOutType": "", |
| | | "itemPageSize": "", |
| | | "itemParentFolderName": "", |
| | | "itemQtName": "", |
| | | "itemQueryRefFields": "", |
| | | "itemQuerySql": "", |
| | | "itemRight": "", |
| | | "itemRows": "", |
| | | "itemScript": "", |
| | | "itemSearchFieldList": [], |
| | | "itemSelectoutFieldList": [], |
| | | "itemSeniorQueryBOS": [], |
| | | "itemSeniorQueryCols": "", |
| | | "itemSeniorQueryColsCounts": "", |
| | | "itemShowExpression": "", |
| | | "itemStyle": "", |
| | | "itemTips": "", |
| | | "itemTrim": "", |
| | | "itemTxf": "", |
| | | "itemType": "text", |
| | | "itemTypeText": "åè¡ææ¬æ¡", |
| | | "itemValue": "N", |
| | | "itemValueList": [] |
| | | }, |
| | | { |
| | | "itemAddFilter": "", |
| | | "itemBat": "", |
| | | "itemCols": "0", |
| | | "itemCtrlDisplyCol": "", |
| | | "itemCtrlDisplyCondition": "", |
| | | "itemCustomClass": "", |
| | | "itemCut": "", |
| | | "itemDateFormat": "", |
| | | "itemDbl": "", |
| | | "itemEQ": "", |
| | | "itemEditCondition": "", |
| | | "itemEditableProgram": "", |
| | | "itemField": "holistic", |
| | | "itemFieldWidth": "", |
| | | "itemFieldWidthList": [], |
| | | "itemHrefConf": "", |
| | | "itemHrefFields": "", |
| | | "itemHttpPathField": "", |
| | | "itemHttpVolumnPath": "", |
| | | "itemImgWH": "", |
| | | "itemInObj": "", |
| | | "itemIsEditable": "1", |
| | | "itemIsHidden": "0", |
| | | "itemIsHttpSave": "0", |
| | | "itemIsNavigatorExpand": "", |
| | | "itemIsRequired": "0", |
| | | "itemIsShowFolder": "", |
| | | "itemKeyFieldList": [], |
| | | "itemKeyFields": "", |
| | | "itemListTable": "", |
| | | "itemListTxt": "", |
| | | "itemListVal": "", |
| | | "itemName": "æ´ä½æ§", |
| | | "itemOR": "", |
| | | "itemOutFieldList": [], |
| | | "itemOutFields": "", |
| | | "itemOutType": "", |
| | | "itemPageSize": "", |
| | | "itemParentFolderName": "", |
| | | "itemQtName": "", |
| | | "itemQueryRefFields": "", |
| | | "itemQuerySql": "", |
| | | "itemRight": "", |
| | | "itemRows": "", |
| | | "itemScript": "", |
| | | "itemSearchFieldList": [], |
| | | "itemSelectoutFieldList": [], |
| | | "itemSeniorQueryBOS": [], |
| | | "itemSeniorQueryCols": "", |
| | | "itemSeniorQueryColsCounts": "", |
| | | "itemShowExpression": "", |
| | | "itemStyle": "", |
| | | "itemTips": "", |
| | | "itemTrim": "", |
| | | "itemTxf": "", |
| | | "itemType": "text", |
| | | "itemTypeText": "åè¡ææ¬æ¡", |
| | | "itemValue": "N", |
| | | "itemValueList": [] |
| | | }, |
| | | { |
| | | "itemAddFilter": "", |
| | | "itemBat": "", |
| | | "itemCols": "0", |
| | | "itemCtrlDisplyCol": "", |
| | | "itemCtrlDisplyCondition": "", |
| | | "itemCustomClass": "", |
| | | "itemCut": "", |
| | | "itemDateFormat": "", |
| | | "itemDbl": "", |
| | | "itemEQ": "", |
| | | "itemEditCondition": "", |
| | | "itemEditableProgram": "", |
| | | "itemField": "isproductbring", |
| | | "itemFieldWidth": "", |
| | | "itemFieldWidthList": [], |
| | | "itemHrefConf": "", |
| | | "itemHrefFields": "", |
| | | "itemHttpPathField": "", |
| | | "itemHttpVolumnPath": "", |
| | | "itemImgWH": "", |
| | | "itemInObj": "", |
| | | "itemIsEditable": "1", |
| | | "itemIsHidden": "0", |
| | | "itemIsHttpSave": "0", |
| | | "itemIsNavigatorExpand": "", |
| | | "itemIsRequired": "0", |
| | | "itemIsShowFolder": "", |
| | | "itemKeyFieldList": [], |
| | | "itemKeyFields": "", |
| | | "itemListTable": "", |
| | | "itemListTxt": "", |
| | | "itemListVal": "", |
| | | "itemName": "æå带æ¥", |
| | | "itemOR": "", |
| | | "itemOutFieldList": [], |
| | | "itemOutFields": "", |
| | | "itemOutType": "", |
| | | "itemPageSize": "", |
| | | "itemParentFolderName": "", |
| | | "itemQtName": "", |
| | | "itemQueryRefFields": "", |
| | | "itemQuerySql": "", |
| | | "itemRight": "", |
| | | "itemRows": "", |
| | | "itemScript": "", |
| | | "itemSearchFieldList": [], |
| | | "itemSelectoutFieldList": [], |
| | | "itemSeniorQueryBOS": [], |
| | | "itemSeniorQueryCols": "", |
| | | "itemSeniorQueryColsCounts": "", |
| | | "itemShowExpression": "", |
| | | "itemStyle": "", |
| | | "itemTips": "", |
| | | "itemTrim": "", |
| | | "itemTxf": "", |
| | | "itemType": "text", |
| | | "itemTypeText": "åè¡ææ¬æ¡", |
| | | "itemValue": "N", |
| | | "itemValueList": [] |
| | | }, |
| | | { |
| | | "itemAddFilter": "", |
| | | "itemBat": "", |
| | | "itemCols": "0", |
| | | "itemCtrlDisplyCol": "", |
| | | "itemCtrlDisplyCondition": "", |
| | | "itemCustomClass": "", |
| | | "itemCut": "", |
| | | "itemDateFormat": "", |
| | | "itemDbl": "", |
| | | "itemEQ": "", |
| | | "itemEditCondition": "", |
| | | "itemEditableProgram": "", |
| | | "itemField": "isforging", |
| | | "itemFieldWidth": "", |
| | | "itemFieldWidthList": [], |
| | | "itemHrefConf": "", |
| | | "itemHrefFields": "", |
| | | "itemHttpPathField": "", |
| | | "itemHttpVolumnPath": "", |
| | | "itemImgWH": "", |
| | | "itemInObj": "", |
| | | "itemIsEditable": "1", |
| | | "itemIsHidden": "0", |
| | | "itemIsHttpSave": "0", |
| | | "itemIsNavigatorExpand": "", |
| | | "itemIsRequired": "0", |
| | | "itemIsShowFolder": "", |
| | | "itemKeyFieldList": [], |
| | | "itemKeyFields": "", |
| | | "itemListTable": "", |
| | | "itemListTxt": "", |
| | | "itemListVal": "", |
| | | "itemName": "æ¯å¦é»é¸ä»¶", |
| | | "itemOR": "", |
| | | "itemOutFieldList": [], |
| | | "itemOutFields": "", |
| | | "itemOutType": "", |
| | | "itemPageSize": "", |
| | | "itemParentFolderName": "", |
| | | "itemQtName": "", |
| | | "itemQueryRefFields": "", |
| | | "itemQuerySql": "", |
| | | "itemRight": "", |
| | | "itemRows": "", |
| | | "itemScript": "", |
| | | "itemSearchFieldList": [], |
| | | "itemSelectoutFieldList": [], |
| | | "itemSeniorQueryBOS": [], |
| | | "itemSeniorQueryCols": "", |
| | | "itemSeniorQueryColsCounts": "", |
| | | "itemShowExpression": "", |
| | | "itemStyle": "", |
| | | "itemTips": "", |
| | | "itemTrim": "", |
| | | "itemTxf": "", |
| | | "itemType": "text", |
| | | "itemTypeText": "åè¡ææ¬æ¡", |
| | | "itemValue": "", |
| | | "itemValueList": [] |
| | | }, |
| | | { |
| | | "itemAddFilter": "", |
| | | "itemBat": "", |
| | | "itemCols": "1", |
| | | "itemCtrlDisplyCol": "", |
| | | "itemCtrlDisplyCondition": "", |
| | | "itemCustomClass": "", |
| | | "itemCut": "", |
| | | "itemDateFormat": "", |
| | | "itemDbl": "", |
| | | "itemEQ": "", |
| | | "itemEditCondition": "", |
| | | "itemEditableProgram": "", |
| | | "itemField": "processremark", |
| | | "itemFieldWidth": "", |
| | | "itemFieldWidthList": [], |
| | | "itemHrefConf": "", |
| | | "itemHrefFields": "", |
| | | "itemHttpPathField": "", |
| | | "itemHttpVolumnPath": "", |
| | | "itemImgWH": "", |
| | | "itemInObj": "", |
| | | "itemIsEditable": "1", |
| | | "itemIsHidden": "1", |
| | | "itemIsHttpSave": "0", |
| | | "itemIsNavigatorExpand": "", |
| | | "itemIsRequired": "0", |
| | | "itemIsShowFolder": "", |
| | | "itemKeyFieldList": [], |
| | | "itemKeyFields": "", |
| | | "itemListTable": "", |
| | | "itemListTxt": "", |
| | | "itemListVal": "", |
| | | "itemName": "å·¥èºå¤æ³¨", |
| | | "itemOR": "", |
| | | "itemOutFieldList": [], |
| | | "itemOutFields": "", |
| | | "itemOutType": "", |
| | | "itemPageSize": "", |
| | | "itemParentFolderName": "", |
| | | "itemQtName": "", |
| | | "itemQueryRefFields": "", |
| | | "itemQuerySql": "", |
| | | "itemRight": "", |
| | | "itemRows": "", |
| | | "itemScript": "", |
| | | "itemSearchFieldList": [], |
| | | "itemSelectoutFieldList": [], |
| | | "itemSeniorQueryBOS": [], |
| | | "itemSeniorQueryCols": "", |
| | | "itemSeniorQueryColsCounts": "", |
| | | "itemShowExpression": "", |
| | | "itemStyle": "", |
| | | "itemTips": "", |
| | | "itemTrim": "", |
| | | "itemTxf": "", |
| | | "itemType": "text", |
| | | "itemTypeText": "åè¡ææ¬æ¡", |
| | | "itemValue": "", |
| | | "itemValueList": [] |
| | | }, |
| | | { |
| | | "itemAddFilter": "", |
| | | "itemBat": "", |
| | | "itemCols": "1", |
| | | "itemCtrlDisplyCol": "", |
| | | "itemCtrlDisplyCondition": "", |
| | | "itemCustomClass": "", |
| | | "itemCut": "", |
| | | "itemDateFormat": "", |
| | | "itemDbl": "", |
| | | "itemEQ": "", |
| | | "itemEditCondition": "", |
| | | "itemEditableProgram": "", |
| | | "itemField": "materialtype", |
| | | "itemFieldWidth": "", |
| | | "itemFieldWidthList": [], |
| | | "itemHrefConf": "", |
| | | "itemHrefFields": "", |
| | | "itemHttpPathField": "", |
| | | "itemHttpVolumnPath": "", |
| | | "itemImgWH": "", |
| | | "itemInObj": "", |
| | | "itemIsEditable": "1", |
| | | "itemIsHidden": "1", |
| | | "itemIsHttpSave": "0", |
| | | "itemIsNavigatorExpand": "", |
| | | "itemIsRequired": "0", |
| | | "itemIsShowFolder": "", |
| | | "itemKeyFieldList": [], |
| | | "itemKeyFields": "", |
| | | "itemListTable": "", |
| | | "itemListTxt": "", |
| | | "itemListVal": "", |
| | | "itemName": "ç©æç±»å", |
| | | "itemOR": "", |
| | | "itemOutFieldList": [], |
| | | "itemOutFields": "", |
| | | "itemOutType": "", |
| | | "itemPageSize": "", |
| | | "itemParentFolderName": "", |
| | | "itemQtName": "", |
| | | "itemQueryRefFields": "", |
| | | "itemQuerySql": "", |
| | | "itemRight": "", |
| | | "itemRows": "", |
| | | "itemScript": "", |
| | | "itemSearchFieldList": [], |
| | | "itemSelectoutFieldList": [], |
| | | "itemSeniorQueryBOS": [], |
| | | "itemSeniorQueryCols": "", |
| | | "itemSeniorQueryColsCounts": "", |
| | | "itemShowExpression": "", |
| | | "itemStyle": "", |
| | | "itemTips": "", |
| | | "itemTrim": "", |
| | | "itemTxf": "", |
| | | "itemType": "text", |
| | | "itemTypeText": "åè¡ææ¬æ¡", |
| | | "itemValue": "", |
| | | "itemValueList": [] |
| | | }, |
| | | { |
| | | "itemAddFilter": "", |
| | | "itemBat": "", |
| | | "itemCols": "1", |
| | | "itemCtrlDisplyCol": "", |
| | | "itemCtrlDisplyCondition": "", |
| | | "itemCustomClass": "", |
| | | "itemCut": "", |
| | | "itemDateFormat": "", |
| | | "itemDbl": "", |
| | | "itemEQ": "", |
| | | "itemEditCondition": "", |
| | | "itemEditableProgram": "", |
| | | "itemField": "iscruxpart", |
| | | "itemFieldWidth": "", |
| | | "itemFieldWidthList": [], |
| | | "itemHrefConf": "", |
| | | "itemHrefFields": "", |
| | | "itemHttpPathField": "", |
| | | "itemHttpVolumnPath": "", |
| | | "itemImgWH": "", |
| | | "itemInObj": "", |
| | | "itemIsEditable": "1", |
| | | "itemIsHidden": "1", |
| | | "itemIsHttpSave": "0", |
| | | "itemIsNavigatorExpand": "", |
| | | "itemIsRequired": "0", |
| | | "itemIsShowFolder": "", |
| | | "itemKeyFieldList": [], |
| | | "itemKeyFields": "", |
| | | "itemListTable": "", |
| | | "itemListTxt": "", |
| | | "itemListVal": "", |
| | | "itemName": "æ¯å¦å
³é®ä»¶", |
| | | "itemOR": "", |
| | | "itemOutFieldList": [], |
| | | "itemOutFields": "", |
| | | "itemOutType": "", |
| | | "itemPageSize": "", |
| | | "itemParentFolderName": "", |
| | | "itemQtName": "", |
| | | "itemQueryRefFields": "", |
| | | "itemQuerySql": "", |
| | | "itemRight": "", |
| | | "itemRows": "", |
| | | "itemScript": "", |
| | | "itemSearchFieldList": [], |
| | | "itemSelectoutFieldList": [], |
| | | "itemSeniorQueryBOS": [], |
| | | "itemSeniorQueryCols": "", |
| | | "itemSeniorQueryColsCounts": "", |
| | | "itemShowExpression": "", |
| | | "itemStyle": "", |
| | | "itemTips": "", |
| | | "itemTrim": "", |
| | | "itemTxf": "", |
| | | "itemType": "select", |
| | | "itemTypeText": "䏿èå", |
| | | "itemValue": "N", |
| | | "itemValueList": [ |
| | | "å¦{N}", |
| | | "æ¯{Y}" |
| | | ] |
| | | }, |
| | | { |
| | | "itemAddFilter": "", |
| | | "itemBat": "", |
| | | "itemCols": "1", |
| | | "itemCtrlDisplyCol": "", |
| | | "itemCtrlDisplyCondition": "", |
| | | "itemCustomClass": "", |
| | | "itemCut": "", |
| | | "itemDateFormat": "", |
| | | "itemDbl": "", |
| | | "itemEQ": "", |
| | | "itemEditCondition": "", |
| | | "itemEditableProgram": "", |
| | | "itemField": "isimportantpart", |
| | | "itemFieldWidth": "", |
| | | "itemFieldWidthList": [], |
| | | "itemHrefConf": "", |
| | | "itemHrefFields": "", |
| | | "itemHttpPathField": "", |
| | | "itemHttpVolumnPath": "", |
| | | "itemImgWH": "", |
| | | "itemInObj": "", |
| | | "itemIsEditable": "1", |
| | | "itemIsHidden": "1", |
| | | "itemIsHttpSave": "0", |
| | | "itemIsNavigatorExpand": "", |
| | | "itemIsRequired": "0", |
| | | "itemIsShowFolder": "", |
| | | "itemKeyFieldList": [], |
| | | "itemKeyFields": "", |
| | | "itemListTable": "", |
| | | "itemListTxt": "", |
| | | "itemListVal": "", |
| | | "itemName": "æ¯å¦éè¦ä»¶", |
| | | "itemOR": "", |
| | | "itemOutFieldList": [], |
| | | "itemOutFields": "", |
| | | "itemOutType": "", |
| | | "itemPageSize": "", |
| | | "itemParentFolderName": "", |
| | | "itemQtName": "", |
| | | "itemQueryRefFields": "", |
| | | "itemQuerySql": "", |
| | | "itemRight": "", |
| | | "itemRows": "", |
| | | "itemScript": "", |
| | | "itemSearchFieldList": [], |
| | | "itemSelectoutFieldList": [], |
| | | "itemSeniorQueryBOS": [], |
| | | "itemSeniorQueryCols": "", |
| | | "itemSeniorQueryColsCounts": "", |
| | | "itemShowExpression": "", |
| | | "itemStyle": "", |
| | | "itemTips": "", |
| | | "itemTrim": "", |
| | | "itemTxf": "", |
| | | "itemType": "select", |
| | | "itemTypeText": "䏿èå", |
| | | "itemValue": "N", |
| | | "itemValueList": [ |
| | | "æ¯{Y}", |
| | | "å¦{N}" |
| | | ] |
| | | } |
| | | ], |
| | | "showCols": "2" |
| | | }, |
| | | "typeFlag": 0, // ä¸å¡ç±»å0 or 龿¥ç±»å1 |
| | | "typeFlagText": "ä¸å¡ç±»åç表å",// ä¸å¡ç±»åæ¾ç¤ºå¼ |
| | | "typeName": "ppart",// ä¸å¡ç±»åå |
| | | "viName": "ppartProp_test3", // è§å¾åç§° |
| | | "viType": 1, // è§å¾ç±»å |
| | | "viTypeText": "表å" // è§å¾ä¸æåç§° |
| | | // å
éæ¥å£ |
| | | export function clone(params) { |
| | | return request({ |
| | | url: "/api/portalVIController/clone", |
| | | method: "post", |
| | | data: params |
| | | }) |
| | | } |
| | | |
| | | const dataForm = { |
| | | "id": "", |
| | | "prm": { |
| | | "formQtName": "", |
| | | "prmItemList": [ |
| | | { |
| | | "itemAddFilter": "", |
| | | "itemBat": "", |
| | | "itemCols": "", |
| | | "itemCtrlDisplyCol": "", |
| | | "itemCtrlDisplyCondition": "", |
| | | "itemCustomClass": "", |
| | | "itemCut": "", |
| | | "itemDateFormat": "", |
| | | "itemDbl": "3", |
| | | "itemEQ": "", |
| | | "itemEditCondition": "", |
| | | "itemEditableProgram": "", |
| | | "itemField": "", |
| | | "itemFieldWidth": "150,150,100,80,80,80,100,100,100,100,50,100,250", |
| | | "itemFieldWidthList": [ |
| | | const cloneObj = { |
| | | "clonePortalVIDTOList": [{ |
| | | "viName": "ppartProp",//--å
éç表å/è¡¨æ ¼åç§° |
| | | "typeName": "ppart",//----å
éçä¸å¡ç±»å,为ââ å为å½åä¸å¡ç±»å |
| | | |
| | | "typeFlag": "0",//--ä¸å¡ç±»åï¼0: ä¸å¡ç±»åï¼1ï¼é¾æ¥ç±»å |
| | | //--å
éç对象 |
| | | "oldPortalVIDTO": { |
| | | "id": "5963B31F-287B-6B01-3544-D6ECF9CFDC96", |
| | | "prm": { |
| | | "formQtName": "", |
| | | "prmItemList": [ |
| | | { |
| | | "attributes": {}, |
| | | "key": "code", |
| | | "value": "150" |
| | | "itemAddFilter": "", |
| | | "itemBat": "", |
| | | "itemCols": "0", |
| | | "itemCtrlDisplyCol": "", |
| | | "itemCtrlDisplyCondition": "", |
| | | "itemCustomClass": "", |
| | | "itemCut": "", |
| | | "itemDateFormat": "", |
| | | "itemDbl": "", |
| | | "itemEQ": "", |
| | | "itemEditCondition": "", |
| | | "itemEditableProgram": "", |
| | | "itemField": "anticollaboration", |
| | | "itemFieldWidth": "", |
| | | "itemFieldWidthList": [], |
| | | "itemHrefConf": "", |
| | | "itemHrefFields": "", |
| | | "itemHttpPathField": "", |
| | | "itemHttpVolumnPath": "", |
| | | "itemImgWH": "", |
| | | "itemInObj": "", |
| | | "itemIsEditable": "1", |
| | | "itemIsHidden": "0", |
| | | "itemIsHttpSave": "0", |
| | | "itemIsNavigatorExpand": "", |
| | | "itemIsRequired": "0", |
| | | "itemIsShowFolder": "", |
| | | "itemKeyFieldList": [], |
| | | "itemKeyFields": "", |
| | | "itemListTable": "", |
| | | "itemListTxt": "", |
| | | "itemListVal": "", |
| | | "itemName": "åå使 è¯", |
| | | "itemOR": "", |
| | | "itemOutFieldList": [], |
| | | "itemOutFields": "", |
| | | "itemOutType": "", |
| | | "itemPageSize": "", |
| | | "itemParentFolderName": "", |
| | | "itemQtName": "", |
| | | "itemQueryRefFields": "", |
| | | "itemQuerySql": "", |
| | | "itemRight": "", |
| | | "itemRows": "", |
| | | "itemScript": "", |
| | | "itemSearchFieldList": [], |
| | | "itemSelectoutFieldList": [], |
| | | "itemSeniorQueryBOS": [], |
| | | "itemSeniorQueryCols": "", |
| | | "itemSeniorQueryColsCounts": "", |
| | | "itemShowExpression": "", |
| | | "itemStyle": "", |
| | | "itemTips": "", |
| | | "itemTrim": "", |
| | | "itemTxf": "", |
| | | "itemType": "text", |
| | | "itemTypeText": "åè¡ææ¬æ¡", |
| | | "itemValue": "N", |
| | | "itemValueList": [] |
| | | }, |
| | | { |
| | | "attributes": {}, |
| | | "key": "partoid.name", |
| | | "value": "150" |
| | | "itemAddFilter": "", |
| | | "itemBat": "", |
| | | "itemCols": "0", |
| | | "itemCtrlDisplyCol": "", |
| | | "itemCtrlDisplyCondition": "", |
| | | "itemCustomClass": "", |
| | | "itemCut": "", |
| | | "itemDateFormat": "", |
| | | "itemDbl": "", |
| | | "itemEQ": "", |
| | | "itemEditCondition": "", |
| | | "itemEditableProgram": "", |
| | | "itemField": "holistic", |
| | | "itemFieldWidth": "", |
| | | "itemFieldWidthList": [], |
| | | "itemHrefConf": "", |
| | | "itemHrefFields": "", |
| | | "itemHttpPathField": "", |
| | | "itemHttpVolumnPath": "", |
| | | "itemImgWH": "", |
| | | "itemInObj": "", |
| | | "itemIsEditable": "1", |
| | | "itemIsHidden": "0", |
| | | "itemIsHttpSave": "0", |
| | | "itemIsNavigatorExpand": "", |
| | | "itemIsRequired": "0", |
| | | "itemIsShowFolder": "", |
| | | "itemKeyFieldList": [], |
| | | "itemKeyFields": "", |
| | | "itemListTable": "", |
| | | "itemListTxt": "", |
| | | "itemListVal": "", |
| | | "itemName": "æ´ä½æ§", |
| | | "itemOR": "", |
| | | "itemOutFieldList": [], |
| | | "itemOutFields": "", |
| | | "itemOutType": "", |
| | | "itemPageSize": "", |
| | | "itemParentFolderName": "", |
| | | "itemQtName": "", |
| | | "itemQueryRefFields": "", |
| | | "itemQuerySql": "", |
| | | "itemRight": "", |
| | | "itemRows": "", |
| | | "itemScript": "", |
| | | "itemSearchFieldList": [], |
| | | "itemSelectoutFieldList": [], |
| | | "itemSeniorQueryBOS": [], |
| | | "itemSeniorQueryCols": "", |
| | | "itemSeniorQueryColsCounts": "", |
| | | "itemShowExpression": "", |
| | | "itemStyle": "", |
| | | "itemTips": "", |
| | | "itemTrim": "", |
| | | "itemTxf": "", |
| | | "itemType": "text", |
| | | "itemTypeText": "åè¡ææ¬æ¡", |
| | | "itemValue": "N", |
| | | "itemValueList": [] |
| | | }, |
| | | { |
| | | "attributes": {}, |
| | | "key": "validity", |
| | | "value": "100" |
| | | "itemAddFilter": "", |
| | | "itemBat": "", |
| | | "itemCols": "0", |
| | | "itemCtrlDisplyCol": "", |
| | | "itemCtrlDisplyCondition": "", |
| | | "itemCustomClass": "", |
| | | "itemCut": "", |
| | | "itemDateFormat": "", |
| | | "itemDbl": "", |
| | | "itemEQ": "", |
| | | "itemEditCondition": "", |
| | | "itemEditableProgram": "", |
| | | "itemField": "isproductbring", |
| | | "itemFieldWidth": "", |
| | | "itemFieldWidthList": [], |
| | | "itemHrefConf": "", |
| | | "itemHrefFields": "", |
| | | "itemHttpPathField": "", |
| | | "itemHttpVolumnPath": "", |
| | | "itemImgWH": "", |
| | | "itemInObj": "", |
| | | "itemIsEditable": "1", |
| | | "itemIsHidden": "0", |
| | | "itemIsHttpSave": "0", |
| | | "itemIsNavigatorExpand": "", |
| | | "itemIsRequired": "0", |
| | | "itemIsShowFolder": "", |
| | | "itemKeyFieldList": [], |
| | | "itemKeyFields": "", |
| | | "itemListTable": "", |
| | | "itemListTxt": "", |
| | | "itemListVal": "", |
| | | "itemName": "æå带æ¥", |
| | | "itemOR": "", |
| | | "itemOutFieldList": [], |
| | | "itemOutFields": "", |
| | | "itemOutType": "", |
| | | "itemPageSize": "", |
| | | "itemParentFolderName": "", |
| | | "itemQtName": "", |
| | | "itemQueryRefFields": "", |
| | | "itemQuerySql": "", |
| | | "itemRight": "", |
| | | "itemRows": "", |
| | | "itemScript": "", |
| | | "itemSearchFieldList": [], |
| | | "itemSelectoutFieldList": [], |
| | | "itemSeniorQueryBOS": [], |
| | | "itemSeniorQueryCols": "", |
| | | "itemSeniorQueryColsCounts": "", |
| | | "itemShowExpression": "", |
| | | "itemStyle": "", |
| | | "itemTips": "", |
| | | "itemTrim": "", |
| | | "itemTxf": "", |
| | | "itemType": "text", |
| | | "itemTypeText": "åè¡ææ¬æ¡", |
| | | "itemValue": "N", |
| | | "itemValueList": [] |
| | | }, |
| | | { |
| | | "attributes": {}, |
| | | "key": "lcstatus", |
| | | "value": "80" |
| | | "itemAddFilter": "", |
| | | "itemBat": "", |
| | | "itemCols": "0", |
| | | "itemCtrlDisplyCol": "", |
| | | "itemCtrlDisplyCondition": "", |
| | | "itemCustomClass": "", |
| | | "itemCut": "", |
| | | "itemDateFormat": "", |
| | | "itemDbl": "", |
| | | "itemEQ": "", |
| | | "itemEditCondition": "", |
| | | "itemEditableProgram": "", |
| | | "itemField": "isforging", |
| | | "itemFieldWidth": "", |
| | | "itemFieldWidthList": [], |
| | | "itemHrefConf": "", |
| | | "itemHrefFields": "", |
| | | "itemHttpPathField": "", |
| | | "itemHttpVolumnPath": "", |
| | | "itemImgWH": "", |
| | | "itemInObj": "", |
| | | "itemIsEditable": "1", |
| | | "itemIsHidden": "0", |
| | | "itemIsHttpSave": "0", |
| | | "itemIsNavigatorExpand": "", |
| | | "itemIsRequired": "0", |
| | | "itemIsShowFolder": "", |
| | | "itemKeyFieldList": [], |
| | | "itemKeyFields": "", |
| | | "itemListTable": "", |
| | | "itemListTxt": "", |
| | | "itemListVal": "", |
| | | "itemName": "æ¯å¦é»é¸ä»¶", |
| | | "itemOR": "", |
| | | "itemOutFieldList": [], |
| | | "itemOutFields": "", |
| | | "itemOutType": "", |
| | | "itemPageSize": "", |
| | | "itemParentFolderName": "", |
| | | "itemQtName": "", |
| | | "itemQueryRefFields": "", |
| | | "itemQuerySql": "", |
| | | "itemRight": "", |
| | | "itemRows": "", |
| | | "itemScript": "", |
| | | "itemSearchFieldList": [], |
| | | "itemSelectoutFieldList": [], |
| | | "itemSeniorQueryBOS": [], |
| | | "itemSeniorQueryCols": "", |
| | | "itemSeniorQueryColsCounts": "", |
| | | "itemShowExpression": "", |
| | | "itemStyle": "", |
| | | "itemTips": "", |
| | | "itemTrim": "", |
| | | "itemTxf": "", |
| | | "itemType": "text", |
| | | "itemTypeText": "åè¡ææ¬æ¡", |
| | | "itemValue": "", |
| | | "itemValueList": [] |
| | | }, |
| | | { |
| | | "attributes": {}, |
| | | "key": "additionalunit", |
| | | "value": "80" |
| | | "itemAddFilter": "", |
| | | "itemBat": "", |
| | | "itemCols": "1", |
| | | "itemCtrlDisplyCol": "", |
| | | "itemCtrlDisplyCondition": "", |
| | | "itemCustomClass": "", |
| | | "itemCut": "", |
| | | "itemDateFormat": "", |
| | | "itemDbl": "", |
| | | "itemEQ": "", |
| | | "itemEditCondition": "", |
| | | "itemEditableProgram": "", |
| | | "itemField": "processremark", |
| | | "itemFieldWidth": "", |
| | | "itemFieldWidthList": [], |
| | | "itemHrefConf": "", |
| | | "itemHrefFields": "", |
| | | "itemHttpPathField": "", |
| | | "itemHttpVolumnPath": "", |
| | | "itemImgWH": "", |
| | | "itemInObj": "", |
| | | "itemIsEditable": "1", |
| | | "itemIsHidden": "1", |
| | | "itemIsHttpSave": "0", |
| | | "itemIsNavigatorExpand": "", |
| | | "itemIsRequired": "0", |
| | | "itemIsShowFolder": "", |
| | | "itemKeyFieldList": [], |
| | | "itemKeyFields": "", |
| | | "itemListTable": "", |
| | | "itemListTxt": "", |
| | | "itemListVal": "", |
| | | "itemName": "å·¥èºå¤æ³¨", |
| | | "itemOR": "", |
| | | "itemOutFieldList": [], |
| | | "itemOutFields": "", |
| | | "itemOutType": "", |
| | | "itemPageSize": "", |
| | | "itemParentFolderName": "", |
| | | "itemQtName": "", |
| | | "itemQueryRefFields": "", |
| | | "itemQuerySql": "", |
| | | "itemRight": "", |
| | | "itemRows": "", |
| | | "itemScript": "", |
| | | "itemSearchFieldList": [], |
| | | "itemSelectoutFieldList": [], |
| | | "itemSeniorQueryBOS": [], |
| | | "itemSeniorQueryCols": "", |
| | | "itemSeniorQueryColsCounts": "", |
| | | "itemShowExpression": "", |
| | | "itemStyle": "", |
| | | "itemTips": "", |
| | | "itemTrim": "", |
| | | "itemTxf": "", |
| | | "itemType": "text", |
| | | "itemTypeText": "åè¡ææ¬æ¡", |
| | | "itemValue": "", |
| | | "itemValueList": [] |
| | | }, |
| | | { |
| | | "attributes": {}, |
| | | "key": "distributeunittwo", |
| | | "value": "80" |
| | | "itemAddFilter": "", |
| | | "itemBat": "", |
| | | "itemCols": "1", |
| | | "itemCtrlDisplyCol": "", |
| | | "itemCtrlDisplyCondition": "", |
| | | "itemCustomClass": "", |
| | | "itemCut": "", |
| | | "itemDateFormat": "", |
| | | "itemDbl": "", |
| | | "itemEQ": "", |
| | | "itemEditCondition": "", |
| | | "itemEditableProgram": "", |
| | | "itemField": "materialtype", |
| | | "itemFieldWidth": "", |
| | | "itemFieldWidthList": [], |
| | | "itemHrefConf": "", |
| | | "itemHrefFields": "", |
| | | "itemHttpPathField": "", |
| | | "itemHttpVolumnPath": "", |
| | | "itemImgWH": "", |
| | | "itemInObj": "", |
| | | "itemIsEditable": "1", |
| | | "itemIsHidden": "1", |
| | | "itemIsHttpSave": "0", |
| | | "itemIsNavigatorExpand": "", |
| | | "itemIsRequired": "0", |
| | | "itemIsShowFolder": "", |
| | | "itemKeyFieldList": [], |
| | | "itemKeyFields": "", |
| | | "itemListTable": "", |
| | | "itemListTxt": "", |
| | | "itemListVal": "", |
| | | "itemName": "ç©æç±»å", |
| | | "itemOR": "", |
| | | "itemOutFieldList": [], |
| | | "itemOutFields": "", |
| | | "itemOutType": "", |
| | | "itemPageSize": "", |
| | | "itemParentFolderName": "", |
| | | "itemQtName": "", |
| | | "itemQueryRefFields": "", |
| | | "itemQuerySql": "", |
| | | "itemRight": "", |
| | | "itemRows": "", |
| | | "itemScript": "", |
| | | "itemSearchFieldList": [], |
| | | "itemSelectoutFieldList": [], |
| | | "itemSeniorQueryBOS": [], |
| | | "itemSeniorQueryCols": "", |
| | | "itemSeniorQueryColsCounts": "", |
| | | "itemShowExpression": "", |
| | | "itemStyle": "", |
| | | "itemTips": "", |
| | | "itemTrim": "", |
| | | "itemTxf": "", |
| | | "itemType": "text", |
| | | "itemTypeText": "åè¡ææ¬æ¡", |
| | | "itemValue": "", |
| | | "itemValueList": [] |
| | | }, |
| | | { |
| | | "attributes": {}, |
| | | "key": "anticollaboration", |
| | | "value": "100" |
| | | "itemAddFilter": "", |
| | | "itemBat": "", |
| | | "itemCols": "1", |
| | | "itemCtrlDisplyCol": "", |
| | | "itemCtrlDisplyCondition": "", |
| | | "itemCustomClass": "", |
| | | "itemCut": "", |
| | | "itemDateFormat": "", |
| | | "itemDbl": "", |
| | | "itemEQ": "", |
| | | "itemEditCondition": "", |
| | | "itemEditableProgram": "", |
| | | "itemField": "iscruxpart", |
| | | "itemFieldWidth": "", |
| | | "itemFieldWidthList": [], |
| | | "itemHrefConf": "", |
| | | "itemHrefFields": "", |
| | | "itemHttpPathField": "", |
| | | "itemHttpVolumnPath": "", |
| | | "itemImgWH": "", |
| | | "itemInObj": "", |
| | | "itemIsEditable": "1", |
| | | "itemIsHidden": "1", |
| | | "itemIsHttpSave": "0", |
| | | "itemIsNavigatorExpand": "", |
| | | "itemIsRequired": "0", |
| | | "itemIsShowFolder": "", |
| | | "itemKeyFieldList": [], |
| | | "itemKeyFields": "", |
| | | "itemListTable": "", |
| | | "itemListTxt": "", |
| | | "itemListVal": "", |
| | | "itemName": "æ¯å¦å
³é®ä»¶", |
| | | "itemOR": "", |
| | | "itemOutFieldList": [], |
| | | "itemOutFields": "", |
| | | "itemOutType": "", |
| | | "itemPageSize": "", |
| | | "itemParentFolderName": "", |
| | | "itemQtName": "", |
| | | "itemQueryRefFields": "", |
| | | "itemQuerySql": "", |
| | | "itemRight": "", |
| | | "itemRows": "", |
| | | "itemScript": "", |
| | | "itemSearchFieldList": [], |
| | | "itemSelectoutFieldList": [], |
| | | "itemSeniorQueryBOS": [], |
| | | "itemSeniorQueryCols": "", |
| | | "itemSeniorQueryColsCounts": "", |
| | | "itemShowExpression": "", |
| | | "itemStyle": "", |
| | | "itemTips": "", |
| | | "itemTrim": "", |
| | | "itemTxf": "", |
| | | "itemType": "select", |
| | | "itemTypeText": "䏿èå", |
| | | "itemValue": "N", |
| | | "itemValueList": [ |
| | | "å¦{N}", |
| | | "æ¯{Y}" |
| | | ] |
| | | }, |
| | | { |
| | | "attributes": {}, |
| | | "key": "holistic", |
| | | "value": "100" |
| | | }, |
| | | { |
| | | "attributes": {}, |
| | | "key": "scale", |
| | | "value": "100" |
| | | }, |
| | | { |
| | | "attributes": {}, |
| | | "key": "source", |
| | | "value": "100" |
| | | }, |
| | | { |
| | | "attributes": {}, |
| | | "key": "isforging", |
| | | "value": "50" |
| | | }, |
| | | { |
| | | "attributes": {}, |
| | | "key": "isproductbring", |
| | | "value": "100" |
| | | }, |
| | | { |
| | | "attributes": {}, |
| | | "key": "processremark", |
| | | "value": "250" |
| | | "itemAddFilter": "", |
| | | "itemBat": "", |
| | | "itemCols": "1", |
| | | "itemCtrlDisplyCol": "", |
| | | "itemCtrlDisplyCondition": "", |
| | | "itemCustomClass": "", |
| | | "itemCut": "", |
| | | "itemDateFormat": "", |
| | | "itemDbl": "", |
| | | "itemEQ": "", |
| | | "itemEditCondition": "", |
| | | "itemEditableProgram": "", |
| | | "itemField": "isimportantpart", |
| | | "itemFieldWidth": "", |
| | | "itemFieldWidthList": [], |
| | | "itemHrefConf": "", |
| | | "itemHrefFields": "", |
| | | "itemHttpPathField": "", |
| | | "itemHttpVolumnPath": "", |
| | | "itemImgWH": "", |
| | | "itemInObj": "", |
| | | "itemIsEditable": "1", |
| | | "itemIsHidden": "1", |
| | | "itemIsHttpSave": "0", |
| | | "itemIsNavigatorExpand": "", |
| | | "itemIsRequired": "0", |
| | | "itemIsShowFolder": "", |
| | | "itemKeyFieldList": [], |
| | | "itemKeyFields": "", |
| | | "itemListTable": "", |
| | | "itemListTxt": "", |
| | | "itemListVal": "", |
| | | "itemName": "æ¯å¦éè¦ä»¶", |
| | | "itemOR": "", |
| | | "itemOutFieldList": [], |
| | | "itemOutFields": "", |
| | | "itemOutType": "", |
| | | "itemPageSize": "", |
| | | "itemParentFolderName": "", |
| | | "itemQtName": "", |
| | | "itemQueryRefFields": "", |
| | | "itemQuerySql": "", |
| | | "itemRight": "", |
| | | "itemRows": "", |
| | | "itemScript": "", |
| | | "itemSearchFieldList": [], |
| | | "itemSelectoutFieldList": [], |
| | | "itemSeniorQueryBOS": [], |
| | | "itemSeniorQueryCols": "", |
| | | "itemSeniorQueryColsCounts": "", |
| | | "itemShowExpression": "", |
| | | "itemStyle": "", |
| | | "itemTips": "", |
| | | "itemTrim": "", |
| | | "itemTxf": "", |
| | | "itemType": "select", |
| | | "itemTypeText": "䏿èå", |
| | | "itemValue": "N", |
| | | "itemValueList": [ |
| | | "æ¯{Y}", |
| | | "å¦{N}" |
| | | ] |
| | | } |
| | | ], |
| | | "itemHrefConf": "", |
| | | "itemHrefFields": "", |
| | | "itemHttpPathField": "", |
| | | "itemHttpVolumnPath": "", |
| | | "itemImgWH": "0,0", |
| | | "itemInObj": "A5791895-83D1-D63F-40C4-26705FF3A2BB", |
| | | "itemIsEditable": "", |
| | | "itemIsHidden": "", |
| | | "itemIsHttpSave": "", |
| | | "itemIsNavigatorExpand": "false", |
| | | "itemIsRequired": "", |
| | | "itemIsShowFolder": "false", |
| | | "itemKeyFieldList": null, |
| | | "itemKeyFields": "", |
| | | "itemListTable": "", |
| | | "itemListTxt": "", |
| | | "itemListVal": "", |
| | | "itemName": "", |
| | | "itemOR": "", |
| | | "itemOutFieldList": [ |
| | | "code", |
| | | "partoid.name", |
| | | "validity", |
| | | "lcstatus", |
| | | "additionalunit", |
| | | "distributeunittwo", |
| | | "anticollaboration", |
| | | "holistic", |
| | | "scale", |
| | | "source", |
| | | "isforging", |
| | | "isproductbring", |
| | | "processremark" |
| | | ], |
| | | "itemOutFields": "code,partoid.name,validity,lcstatus,additionalunit,distributeunittwo,anticollaboration,holistic,scale,source,isforging,isproductbring,processremark", |
| | | "itemOutType": "", |
| | | "itemPageSize": "", |
| | | "itemParentFolderName": "", |
| | | "itemQtName": "queryppartbypbom", |
| | | "itemQueryRefFields": "", |
| | | "itemQuerySql": "", |
| | | "itemRight": "", |
| | | "itemRows": "", |
| | | "itemScript": "", |
| | | "itemSearchFieldList": [ |
| | | "code", |
| | | "partoid.name", |
| | | "validity", |
| | | "lcstatus", |
| | | "additionalunit", |
| | | "distributeunittwo", |
| | | "anticollaboration", |
| | | "holistic", |
| | | "scale", |
| | | "source", |
| | | "isforging", |
| | | "isproductbring", |
| | | "processremark" |
| | | ], |
| | | "itemSelectoutFieldList": [ |
| | | "produceroute", |
| | | "hotsurfaceroute" |
| | | ], |
| | | "itemSeniorQueryBOS": [], |
| | | "itemSeniorQueryCols": "", |
| | | "itemSeniorQueryColsCounts": "", |
| | | "itemShowExpression": "", |
| | | "itemStyle": "", |
| | | "itemTips": "", |
| | | "itemTrim": "", |
| | | "itemTxf": "", |
| | | "itemType": "", |
| | | "itemTypeText": "", |
| | | "itemValue": "", |
| | | "itemValueList": [] |
| | | } |
| | | ], |
| | | "showCols": "3" |
| | | }, |
| | | "typeFlag": 0, |
| | | "typeFlagText": "ä¸å¡ç±»åçè¡¨æ ¼", |
| | | "typeName": "ppart", |
| | | "viName": "ppart_auditlist_test", |
| | | "viType": 0, |
| | | "viTypeText": "è¡¨æ ¼" |
| | | "showCols": "2" |
| | | }, |
| | | "typeFlag": 0, |
| | | "typeFlagText": "ä¸å¡ç±»åç表å", |
| | | "typeName": "ppart", |
| | | "viName": "ppartProp", |
| | | "viType": 1, |
| | | "viTypeText": "表å" |
| | | } |
| | | }] |
| | | } |
| | | |
| | | |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <!--æä»¶æç®¡ç--> |
| | | <basic-container> |
| | | <avue-crud |
| | | ref="fileCrud" |
| | | :data="tableData" |
| | | :option="option" |
| | | :page.sync="page" |
| | | :table-loading="tableLoading" |
| | | @on-load="getTableList" |
| | | @refresh-change="handleRefresh" |
| | | @search-change="handleSearch" |
| | | @search-reset="handleReset" |
| | | @size-change="sizeChange" |
| | | @current-change="currentChange" |
| | | > |
| | | <template slot="menuLeft" slot-scope="scope"> |
| | | <el-button icon="el-icon-download" plain size="small" type="primary" @click="allDelHandler">导åº</el-button> |
| | | </template> |
| | | </avue-crud> |
| | | </basic-container> |
| | | </template> |
| | | |
| | | <script> |
| | | import basicOption from "@/util/basic-option"; |
| | | import {getLogListByContion} from "@/api/system/log/logBasic"; |
| | | |
| | | export default { |
| | | name: "index", |
| | | data: function () { |
| | | return { |
| | | tableLoading: false, |
| | | tableData: [], |
| | | option: { |
| | | ...basicOption, |
| | | addBtn:false, |
| | | editBtn: false, |
| | | delBtn: false, |
| | | calcHeight: -60, |
| | | align:'left', |
| | | headerAlign:'center', |
| | | menu:false, |
| | | searchMenuSpan: 6, |
| | | searchIcon:false, |
| | | column: [ |
| | | { |
| | | label: 'ç¨æ·å', |
| | | prop: 'truename', |
| | | search:true, |
| | | searchSpan: 4, |
| | | searchLabel:'æä½ç¨æ·', |
| | | type:'select', |
| | | dicUrl:'/api/loginBasicController/getOperatingUsers', |
| | | sortable:true, |
| | | width: 150 |
| | | }, { |
| | | label: 'å§å', |
| | | prop: 'username', |
| | | sortable:true, |
| | | width: 150 |
| | | },{ |
| | | label: 'ç¨æ·IP', |
| | | prop: 'userIp', |
| | | search:true, |
| | | searchSpan: 4, |
| | | sortable:true, |
| | | width: 150 |
| | | },{ |
| | | label: '模å', |
| | | prop: 'moduleName', |
| | | sortable:true, |
| | | overHidden: true, |
| | | },{ |
| | | label: 'æä½', |
| | | prop: 'type', |
| | | sortable:true, |
| | | width: 150 |
| | | },{ |
| | | label: 'æ¶é´', |
| | | prop: 'date', |
| | | type:'date', |
| | | search:true, |
| | | searchOrder: 1, |
| | | searchSpan: 8, |
| | | searchRange: true, |
| | | searchLabel:'æ¥è¯¢æ¥æ', |
| | | valueFormat:'yyyy-MM-dd', |
| | | width: 160 |
| | | },{ |
| | | label: 'æè¿°', |
| | | prop: 'result', |
| | | overHidden: true, |
| | | width:380, |
| | | }, |
| | | ] |
| | | }, |
| | | page: { |
| | | currentPage: 1, |
| | | pageSize: 50, |
| | | total: 0, |
| | | pageSizes: [10, 30, 50, 100], |
| | | }, |
| | | searchParams: {} |
| | | } |
| | | }, |
| | | methods: { |
| | | // è¡¨æ ¼è¯·æ± |
| | | getTableList() { |
| | | this.tableLoading = true; |
| | | getLogListByContion(this.page.currentPage, this.page.pageSize, {'logType':this.$route.query.logType,...this.searchParams}).then(res => { |
| | | this.tableData = res.data.data; |
| | | this.page.total = res.data.total; |
| | | this.tableLoading = false; |
| | | }) |
| | | }, |
| | | |
| | | // æç´¢æ¥è¯¢ |
| | | handleSearch(params, done) { |
| | | this.searchParams = { |
| | | userName:params.truename, |
| | | ipText:params.userIp, |
| | | startDate:params.date[0], |
| | | endDate:params.date[1] |
| | | }; |
| | | |
| | | this.getTableList(); |
| | | done(); |
| | | }, |
| | | |
| | | // éç½®æç´¢æ¡ä»¶ |
| | | handleReset() { |
| | | this.searchParams = {}; |
| | | this.getTableList(); |
| | | }, |
| | | |
| | | // æ¡æ° |
| | | sizeChange(val) { |
| | | this.page.pageSize = val; |
| | | }, |
| | | |
| | | // 页ç |
| | | currentChange(val) { |
| | | this.page.currentPage = val; |
| | | }, |
| | | |
| | | handleRefresh(){ |
| | | this.getTableList(); |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | import request from '@/router/axios'; |
| | | |
| | | // æ¥å¿ä¿åæéæ¥è¯¢ |
| | | export function getPeroid(params) { |
| | | return request({ |
| | | url: "/api/loginBasicController/getPeroid", |
| | | method: "get", |
| | | params |
| | | }); |
| | | } |
| | | // ä¿åæéä¿å |
| | | export function savePeriod(params) { |
| | | return request({ |
| | | url: "/api/loginBasicController/savePeriod", |
| | | method: "post", |
| | | params: params |
| | | }); |
| | | } |
| | | export function deleteLog(params) { |
| | | return request({ |
| | | url: "/api/loginBasicController/deleteLog", |
| | | method: "delete", |
| | | params |
| | | }) |
| | | } |
| | | |
| | | //è·åæä½ç¨æ· |
| | | export function getOperatingUsers( params) { |
| | | return request({ |
| | | url: "/api/loginBasicController/getOperatingUsers", |
| | | method: "get", |
| | | params |
| | | }); |
| | | } |
| | | |
| | | export function getLogListByContion(page, limit, params) { |
| | | return request({ |
| | | url: "/api/loginBasicController/getLogListByContion", |
| | | method: "post", |
| | | data: { |
| | | 'pageNo':page, |
| | | 'pageSize':limit, |
| | | ...params |
| | | } |
| | | }); |
| | | } |
| | | |
| | | // å¯¼åº |
| | | export const exportLog = (params) => { |
| | | return request({ |
| | | url: '/api/loginBasicController/exportLog', |
| | | method: 'get', |
| | | headers: {'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'}, |
| | | responseType: 'blob', |
| | | params |
| | | }) |
| | | } |
| | |
| | | roleId: this.nodeRow.oid, |
| | | type: this.type, |
| | | context: this.context, |
| | | selectTreeList: data |
| | | selectTreeList: selectTreeList |
| | | } |
| | | authorizedUI(formData).then(res => { |
| | | if (res.data.success) { |
| | |
| | | .el-scrollbar__wrap { |
| | | overflow: auto !important; |
| | | } |
| | | |
| | | .headerCon { |
| | | .el-button { |
| | | width: 82px; |
| | | } |
| | | } |
| | | } |
| | | |
| | | .headerCon { |
| | | display: flex; |
| | | flex-wrap: wrap; |
| | | margin-bottom: 5px; |
| | | |
| | | .el-button + .el-button { |
| | | margin-left: 5px; |
| | | } |
| | | |
| | | .el-button { |
| | | margin-top: 5px; |
| | | } |
| | | } |
| | | |
| | | .headerCon > .el-button:nth-child(4) { |
| | | margin-left: 0; |
| | | } |
| | | |
| | | .headerCon > .el-button:nth-child(7) { |
| | | margin-left: 0; |
| | | } |
| | | |
| | | .smallBtn { |
| | |
| | | <el-input v-model="topName" placeholder="请è¾å
¥å
容" size="mini" style="margin-right: 10px;"></el-input> |
| | | <el-button plain size="mini" type="success" @click="nameSearchHandler">æ¥è¯¢</el-button> |
| | | </span> |
| | | <span style="display: flex; align-items: center;"> |
| | | <p |
| | | style="display: flex; align-items: center; margin: 0 10px 0 0;flex-shrink: 0;font-size: 14px">å
éç®æ ï¼</p> |
| | | <el-input v-model="input" placeholder="请è¾å
¥å
容" size="mini" style="margin-right: 10px;"></el-input> |
| | | <el-button plain size="mini" type="success">å
éç®æ </el-button> |
| | | </span> |
| | | </div> |
| | | </template> |
| | | <template slot="menu" slot-scope="scope"> |
| | |
| | | </avue-crud> |
| | | </basic-container> |
| | | </el-main> |
| | | <form-dialog ref="formDialog" :TreeNodeRow="this.nodeRow" :treeRadio="treeRadio" :editRow="editRow"></form-dialog> |
| | | <form-dialog ref="formDialog" :TreeNodeRow="this.nodeRow" :editRow="editRow" :treeRadio="treeRadio"></form-dialog> |
| | | <table-dialog ref="tableDialog" :TreeNodeRow="this.nodeRow" :treeRadio="treeRadio" |
| | | @updataTable="getRightPortalVIDatas"></table-dialog> |
| | | <!-- 导å
¥ --> |
| | | <upload-file ref="upload" :fileType="upFileType" :fileUrl="fileUrl" :tipList="tipList" title="导å
¥" |
| | | @updata="getRightPortalVIDatas"></upload-file> |
| | | <el-dialog |
| | | v-dialogDrag |
| | | :visible.sync="cloneVisible" |
| | | append-to-body="true" |
| | | class="avue-dialog" |
| | | title="å
é" |
| | | width="50%"> |
| | | <basic-container> |
| | | <div ref="TreeBox" style="height: calc(100vh - 294px);!important;"> |
| | | <!-- 左侧æ --> |
| | | <div style="height: calc(100vh - 370px);"> |
| | | <div style="margin-bottom: 10px;display: flex;justify-content: center"> |
| | | <el-radio v-model="cloneTreeRadio" label="0" @input="cloneTreeRadioChange">ä¸å¡ç±»åæ </el-radio> |
| | | <el-radio v-model="cloneTreeRadio" label="1" @input="cloneTreeRadioChange">龿¥ç±»åæ </el-radio> |
| | | </div> |
| | | <avue-tree ref="cloneTree" v-loading="cloneTreeLoading" :data="cloneTreeData" :option="treeOption" |
| | | @node-click="cloneTreeNodeClick"> |
| | | <span slot-scope="{ node, data }" class="el-tree-node__label"> |
| | | <span style="font-size: 15px"> |
| | | <i class="el-icon-s-promotion"></i> |
| | | {{ (node || {}).label }} |
| | | </span> |
| | | </span> |
| | | </avue-tree> |
| | | </div> |
| | | </div> |
| | | </basic-container> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="cloneVisible = false">å æ¶</el-button> |
| | | <el-button type="primary" @click="cloneSaveHandler">ç¡® å®</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | </el-container> |
| | | </template> |
| | | |
| | |
| | | import basicOption from "@/util/basic-option"; |
| | | import FormDialog from "@/views/modelingMenu/ui/formDefine/components/formDialog"; |
| | | import TableDialog from "@/views/modelingMenu/ui/formDefine/components/tableDialog"; |
| | | import {gridPortalVIDatas, getPortalVIById, deleteByIds, exportExcel} from "@/api/UI/formDefine/api"; |
| | | import {gridPortalVIDatas, getPortalVIById, deleteByIds, exportExcel, clone} from "@/api/UI/formDefine/api"; |
| | | import {getBizTypes} from "@/api/modeling/businessType/api"; |
| | | import {gridLink} from "@/api/modeling/linkType/api"; |
| | | import func from "@/util/func"; |
| | |
| | | components: {FormDialog, TableDialog}, |
| | | data() { |
| | | return { |
| | | cloneTreeNode: {}, |
| | | cloneTreeRadio: '0', |
| | | cloneTreeData: [], |
| | | cloneTreeLoading: false, |
| | | cloneVisible: false, |
| | | tipList: [ |
| | | "导å
¥ä¸å¡ç±»ååç§°ä¸å¯ä¸ºç©º", |
| | | "导å
¥åç§°ä¸å¯ä¸ºç©ºä¸åç§°åªè½ä¸ºè±æåæ¯", |
| | |
| | | }, |
| | | dbClickList: [], |
| | | defaultData: [], // ç¨äºæ¥è¯¢æ¢å¤åå§å¼, |
| | | editRow:{}, |
| | | editRow: {}, |
| | | } |
| | | }, |
| | | created() { |
| | |
| | | this.treeData = data; |
| | | this.treeLoading = false; |
| | | }).catch(error => { |
| | | loading.close(); |
| | | this.treeLoading = false; |
| | | }); |
| | | }, |
| | | |
| | |
| | | |
| | | // ç¼è¾æé® |
| | | editBtnClick(row) { |
| | | console.log('row',row); |
| | | console.log('row', row); |
| | | // è¡¨æ ¼ |
| | | if (row.viType === 0) { |
| | | const params = { |
| | |
| | | // åç§°æ¥è¯¢ |
| | | nameSearchHandler() { |
| | | if (!this.topName) { |
| | | this.data = this.defaultData; |
| | | this.getRightPortalVIDatas(); |
| | | return; |
| | | } |
| | | |
| | | const list = this.data.filter(item => item.viName.includes(this.topName.trim())); |
| | | const list = this.defaultData.filter(item => item.viName.includes(this.topName.trim())); |
| | | this.data = list; |
| | | this.page.total = this.data.length; |
| | | }, |
| | | |
| | | // å é¤æé® |
| | |
| | | this.$refs.upload.visible = true; |
| | | }, |
| | | |
| | | // å¯¼åº |
| | | // å
é |
| | | copyClickHandler() { |
| | | if (this.selectList.length <= 0) { |
| | | this.$message.error('请è³å°éæ©ä¸æ¡æ°æ®'); |
| | |
| | | this.$message.error('åªè½éæ©ä¸æ¡æ°æ®'); |
| | | return; |
| | | } |
| | | |
| | | this.cloneVisible = true; |
| | | this.cloneTreeLoading = true; |
| | | getBizTypes().then(res => { |
| | | const data = res.data.data.map(item => { |
| | | this.processChildren(item); // å¤çæ¯ä¸ªèç¹ |
| | | item.attributes.id = item.attributes.id; |
| | | return item.attributes; // è¿åå¤çåç attributes |
| | | }); |
| | | this.cloneTreeData = data; |
| | | this.cloneTreeLoading = false; |
| | | }).catch(error => { |
| | | this.cloneTreeLoading = false; |
| | | }); |
| | | }, |
| | | |
| | | // å
éæ ç¹å» |
| | | cloneTreeNodeClick(row) { |
| | | console.log(row); |
| | | this.cloneTreeNode = row; |
| | | }, |
| | | |
| | | // å
éæ ç±»å忢 |
| | | cloneTreeRadioChange(val) { |
| | | this.cloneTreeLoading = true; |
| | | if (val === "0") { |
| | | getBizTypes().then(res => { |
| | | const data = res.data.data.map(item => { |
| | | this.processChildren(item); // å¤çæ¯ä¸ªèç¹ |
| | | item.attributes.id = item.attributes.id; |
| | | return item.attributes; // è¿åå¤çåç attributes |
| | | }); |
| | | this.cloneTreeData = data; |
| | | this.cloneTreeLoading = false; |
| | | }); |
| | | } else { |
| | | gridLink().then(res => { |
| | | const data = res.data.data.map(item => { |
| | | item.id = item.name; |
| | | return item; |
| | | }); |
| | | this.cloneTreeData = data; |
| | | this.cloneTreeLoading = false; |
| | | }) |
| | | } |
| | | }, |
| | | |
| | | // æ¥è¯¢è¡¨æ ¼æ°æ®è¯¦æ
|
| | | searchDetail() { |
| | | return new Promise((resolve, reject) => { |
| | | const params = { |
| | | id: this.selectList[0].id, |
| | | viType: this.selectList[0].viType |
| | | }; |
| | | getPortalVIById(params).then(res => { |
| | | const obj = res.data.obj; |
| | | resolve(obj); |
| | | }).catch(error => { |
| | | reject(error); |
| | | }); |
| | | }); |
| | | }, |
| | | |
| | | // å
éä¿å |
| | | async cloneSaveHandler() { |
| | | if (func.isEmptyObject(this.cloneTreeNode)) { |
| | | this.$message.error('è¯·éæ©ä¸æ¡æ°æ®è¿è¡å
é'); |
| | | return; |
| | | } |
| | | const obj = await this.searchDetail(); |
| | | this.$prompt('请è¾å
¥å
éæä»¶åç§°', 'æç¤º', { |
| | | confirmButtonText: 'ç¡®å®', |
| | | cancelButtonText: 'åæ¶', |
| | | }).then(({value}) => { |
| | | console.log(obj); |
| | | const params = { |
| | | clonePortalVIDTOList: [ |
| | | { |
| | | viName: value, |
| | | typeName: this.cloneTreeRadio === '0' ? this.cloneTreeNode.id : this.cloneTreeNode.name, |
| | | typeFlag: this.cloneTreeRadio, |
| | | oldPortalVIDTO: {...obj} |
| | | } |
| | | ], |
| | | } |
| | | clone(params).then(res => { |
| | | if (res.data.code === 200) { |
| | | this.$message.success('å
éæå'); |
| | | this.cloneVisible = false; |
| | | } |
| | | }) |
| | | }).catch(() => { |
| | | this.$message({ |
| | | type: 'info', |
| | | message: 'åæ¶è¾å
¥' |
| | | }); |
| | | }); |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <!--æä»ç®¡ç页é¢--> |
| | | <basic-container> |
| | | <avue-crud |
| | | ref="logCrud" |
| | | :data="tableData" |
| | | :option="option" |
| | | :page.sync="page" |
| | | :table-loading="tableLoading" |
| | | @on-load="getTableList" |
| | | @refresh-change="handleRefresh" |
| | | @search-change="handleSearch" |
| | | @search-reset="handleReset" |
| | | @size-change="sizeChange" |
| | | @current-change="currentChange" |
| | | > |
| | | <template slot="menuLeft" slot-scope="scope"> |
| | | <el-button icon="el-icon-download" plain size="small" type="primary" @click="exportClickHandler">导åº</el-button> |
| | | </template> |
| | | </avue-crud> |
| | | </basic-container> |
| | | </template> |
| | | |
| | | <script> |
| | | import {exportLog, getLogListByContion} from "@/api/system/log/logBasic"; |
| | | import func from "@/util/func"; |
| | | import basicOption from "@/util/basic-option"; |
| | | |
| | | export default { |
| | | name: "index", |
| | | data: function () { |
| | | return { |
| | | tableLoading: false, |
| | | tableData: [], |
| | | option: { |
| | | ...basicOption, |
| | | addBtn:false, |
| | | editBtn: false, |
| | | delBtn: false, |
| | | calcHeight: -60, |
| | | align:'left', |
| | | headerAlign:'center', |
| | | menu:false, |
| | | searchMenuSpan: 6, |
| | | searchIcon:false, |
| | | column: [ |
| | | { |
| | | label: 'å·å', |
| | | prop: 'truename', |
| | | width: 300 |
| | | }, { |
| | | label: 'æºå¨ç±»å', |
| | | prop: 'username', |
| | | width: 150 |
| | | },{ |
| | | label: 'è·¯å¾åç§°', |
| | | prop: 'userIp' |
| | | },{ |
| | | label: 'é¦éè·¯å¾', |
| | | prop: 'moduleName', |
| | | },{ |
| | | label: 'æå¡å¨', |
| | | prop: 'type', |
| | | width: 150 |
| | | },{ |
| | | label: 'å·æå¡', |
| | | prop: 'date', |
| | | }] |
| | | }, |
| | | page: { |
| | | currentPage: 1, |
| | | pageSize: 50, |
| | | total: 0, |
| | | pageSizes: [10, 30, 50, 100], |
| | | }, |
| | | searchParams: {} |
| | | } |
| | | }, |
| | | methods: { |
| | | // è¡¨æ ¼è¯·æ± |
| | | getTableList() { |
| | | this.tableLoading = true; |
| | | getLogListByContion(this.page.currentPage, this.page.pageSize, {'logType':this.$route.query.logType,...this.searchParams}).then(res => { |
| | | this.tableData = res.data.data; |
| | | this.page.total = res.data.total; |
| | | this.tableLoading = false; |
| | | }) |
| | | }, |
| | | |
| | | // æç´¢æ¥è¯¢ |
| | | handleSearch(params, done) { |
| | | this.searchParams = { |
| | | userName:params.truename, |
| | | ipText:params.userIp, |
| | | startDate:params.date[0], |
| | | endDate:params.date[1] |
| | | }; |
| | | |
| | | this.getTableList(); |
| | | done(); |
| | | }, |
| | | |
| | | // éç½®æç´¢æ¡ä»¶ |
| | | handleReset() { |
| | | this.searchParams = {}; |
| | | this.getTableList(); |
| | | }, |
| | | |
| | | // æ¡æ° |
| | | sizeChange(val) { |
| | | this.page.pageSize = val; |
| | | }, |
| | | |
| | | // 页ç |
| | | currentChange(val) { |
| | | this.page.currentPage = val; |
| | | }, |
| | | |
| | | handleRefresh(){ |
| | | this.getTableList(); |
| | | }, |
| | | // å¯¼åº |
| | | exportClickHandler() { |
| | | const loading = this.$loading({}); |
| | | exportLog().then(res => { |
| | | func.downloadFileByBlobHandler(res); |
| | | this.createdLoading = false |
| | | this.$message.success('å¯¼åºæå'); |
| | | loading.close(); |
| | | }) |
| | | }, |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <!--æ¥å¿åºç¡é
ç½®--> |
| | | <el-container> |
| | | <el-main> |
| | | <basic-container> |
| | | <div style="margin: 0 0 10px 20px"> |
| | | <el-button v-if="form.delType==0" icon="el-icon-check" size="small" type="primary" @click="saveHandler">ä¿å</el-button> |
| | | <el-button v-else icon="el-icon-delete" size="small" type="danger" @click="delHandler">å é¤</el-button> |
| | | </div> |
| | | <avue-form ref="form" v-model="form" :option="formOption"></avue-form> |
| | | <div class="tip"> |
| | | <div style="color: #D40000;margin-left: 0;">æ¥å¿åºç¡é
置说æï¼</div> |
| | | <div>1ãæ¥å¿å é¤å
嫿å¨å é¤åèªå¨å é¤ã</div> |
| | | <div>2ãèªå¨å é¤ä¼æ ¹æ®æ¥å¿çä¿åæéæ¥è¿è¡æ¥å¿å é¤ã</div> |
| | | <div>3ãæå¨å 餿 ¹æ®éå®çæ¶é´æ¥è¿è¡æ¥å¿å é¤ã</div> |
| | | </div> |
| | | </basic-container> |
| | | </el-main> |
| | | |
| | | </el-container> |
| | | </template> |
| | | |
| | | <script> |
| | | import {getPeroid,savePeriod,deleteLog} from "@/api/system/log/logBasic"; |
| | | export default { |
| | | name: "basicConf", |
| | | data: function () { |
| | | return { |
| | | form:{ |
| | | period:'', |
| | | }, |
| | | periodData:[], |
| | | formOption:{ |
| | | submitBtn: false, |
| | | emptyBtn: false, |
| | | column: [{ |
| | | label: 'æ¥å¿å é¤', |
| | | prop: 'delType', |
| | | span: 24, |
| | | labelWidth:120, |
| | | type: 'radio', |
| | | value: 0, |
| | | dicData: [ |
| | | { label: 'èªå¨å é¤', value: 0 }, |
| | | { label: 'æå¨å é¤', value: 1 }, |
| | | ] |
| | | }, { |
| | | label: 'ä¿åæ¥æ', |
| | | prop: 'period', |
| | | type: 'select', |
| | | labelWidth:120, |
| | | dicData: this.periodData, |
| | | props:{ |
| | | label:'value', |
| | | value:'code' |
| | | }, |
| | | rules: [{ |
| | | required: true, |
| | | message: "è¯·éæ©ä¿åæ¥æ", |
| | | trigger: "blur" |
| | | }] |
| | | }, { |
| | | label: 'è¯·éæ©æ¥æ', |
| | | prop: 'deleteDate', |
| | | type: 'date', |
| | | valueFormat:'yyyy-MM-dd', |
| | | labelWidth:120, |
| | | display: false, |
| | | rules: [{ |
| | | required: true, |
| | | message: "è¯·éæ©æ¥æ", |
| | | trigger: "blur" |
| | | }] |
| | | }] |
| | | }, |
| | | } |
| | | }, |
| | | created() { |
| | | this.getPeroid(); |
| | | }, |
| | | watch: { |
| | | 'form.delType': { |
| | | handler(newval) { |
| | | if (newval ==0) { |
| | | this.formOption.column[1].display=true; |
| | | this.formOption.column[2].display=false; |
| | | }else { |
| | | this.formOption.column[1].display=false; |
| | | this.formOption.column[2].display=true; |
| | | } |
| | | } |
| | | }, |
| | | }, |
| | | methods:{ |
| | | getPeroid:function (){ |
| | | getPeroid().then(res => { |
| | | this.$refs.form.updateDic('period', res.data.data); |
| | | this.periodData=res.data.data; |
| | | this.form.period=res.data.data.filter(item=>{ |
| | | return item.choose |
| | | })[0].code |
| | | }).catch(error => { |
| | | }) |
| | | }, |
| | | saveHandler:function (){ |
| | | savePeriod({'period':this.form.period}).then(res => { |
| | | if (res.data.success) { |
| | | this.$message.success('ä¿åæå') |
| | | } |
| | | }); |
| | | }, |
| | | delHandler() { |
| | | this.$refs.form.validate((valid,done) => { |
| | | if(valid){ |
| | | deleteLog({'deleteDate':this.form.deleteDate}).then(res => { |
| | | if (res.data.success) { |
| | | this.$message.success('å 餿å') |
| | | } |
| | | }); |
| | | done() |
| | | } |
| | | }) |
| | | }, |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | .tip{ |
| | | font-size: 12px; |
| | | line-height: 24px; |
| | | color: #909399; |
| | | margin: 0 0 10px 20px; |
| | | } |
| | | .tip div{ |
| | | margin-left: 30px; |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <basic-container> |
| | | <avue-crud |
| | | ref="logCrud" |
| | | :data="tableData" |
| | | :option="option" |
| | | :page.sync="page" |
| | | :table-loading="tableLoading" |
| | | @on-load="getTableList" |
| | | @refresh-change="handleRefresh" |
| | | @search-change="handleSearch" |
| | | @search-reset="handleReset" |
| | | @size-change="sizeChange" |
| | | @current-change="currentChange" |
| | | > |
| | | <template slot="menuLeft" slot-scope="scope"> |
| | | <el-button icon="el-icon-download" plain size="small" type="primary" @click="exportClickHandler">导åº</el-button> |
| | | </template> |
| | | </avue-crud> |
| | | </basic-container> |
| | | </template> |
| | | |
| | | <script> |
| | | import basicOption from "@/util/basic-option"; |
| | | import {getLogListByContion,getOperatingUsers,exportLog} from "@/api/system/log/logBasic"; |
| | | import func from "@/util/func"; |
| | | |
| | | export default { |
| | | name: "index", |
| | | data: function () { |
| | | return { |
| | | tableLoading: false, |
| | | tableData: [], |
| | | option: { |
| | | ...basicOption, |
| | | addBtn: false, |
| | | editBtn: false, |
| | | delBtn: false, |
| | | calcHeight: -60, |
| | | align: 'left', |
| | | headerAlign: 'center', |
| | | menu: false, |
| | | searchMenuSpan: 6, |
| | | searchIcon: false, |
| | | column: [ |
| | | { |
| | | label: 'ç¨æ·å', |
| | | prop: 'truename', |
| | | search: true, |
| | | searchSpan: 4, |
| | | searchLabel: 'æä½ç¨æ·', |
| | | type: 'select', |
| | | dicUrl: '/api/loginBasicController/getOperatingUsers', |
| | | sortable: true, |
| | | width: 150 |
| | | }, { |
| | | label: 'å§å', |
| | | prop: 'username', |
| | | sortable: true, |
| | | width: 150 |
| | | }, { |
| | | label: 'ç¨æ·IP', |
| | | prop: 'userIp', |
| | | search: true, |
| | | searchSpan: 4, |
| | | sortable: true, |
| | | width: 150 |
| | | }, { |
| | | label: '模å', |
| | | prop: 'moduleName', |
| | | sortable: true, |
| | | overHidden: true, |
| | | }, { |
| | | label: 'æä½', |
| | | prop: 'type', |
| | | sortable: true, |
| | | width: 150 |
| | | }, { |
| | | label: 'æ¶é´', |
| | | prop: 'date', |
| | | type: 'date', |
| | | search: true, |
| | | searchOrder: 1, |
| | | searchSpan: 8, |
| | | searchRange: true, |
| | | searchLabel: 'æ¥è¯¢æ¥æ', |
| | | valueFormat: 'yyyy-MM-dd', |
| | | width: 160 |
| | | }, { |
| | | label: 'æè¿°', |
| | | prop: 'result', |
| | | overHidden: true, |
| | | width: 380, |
| | | }, |
| | | ] |
| | | }, |
| | | page: { |
| | | currentPage: 1, |
| | | pageSize: 50, |
| | | total: 0, |
| | | pageSizes: [10, 30, 50, 100], |
| | | }, |
| | | searchParams: {} |
| | | } |
| | | }, |
| | | watch: { |
| | | $route(to, from) { |
| | | this.getTableList(); |
| | | } |
| | | }, |
| | | methods: { |
| | | // è¡¨æ ¼è¯·æ± |
| | | getTableList() { |
| | | this.tableLoading = true; |
| | | getLogListByContion(this.page.currentPage, this.page.pageSize, {'logType': this.$route.query.logType, ...this.searchParams}).then(res => { |
| | | this.tableData = res.data.data; |
| | | this.page.total = res.data.total; |
| | | this.tableLoading = false; |
| | | }) |
| | | }, |
| | | |
| | | // æç´¢æ¥è¯¢ |
| | | handleSearch(params, done) { |
| | | this.searchParams = { |
| | | userName: params.truename, |
| | | ipText: params.userIp, |
| | | startDate: params.date[0], |
| | | endDate: params.date[1] |
| | | }; |
| | | |
| | | this.getTableList(); |
| | | done(); |
| | | }, |
| | | |
| | | // éç½®æç´¢æ¡ä»¶ |
| | | handleReset() { |
| | | this.searchParams = {}; |
| | | this.getTableList(); |
| | | }, |
| | | |
| | | // æ¡æ° |
| | | sizeChange(val) { |
| | | this.page.pageSize = val; |
| | | }, |
| | | |
| | | // 页ç |
| | | currentChange(val) { |
| | | this.page.currentPage = val; |
| | | }, |
| | | |
| | | handleRefresh() { |
| | | this.getTableList(); |
| | | }, |
| | | // å¯¼åº |
| | | exportClickHandler() { |
| | | const loading = this.$loading({}); |
| | | exportLog().then(res => { |
| | | func.downloadFileByBlobHandler(res); |
| | | this.createdLoading = false |
| | | this.$message.success('å¯¼åºæå'); |
| | | loading.close(); |
| | | }) |
| | | }, |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | |
| | | </style> |
| | |
| | | this.tableData = data; |
| | | this.page.total = res.data.total; |
| | | this.tableLoading = false; |
| | | }).catch(err => { |
| | | this.$message.error(err) |
| | | }); |
| | | }) |
| | | }, |
| | | |
| | | // è¡¨æ ¼å³ä¾§å·æ°å¾æ |
| | |
| | | <el-container v-loading="createdLoading"> |
| | | <el-aside> |
| | | <basic-container> |
| | | <div style="max-height: calc(100vh - 170px);overflow: auto"> |
| | | <avue-tree :key="refresh" ref="tree" :data="treeData" :option="treeOption" @node-click="nodeClick"> |
| | | <div style="max-height: calc(100vh - 150px);overflow: auto"> |
| | | <avue-tree :key="refresh" node-key="id" ref="tree" :data="treeData" :option="treeOption" @node-click="nodeClick"> |
| | | <span slot-scope="{ node, data }" class="el-tree-node__label"> |
| | | <span style="font-size: 15px"> |
| | | <i class="el-icon-s-promotion"></i> |
| | |
| | | |
| | | <el-main> |
| | | <basic-container> |
| | | <el-form ref="form" :model="form" label-width="85px" style="height: 79vh"> |
| | | <el-form ref="form" :model="form" label-width="85px" style="max-height: calc(100vh - 180px);overflow: auto;"> |
| | | <span v-if="form.childType !== 0"> |
| | | <el-form-item label="模ååï¼"> |
| | | <el-input v-model="form.name" placeholder="请è¾å
¥æ¨¡åå"></el-input> |
| | |
| | | addStatus: false, |
| | | editStatus: false, |
| | | nodeRow: {}, |
| | | currentClickNode:null, |
| | | form: {}, |
| | | treeData: [], |
| | | treeOption: { |
| | |
| | | }, |
| | | methods: { |
| | | // æ è¡ç¹å» |
| | | nodeClick(row) { |
| | | nodeClick(row,node) { |
| | | this.form = {...row}; |
| | | this.nodeRow = {...row}; |
| | | this.currentClickNode=node; |
| | | this.addStatus = false; |
| | | this.editStatus = false; |
| | | }, |
| | |
| | | this.addStatus = false; |
| | | // this.resetFormValue(); |
| | | this.form.childType = null; |
| | | this.refresh = Math.random(); // å·æ°å·¦ä¾§æ |
| | | this.handleRefreshTree('add') |
| | | } |
| | | }) |
| | | }, |
| | |
| | | this.editStatus = false; |
| | | // this.resetFormValue(); |
| | | this.form.childType = null; |
| | | this.refresh = Math.random(); // å·æ°å·¦ä¾§æ |
| | | this.handleRefreshTree('edit') |
| | | } |
| | | }) |
| | | }, |
| | |
| | | delModule(this.form).then(res => { |
| | | if (res.data.code === 200) { |
| | | this.$message.success(res.data.msg); |
| | | this.resetFormValue(); |
| | | this.handleRefreshTree('del') |
| | | this.addStatus = false; |
| | | this.editStatus = false; |
| | | } |
| | |
| | | exportFunctionSql({isFunction: true}).then(res => { |
| | | func.downloadFileByBlobHandler(res); |
| | | this.$message.success('å¯¼åºæå'); |
| | | }).catch(err => { |
| | | this.$message.error(err); |
| | | }); |
| | | }, |
| | | |
| | |
| | | } |
| | | }) |
| | | addOperationType(list).then(res => { |
| | | console.log(res) |
| | | if (res.data.code === 200) { |
| | | this.methodsVisble = false; |
| | | this.$message.success(res.data.msg); |
| | | this.form.childType = null; |
| | | this.refresh = Math.random(); // å·æ°å·¦ä¾§æ |
| | | this.handleRefreshTree('add') // å·æ°å·¦ä¾§æ |
| | | } |
| | | }) |
| | | }, |
| | |
| | | updateAlias(params).then(res => { |
| | | if (res.data.code === 200) { |
| | | this.$message.success(res.data.msg); |
| | | this.refresh = Math.random(); // å·æ°å·¦ä¾§æ |
| | | this.handleRefreshTree('edit') |
| | | } |
| | | }) |
| | | }, |
| | |
| | | console.log(res); |
| | | if (res.data.code === 200) { |
| | | this.$message.success(res.data.msg); |
| | | this.resetFormValue(); |
| | | this.handleRefreshTree('del'); |
| | | } |
| | | }) |
| | | }).catch(() => { |
| | |
| | | // 导å
¥ |
| | | upLoadClickHandler() { |
| | | this.$refs.upload.visible = true; |
| | | }, |
| | | handleRefreshTree(type) { |
| | | //type:add\edit\del |
| | | if(type=="del"){ |
| | | this.$refs.tree.remove(this.currentClickNode); |
| | | this.currentClickNode=null; |
| | | this.form={}; |
| | | }else{ |
| | | if (this.currentClickNode) { |
| | | let node = this.currentClickNode.parent; |
| | | node.loaded = false; |
| | | node.expand(); |
| | | this.$refs.tree.setCurrentNode(this.currentClickNode); |
| | | }else { |
| | | this.refresh = Math.random(); // å·æ°å·¦ä¾§æ |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | <el-container v-loading="createdLoading"> |
| | | <el-aside> |
| | | <basic-container> |
| | | <div style="max-height: calc(100vh - 170px);overflow: auto"> |
| | | <avue-tree :key="refresh" ref="tree" :data="treeData" :option="treeOption" @node-click="nodeClick"> |
| | | <div style="max-height: calc(100vh - 150px);overflow: auto"> |
| | | <avue-tree :key="refresh" node-key="id" ref="tree" :data="treeData" :option="treeOption" @node-click="nodeClick"> |
| | | <span slot-scope="{ node, data }" class="el-tree-node__label"> |
| | | <span style="font-size: 15px"> |
| | | <i class="el-icon-s-promotion"></i> |
| | |
| | | |
| | | <el-main> |
| | | <basic-container> |
| | | <el-form ref="form" :model="form" label-width="85px" style="height: 79vh"> |
| | | <el-form ref="form" :model="form" label-width="85px" style="max-height: calc(100vh - 180px);overflow: auto;"> |
| | | <span v-if="form.childType !== 0"> |
| | | <el-form-item label="模ååï¼"> |
| | | <el-input v-model="form.name" placeholder="请è¾å
¥æ¨¡åå"></el-input> |
| | |
| | | addStatus: false, |
| | | editStatus: false, |
| | | nodeRow: {}, |
| | | currentClickNode:null, |
| | | form: {}, |
| | | treeData: [], |
| | | treeOption: { |
| | |
| | | }, |
| | | methods: { |
| | | // æ è¡ç¹å» |
| | | nodeClick(row) { |
| | | nodeClick(row,node) { |
| | | console.log(row.childType); |
| | | this.form = {...row}; |
| | | this.nodeRow = {...row}; |
| | | this.currentClickNode = node; |
| | | this.addStatus = false; |
| | | this.editStatus = false; |
| | | }, |
| | |
| | | this.addStatus = false; |
| | | // this.resetFormValue(); |
| | | this.form.childType = null; |
| | | this.refresh = Math.random(); // å·æ°å·¦ä¾§æ |
| | | this.handleRefreshTree('add') |
| | | } |
| | | }) |
| | | }, |
| | |
| | | this.editStatus = false; |
| | | // this.resetFormValue(); |
| | | this.form.childType = null; |
| | | this.refresh = Math.random(); // å·æ°å·¦ä¾§æ |
| | | this.handleRefreshTree('edit') |
| | | } |
| | | }) |
| | | }, |
| | |
| | | delModule(this.form).then(res => { |
| | | if (res.data.code === 200) { |
| | | this.$message.success(res.data.msg); |
| | | this.resetFormValue(); |
| | | this.handleRefreshTree('del') |
| | | this.addStatus = false; |
| | | this.editStatus = false; |
| | | } |
| | |
| | | updateAlias(params).then(res => { |
| | | if (res.data.code === 200) { |
| | | this.$message.success(res.data.msg); |
| | | this.refresh = Math.random(); // å·æ°å·¦ä¾§æ |
| | | this.handleRefreshTree('edit') |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | // å 餿¨¡åä¸å
³èçæä½ç±»å |
| | | deleteOperationClickHandler() { |
| | | console.log(this.form); |
| | | const params = { |
| | | funcId: this.form.funcId, |
| | | operId: this.form.operId |
| | | } |
| | | delFuncOperation(params).then(res => { |
| | | console.log(res); |
| | | if (res.data.code === 200) { |
| | | this.$message.success(res.data.msg); |
| | | this.resetFormValue(); |
| | | this.handleRefreshTree('del'); |
| | | } |
| | | }) |
| | | }, |
| | |
| | | func.downloadFileByBlobHandler(res); |
| | | this.createdLoading = false |
| | | this.$message.success('å¯¼åºæå'); |
| | | }).catch(err => { |
| | | this.$message.error(err); |
| | | }) |
| | | }, |
| | | |
| | | // 导å
¥ |
| | | upLoadClickHandler() { |
| | | this.$refs.upload.visible = true; |
| | | }, |
| | | handleRefreshTree(type) { |
| | | //type:add\edit\del |
| | | if(type=="del"){ |
| | | this.$refs.tree.remove(this.currentClickNode); |
| | | this.currentClickNode=null; |
| | | this.form={}; |
| | | }else{ |
| | | if (this.currentClickNode) { |
| | | let node = this.currentClickNode.parent; |
| | | node.loaded = false; |
| | | node.expand(); |
| | | this.$refs.tree.setCurrentNode(this.currentClickNode); |
| | | }else { |
| | | this.refresh = Math.random(); // å·æ°å·¦ä¾§æ |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | <el-container> |
| | | <el-aside> |
| | | <basic-container> |
| | | <div style="max-height: calc(100vh - 170px);overflow: auto"> |
| | | <avue-tree :key="refresh" ref="tree" :data="treeData" :option="treeOption" @node-click="nodeClick"> |
| | | <div style="max-height: calc(100vh - 150px);overflow: auto"> |
| | | <avue-tree :key="refresh" node-key="id" ref="tree" :data="treeData" :option="treeOption" @node-click="nodeClick"> |
| | | <span slot-scope="{ node, data }" class="el-tree-node__label"> |
| | | <span style="font-size: 15px"> |
| | | <i class="el-icon-s-promotion"></i> |
| | |
| | | |
| | | <el-main> |
| | | <basic-container> |
| | | <el-form ref="form" :model="form" label-width="85px" style="height: 79vh"> |
| | | <el-form ref="form" :model="form" label-width="85px" style="max-height: calc(100vh - 180px);overflow: auto;"> |
| | | <el-form-item label="åç§°ï¼"> |
| | | <el-input v-model="form.name" placeholder="请è¾å
¥åç§°"></el-input> |
| | | </el-form-item> |
| | |
| | | editStatus:false, |
| | | addStatus: false, |
| | | nodeRow: {}, |
| | | currentClickNode:null, |
| | | form: {}, |
| | | treeData: [], |
| | | treeOption: { |
| | |
| | | }, |
| | | methods: { |
| | | // æ è¡ç¹å» |
| | | nodeClick(row) { |
| | | nodeClick(row,node) { |
| | | console.log(row); |
| | | this.form = {...row}; |
| | | this.nodeRow = {...row}; |
| | | this.currentClickNode=node; |
| | | this.addStatus = false; |
| | | this.editStatus = false; |
| | | }, |
| | |
| | | addOperationType(params).then(res => { |
| | | if(res.data.code === 200){ |
| | | this.$message.success(res.data.msg); |
| | | this.refresh = Math.random(); // å·æ°å·¦ä¾§æ |
| | | this.handleRefreshTree('add') |
| | | this.addStatus = false; |
| | | } |
| | | }) |
| | |
| | | updateOperationType(params).then(res => { |
| | | if(res.data.code === 200){ |
| | | this.$message.success(res.data.msg); |
| | | this.refresh = Math.random(); // å·æ°å·¦ä¾§æ |
| | | this.handleRefreshTree('edit') |
| | | this.editStatus = false; |
| | | } |
| | | }) |
| | |
| | | delOperationType(this.form).then(res => { |
| | | if (res.data.code === 200) { |
| | | this.$message.success(res.data.msg); |
| | | this.resetFormValue(); |
| | | this.handleRefreshTree('del') |
| | | this.addStatus = false; |
| | | this.editStatus = false; |
| | | this.nodeRow = {}; |
| | |
| | | exportFunctionSql({isFunction: false}).then(res => { |
| | | func.downloadFileByBlobHandler(res); |
| | | this.$message.success('å¯¼åºæå'); |
| | | }).catch(err => { |
| | | this.$message.error(err); |
| | | }); |
| | | }, |
| | | handleRefreshTree(type) { |
| | | //type:add\edit\del |
| | | if(type=="del"){ |
| | | this.$refs.tree.remove(this.currentClickNode); |
| | | this.currentClickNode=null; |
| | | this.form={}; |
| | | }else{ |
| | | if (this.currentClickNode) { |
| | | let node = this.currentClickNode.parent; |
| | | node.loaded = false; |
| | | node.expand(); |
| | | this.$refs.tree.setCurrentNode(this.currentClickNode); |
| | | }else { |
| | | this.refresh = Math.random(); // å·æ°å·¦ä¾§æ |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | </script> |