qgb-process 0.2.3 → 0.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env +2 -2
- package/.env.development +70 -70
- package/.env.pre +60 -60
- package/.env.production +48 -48
- package/.env.test +48 -48
- package/.eslintignore +4 -4
- package/.eslintrc.js +302 -302
- package/README.md +66 -66
- package/babel.config.js +5 -5
- package/commitlint.config.js +30 -30
- package/config/dev.env.js +7 -7
- package/config/index.js +82 -82
- package/config/prod.env.js +4 -4
- package/debug.log +4 -4
- package/index.js +6 -6
- package/jsconfig.json +9 -9
- package/lib/qgb-process.common.js +7666 -5069
- package/lib/qgb-process.umd.js +7666 -5069
- package/lib/qgb-process.umd.min.js +108 -108
- package/package.json +148 -148
- package/packages/index.js +26 -26
- package/public/index.html +47 -47
- package/public/js/qykf.js +21 -21
- package/src/App.vue +37 -37
- package/src/api/ApiExAndapp.js +24 -24
- package/src/api/EnterpriseAssociation.js +8 -8
- package/src/api/Notice.js +31 -31
- package/src/api/apiAcceptance/apiAcceptance.js +37 -37
- package/src/api/apiAddress.js +9 -9
- package/src/api/apiApprovalConfig.js +13 -13
- package/src/api/apiApprove.js +18 -18
- package/src/api/apiArrears/apiArrears.js +41 -41
- package/src/api/apiArrears/apiProjectArrears.js +16 -16
- package/src/api/apiArrears/index.js +15 -15
- package/src/api/apiAssets.js +19 -19
- package/src/api/apiAssociate.js +42 -42
- package/src/api/apiAudit/apiAudit.js +32 -32
- package/src/api/apiAuth.js +25 -25
- package/src/api/apiAuthentication.js +35 -35
- package/src/api/apiBankAccount/index.js +12 -12
- package/src/api/apiBudget/apiBudget.js +30 -30
- package/src/api/apiBudget/apiBudgets.js +105 -105
- package/src/api/apiCarRecord.js +48 -48
- package/src/api/apiCart.js +202 -202
- package/src/api/apiChangeTel.js +13 -13
- package/src/api/apiCheckingIn.js +95 -95
- package/src/api/apiCollection/index.js +13 -13
- package/src/api/apiContract/apiContract.js +21 -21
- package/src/api/apiContract/index.js +3 -3
- package/src/api/apiContract/quill-config.js +122 -122
- package/src/api/apiContractManage/apiContractManage.js +57 -57
- package/src/api/apiContractManage/index.js +2 -2
- package/src/api/apiContractManage/quill-config.js +121 -121
- package/src/api/apiCoping.js +22 -22
- package/src/api/apiCost/index.js +31 -31
- package/src/api/apiCreditManagement.js +16 -16
- package/src/api/apiCustomer/apiCustomer.js +12 -12
- package/src/api/apiDivisional.js +9 -9
- package/src/api/apiDivisionalManagementList.js +17 -17
- package/src/api/apiEmployeeRegularization.js +73 -73
- package/src/api/apiEquipmentRental.js +50 -50
- package/src/api/apiFormBuilder/menu.js +65 -65
- package/src/api/apiFormBuilder/reissueRule.js +15 -15
- package/src/api/apiFund/index.js +16 -16
- package/src/api/apiHelp.js +43 -43
- package/src/api/apiHome.js +24 -24
- package/src/api/apiIminfo.js +39 -39
- package/src/api/apiInventory.js +52 -52
- package/src/api/apiInventorySetting.js +9 -9
- package/src/api/apiInvoice.js +29 -29
- package/src/api/apiJobManage.js +15 -15
- package/src/api/apiLease/apiLease.js +12 -12
- package/src/api/apiLogisticsTransportation/apiLogisticsTransportation.js +34 -34
- package/src/api/apiLostPassword.js +9 -9
- package/src/api/apiMachine/api.js +3 -3
- package/src/api/apiMachine/apiCategory.js +18 -18
- package/src/api/apiMachine/apiHire.js +19 -19
- package/src/api/apiMachine/apiLease.js +27 -27
- package/src/api/apiMachine/apiLocation.js +4 -4
- package/src/api/apiMachine/apiRentInfo.js +107 -107
- package/src/api/apiMachine/apiRentPublish.js +14 -14
- package/src/api/apiMachine/apiStore.js +15 -15
- package/src/api/apiMachine/index.js +3 -3
- package/src/api/apiManagementStore/api.js +3 -3
- package/src/api/apiManagementStore/apiManagementStore.js +25 -25
- package/src/api/apiMaterCheckAndAccept/apiMaterCheckAndAccept.js +47 -47
- package/src/api/apiMaterCheckAndAccept/apiMechanicalSourcing.js +16 -16
- package/src/api/apiMaterCheckAndAccept/index.js +3 -3
- package/src/api/apiMaterials/aaaaaaaaaaaaaa.js +9 -9
- package/src/api/apiMaterials/api.js +3 -3
- package/src/api/apiMaterials/apiAddress.js +116 -116
- package/src/api/apiMaterials/apiBalanceData.js +188 -188
- package/src/api/apiMaterials/apiCommercialConcrete.js +36 -36
- package/src/api/apiMaterials/apiCommodity.js +70 -70
- package/src/api/apiMaterials/apiDownload.js +26 -26
- package/src/api/apiMaterials/apiHome.js +44 -44
- package/src/api/apiMaterials/apiItemBrand.js +9 -9
- package/src/api/apiMaterials/apiLogistics.js +72 -72
- package/src/api/apiMaterials/apiLogisticsReceipt.js +94 -94
- package/src/api/apiMaterials/apiMaterials.js +8 -8
- package/src/api/apiMaterials/apiMySalesOrder.js +21 -21
- package/src/api/apiMaterials/apiOfflineOrder.js +18 -18
- package/src/api/apiMaterials/apiOrder.js +183 -183
- package/src/api/apiMaterials/apiReceipt.js +45 -45
- package/src/api/apiMaterials/quill-config.js +122 -122
- package/src/api/apiMemberSelection.js +39 -39
- package/src/api/apiMessage.js +10 -10
- package/src/api/apiMock/mockOrder.js +98 -98
- package/src/api/apiMonthPlan/apiMonthPlan.js +47 -47
- package/src/api/apiMyBidding.js +8 -8
- package/src/api/apiMyMember/apiComInfo.js +17 -17
- package/src/api/apiMyMember/apiInviteJoin.js +24 -24
- package/src/api/apiMyMember/apiMember.js +24 -24
- package/src/api/apiMyMember/apiMemberApply.js +36 -36
- package/src/api/apiMyMember/apiMemberChance.js +40 -40
- package/src/api/apiOffer.js +40 -40
- package/src/api/apiOffice.js +19 -19
- package/src/api/apiPact.js +26 -26
- package/src/api/apiPassword.js +7 -7
- package/src/api/apiPay/apiPay.js +25 -25
- package/src/api/apiPaying.js +21 -21
- package/src/api/apiPayment/apiPayment.js +13 -13
- package/src/api/apiPayment/apiProjectPayment.js +13 -13
- package/src/api/apiPrint.js +23 -0
- package/src/api/apiProcess.js +65 -65
- package/src/api/apiProject/apiBaseList.js +29 -29
- package/src/api/apiProject/apiGoodsOffer.js +11 -11
- package/src/api/apiProject/apiInventory.js +116 -116
- package/src/api/apiProject/apiOfferOrder.js +12 -12
- package/src/api/apiProject/apiOfferQuery.js +18 -18
- package/src/api/apiProject/apiPlan.js +21 -21
- package/src/api/apiProject/apiProject.js +158 -158
- package/src/api/apiProjectProcurement/apiProjectProcurement.js +88 -88
- package/src/api/apiPurchase/apiPurchase.js +67 -67
- package/src/api/apiPurchaseApply.js +15 -15
- package/src/api/apiPurchasePay.js +16 -16
- package/src/api/apiRankManagement.js +24 -24
- package/src/api/apiRecruit.js +37 -37
- package/src/api/apiReimbursement/apiReimbursement.js +15 -15
- package/src/api/apiRisk/index.js +11 -11
- package/src/api/apiRoleManagement.js +15 -15
- package/src/api/apiRules/apiRules.js +11 -11
- package/src/api/apiSchedule/apiSchedule.js +17 -17
- package/src/api/apiSealRecord.js +52 -52
- package/src/api/apiSign.js +8 -8
- package/src/api/apiSolution/apiSolution.js +9 -9
- package/src/api/apiSubcontract.js +35 -35
- package/src/api/apiSystem/index.js +40 -40
- package/src/api/apiTask.js +76 -76
- package/src/api/apiTeam/api.js +3 -3
- package/src/api/apiTeam/apiUtils.js +11 -11
- package/src/api/apiTender.js +127 -127
- package/src/api/apiUser.js +24 -24
- package/src/api/apiUserEnterprise/api.js +3 -3
- package/src/api/apiUserEnterprise/apiUserEn.js +15 -15
- package/src/api/apiVolunteerTeam.js +11 -11
- package/src/api/apiWorkarea.js +33 -33
- package/src/api/apiXzqh.js +8 -8
- package/src/api/common/api.js +3 -3
- package/src/api/common/apiUtils.js +9 -9
- package/src/api/customer.js +21 -21
- package/src/api/evection.js +19 -19
- package/src/api/guide.js +9 -9
- package/src/api/sociaManageApi.js +30 -30
- package/src/assets/Area.json +1773 -1773
- package/src/assets/css/quill.bubble.css +952 -952
- package/src/assets/css/quill.core.css +397 -397
- package/src/assets/css/quill.snow.css +945 -945
- package/src/assets/data.js +284 -284
- package/src/assets/fonts/Read Me.txt +7 -7
- package/src/assets/fonts/demo-files/demo.css +155 -155
- package/src/assets/fonts/demo-files/demo.js +30 -30
- package/src/assets/fonts/demo.html +951 -951
- package/src/assets/fonts/fonts/icomoon.svg +130 -130
- package/src/assets/fonts/style.css +563 -563
- package/src/assets/icons/checkbox.svg +12 -12
- package/src/assets/icons/columns-3.svg +12 -12
- package/src/assets/icons/columns.svg +12 -12
- package/src/assets/icons/custom-table.svg +12 -12
- package/src/assets/icons/date.svg +19 -19
- package/src/assets/icons/daterange.svg +12 -12
- package/src/assets/icons/fuzhi.svg +11 -11
- package/src/assets/icons/fuzhi_03.svg +5 -5
- package/src/assets/icons/gaojizujian.svg +12 -12
- package/src/assets/icons/groupSummary.svg +12 -12
- package/src/assets/icons/groupTitle.svg +12 -12
- package/src/assets/icons/image-uploader.svg +12 -12
- package/src/assets/icons/input-number.svg +12 -12
- package/src/assets/icons/input.svg +12 -12
- package/src/assets/icons/quill-editor.svg +12 -12
- package/src/assets/icons/radio.svg +12 -12
- package/src/assets/icons/select.svg +12 -12
- package/src/assets/icons/switch.svg +12 -12
- package/src/assets/icons/textarea.svg +12 -12
- package/src/assets/icons/upload-file.svg +12 -12
- package/src/assets/marketplace.js +289 -289
- package/src/components/ComAduitNew.vue +477 -477
- package/src/components/CommonAduit.vue +512 -512
- package/src/components/CommonAduitNew.vue +906 -906
- package/src/components/CommonAduitNews.vue +753 -753
- package/src/components/CommonUEditer.vue +63 -63
- package/src/components/PersonCenter/Mess.vue +59 -59
- package/src/components/PersonCenter/Title.vue +80 -80
- package/src/components/SvgIcon.vue +57 -57
- package/src/components/XmCommonAduit.vue +761 -761
- package/src/components/feiyCommon.vue +713 -713
- package/src/components/form/card.js +5 -5
- package/src/components/form/chinese.js +6 -6
- package/src/components/form/chinessstring.js +5 -5
- package/src/components/form/hunhe.js +8 -8
- package/src/components/form/hunhecq.js +8 -8
- package/src/components/form/hunheh.js +8 -8
- package/src/components/form/num.js +12 -12
- package/src/components/form/numstring.js +5 -5
- package/src/components/form/user.js +7 -7
- package/src/components/form/validate.js +42 -42
- package/src/components/form/validcredit.js +5 -5
- package/src/components/fundCommonAduit.vue +661 -661
- package/src/components/public/BaseCustomTable.vue +71 -71
- package/src/components/public/BaseDialog.vue +144 -144
- package/src/components/public/BaseEmptyData.vue +73 -73
- package/src/components/public/BaseFormTitle.vue +39 -39
- package/src/components/public/BasePagination.vue +55 -55
- package/src/components/public/BaseRouter.vue +14 -14
- package/src/components/public/BaseUpload.vue +185 -185
- package/src/components/public/Bottom.vue +62 -62
- package/src/components/public/Footer.vue +412 -412
- package/src/components/public/Header.vue +30 -30
- package/src/components/public/LeftMenu.vue +170 -170
- package/src/components/public/MemberSelection coby.vue +444 -444
- package/src/components/public/MemberSelection.vue +487 -487
- package/src/components/public/NewLeftMenu.vue +418 -418
- package/src/components/public/PicturesPreview.vue +62 -62
- package/src/components/public/Popout.vue +147 -147
- package/src/components/public/TagLine.vue +353 -353
- package/src/components/public/components/BaseImageUploadDrag.vue +320 -320
- package/src/components/public/components/HeadBar.vue +315 -315
- package/src/components/public/components/MenuList.vue +110 -110
- package/src/components/public/components/NewHeadBar.vue +936 -936
- package/src/components/public/components/QuickGoods.vue +273 -273
- package/src/components/public/components/Search.vue +164 -164
- package/src/components/public/components/Userinfo.vue +383 -383
- package/src/components/utils/pdf.js +254 -254
- package/src/components/xmfyCommonAduit.vue +752 -752
- package/src/filters/index.js +619 -619
- package/src/fnc/arr.js +102 -102
- package/src/fnc/quill-config.js +121 -121
- package/src/fnc/unit.js +102 -102
- package/src/fnc/verify.js +187 -187
- package/src/fnc/verifyStatus.js +24 -24
- package/src/formBuilder/apiBusiness.js +67 -67
- package/src/formBuilder/business.js +1039 -1039
- package/src/formBuilder/component/components/data.js +719 -719
- package/src/formBuilder/component/components/purchaseIndex.vue +1109 -1109
- package/src/formBuilder/component/purchase.vue +35 -35
- package/src/formBuilder/components/app-main/components/components/GroupSummary.vue +33 -33
- package/src/formBuilder/components/app-main/components/components/GroupTitle.vue +33 -33
- package/src/formBuilder/components/app-main/components/components/bank.vue +226 -226
- package/src/formBuilder/components/app-main/components/components/bankFormHeard.vue +298 -298
- package/src/formBuilder/components/app-main/components/components/builder.vue +718 -718
- package/src/formBuilder/components/app-main/components/components/columns.vue +393 -393
- package/src/formBuilder/components/app-main/components/components/customTable.vue +1758 -1758
- package/src/formBuilder/components/app-main/components/components/formDep.vue +105 -105
- package/src/formBuilder/components/app-main/components/components/handleCode.vue +39 -39
- package/src/formBuilder/components/app-main/components/components/itemOption.vue +116 -116
- package/src/formBuilder/components/app-main/components/components/linkForm.vue +116 -116
- package/src/formBuilder/components/app-main/components/components/listDesign.vue +772 -772
- package/src/formBuilder/components/app-main/components/components/optionSolt.js +78 -78
- package/src/formBuilder/components/app-main/components/components/person.vue +104 -104
- package/src/formBuilder/components/app-main/components/components/postman.vue +40 -40
- package/src/formBuilder/components/app-main/components/components/previewDialog.vue +391 -391
- package/src/formBuilder/components/app-main/components/components/tableIndex.vue +51 -51
- package/src/formBuilder/components/app-main/components/components/tableList.vue +561 -561
- package/src/formBuilder/components/app-main/components/components/twoColumns.vue +52 -52
- package/src/formBuilder/components/app-main/components/main-center.vue +187 -187
- package/src/formBuilder/components/app-main/components/main-header.vue +351 -351
- package/src/formBuilder/components/app-main/components/main-left.vue +179 -179
- package/src/formBuilder/components/app-main/components/main-right/components/components/calculateDialog.vue +914 -914
- package/src/formBuilder/components/app-main/components/main-right/components/components/curTextArea.vue +338 -338
- package/src/formBuilder/components/app-main/components/main-right/components/components/form-item-rules.vue +190 -190
- package/src/formBuilder/components/app-main/components/main-right/components/components/linkageDialog.vue +25 -25
- package/src/formBuilder/components/app-main/components/main-right/components/components/searchMixin.js +26 -26
- package/src/formBuilder/components/app-main/components/main-right/components/form-config.vue +284 -284
- package/src/formBuilder/components/app-main/components/main-right/components/form-item-attrs.vue +407 -407
- package/src/formBuilder/components/app-main/components/main-right/components/form-item-config.vue +478 -478
- package/src/formBuilder/components/app-main/components/main-right/index.vue +203 -203
- package/src/formBuilder/components/app-main/index.vue +329 -329
- package/src/formBuilder/comps.js +283 -283
- package/src/formBuilder/config/button.js +63 -63
- package/src/formBuilder/config/cascader-panel.js +224 -224
- package/src/formBuilder/config/cascader.js +306 -306
- package/src/formBuilder/config/checkbox.js +67 -67
- package/src/formBuilder/config/color.js +42 -42
- package/src/formBuilder/config/columns.js +30 -30
- package/src/formBuilder/config/custom-table.js +49 -49
- package/src/formBuilder/config/date.js +107 -107
- package/src/formBuilder/config/daterange.js +47 -47
- package/src/formBuilder/config/datetime.js +78 -78
- package/src/formBuilder/config/datetimerange.js +111 -111
- package/src/formBuilder/config/formDep.js +37 -37
- package/src/formBuilder/config/groupSummary.js +23 -23
- package/src/formBuilder/config/groupTitle.js +23 -23
- package/src/formBuilder/config/handleCode.js +23 -23
- package/src/formBuilder/config/image-uploader.js +113 -113
- package/src/formBuilder/config/input.js +162 -162
- package/src/formBuilder/config/json-editor.js +31 -31
- package/src/formBuilder/config/linkForm.js +69 -69
- package/src/formBuilder/config/number.js +49 -49
- package/src/formBuilder/config/password.js +82 -82
- package/src/formBuilder/config/person.js +37 -37
- package/src/formBuilder/config/postman.js +23 -23
- package/src/formBuilder/config/purchase.js +19 -19
- package/src/formBuilder/config/quill-editor.js +66 -66
- package/src/formBuilder/config/radio-button.js +44 -44
- package/src/formBuilder/config/radio.js +69 -69
- package/src/formBuilder/config/rate.js +93 -93
- package/src/formBuilder/config/select.js +105 -105
- package/src/formBuilder/config/slider.js +92 -92
- package/src/formBuilder/config/switch.js +35 -35
- package/src/formBuilder/config/tag.js +79 -79
- package/src/formBuilder/config/text.js +18 -18
- package/src/formBuilder/config/textarea.js +129 -129
- package/src/formBuilder/config/time.js +60 -60
- package/src/formBuilder/config/timerange.js +94 -94
- package/src/formBuilder/config/tree-select.js +100 -100
- package/src/formBuilder/config/upload-file.js +100 -100
- package/src/formBuilder/config/yesno.js +39 -39
- package/src/formBuilder/config.js +16 -16
- package/src/formBuilder/extend/index.js +20 -20
- package/src/formBuilder/index.js +39 -39
- package/src/formBuilder/menuConfig.js +36 -36
- package/src/formBuilder/mixins/index.js +215 -215
- package/src/formBuilder/tool.js +101 -101
- package/src/function/base.js +13 -13
- package/src/function/findCompanyTree.js +94 -94
- package/src/function/formulaAnalysis.js +44 -44
- package/src/function/verify.js +23 -23
- package/src/http/index.js +219 -219
- package/src/http/type.js +82 -82
- package/src/library/AddType/Index.js +17 -17
- package/src/library/AddType/Index.vue +201 -201
- package/src/library/AreaChange/regionCascader/regionCascader.vue +155 -155
- package/src/library/BigImg/BigImage1/Index.js +17 -17
- package/src/library/BigImg/BigImage1/Index.vue +125 -125
- package/src/library/Button/Button1/Index.js +17 -17
- package/src/library/Button/Button1/Index.vue +60 -60
- package/src/library/Button/Button2/Index.js +17 -17
- package/src/library/Button/Button2/Index.vue +52 -52
- package/src/library/Button/Button3/Index.js +17 -17
- package/src/library/Button/Button3/Index.vue +56 -56
- package/src/library/Button/Button4/Index.js +17 -17
- package/src/library/Button/Button4/Index.vue +56 -56
- package/src/library/Button/Button5/Index.js +17 -17
- package/src/library/Button/Button5/Index.vue +55 -55
- package/src/library/Button/Button6/Index.js +17 -17
- package/src/library/Button/Button6/Index.vue +74 -74
- package/src/library/Button/Button7/Index.js +17 -17
- package/src/library/Button/Button7/Index.vue +56 -56
- package/src/library/ConfirmPlaugin/ConfirmPlaugin1/Index.js +17 -17
- package/src/library/ConfirmPlaugin/ConfirmPlaugin1/Index.vue +147 -147
- package/src/library/ConfirmPlaugin/ConfirmPlaugin2/Index.js +17 -17
- package/src/library/ConfirmPlaugin/ConfirmPlaugin2/Index.vue +137 -137
- package/src/library/ConfirmPlaugin/ConfirmPlaugin3/Index.vue +142 -142
- package/src/library/ConfirmPlaugin/ConfirmPlaugin4/Index.vue +141 -141
- package/src/library/ConfirmPlaugin/ConfirmPlaugin5/Index.vue +121 -121
- package/src/library/ConfirmPlaugin/ConfirmPlaugin6/Index.vue +142 -142
- package/src/library/Input/Input1/Index.js +17 -17
- package/src/library/Input/Input1/Index.vue +66 -66
- package/src/library/NoMessage/NoMessage0/Index.js +17 -17
- package/src/library/NoMessage/NoMessage0/Index.vue +60 -60
- package/src/library/NoMessage/NoMessage1/Index.js +17 -17
- package/src/library/NoMessage/NoMessage1/Index.vue +66 -66
- package/src/library/NoMessage/NoMessage2/Index.js +17 -17
- package/src/library/NoMessage/NoMessage2/Index.vue +66 -66
- package/src/library/Tab/Tab1/TabBox1/Index.vue +36 -36
- package/src/library/Tab/Tab1/TabInner1/Index.vue +70 -70
- package/src/library/Tab/Tab2/TabBox2/Index.vue +36 -36
- package/src/library/Tab/Tab2/TabInner2/Index.vue +66 -66
- package/src/library/Table/Table1/Td1/Index.js +17 -17
- package/src/library/Table/Table1/Td1/Index.vue +110 -110
- package/src/library/Table/Table1/Tr1/Index.js +17 -17
- package/src/library/Table/Table1/Tr1/Index.vue +53 -53
- package/src/library/Table/Table2/Td2/Index.js +17 -17
- package/src/library/Table/Table2/Td2/Index.vue +90 -90
- package/src/library/Table/Table2/Tr2/Index.js +17 -17
- package/src/library/Table/Table2/Tr2/Index.vue +66 -66
- package/src/library/Table/Table3/Td3/Index.js +17 -17
- package/src/library/Table/Table3/Td3/Index.vue +109 -109
- package/src/library/Table/Table3/Tr3/Index.js +17 -17
- package/src/library/Table/Table3/Tr3/Index.vue +128 -128
- package/src/library/Table/Table4/Td4/Index.js +17 -17
- package/src/library/Table/Table4/Td4/Index.vue +114 -114
- package/src/library/Table/Table4/Tr4/Index.js +17 -17
- package/src/library/Table/Table4/Tr4/Index.vue +53 -53
- package/src/library/Title/Title1/Index.js +17 -17
- package/src/library/Title/Title1/Index.vue +80 -80
- package/src/library/toast/Index.js +17 -17
- package/src/library/toast/Index.vue +86 -86
- package/src/main.js +161 -161
- package/src/mixins/Export2Excel.js +207 -207
- package/src/mixins/chartOption.js +110 -110
- package/src/mixins/companyMixins.js +84 -84
- package/src/mixins/quillOptions.js +15 -15
- package/src/mixins/validate/deviceManage.js +211 -211
- package/src/mixins/validate/systemConfig.js +117 -117
- package/src/mixins/validate/validate.js +25 -25
- package/src/public/apiUser/apiUser.js +10 -10
- package/src/public/areaFunction.js +26 -26
- package/src/public/link.js +91 -91
- package/src/public/stageData.js +495 -495
- package/src/public/topmenu.js +68 -68
- package/src/router/index.js +225 -225
- package/src/router/setting/BaseRoutes.js +1639 -1639
- package/src/router/setting/MenuDevMock.js +1570 -1570
- package/src/router/setting/modules/login.js +45 -45
- package/src/router/setting/noAuthRouter.js +109 -109
- package/src/router/setting/routes.js +55 -55
- package/src/static/css/flex.css +75 -75
- package/src/static/css/switch.scss +31 -31
- package/src/storage/cookies.js +37 -37
- package/src/storage/localStorage.js +36 -36
- package/src/storage/sessionStorage.js +25 -25
- package/src/store/formBuilder/formAttrDefault.js +28 -28
- package/src/store/formBuilder/index.js +40 -40
- package/src/store/index.js +553 -553
- package/src/styles/color.scss +24 -24
- package/src/styles/offer.scss +39 -39
- package/src/styles/s-reset.scss +52 -52
- package/src/styles/static-style.scss +797 -797
- package/src/styles/talent.scss +26 -26
- package/src/styles/variable.scss +69 -69
- package/src/styles/workflow/workflow.css +1308 -1308
- package/src/utils/TableFormTypeList.js +26 -26
- package/src/utils/allRouter.js +5579 -5579
- package/src/utils/auditUtil.js +535 -535
- package/src/utils/commonComponents.js +34 -34
- package/src/utils/commonFunc.js +213 -213
- package/src/utils/deepCopyArray.js +9 -9
- package/src/utils/dict.js +49 -49
- package/src/utils/directive.js +26 -26
- package/src/utils/emoji.js +16 -16
- package/src/utils/flator.js +18 -18
- package/src/utils/imMeeting.js +1180 -1180
- package/src/utils/index.js +105 -105
- package/src/utils/initRouter.js +94 -94
- package/src/utils/map.js +23 -23
- package/src/utils/passwordStrength.js +177 -177
- package/src/utils/style.js +30 -30
- package/src/utils/validate.js +30 -30
- package/src/views/404.vue +53 -53
- package/src/views/Login/Login.vue +50 -50
- package/src/views/Login/Passfind.vue +347 -347
- package/src/views/Login/Passfindnext.vue +146 -146
- package/src/views/Login/Sign.vue +55 -55
- package/src/views/Login/SignSuccessfully.vue +132 -132
- package/src/views/Login/appDownload.vue +224 -224
- package/src/views/Login/clientDownload.vue +201 -201
- package/src/views/Login/components/Background.vue +153 -153
- package/src/views/Login/components/FormLogin.vue +1001 -1001
- package/src/views/Login/components/FormPassFind.vue +395 -395
- package/src/views/Login/components/FormSign.vue +493 -493
- package/src/views/Login/components/Title.vue +301 -301
- package/src/views/Login/components/agreeMent.vue +111 -111
- package/src/views/Login/components/companysign.vue +1296 -1296
- package/src/views/Login/components/guideLogin.vue +984 -984
- package/src/views/formBuilder/components/addNode.vue +119 -119
- package/src/views/formBuilder/components/approverSelector.vue +493 -493
- package/src/views/formBuilder/components/baseRoute.vue +315 -315
- package/src/views/formBuilder/components/builderHeader.vue +106 -106
- package/src/views/formBuilder/components/conditionConfig.js +588 -588
- package/src/views/formBuilder/components/conditionNode.vue +191 -191
- package/src/views/formBuilder/components/dataDefault.js +147 -147
- package/src/views/formBuilder/components/depFormNode.vue +583 -583
- package/src/views/formBuilder/components/linkForm.vue +566 -566
- package/src/views/formBuilder/components/linkFormList.vue +821 -821
- package/src/views/formBuilder/components/menuConfig.vue +1752 -1752
- package/src/views/formBuilder/components/newNodeForm.vue +426 -426
- package/src/views/formBuilder/components/newsection.vue +424 -424
- package/src/views/formBuilder/components/nodeConditionConfig cody.vue +376 -376
- package/src/views/formBuilder/components/nodeConditionConfig.vue +603 -603
- package/src/views/formBuilder/components/nodeForm.vue +355 -355
- package/src/views/formBuilder/components/nodeMenu.vue +147 -147
- package/src/views/formBuilder/components/personNode.vue +566 -566
- package/src/views/formBuilder/components/planNode.vue +269 -269
- package/src/views/formBuilder/designListPage.vue +457 -457
- package/src/views/formBuilder/formDataDetail.vue +565 -565
- package/src/views/formBuilder/formGeneration.vue +904 -904
- package/src/views/formBuilder/index.vue +242 -242
- package/src/views/formBuilder/process-1.vue +976 -976
- package/src/views/formBuilder/process-2.vue +1323 -1323
- package/src/views/formBuilder/process.vue +662 -431
- package/src/views/formBuilder/processList.vue +877 -877
- package/src/views/formBuilder/service/ProcessBuilder.js +136 -136
- package/src/views/formBuilder/service/RsxzFieldCollection.js +199 -0
- package/src/views/formBuilder/workflow/addNode.vue +95 -95
- package/src/views/formBuilder/workflow/initData.js +205 -205
- package/src/views/formBuilder/workflow/nodeWrap.vue +731 -731
- package/src/views/guide.vue +227 -227
- package/src/views/guideIndex.vue +284 -284
- package/tests/unit/.eslintrc.js +5 -5
- package/tests/unit/example.spec.js +13 -13
- package/vue.config.js +287 -287
package/.eslintrc.js
CHANGED
|
@@ -1,302 +1,302 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
env: {
|
|
3
|
-
browser: true,
|
|
4
|
-
es6: true,
|
|
5
|
-
node: true
|
|
6
|
-
},
|
|
7
|
-
extends: ["eslint:recommended", "plugin:vue/essential", "plugin:vue/base"],
|
|
8
|
-
globals: {
|
|
9
|
-
Atomics: "readonly",
|
|
10
|
-
SharedArrayBuffer: "readonly",
|
|
11
|
-
_: true,
|
|
12
|
-
userInfo: true,
|
|
13
|
-
nim: true,
|
|
14
|
-
WebRTC: true,
|
|
15
|
-
netcall: true,
|
|
16
|
-
Auth: true,
|
|
17
|
-
nimTool: true
|
|
18
|
-
|
|
19
|
-
// apiAuth: true,
|
|
20
|
-
},
|
|
21
|
-
parserOptions: {
|
|
22
|
-
parser: "babel-eslint",
|
|
23
|
-
ecmaVersion: 2018,
|
|
24
|
-
sourceType: "module"
|
|
25
|
-
},
|
|
26
|
-
plugins: ["vue"],
|
|
27
|
-
rules: {
|
|
28
|
-
"no-async-promise-executor": 0,
|
|
29
|
-
"no-fallthrough": 1,
|
|
30
|
-
"vue/valid-v-for": 1,
|
|
31
|
-
"no-global-assign": 1,
|
|
32
|
-
"vue/no-parsing-error": 1,
|
|
33
|
-
"vue/require-v-for-key": 1,
|
|
34
|
-
"vue/return-in-computed-property": 1,
|
|
35
|
-
"vue/no-unused-components": 1,
|
|
36
|
-
"vue/no-unused-vars": 1,
|
|
37
|
-
"vue/no-dupe-keys": 1,
|
|
38
|
-
"vue/no-async-in-computed-properties": 0,
|
|
39
|
-
"vue/no-side-effects-in-computed-properties": 0,
|
|
40
|
-
"vue/no-use-v-if-with-v-for": 0,
|
|
41
|
-
"css-ruleorselectorexpected": 0,
|
|
42
|
-
"no-case-declarations": 0, // 禁止在case / default子句中进行词法声明(无大小写声明)
|
|
43
|
-
"vue/custom-event-name-casing": 0,
|
|
44
|
-
"vue/require-valid-default-prop": 0,
|
|
45
|
-
"vue/no-mutating-props": 0,
|
|
46
|
-
"vue/max-attributes-per-line": [
|
|
47
|
-
2,
|
|
48
|
-
{
|
|
49
|
-
singleline: 10,
|
|
50
|
-
multiline: {
|
|
51
|
-
max: 1,
|
|
52
|
-
allowFirstLine: false
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
],
|
|
56
|
-
"vue/name-property-casing": ["error", "PascalCase"],
|
|
57
|
-
"accessor-pairs": 2, // 强制 getter 和 setter 在对象中成对出现
|
|
58
|
-
"arrow-spacing": [
|
|
59
|
-
2,
|
|
60
|
-
{
|
|
61
|
-
before: true,
|
|
62
|
-
after: true
|
|
63
|
-
}
|
|
64
|
-
], // 强制箭头函数的箭头前后使用一致的空格
|
|
65
|
-
"block-spacing": [2, "always"], // 禁止或强制在代码块中开括号前和闭括号后有空格
|
|
66
|
-
"brace-style": [
|
|
67
|
-
2,
|
|
68
|
-
"1tbs",
|
|
69
|
-
{
|
|
70
|
-
allowSingleLine: true
|
|
71
|
-
}
|
|
72
|
-
], // 强制在代码块中使用一致的大括号风格
|
|
73
|
-
camelcase: [
|
|
74
|
-
0,
|
|
75
|
-
{
|
|
76
|
-
properties: "always"
|
|
77
|
-
}
|
|
78
|
-
], // 强制使用骆驼拼写法命名约定
|
|
79
|
-
"comma-dangle": [2, "never"], // 要求或禁止末尾逗号
|
|
80
|
-
"comma-spacing": [
|
|
81
|
-
2,
|
|
82
|
-
{
|
|
83
|
-
before: false,
|
|
84
|
-
after: true
|
|
85
|
-
}
|
|
86
|
-
], // 强制在逗号前后使用一致的空格
|
|
87
|
-
"comma-style": [2, "last"], // 强制使用一致的逗号风格
|
|
88
|
-
"constructor-super": 2, // 要求在构造函数中有 super() 的调用
|
|
89
|
-
curly: [2, "multi-line"], // 强制所有控制语句使用一致的括号风格
|
|
90
|
-
"dot-location": [2, "property"], // 强制在点号之前和之后一致的换行
|
|
91
|
-
"eol-last": 2, // 要求或禁止文件末尾存在空行
|
|
92
|
-
eqeqeq: [0, "allow-null"], // 要求使用 === 和 !==
|
|
93
|
-
"generator-star-spacing": [
|
|
94
|
-
2,
|
|
95
|
-
{
|
|
96
|
-
before: true,
|
|
97
|
-
after: true
|
|
98
|
-
}
|
|
99
|
-
], // 强制 generator 函数中 * 号周围使用一致的空格
|
|
100
|
-
"handle-callback-err": 0, // 要求回调函数中有容错处理
|
|
101
|
-
indent: [
|
|
102
|
-
2,
|
|
103
|
-
2,
|
|
104
|
-
{
|
|
105
|
-
SwitchCase: 1
|
|
106
|
-
}
|
|
107
|
-
], // 强制使用一致的缩进
|
|
108
|
-
"jsx-quotes": [2, "prefer-single"], // 强制在 JSX 属性中一致地使用双引号或单引号
|
|
109
|
-
"key-spacing": [
|
|
110
|
-
2,
|
|
111
|
-
{
|
|
112
|
-
beforeColon: false,
|
|
113
|
-
afterColon: true
|
|
114
|
-
}
|
|
115
|
-
], // 强制在对象字面量的属性中键和值之间使用一致的间距
|
|
116
|
-
"keyword-spacing": [
|
|
117
|
-
2,
|
|
118
|
-
{
|
|
119
|
-
before: true,
|
|
120
|
-
after: true
|
|
121
|
-
}
|
|
122
|
-
], // 强制在关键字前后使用一致的空格
|
|
123
|
-
"new-cap": [
|
|
124
|
-
2,
|
|
125
|
-
{
|
|
126
|
-
newIsCap: true,
|
|
127
|
-
capIsNew: false
|
|
128
|
-
}
|
|
129
|
-
], // 要求构造函数首字母大写
|
|
130
|
-
"new-parens": 2, // 要求调用无参构造函数时有圆括号
|
|
131
|
-
"no-array-constructor": 0, // 禁用 Array 构造函数
|
|
132
|
-
"no-implicit-coercion": "off",
|
|
133
|
-
"no-caller": 2, // 禁用 arguments.caller 或 arguments.callee
|
|
134
|
-
"no-console": "off", // 禁用 console
|
|
135
|
-
"no-class-assign": 2, // 禁止修改类声明的变量
|
|
136
|
-
"no-cond-assign": 2, // 禁止条件表达式中出现赋值操作符
|
|
137
|
-
"no-const-assign": 2, // 禁止修改 const 声明的变量
|
|
138
|
-
"no-control-regex": 2, // 禁止在正则表达式中使用控制字符
|
|
139
|
-
"no-delete-var": 2, // 禁止删除变量
|
|
140
|
-
"no-dupe-args": 2, // 禁止 function 定义中出现重名参数
|
|
141
|
-
"no-dupe-class-members": 2, // 禁止类成员中出现重复的名称
|
|
142
|
-
"no-dupe-keys": 1, // 禁止对象字面量中出现重复的 key
|
|
143
|
-
"no-duplicate-case": 2, // 禁止出现重复的 case 标签
|
|
144
|
-
"no-empty-character-class": 0, // 禁止在正则表达式中使用空字符集
|
|
145
|
-
"no-empty-pattern": 0, // 禁止使用空解构模式
|
|
146
|
-
"no-empty": 0,
|
|
147
|
-
"no-eval": 0, // 禁用 eval()
|
|
148
|
-
"no-ex-assign": 2, // 禁止对 catch 子句的参数重新赋值
|
|
149
|
-
"no-extend-native": 2, // 禁止扩展原生类型
|
|
150
|
-
"no-extra-bind": 2, // 禁止不必要的 .bind() 调用
|
|
151
|
-
"no-extra-boolean-cast": 2, // 禁止不必要的布尔转换
|
|
152
|
-
"no-extra-parens": [0, "functions"], // 禁止不必要的括号
|
|
153
|
-
"no-fallthrough": 2, // 禁止 case 语句落空
|
|
154
|
-
"no-floating-decimal": 2, // 禁止数字字面量中使用前导和末尾小数点
|
|
155
|
-
"no-func-assign": 2, // 禁止对 function 声明重新赋值
|
|
156
|
-
"no-implied-eval": 2, // 禁止使用类似 eval() 的方法
|
|
157
|
-
"no-inner-declarations": [2, "functions"], // 禁止在嵌套的块中出现变量声明或 function 声明
|
|
158
|
-
"no-invalid-regexp": 2, // 禁止 RegExp 构造函数中存在无效的正则表达式字符串
|
|
159
|
-
"no-irregular-whitespace": 0, // 禁止在字符串和注释之外不规则的空白
|
|
160
|
-
"no-iterator": 2, // 禁用 __iterator__ 属性
|
|
161
|
-
"no-label-var": 2, // 不允许标签与变量同名
|
|
162
|
-
"no-labels": [
|
|
163
|
-
2,
|
|
164
|
-
{
|
|
165
|
-
allowLoop: false,
|
|
166
|
-
allowSwitch: false
|
|
167
|
-
}
|
|
168
|
-
], // 禁用标签语句
|
|
169
|
-
"no-lone-blocks": 2, // 禁用不必要的嵌套块
|
|
170
|
-
"no-mixed-spaces-and-tabs": 0, // 禁止空格和 tab 的混合缩进
|
|
171
|
-
"no-multi-spaces": 0, // 禁止使用多个空格
|
|
172
|
-
"no-multi-str": 2, // 禁止使用多行字符串
|
|
173
|
-
"no-multiple-empty-lines": [
|
|
174
|
-
2,
|
|
175
|
-
{
|
|
176
|
-
max: 3,
|
|
177
|
-
maxEOF: 3,
|
|
178
|
-
maxBOF: 3
|
|
179
|
-
}
|
|
180
|
-
], // 禁止出现多行空行(此处设置最多出现连续3个空行)
|
|
181
|
-
"no-global-assign": 0, // 禁止对原生对象或只读的全局对象进行赋值,原no-native-reassign已被此替换
|
|
182
|
-
"no-unsafe-negation": 2, // 禁止对关系运算符的左操作数使用否定操作符,原no-negated-in-lhs已被此替换
|
|
183
|
-
"no-new-object": 2, // 禁用 Object 的构造函数
|
|
184
|
-
"no-new-require": 2, // 禁止调用 require 时使用 new 操作符
|
|
185
|
-
"no-new-symbol": 2, // 禁止 Symbolnew 操作符和 new 一起使用
|
|
186
|
-
"no-new-wrappers": 2, // 禁止对 String,Number 和 Boolean 使用 new 操作符
|
|
187
|
-
"no-obj-calls": 2, // 禁止把全局对象作为函数调用
|
|
188
|
-
"no-octal": 2, // 禁用八进制字面量
|
|
189
|
-
"no-octal-escape": 2, // 禁止在字符串中使用八进制转义序列
|
|
190
|
-
"no-path-concat": 0, // 禁止对 __dirname 和 __filename 进行字符串连接
|
|
191
|
-
"no-proto": 2, // 禁用 __proto__ 属性
|
|
192
|
-
"no-redeclare": 1, // 禁止多次声明同一变量
|
|
193
|
-
"no-regex-spaces": 2, //
|
|
194
|
-
"no-return-assign": [2, "except-parens"], // 禁止在 return 语句中使用赋值语句
|
|
195
|
-
"no-self-assign": 1, // 禁止自我赋值
|
|
196
|
-
"no-self-compare": 2, // 禁止自身比较
|
|
197
|
-
"no-sequences": 2, // 禁用逗号操作符
|
|
198
|
-
"no-shadow-restricted-names": 2, // 禁止将标识符定义为受限的名字
|
|
199
|
-
"func-call-spacing": 2, // 要求或禁止在函数标识符和其调用之间有空格,原no-spaced-func已被此替换
|
|
200
|
-
"no-sparse-arrays": 2, // 禁用稀疏数组
|
|
201
|
-
"no-this-before-super": 2, // 禁止在构造函数中,在调用 super() 之前使用 this 或 super
|
|
202
|
-
"no-throw-literal": 2, // 禁止抛出异常字面量
|
|
203
|
-
"no-trailing-spaces": 1, // 禁用行尾空格
|
|
204
|
-
"no-undef": 1, // 禁用未声明的变量,除非它们在 /*global */ 注释中被提到
|
|
205
|
-
"no-undef-init": 2, // 禁止将变量初始化为 undefined
|
|
206
|
-
"no-unexpected-multiline": 2, // 禁止出现令人困惑的多行表达式
|
|
207
|
-
"no-unmodified-loop-condition": 2, // 禁用一成不变的循环条件
|
|
208
|
-
"no-unneeded-ternary": [
|
|
209
|
-
2,
|
|
210
|
-
{
|
|
211
|
-
defaultAssignment: false
|
|
212
|
-
}
|
|
213
|
-
], // 禁止可以在有更简单的可替代的表达式时使用三元操作符
|
|
214
|
-
"no-unreachable": 1, // 禁止在return、throw、continue 和 break 语句之后出现不可达代码
|
|
215
|
-
"no-unsafe-finally": 2, // 禁止在 finally 语句块中出现控制流语句
|
|
216
|
-
"no-unused-vars": 0, // 禁止出现未使用过的变量
|
|
217
|
-
"no-useless-call": 2, // 禁止不必要的 .call() 和 .apply()
|
|
218
|
-
"no-useless-computed-key": 2, // 禁止在对象中使用不必要的计算属性
|
|
219
|
-
"no-useless-constructor": 2, // 禁用不必要的构造函数
|
|
220
|
-
"no-useless-escape": 0, // 禁用不必要的转义字符
|
|
221
|
-
"no-whitespace-before-property": 2, // 禁止属性前有空白
|
|
222
|
-
"no-with": 2, // 禁用 with 语句
|
|
223
|
-
"one-var": [
|
|
224
|
-
2,
|
|
225
|
-
{
|
|
226
|
-
initialized: "never"
|
|
227
|
-
}
|
|
228
|
-
], // 强制函数中的变量要么一起声明要么分开声明
|
|
229
|
-
"operator-linebreak": [
|
|
230
|
-
2,
|
|
231
|
-
"after",
|
|
232
|
-
{
|
|
233
|
-
overrides: {
|
|
234
|
-
"?": "before",
|
|
235
|
-
":": "before"
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
], // 强制操作符使用一致的换行符
|
|
239
|
-
"padded-blocks": [0, "never"], // 要求或禁止块内填充
|
|
240
|
-
quotes: [
|
|
241
|
-
1,
|
|
242
|
-
"double",
|
|
243
|
-
{
|
|
244
|
-
avoidEscape: true,
|
|
245
|
-
allowTemplateLiterals: true
|
|
246
|
-
}
|
|
247
|
-
], // 强制使用一致的反勾号、双引号或单引号
|
|
248
|
-
// 'semi': [2, 'never'], // 要求或禁止使用分号代替 ASI,分号设置:never 从不出现分号,always 必须分号结尾
|
|
249
|
-
semi: 0,
|
|
250
|
-
"semi-spacing": [
|
|
251
|
-
2,
|
|
252
|
-
{
|
|
253
|
-
before: false,
|
|
254
|
-
after: true
|
|
255
|
-
}
|
|
256
|
-
], // 强制分号之前和之后使用一致的空格
|
|
257
|
-
"space-before-blocks": [2, "always"], // 强制在块之前使用一致的空格
|
|
258
|
-
"space-before-function-paren": [2, "never"], // 强制在 function的左括号之前使用一致的空格
|
|
259
|
-
"space-in-parens": [2, "never"], // 强制在圆括号内使用一致的空格
|
|
260
|
-
"space-infix-ops": 2, // 要求操作符周围有空格
|
|
261
|
-
"space-unary-ops": [
|
|
262
|
-
2,
|
|
263
|
-
{
|
|
264
|
-
words: true,
|
|
265
|
-
nonwords: false
|
|
266
|
-
}
|
|
267
|
-
], // 强制在一元操作符前后使用一致的空格
|
|
268
|
-
"spaced-comment": [
|
|
269
|
-
2,
|
|
270
|
-
"always",
|
|
271
|
-
{
|
|
272
|
-
markers: [
|
|
273
|
-
"global",
|
|
274
|
-
"globals",
|
|
275
|
-
"eslint",
|
|
276
|
-
"eslint-disable",
|
|
277
|
-
"*package",
|
|
278
|
-
"!",
|
|
279
|
-
","
|
|
280
|
-
]
|
|
281
|
-
}
|
|
282
|
-
], // 强制在注释中 // 或 /* 使用一致的空格
|
|
283
|
-
"template-curly-spacing": [2, "never"], // 要求或禁止模板字符串中的嵌入表达式周围空格的使用
|
|
284
|
-
"use-isnan": 2, // 要求使用 isNaN() 检查 NaN
|
|
285
|
-
"valid-typeof": 2, // 强制 typeof 表达式与有效的字符串进行比较
|
|
286
|
-
"wrap-iife": [2, "any"], // 要求 IIFE 使用括号括起来
|
|
287
|
-
"yield-star-spacing": [2, "both"], // 强制在 yield* 表达式中 * 周围使用空格
|
|
288
|
-
yoda: [2, "never"], // 要求或禁止 “Yoda” 条件
|
|
289
|
-
"prefer-const": 1, // 要求使用 const 声明那些声明后不再被修改的变量
|
|
290
|
-
"no-debugger": process.env.NODE_ENV === "production" ? 2 : 0, // 禁用 debugger
|
|
291
|
-
"object-curly-spacing": [
|
|
292
|
-
2,
|
|
293
|
-
"always",
|
|
294
|
-
{
|
|
295
|
-
objectsInObjects: false
|
|
296
|
-
}
|
|
297
|
-
], // 强制在大括号中使用一致的空格
|
|
298
|
-
"vue/no-custom-modifiers-on-v-model": 0,
|
|
299
|
-
"vue/v-on-function-call": 0, // 允许函数带(a)
|
|
300
|
-
"array-bracket-spacing": [2, "never"] // 强制数组方括号中使用一致的空格
|
|
301
|
-
}
|
|
302
|
-
};
|
|
1
|
+
module.exports = {
|
|
2
|
+
env: {
|
|
3
|
+
browser: true,
|
|
4
|
+
es6: true,
|
|
5
|
+
node: true
|
|
6
|
+
},
|
|
7
|
+
extends: ["eslint:recommended", "plugin:vue/essential", "plugin:vue/base"],
|
|
8
|
+
globals: {
|
|
9
|
+
Atomics: "readonly",
|
|
10
|
+
SharedArrayBuffer: "readonly",
|
|
11
|
+
_: true,
|
|
12
|
+
userInfo: true,
|
|
13
|
+
nim: true,
|
|
14
|
+
WebRTC: true,
|
|
15
|
+
netcall: true,
|
|
16
|
+
Auth: true,
|
|
17
|
+
nimTool: true
|
|
18
|
+
|
|
19
|
+
// apiAuth: true,
|
|
20
|
+
},
|
|
21
|
+
parserOptions: {
|
|
22
|
+
parser: "babel-eslint",
|
|
23
|
+
ecmaVersion: 2018,
|
|
24
|
+
sourceType: "module"
|
|
25
|
+
},
|
|
26
|
+
plugins: ["vue"],
|
|
27
|
+
rules: {
|
|
28
|
+
"no-async-promise-executor": 0,
|
|
29
|
+
"no-fallthrough": 1,
|
|
30
|
+
"vue/valid-v-for": 1,
|
|
31
|
+
"no-global-assign": 1,
|
|
32
|
+
"vue/no-parsing-error": 1,
|
|
33
|
+
"vue/require-v-for-key": 1,
|
|
34
|
+
"vue/return-in-computed-property": 1,
|
|
35
|
+
"vue/no-unused-components": 1,
|
|
36
|
+
"vue/no-unused-vars": 1,
|
|
37
|
+
"vue/no-dupe-keys": 1,
|
|
38
|
+
"vue/no-async-in-computed-properties": 0,
|
|
39
|
+
"vue/no-side-effects-in-computed-properties": 0,
|
|
40
|
+
"vue/no-use-v-if-with-v-for": 0,
|
|
41
|
+
"css-ruleorselectorexpected": 0,
|
|
42
|
+
"no-case-declarations": 0, // 禁止在case / default子句中进行词法声明(无大小写声明)
|
|
43
|
+
"vue/custom-event-name-casing": 0,
|
|
44
|
+
"vue/require-valid-default-prop": 0,
|
|
45
|
+
"vue/no-mutating-props": 0,
|
|
46
|
+
"vue/max-attributes-per-line": [
|
|
47
|
+
2,
|
|
48
|
+
{
|
|
49
|
+
singleline: 10,
|
|
50
|
+
multiline: {
|
|
51
|
+
max: 1,
|
|
52
|
+
allowFirstLine: false
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
],
|
|
56
|
+
"vue/name-property-casing": ["error", "PascalCase"],
|
|
57
|
+
"accessor-pairs": 2, // 强制 getter 和 setter 在对象中成对出现
|
|
58
|
+
"arrow-spacing": [
|
|
59
|
+
2,
|
|
60
|
+
{
|
|
61
|
+
before: true,
|
|
62
|
+
after: true
|
|
63
|
+
}
|
|
64
|
+
], // 强制箭头函数的箭头前后使用一致的空格
|
|
65
|
+
"block-spacing": [2, "always"], // 禁止或强制在代码块中开括号前和闭括号后有空格
|
|
66
|
+
"brace-style": [
|
|
67
|
+
2,
|
|
68
|
+
"1tbs",
|
|
69
|
+
{
|
|
70
|
+
allowSingleLine: true
|
|
71
|
+
}
|
|
72
|
+
], // 强制在代码块中使用一致的大括号风格
|
|
73
|
+
camelcase: [
|
|
74
|
+
0,
|
|
75
|
+
{
|
|
76
|
+
properties: "always"
|
|
77
|
+
}
|
|
78
|
+
], // 强制使用骆驼拼写法命名约定
|
|
79
|
+
"comma-dangle": [2, "never"], // 要求或禁止末尾逗号
|
|
80
|
+
"comma-spacing": [
|
|
81
|
+
2,
|
|
82
|
+
{
|
|
83
|
+
before: false,
|
|
84
|
+
after: true
|
|
85
|
+
}
|
|
86
|
+
], // 强制在逗号前后使用一致的空格
|
|
87
|
+
"comma-style": [2, "last"], // 强制使用一致的逗号风格
|
|
88
|
+
"constructor-super": 2, // 要求在构造函数中有 super() 的调用
|
|
89
|
+
curly: [2, "multi-line"], // 强制所有控制语句使用一致的括号风格
|
|
90
|
+
"dot-location": [2, "property"], // 强制在点号之前和之后一致的换行
|
|
91
|
+
"eol-last": 2, // 要求或禁止文件末尾存在空行
|
|
92
|
+
eqeqeq: [0, "allow-null"], // 要求使用 === 和 !==
|
|
93
|
+
"generator-star-spacing": [
|
|
94
|
+
2,
|
|
95
|
+
{
|
|
96
|
+
before: true,
|
|
97
|
+
after: true
|
|
98
|
+
}
|
|
99
|
+
], // 强制 generator 函数中 * 号周围使用一致的空格
|
|
100
|
+
"handle-callback-err": 0, // 要求回调函数中有容错处理
|
|
101
|
+
indent: [
|
|
102
|
+
2,
|
|
103
|
+
2,
|
|
104
|
+
{
|
|
105
|
+
SwitchCase: 1
|
|
106
|
+
}
|
|
107
|
+
], // 强制使用一致的缩进
|
|
108
|
+
"jsx-quotes": [2, "prefer-single"], // 强制在 JSX 属性中一致地使用双引号或单引号
|
|
109
|
+
"key-spacing": [
|
|
110
|
+
2,
|
|
111
|
+
{
|
|
112
|
+
beforeColon: false,
|
|
113
|
+
afterColon: true
|
|
114
|
+
}
|
|
115
|
+
], // 强制在对象字面量的属性中键和值之间使用一致的间距
|
|
116
|
+
"keyword-spacing": [
|
|
117
|
+
2,
|
|
118
|
+
{
|
|
119
|
+
before: true,
|
|
120
|
+
after: true
|
|
121
|
+
}
|
|
122
|
+
], // 强制在关键字前后使用一致的空格
|
|
123
|
+
"new-cap": [
|
|
124
|
+
2,
|
|
125
|
+
{
|
|
126
|
+
newIsCap: true,
|
|
127
|
+
capIsNew: false
|
|
128
|
+
}
|
|
129
|
+
], // 要求构造函数首字母大写
|
|
130
|
+
"new-parens": 2, // 要求调用无参构造函数时有圆括号
|
|
131
|
+
"no-array-constructor": 0, // 禁用 Array 构造函数
|
|
132
|
+
"no-implicit-coercion": "off",
|
|
133
|
+
"no-caller": 2, // 禁用 arguments.caller 或 arguments.callee
|
|
134
|
+
"no-console": "off", // 禁用 console
|
|
135
|
+
"no-class-assign": 2, // 禁止修改类声明的变量
|
|
136
|
+
"no-cond-assign": 2, // 禁止条件表达式中出现赋值操作符
|
|
137
|
+
"no-const-assign": 2, // 禁止修改 const 声明的变量
|
|
138
|
+
"no-control-regex": 2, // 禁止在正则表达式中使用控制字符
|
|
139
|
+
"no-delete-var": 2, // 禁止删除变量
|
|
140
|
+
"no-dupe-args": 2, // 禁止 function 定义中出现重名参数
|
|
141
|
+
"no-dupe-class-members": 2, // 禁止类成员中出现重复的名称
|
|
142
|
+
"no-dupe-keys": 1, // 禁止对象字面量中出现重复的 key
|
|
143
|
+
"no-duplicate-case": 2, // 禁止出现重复的 case 标签
|
|
144
|
+
"no-empty-character-class": 0, // 禁止在正则表达式中使用空字符集
|
|
145
|
+
"no-empty-pattern": 0, // 禁止使用空解构模式
|
|
146
|
+
"no-empty": 0,
|
|
147
|
+
"no-eval": 0, // 禁用 eval()
|
|
148
|
+
"no-ex-assign": 2, // 禁止对 catch 子句的参数重新赋值
|
|
149
|
+
"no-extend-native": 2, // 禁止扩展原生类型
|
|
150
|
+
"no-extra-bind": 2, // 禁止不必要的 .bind() 调用
|
|
151
|
+
"no-extra-boolean-cast": 2, // 禁止不必要的布尔转换
|
|
152
|
+
"no-extra-parens": [0, "functions"], // 禁止不必要的括号
|
|
153
|
+
"no-fallthrough": 2, // 禁止 case 语句落空
|
|
154
|
+
"no-floating-decimal": 2, // 禁止数字字面量中使用前导和末尾小数点
|
|
155
|
+
"no-func-assign": 2, // 禁止对 function 声明重新赋值
|
|
156
|
+
"no-implied-eval": 2, // 禁止使用类似 eval() 的方法
|
|
157
|
+
"no-inner-declarations": [2, "functions"], // 禁止在嵌套的块中出现变量声明或 function 声明
|
|
158
|
+
"no-invalid-regexp": 2, // 禁止 RegExp 构造函数中存在无效的正则表达式字符串
|
|
159
|
+
"no-irregular-whitespace": 0, // 禁止在字符串和注释之外不规则的空白
|
|
160
|
+
"no-iterator": 2, // 禁用 __iterator__ 属性
|
|
161
|
+
"no-label-var": 2, // 不允许标签与变量同名
|
|
162
|
+
"no-labels": [
|
|
163
|
+
2,
|
|
164
|
+
{
|
|
165
|
+
allowLoop: false,
|
|
166
|
+
allowSwitch: false
|
|
167
|
+
}
|
|
168
|
+
], // 禁用标签语句
|
|
169
|
+
"no-lone-blocks": 2, // 禁用不必要的嵌套块
|
|
170
|
+
"no-mixed-spaces-and-tabs": 0, // 禁止空格和 tab 的混合缩进
|
|
171
|
+
"no-multi-spaces": 0, // 禁止使用多个空格
|
|
172
|
+
"no-multi-str": 2, // 禁止使用多行字符串
|
|
173
|
+
"no-multiple-empty-lines": [
|
|
174
|
+
2,
|
|
175
|
+
{
|
|
176
|
+
max: 3,
|
|
177
|
+
maxEOF: 3,
|
|
178
|
+
maxBOF: 3
|
|
179
|
+
}
|
|
180
|
+
], // 禁止出现多行空行(此处设置最多出现连续3个空行)
|
|
181
|
+
"no-global-assign": 0, // 禁止对原生对象或只读的全局对象进行赋值,原no-native-reassign已被此替换
|
|
182
|
+
"no-unsafe-negation": 2, // 禁止对关系运算符的左操作数使用否定操作符,原no-negated-in-lhs已被此替换
|
|
183
|
+
"no-new-object": 2, // 禁用 Object 的构造函数
|
|
184
|
+
"no-new-require": 2, // 禁止调用 require 时使用 new 操作符
|
|
185
|
+
"no-new-symbol": 2, // 禁止 Symbolnew 操作符和 new 一起使用
|
|
186
|
+
"no-new-wrappers": 2, // 禁止对 String,Number 和 Boolean 使用 new 操作符
|
|
187
|
+
"no-obj-calls": 2, // 禁止把全局对象作为函数调用
|
|
188
|
+
"no-octal": 2, // 禁用八进制字面量
|
|
189
|
+
"no-octal-escape": 2, // 禁止在字符串中使用八进制转义序列
|
|
190
|
+
"no-path-concat": 0, // 禁止对 __dirname 和 __filename 进行字符串连接
|
|
191
|
+
"no-proto": 2, // 禁用 __proto__ 属性
|
|
192
|
+
"no-redeclare": 1, // 禁止多次声明同一变量
|
|
193
|
+
"no-regex-spaces": 2, //
|
|
194
|
+
"no-return-assign": [2, "except-parens"], // 禁止在 return 语句中使用赋值语句
|
|
195
|
+
"no-self-assign": 1, // 禁止自我赋值
|
|
196
|
+
"no-self-compare": 2, // 禁止自身比较
|
|
197
|
+
"no-sequences": 2, // 禁用逗号操作符
|
|
198
|
+
"no-shadow-restricted-names": 2, // 禁止将标识符定义为受限的名字
|
|
199
|
+
"func-call-spacing": 2, // 要求或禁止在函数标识符和其调用之间有空格,原no-spaced-func已被此替换
|
|
200
|
+
"no-sparse-arrays": 2, // 禁用稀疏数组
|
|
201
|
+
"no-this-before-super": 2, // 禁止在构造函数中,在调用 super() 之前使用 this 或 super
|
|
202
|
+
"no-throw-literal": 2, // 禁止抛出异常字面量
|
|
203
|
+
"no-trailing-spaces": 1, // 禁用行尾空格
|
|
204
|
+
"no-undef": 1, // 禁用未声明的变量,除非它们在 /*global */ 注释中被提到
|
|
205
|
+
"no-undef-init": 2, // 禁止将变量初始化为 undefined
|
|
206
|
+
"no-unexpected-multiline": 2, // 禁止出现令人困惑的多行表达式
|
|
207
|
+
"no-unmodified-loop-condition": 2, // 禁用一成不变的循环条件
|
|
208
|
+
"no-unneeded-ternary": [
|
|
209
|
+
2,
|
|
210
|
+
{
|
|
211
|
+
defaultAssignment: false
|
|
212
|
+
}
|
|
213
|
+
], // 禁止可以在有更简单的可替代的表达式时使用三元操作符
|
|
214
|
+
"no-unreachable": 1, // 禁止在return、throw、continue 和 break 语句之后出现不可达代码
|
|
215
|
+
"no-unsafe-finally": 2, // 禁止在 finally 语句块中出现控制流语句
|
|
216
|
+
"no-unused-vars": 0, // 禁止出现未使用过的变量
|
|
217
|
+
"no-useless-call": 2, // 禁止不必要的 .call() 和 .apply()
|
|
218
|
+
"no-useless-computed-key": 2, // 禁止在对象中使用不必要的计算属性
|
|
219
|
+
"no-useless-constructor": 2, // 禁用不必要的构造函数
|
|
220
|
+
"no-useless-escape": 0, // 禁用不必要的转义字符
|
|
221
|
+
"no-whitespace-before-property": 2, // 禁止属性前有空白
|
|
222
|
+
"no-with": 2, // 禁用 with 语句
|
|
223
|
+
"one-var": [
|
|
224
|
+
2,
|
|
225
|
+
{
|
|
226
|
+
initialized: "never"
|
|
227
|
+
}
|
|
228
|
+
], // 强制函数中的变量要么一起声明要么分开声明
|
|
229
|
+
"operator-linebreak": [
|
|
230
|
+
2,
|
|
231
|
+
"after",
|
|
232
|
+
{
|
|
233
|
+
overrides: {
|
|
234
|
+
"?": "before",
|
|
235
|
+
":": "before"
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
], // 强制操作符使用一致的换行符
|
|
239
|
+
"padded-blocks": [0, "never"], // 要求或禁止块内填充
|
|
240
|
+
quotes: [
|
|
241
|
+
1,
|
|
242
|
+
"double",
|
|
243
|
+
{
|
|
244
|
+
avoidEscape: true,
|
|
245
|
+
allowTemplateLiterals: true
|
|
246
|
+
}
|
|
247
|
+
], // 强制使用一致的反勾号、双引号或单引号
|
|
248
|
+
// 'semi': [2, 'never'], // 要求或禁止使用分号代替 ASI,分号设置:never 从不出现分号,always 必须分号结尾
|
|
249
|
+
semi: 0,
|
|
250
|
+
"semi-spacing": [
|
|
251
|
+
2,
|
|
252
|
+
{
|
|
253
|
+
before: false,
|
|
254
|
+
after: true
|
|
255
|
+
}
|
|
256
|
+
], // 强制分号之前和之后使用一致的空格
|
|
257
|
+
"space-before-blocks": [2, "always"], // 强制在块之前使用一致的空格
|
|
258
|
+
"space-before-function-paren": [2, "never"], // 强制在 function的左括号之前使用一致的空格
|
|
259
|
+
"space-in-parens": [2, "never"], // 强制在圆括号内使用一致的空格
|
|
260
|
+
"space-infix-ops": 2, // 要求操作符周围有空格
|
|
261
|
+
"space-unary-ops": [
|
|
262
|
+
2,
|
|
263
|
+
{
|
|
264
|
+
words: true,
|
|
265
|
+
nonwords: false
|
|
266
|
+
}
|
|
267
|
+
], // 强制在一元操作符前后使用一致的空格
|
|
268
|
+
"spaced-comment": [
|
|
269
|
+
2,
|
|
270
|
+
"always",
|
|
271
|
+
{
|
|
272
|
+
markers: [
|
|
273
|
+
"global",
|
|
274
|
+
"globals",
|
|
275
|
+
"eslint",
|
|
276
|
+
"eslint-disable",
|
|
277
|
+
"*package",
|
|
278
|
+
"!",
|
|
279
|
+
","
|
|
280
|
+
]
|
|
281
|
+
}
|
|
282
|
+
], // 强制在注释中 // 或 /* 使用一致的空格
|
|
283
|
+
"template-curly-spacing": [2, "never"], // 要求或禁止模板字符串中的嵌入表达式周围空格的使用
|
|
284
|
+
"use-isnan": 2, // 要求使用 isNaN() 检查 NaN
|
|
285
|
+
"valid-typeof": 2, // 强制 typeof 表达式与有效的字符串进行比较
|
|
286
|
+
"wrap-iife": [2, "any"], // 要求 IIFE 使用括号括起来
|
|
287
|
+
"yield-star-spacing": [2, "both"], // 强制在 yield* 表达式中 * 周围使用空格
|
|
288
|
+
yoda: [2, "never"], // 要求或禁止 “Yoda” 条件
|
|
289
|
+
"prefer-const": 1, // 要求使用 const 声明那些声明后不再被修改的变量
|
|
290
|
+
"no-debugger": process.env.NODE_ENV === "production" ? 2 : 0, // 禁用 debugger
|
|
291
|
+
"object-curly-spacing": [
|
|
292
|
+
2,
|
|
293
|
+
"always",
|
|
294
|
+
{
|
|
295
|
+
objectsInObjects: false
|
|
296
|
+
}
|
|
297
|
+
], // 强制在大括号中使用一致的空格
|
|
298
|
+
"vue/no-custom-modifiers-on-v-model": 0,
|
|
299
|
+
"vue/v-on-function-call": 0, // 允许函数带(a)
|
|
300
|
+
"array-bracket-spacing": [2, "never"] // 强制数组方括号中使用一致的空格
|
|
301
|
+
}
|
|
302
|
+
};
|