From 6c10a4bb298be32c89a43ec9444a27cda8321b81 Mon Sep 17 00:00:00 2001 From: wuhongjian Date: Fri, 15 Jul 2022 21:35:22 +0800 Subject: [PATCH] =?UTF-8?q?eslint=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/.eslintrc.js | 8 + front/package.json | 4 +- front/src/App.vue | 2 +- front/src/api/capabilityCloud.js | 12 +- front/src/api/home.js | 6 +- front/src/api/personalCenter.js | 2 +- front/src/config/default/setting.config.js | 9 +- front/src/store/modules/user.js | 354 +-- front/src/utils/request.js | 9 +- front/src/vab/plugins/permissions.js | 96 +- .../views/assignCase/components/queryPage.vue | 5 +- .../src/views/detailsAll/AlgorithmDetails.vue | 295 ++- .../views/detailsAll/ApplicationDetails.vue | 326 +-- .../src/views/detailsAll/BusinessDetails.vue | 278 +- .../views/detailsAll/DeveloperComponents.vue | 302 ++- front/src/views/detailsAll/LayerService.vue | 292 ++- .../Algorithm/AlgorithmAdvantage.vue | 2 +- .../components/Algorithm/AlgorithmOnTrial.vue | 4 +- .../Algorithm/PictureCharacterRecognition.vue | 10 +- .../components/Algorithm/TestOfWords.vue | 6 +- .../Application/ApplicationCommonProblem.vue | 200 +- .../ApplicationFunctionIntorduction.vue | 408 +-- .../Application/ApplicationPresentation.vue | 194 +- .../Application/ApplicationTopDetails.vue | 421 +-- .../Business/BusinessNavigation.vue | 399 +-- front/src/views/home/DetailsPageconetent.vue | 2330 +++++++++-------- .../home/components/CompareGroupView.vue | 128 +- front/src/views/home/constantData/showData.js | 120 +- front/src/views/home/integrationServices.vue | 495 ++-- .../views/home/integrationServicesDetails.vue | 721 ++--- .../components/abilityDocTree.vue | 2 +- front/src/views/instructionManual/index.vue | 371 +-- .../views/newHome/components/Navigation2.vue | 2 +- .../newHome/components/PopularAbility.vue | 320 +-- .../personalCenter/components/Collection.vue | 10 +- .../components/addApplication.vue | 542 ++-- 36 files changed, 4649 insertions(+), 4036 deletions(-) diff --git a/front/.eslintrc.js b/front/.eslintrc.js index 81701c75..bdbc18cb 100644 --- a/front/.eslintrc.js +++ b/front/.eslintrc.js @@ -1,3 +1,10 @@ +/* + * @Author: hisense.wuhongjian + * @Date: 2022-06-14 09:31:29 + * @LastEditors: hisense.wuhongjian + * @LastEditTime: 2022-07-15 16:33:55 + * @Description: 告诉大家这是什么 + */ module.exports = { root: true, env: { @@ -15,6 +22,7 @@ module.exports = { ignorePatterns: [ 'src/supermap', 'src/views/home/videoSurveillance', + 'src/views/vab/*', 'src/utils/coordinateSystemTransform.js', ], } diff --git a/front/package.json b/front/package.json index fca2d1c9..592ac777 100644 --- a/front/package.json +++ b/front/package.json @@ -5,7 +5,9 @@ "scripts": { "serve": "vue-cli-service serve", "build": "vue-cli-service build", - "lint": "vue-cli-service lint", + "lint": "eslint --ext .js --ext .jsx --ext .vue src/", + "lint:fix": "eslint --fix --ext .js,.vue .", + "fix": "eslint src/**/*.* --fix", "clear": "rimraf node_modules&&npm install --registry=https://registry.npm.taobao.org", "use:npm": "nrm use npm", "use:taobao": "nrm use taobao", diff --git a/front/src/App.vue b/front/src/App.vue index aeb2000e..b3fb4074 100644 --- a/front/src/App.vue +++ b/front/src/App.vue @@ -26,7 +26,7 @@ diff --git a/front/src/views/detailsAll/ApplicationDetails.vue b/front/src/views/detailsAll/ApplicationDetails.vue index 7eee09d3..367e4087 100644 --- a/front/src/views/detailsAll/ApplicationDetails.vue +++ b/front/src/views/detailsAll/ApplicationDetails.vue @@ -1,179 +1,211 @@ diff --git a/front/src/views/detailsAll/BusinessDetails.vue b/front/src/views/detailsAll/BusinessDetails.vue index cb14bfd2..8138d495 100644 --- a/front/src/views/detailsAll/BusinessDetails.vue +++ b/front/src/views/detailsAll/BusinessDetails.vue @@ -10,149 +10,177 @@ - + - + - - + - - + - - + - - + - + - + diff --git a/front/src/views/detailsAll/DeveloperComponents.vue b/front/src/views/detailsAll/DeveloperComponents.vue index be9c7f40..eb4d145d 100644 --- a/front/src/views/detailsAll/DeveloperComponents.vue +++ b/front/src/views/detailsAll/DeveloperComponents.vue @@ -1,8 +1,8 @@ diff --git a/front/src/views/detailsAll/LayerService.vue b/front/src/views/detailsAll/LayerService.vue index 6228798c..b6dbe86b 100644 --- a/front/src/views/detailsAll/LayerService.vue +++ b/front/src/views/detailsAll/LayerService.vue @@ -8,156 +8,188 @@ diff --git a/front/src/views/detailsAll/components/Algorithm/AlgorithmAdvantage.vue b/front/src/views/detailsAll/components/Algorithm/AlgorithmAdvantage.vue index 3e97e58d..a6703a1b 100644 --- a/front/src/views/detailsAll/components/Algorithm/AlgorithmAdvantage.vue +++ b/front/src/views/detailsAll/components/Algorithm/AlgorithmAdvantage.vue @@ -92,7 +92,7 @@ align-items: center; .item { width: 424px; - height:306px; + height: 306px; padding: 35px; display: flex; flex-direction: column; diff --git a/front/src/views/detailsAll/components/Algorithm/AlgorithmOnTrial.vue b/front/src/views/detailsAll/components/Algorithm/AlgorithmOnTrial.vue index e114c8fa..d5457892 100644 --- a/front/src/views/detailsAll/components/Algorithm/AlgorithmOnTrial.vue +++ b/front/src/views/detailsAll/components/Algorithm/AlgorithmOnTrial.vue @@ -38,7 +38,9 @@ () => props.dataList, (val) => { if (val) { - let obj = val.infoList.filter((item) => item.attrType === '试用地址' && item.attrValue)[0] + let obj = val.infoList.filter( + (item) => item.attrType === '试用地址' && item.attrValue + )[0] if (!obj) { flag.value = false } else { diff --git a/front/src/views/detailsAll/components/Algorithm/PictureCharacterRecognition.vue b/front/src/views/detailsAll/components/Algorithm/PictureCharacterRecognition.vue index ee1d8057..8110e34e 100644 --- a/front/src/views/detailsAll/components/Algorithm/PictureCharacterRecognition.vue +++ b/front/src/views/detailsAll/components/Algorithm/PictureCharacterRecognition.vue @@ -73,7 +73,7 @@ diff --git a/front/src/views/detailsAll/components/Application/ApplicationFunctionIntorduction.vue b/front/src/views/detailsAll/components/Application/ApplicationFunctionIntorduction.vue index eec26ec0..9a241c4d 100644 --- a/front/src/views/detailsAll/components/Application/ApplicationFunctionIntorduction.vue +++ b/front/src/views/detailsAll/components/Application/ApplicationFunctionIntorduction.vue @@ -7,26 +7,42 @@
-
+ " + > -
+
{{ itemSonTitle.name }}
-
+
diff --git a/front/src/views/detailsAll/components/Application/ApplicationPresentation.vue b/front/src/views/detailsAll/components/Application/ApplicationPresentation.vue index 52aaac54..b6e6cd57 100644 --- a/front/src/views/detailsAll/components/Application/ApplicationPresentation.vue +++ b/front/src/views/detailsAll/components/Application/ApplicationPresentation.vue @@ -8,10 +8,18 @@ diff --git a/front/src/views/detailsAll/components/Application/ApplicationTopDetails.vue b/front/src/views/detailsAll/components/Application/ApplicationTopDetails.vue index 94557648..fa51553b 100644 --- a/front/src/views/detailsAll/components/Application/ApplicationTopDetails.vue +++ b/front/src/views/detailsAll/components/Application/ApplicationTopDetails.vue @@ -53,7 +53,11 @@ 加入购物车 --> - + @@ -66,223 +70,220 @@
diff --git a/front/src/views/detailsAll/components/Business/BusinessNavigation.vue b/front/src/views/detailsAll/components/Business/BusinessNavigation.vue index b35ba162..b30ec1a8 100644 --- a/front/src/views/detailsAll/components/Business/BusinessNavigation.vue +++ b/front/src/views/detailsAll/components/Business/BusinessNavigation.vue @@ -8,7 +8,12 @@