Browse Source

代码优化

chris 2 years ago
parent
commit
b7fe903b8a

+ 0 - 2
src/components/work-flow/config/init.js

@@ -30,6 +30,4 @@ const nodeTypeList = [{
   log_bg_color: 'rgba(132, 166, 251, 0.2)'
 }]
 
-console.log(nodeTypeList)
-
 export { nodeTypeList }

+ 0 - 1
src/components/work-flow/config/methods.js

@@ -285,7 +285,6 @@ const methods = {
 
   // 更改连线状态
   changeLineState (nodeId, val) {
-    console.log(val)
     let lines = this.jsPlumb.getAllConnections()
     lines.forEach(line => {
       if (line.targetId === nodeId || line.sourceId === nodeId) {

+ 0 - 5
src/components/work-flow/node-item.vue

@@ -159,9 +159,6 @@ export default {
     },
     editNode () {
       // 编辑节点
-      this.newNodeName = this.node.nodeName
-      console.log('节点数据:')
-      console.log(this.node)
       this.dialog.data = this.node
       this.dialog.visible = true
     },
@@ -174,8 +171,6 @@ export default {
         .validateFormData()
         .then(() => {
           let formData = this.$refs.nodeEdit.formData()
-          console.log('表单数据: ')
-          console.log(formData)
           this.$emit('setNode', this.node.id, formData)
           this.dialog.visible = false
         })

+ 1 - 1
src/views/modules/common/user-component.vue

@@ -48,7 +48,7 @@
       return {
         value: '',
         current: 1,
-        size: 10,
+        size: 100,
         name: '',
         options: [],
         loading: false,

+ 0 - 1
src/views/modules/production/monitoring.vue

@@ -162,7 +162,6 @@
             this.dataList = []
             this.totalPage = 0
           }
-          console.log('monitor')
           this.dataListLoading = false
         })
       },

+ 1 - 1
src/views/modules/works/work.vue

@@ -411,7 +411,7 @@
           ></el-input>
         </el-form-item>
       </el-form>
-      <div slot="footer" class="dialog-footer">
+      <div slot="footer">
         <el-button @click="damageDialogFormVisible = false">取 消</el-button>
         <el-button type="primary" @click="damageSubmit">确 定</el-button>
       </div>