408249787 2 anos atrás
pai
commit
62abcc43ec
1 arquivos alterados com 5 adições e 4 exclusões
  1. 5 4
      src/views/remote/opc/modules/BaseForm.vue

+ 5 - 4
src/views/remote/opc/modules/BaseForm.vue

@@ -288,7 +288,7 @@
 
 <script>
 import pick from 'lodash.pick'
-import { addRemoteOpc, updateRemoteOpc, fetchRemoteOpcByPositionNum } from '@/api/remote/opc'
+import { addRemoteOpc, updateRemoteOpc, fetchRemoteOpcByPositionNumAndLine } from '@/api/remote/opc'
 import SbInfoSelectModal from '@/views/sb/info/modules/SbInfoSelectModal'
 import { getSbPositionTree } from '@/api/sb/position'
 export default {
@@ -424,9 +424,10 @@ export default {
       }
     },
     checkPoint (e) {
-      const { form: { setFieldsValue } } = this
-      fetchRemoteOpcByPositionNum({
-        positionNum: e.target.value
+      const { form: { setFieldsValue, getFieldValue } } = this
+      fetchRemoteOpcByPositionNumAndLine({
+        positionNum: e.target.value,
+        line: getFieldValue('line')
       }).then(res => {
         if (res.data === null) {
           this.isExisting = false