Browse Source

开放协议和OPC删除,详情添加字段

langfang_wms
liwei 3 years ago
parent
commit
145d6c3f67
6 changed files with 12 additions and 12 deletions
  1. +4
    -4
      src/api/plant/processData/basicCommunication.js
  2. +4
    -4
      src/api/plant/processData/openProtocol.js
  3. +1
    -1
      src/views/plant/processData/basicCommunication/addOrEdit.vue
  4. +1
    -1
      src/views/plant/processData/basicCommunication/index.vue
  5. +1
    -1
      src/views/plant/processData/openProtocol/addOrEdit.vue
  6. +1
    -1
      src/views/plant/processData/openProtocol/index.vue

+ 4
- 4
src/api/plant/processData/basicCommunication.js View File

@ -9,9 +9,9 @@ export function getTableList (params) {
}
// 删除
export function delParser (OperationId) {
export function delParser (OperationId, WorkPlaceNr) {
return request({
url: `/admin/base/opcbasiccominfo/deleteone/${OperationId}`,
url: `/admin/base/opcbasiccominfo/deleteone/${OperationId}/${WorkPlaceNr}`,
method: 'delete'
})
}
@ -33,9 +33,9 @@ export function edit (data) {
}
// 获取详情
export function getDetails(OperationId){
export function getDetails(OperationId, WorkPlaceNr){
return request({
url:`/admin/base/opcbasiccominfo/get/${OperationId}`,
url:`/admin/base/opcbasiccominfo/get/${OperationId}/${WorkPlaceNr}`,
method: 'get'
})
}


+ 4
- 4
src/api/plant/processData/openProtocol.js View File

@ -9,9 +9,9 @@ export function getTableList (params) {
}
// 删除
export function delParser (OperationId) {
export function delParser (OperationId, WorkPlaceNr) {
return request({
url: `/admin/base/tightenwrenchinfo/deleteone/${OperationId}`,
url: `/admin/base/tightenwrenchinfo/deleteone/${OperationId}/${WorkPlaceNr}`,
method: 'delete'
})
}
@ -33,9 +33,9 @@ export function edit (data) {
}
// 获取详情
export function getTightenwrenchDetail (OperationId) {
export function getTightenwrenchDetail (OperationId, WorkPlaceNr) {
return request({
url: `/admin/base/tightenwrenchinfo/get/${OperationId}`,
url: `/admin/base/tightenwrenchinfo/get/${OperationId}/${WorkPlaceNr}`,
method: 'get'
})
}


+ 1
- 1
src/views/plant/processData/basicCommunication/addOrEdit.vue View File

@ -424,7 +424,7 @@ export default {
},
//
getDetails(){
getDetails(this.item['OPCBasicComInfo-OperationId']).then(({code, data})=>{
getDetails(this.item['OPCBasicComInfo-OperationId'], this.item['OPCBasicComInfo-WorkPlaceNr']).then(({code, data})=>{
if(code==200){
this.formData=data;
}else{


+ 1
- 1
src/views/plant/processData/basicCommunication/index.vue View File

@ -86,7 +86,7 @@ export default {
cancelButtonText: '取消',
type: 'warning'
}).then(function() {
return delParser(item['OPCBasicComInfo-OperationId'])
return delParser(item['OPCBasicComInfo-OperationId'], item['OPCBasicComInfo-WorkPlaceNr'])
}).then(() => {
this.msgSuccess('删除成功')
if(this.tableData.length<=1 && this.queryParams.pageNumber>1){


+ 1
- 1
src/views/plant/processData/openProtocol/addOrEdit.vue View File

@ -341,7 +341,7 @@ export default {
},
//
getTightenwrenchDetail(){
getTightenwrenchDetail(this.item['TightenWrenchInfo-OperationId']).then(({data={}})=>{
getTightenwrenchDetail(this.item['TightenWrenchInfo-OperationId'], this.item['TightenWrenchInfo-WorkPlaceNr']).then(({data={}})=>{
this.item={
...this.item,
tightenWrenchRuleInfoLi:(data['TightenWrenchInfo-TightenWrenchRuleInfoLi'] || []).map(e=>{


+ 1
- 1
src/views/plant/processData/openProtocol/index.vue View File

@ -86,7 +86,7 @@ export default {
cancelButtonText: '取消',
type: 'warning'
}).then(function() {
return delParser(item['TightenWrenchInfo-OperationId'])
return delParser(item['TightenWrenchInfo-OperationId'],item['TightenWrenchInfo-WorkPlaceNr'])
}).then(() => {
this.msgSuccess('删除成功')
if(this.tableData.length<=1 && this.queryParams.pageNumber>1){


Loading…
Cancel
Save