Browse Source

2025-05-31

技术参数卡-工艺信息 操作成功才刷新界面,如果报错了则不刷新界面
master
fengyuan_yang 8 months ago
parent
commit
47d957a8a6
  1. 1
      src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_bom.vue
  2. 1
      src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_demoSlot.vue
  3. 10
      src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_routing.vue

1
src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_bom.vue

@ -469,7 +469,6 @@
}, },
searchTable(type){ searchTable(type){
getOADetailForBM(this.searchData).then(({data}) => { getOADetailForBM(this.searchData).then(({data}) => {
this.spForm.nodeName = data.row.nodeName this.spForm.nodeName = data.row.nodeName
this.spForm.sp = data.row.sp==null?'':data.row.sp this.spForm.sp = data.row.sp==null?'':data.row.sp

1
src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_demoSlot.vue

@ -396,7 +396,6 @@
}) })
}, },
submitData (tempData) { submitData (tempData) {
saveBMPropertiesValue(this.tableData).then(({data}) => { saveBMPropertiesValue(this.tableData).then(({data}) => {
if (data && data.code === 0) { if (data && data.code === 0) {
submitChange(tempData).then(({data}) => { submitChange(tempData).then(({data}) => {

10
src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_routing.vue

@ -1590,9 +1590,6 @@
tsdBasicInformationSearch(this.searchData).then(({data}) => { tsdBasicInformationSearch(this.searchData).then(({data}) => {
if (data.row) { if (data.row) {
this.sheetData = data.row this.sheetData = data.row
window.location.reload();
}else {
} }
}); });
} else { } else {
@ -1609,7 +1606,9 @@
}) })
await submitChange(tempData).then(({data}) => { await submitChange(tempData).then(({data}) => {
if (data && data.code === 0) { if (data && data.code === 0) {
this.searchTable();
// this.searchTable();
// 2025-05-31
window.location.reload();
this.submitModalFlag = false this.submitModalFlag = false
this.$message({message: '操作成功', type: 'success'}) this.$message({message: '操作成功', type: 'success'})
} else { } else {
@ -1618,9 +1617,8 @@
}) })
} }
}) })
}, },
// //
closeItemModel () { closeItemModel () {
this.componentKey = Number( this.componentKey) + 1 this.componentKey = Number( this.componentKey) + 1

Loading…
Cancel
Save