Browse Source

分页逻辑处理

langfang_wms
liwei 3 years ago
parent
commit
b9e5867646
10 changed files with 20 additions and 20 deletions
  1. +2
    -2
      src/views/plant/material/commonSpecialParts/index.vue
  2. +2
    -2
      src/views/plant/material/partRelationship/index.vue
  3. +2
    -2
      src/views/plant/material/partVerificationRules/index.vue
  4. +2
    -2
      src/views/plant/processData/basicCommunication/index.vue
  5. +2
    -2
      src/views/plant/processData/communicationRules/index.vue
  6. +2
    -2
      src/views/plant/processData/mappingRules/index.vue
  7. +2
    -2
      src/views/plant/processData/openProtocol/index.vue
  8. +2
    -2
      src/views/plant/processData/operationType/index.vue
  9. +2
    -2
      src/views/plant/processData/technology/index.vue
  10. +2
    -2
      src/views/plant/resource/operationDefinition/index.vue

+ 2
- 2
src/views/plant/material/commonSpecialParts/index.vue View File

@ -87,8 +87,8 @@ export default {
return delParser(item['ArtQtyAllocate-AttriCode'], item['ArtQtyAllocate-WorkLineId'], item['ArtQtyAllocate-SubObject'])
}).then(() => {
this.msgSuccess('删除成功')
if(this.tableData.length<=1 && this.queryParams.pageSize>1){
this.queryParams.pageSize -=1;
if(this.tableData.length<=1 && this.queryParams.pageNumber>1){
this.queryParams.pageNumber -=1;
}
this.getTableList();
}).catch(function() {})


+ 2
- 2
src/views/plant/material/partRelationship/index.vue View File

@ -81,8 +81,8 @@ export default {
return delParser(item['ArticleRelLst-ArtId'], item['ArticleRelLst-PID'])
}).then(() => {
this.msgSuccess('删除成功')
if(this.tableData.length<=1 && this.queryParams.pageSize>1){
this.queryParams.pageSize -=1;
if(this.tableData.length<=1 && this.queryParams.pageNumber>1){
this.queryParams.pageNumber -=1;
}
this.getTableList();
}).catch(function() {})


+ 2
- 2
src/views/plant/material/partVerificationRules/index.vue View File

@ -99,8 +99,8 @@ export default {
return delParser(item['ArtCheckRule-AttriCode'], item['ArtCheckRule-WorkLineId'], item['ArtCheckRule-SubObject'])
}).then(() => {
this.msgSuccess('删除成功')
if(this.tableData.length<=1 && this.queryParams.pageSize>1){
this.queryParams.pageSize -=1;
if(this.tableData.length<=1 && this.queryParams.pageNumber>1){
this.queryParams.pageNumber -=1;
}
this.getTableList();
}).catch(function() {})


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

@ -89,8 +89,8 @@ export default {
return delParser(item['OPCBasicComInfo-OperationId'])
}).then(() => {
this.msgSuccess('删除成功')
if(this.tableData.length<=1 && this.queryParams.pageSize>1){
this.queryParams.pageSize -=1;
if(this.tableData.length<=1 && this.queryParams.pageNumber>1){
this.queryParams.pageNumber -=1;
}
this.getTableList();
}).catch(function() {})


+ 2
- 2
src/views/plant/processData/communicationRules/index.vue View File

@ -92,8 +92,8 @@ export default {
return delParser(item['OPCComRule-PO'], item['OPCComRule-StepNo'], item['OPCComRule-RuleId'])
}).then(() => {
this.msgSuccess('删除成功')
if(this.tableData.length<=1 && this.queryParams.pageSize>1){
this.queryParams.pageSize -=1;
if(this.tableData.length<=1 && this.queryParams.pageNumber>1){
this.queryParams.pageNumber -=1;
}
this.getTableList();
}).catch(function() {})


+ 2
- 2
src/views/plant/processData/mappingRules/index.vue View File

@ -89,8 +89,8 @@ export default {
return delParser(item['StepType-StepTypeName'])
}).then(() => {
this.msgSuccess('删除成功')
if(this.tableData.length<=1 && this.queryParams.pageSize>1){
this.queryParams.pageSize -=1;
if(this.tableData.length<=1 && this.queryParams.pageNumber>1){
this.queryParams.pageNumber -=1;
}
this.getTableList();
}).catch(function() {})


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

@ -89,8 +89,8 @@ export default {
return delParser(item['TightenWrenchInfo-OperationId'])
}).then(() => {
this.msgSuccess('删除成功')
if(this.tableData.length<=1 && this.queryParams.pageSize>1){
this.queryParams.pageSize -=1;
if(this.tableData.length<=1 && this.queryParams.pageNumber>1){
this.queryParams.pageNumber -=1;
}
this.getTableList();
}).catch(function() {})


+ 2
- 2
src/views/plant/processData/operationType/index.vue View File

@ -77,8 +77,8 @@ export default {
return delParser(item['StepType-StepTypeName'])
}).then(() => {
this.msgSuccess('删除成功')
if(this.tableData.length<=1 && this.queryParams.pageSize>1){
this.queryParams.pageSize -=1;
if(this.tableData.length<=1 && this.queryParams.pageNumber>1){
this.queryParams.pageNumber -=1;
}
this.getTableList();
}).catch(function() {})


+ 2
- 2
src/views/plant/processData/technology/index.vue View File

@ -107,8 +107,8 @@ export default {
return delParser(item['Operation-OperationId'])
}).then(() => {
this.msgSuccess('删除成功')
if(this.tableData.length<=1 && this.queryParams.pageSize>1){
this.queryParams.pageSize -=1;
if(this.tableData.length<=1 && this.queryParams.pageNumber>1){
this.queryParams.pageNumber -=1;
}
this.getTableList();
}).catch(function() {})


+ 2
- 2
src/views/plant/resource/operationDefinition/index.vue View File

@ -191,8 +191,8 @@ export default {
return delParser(item['Process-PO'],item['Process-WorkLineId'])
}).then(() => {
this.msgSuccess('删除成功')
if(this.tableData.length<=1 && this.queryParams.pageSize>1){
this.queryParams.pageSize -=1;
if(this.tableData.length<=1 && this.queryParams.pageNumber>1){
this.queryParams.pageNumber -=1;
}
this.getTableList();
}).catch(function() {


Loading…
Cancel
Save