Browse Source

按代码规范重构

chrislee 2 years ago
parent
commit
284c9af241

+ 1 - 1
src/components/work-flow/home.vue

@@ -178,7 +178,7 @@ export default {
     },
     disabled (val) {
     },
-    isEdit(val){}
+    isEdit (val) {}
   },
   mounted () {
     // console.log('mounted')

+ 1 - 1
src/components/work-flow/node-add.vue

@@ -489,7 +489,7 @@ export default {
     disabled (val) {
       this.disabled = val
     },
-    isEdit(val){
+    isEdit (val) {
       this.isEdit = val
     }
   },

+ 1 - 1
src/components/work-flow/node-edit.vue

@@ -489,7 +489,7 @@ export default {
     disabled (val) {
       this.disabled = val
     },
-    isEdit(val){
+    isEdit (val) {
       this.isEdit = val
     }
   },

+ 1 - 1
src/views/modules/tech/crafts-management.vue

@@ -262,7 +262,7 @@
       addOrUpdateHandle (id) {
         this.addOrUpdateVisible = true
         this.$nextTick(() => {
-          this.$refs.addOrUpdate.init(id, false, Number(id) != 0)
+          this.$refs.addOrUpdate.init(id, false, Number(id) !== 0)
         })
       },
       // 撤销

+ 3 - 3
src/views/modules/tech/ctafts-add-or-detail.vue

@@ -105,7 +105,7 @@ export default {
       datas: {},
       visible: false,
       display: false,
-      isEdit: false, //是否是编辑页面
+      isEdit: false, // 是否是编辑页面
       fileList: [],
       dataList: [],
       id: 0,
@@ -178,7 +178,7 @@ export default {
       this.visible = true
       this.display = display
       this.isEdit = isEdit
-      
+
       await getProduct({ current: 1, size: 20000 }).then(({ data }) => {
         if (data && data.code === '200') {
           this.optionLevel = data.data.records
@@ -248,7 +248,7 @@ export default {
           }
 
           let url = `/biz-service/technology/submit`
-          if(this.isEdit){
+          if (this.isEdit) {
             url = `/biz-service/technology/update`
           }
 

+ 1 - 1
yarn.lock

@@ -4927,7 +4927,7 @@ gulp-util@^3.0.0:
     through2 "^2.0.0"
     vinyl "^0.5.0"
 
-gulp@^3.9.1:
+gulp@3.9.1:
   version "3.9.1"
   resolved "https://registry.yarnpkg.com/gulp/-/gulp-3.9.1.tgz#571ce45928dd40af6514fc4011866016c13845b4"
   integrity sha512-6FHNdR+VG1LcPz6gZGGqgvimWWGtl4x3FvshAdK/UnAjU7aFOyzft3Fjp35r0Y3ZF4u8vND0S4nGsIB/sxTqzQ==