Bläddra i källkod

设备程序管理问题修改

yejian 3 år sedan
förälder
incheckning
b4f006910d

+ 1 - 1
imcs-ui/src/api/resourceProductMgr/equipmentMgr.js

@@ -5,7 +5,7 @@ const apiList = {
 
   page: {
     method: 'POST',
-    url: `/authority/productionresource/page`
+    url: `/authoritynpm/page`
   },
 
 	// 【选择设备】-分页列表数据

+ 6 - 4
imcs-ui/src/views/zuihou/resourceProductMgr/equipmentProgramMgr/Index.vue

@@ -153,7 +153,7 @@
       <el-table-column
         :label="$t('table.operation')"
         align="center"
-        column-key="operation"        
+        column-key="operation"
       >
         <template slot-scope="{ row }">
         	<el-tooltip class="item" :content='$t("common.view")' effect="dark" placement="top-start">
@@ -170,7 +170,7 @@
 	            @click="equipmentDelete(row)"
 	          />
           </el-tooltip>
-          <a class="el-icon-download table-operation" style="color: #1890ff;" :href="row.filePath" :download="row.submittedFileName"></a>
+          <a class="el-icon-download table-operation" style="color: #1890ff;" target="_blank" :href="row.filePath" :download="row.submittedFileName"></a>
         </template>
       </el-table-column>
     </el-table>
@@ -311,7 +311,7 @@
 	  		this.selection.map(item => {
 	  			resourceIdList.push(item.id)
 	  		})
-	  		programCenterApi.synchronousNumericalProgram({resourceIdList}).then(res => {
+	  		programCenterApi.synchronousNumericalProgram({"resourceList" : resourceIdList}).then(res => {
 	  			res = res.data
 	  			// console.log("同步数控程序】: ", res)
 	  			if(res.isSuccess){
@@ -403,9 +403,11 @@
       },
 	    editSuccess () {
 	      this.search()
+        this.fetch2()
 	    },
       editUploadSuccess(){
         this.search()
+        this.fetch2()
       },
 
 	    // 当选择项发生变化时会触发该事件
@@ -521,7 +523,7 @@
 	      // 固定参数(采集的生产资源)
 	      this.queryParams.resourceStatus = "1"
 		  this.queryParams.displayStatus = "1"
-          this.queryParams.cncProgram = "1"   
+          this.queryParams.cncProgram = "1"
 	      equipmentMgrApi.getPageList(this.queryParams).then(response => {
 	        const res = response.data
 			//console.log(res)

+ 2 - 0
imcs-ui/src/views/zuihou/resourceProductMgr/equipmentProgramMgr/components/Upload.vue

@@ -168,6 +168,7 @@
       handleSuccess(response, file, fileList){
         console.log("文件上传成功!", response)
         if(response.isSuccess){
+          console.log(response.data)
           // [上传程序]字段的值
           this.tenant.filePath = response.data.url
           // [程序大小]字段的值
@@ -259,6 +260,7 @@
         })
       },
       save () {
+        console.log(this.tenant)
         programCenterApi.save(this.tenant)
           .then((response) => {
             const res = response.data