Bladeren bron

节点模块配置相关操作

oyq28 3 jaren geleden
bovenliggende
commit
040b2167ca

+ 132 - 0
imcs-ui/src/api/lineSideLibrary/warnLog.js

@@ -0,0 +1,132 @@
+/*********************** 【锁定记录、出入库记录】API ********************/
+import axiosApi from '../AxiosApi.js'
+
+const apiList = {
+	getList: {
+    method: 'POST',
+    url: `/authority/warnLog/all`
+  },
+  page: {
+    method: 'POST',
+    url: `/authority/warnLog/page`
+  },
+  update: {
+    method: 'POST',
+    url: `/authority/warnLog/update`
+  },
+  save: {
+    method: 'POST',
+    url: `/authority/warnLog`
+  },
+  updateStatus: {
+    method: 'GET',
+    url: `/authority/warnLog/updateStatus`
+  },
+  remove: {
+    method: 'DELETE',
+    url: `/authority/warnLog`
+  },
+  delete: {
+    method: 'POST',
+    url: `/authority/warnLog/delete`
+  },
+  list: {
+    method: 'POST',
+    url: `/authority/warnLog/query`
+  },
+  preview: {
+    method: 'POST',
+    url: `/authority/warnLog/preview`
+  },
+  export: {
+    method: 'POST',
+    url: `/authority/warnLog/export`
+  },
+  import: {
+    method: 'POST',
+    url: `/authority/warnLog/import`
+  }
+}
+
+export default {
+	getList (data) {
+    return axiosApi({
+      ...apiList.getList,
+      data
+    })
+  },
+  page (data) {
+    return axiosApi({
+      ...apiList.page,
+      data
+    })
+  },
+  save (data) {
+    return axiosApi({
+      ...apiList.save,
+      data
+    })
+  },
+  update (data) {
+    return axiosApi({
+      ...apiList.update,
+      data
+    })
+  },
+  updateStatus (data) {
+    return axiosApi({
+      ...apiList.updateStatus,
+      data
+    })
+  },
+  remove (data) {
+    return axiosApi({
+      ...apiList.remove,
+      data
+    })
+  },
+  delete (data) {
+    return axiosApi({
+      ...apiList.remove,
+      data
+    })
+  },
+  list (data) {
+    return axiosApi({
+      ...apiList.list,
+      data
+    })
+  },
+  check (code) {
+    return axiosApi({
+      method: 'GET',
+      url: `/authority/warnLog/check/${code}`
+    })
+  },
+  checkField (data) {
+    return axiosApi({
+      method: 'POST',
+      url: `/authority/warnLog/check`,
+      data
+    })
+  },
+  preview (data) {
+    return axiosApi({
+      ...apiList.preview,
+      data
+    })
+  },
+  export (data) {
+    return axiosApi({
+      ...apiList.export,
+      responseType: "blob",
+      data
+    })
+  },
+  import (data) {
+    return axiosApi({
+      ...apiList.import,
+      data
+    })
+  }
+}

+ 3 - 3
imcs-ui/src/views/zuihou/resourceProductMgr/resourcesMgr/components/AutoCodeEdit.vue

@@ -194,11 +194,11 @@ export default {
       width: this.initWidth(),
       confirmDisabled: false,
       parentIds: [],
-      machineNodes:[{label:'上传程序',value:1},{label:'执行程序',value:2},{label:'刀具校验',value:3}],
+      machineNodes:[{label:'上传程序',value:"1"},{label:'执行程序',value:"2"},{label:'刀具校验',value:"3"}],
       agvNodes:[{label:'舱体线接驳位',value:"1"},{label:'框体线接驳位',value:"2"},{label:'保障中心线接驳位',value:"3"}],
       robotNodes:[{label:'舱体线机器人',value:"1"},{label:'伺服舵机',value:"2"},{label:'框体线机器人',value:"3"}],      
-      robotAction:[{label:'取',value:1},{label:'放',value:2}],
-      otherActon:[{label:'默认执行程序', value:1}],
+      robotAction:[{label:'取',value:"1"},{label:'放',value:"2"}],
+      otherActon:[{label:'默认执行程序', value:"1"}],
       actionTarget: [{label:'本设备',value:"1"},{label:'接驳位',value:"2"}],
       dicts:{
         NATION: {}

+ 3 - 3
imcs-ui/src/views/zuihou/resourceProductMgr/resourcesMgr/components/TenantCodeEdit.vue

@@ -75,16 +75,16 @@
       <el-table-column prop="command" label='指令' align="center" width="100px">           
            <template slot-scope="{ row }">              
               <el-tag  v-if=" row.category =='1' "> 
-                    {{ row.command == 1 ? '上传程序':(row.command == 2 ? '执行程序': '刀具校验' )  }}        	      
+                    {{ row.command == "1" ? '上传程序':(row.command == "2" ? '执行程序': '刀具校验' )  }}        	      
               </el-tag>
               <el-tag  v-if=" row.category =='2' "> 
                      搬运  
               </el-tag>
               <el-tag  v-if=" row.category =='3' "> 
-                     {{ row.command == 1 ? '取':'放' }}   
+                     {{ row.command == "1" ? '取':'放' }}   
               </el-tag>
               <el-tag  v-if=" row.category =='4' "> 
-                     {{ row.command == 1 ? '取':'放' }}   
+                     {{ row.command == "1" ? '取':'放' }}   
               </el-tag>              
           </template>
       </el-table-column>