+
开始生产
@@ -247,7 +252,7 @@ import {
smartBridgeSectionDelete,
smartBridgeSectionPage,
smartBridgeSectionList,
- smartBeamFieldBeamStart, // 开始生产
+ smartBeamFieldBeamStart // 开始生产
} from '@/assets/js/api/smartBeamField.js'
import beamDetail from '@/views/projectFront/smartBeamField/beam-detail.vue'
export default {
@@ -259,7 +264,7 @@ export default {
},
data() {
return {
- beamDetailId: "",
+ beamDetailId: '',
showLeftDialog: false,
showBeamDetail: false,
dateSelect: '',
@@ -406,7 +411,7 @@ export default {
// 桥段搜索
sectionChange(e) {
this.getBridgeSectionList()
- console.log("搜索桥段",e)
+ console.log('搜索桥段', e)
},
// 打开新增桥段弹窗
handle() {
@@ -546,9 +551,13 @@ export default {
this.title = '编辑梁'
this.dialogShow = true
this.addEditForm = JSON.parse(JSON.stringify(obj))
- this.addEditForm.markTime = [obj.plannedMakeBeamBeginTime,obj.plannedMakeBeamEndTime]
- this.addEditForm.erectTime = [obj.plannedErectionBeamBeginTime,obj.plannedErectionBeamEndTime]
- console.log("编辑梁信息",this.addEditForm)
+ // 直接使用下列方式直接赋值,会导致回显无法更改与删除问题
+ // this.addEditForm.markTime = [obj.plannedMakeBeamBeginTime, obj.plannedMakeBeamEndTime]
+ // this.addEditForm.erectTime = [obj.plannedErectionBeamBeginTime, obj.plannedErectionBeamEndTime]
+ // 改为下面的代码就不会出现上述问题
+ this.$set(this.addEditForm, 'markTime', [obj.plannedMakeBeamBeginTime, obj.plannedMakeBeamEndTime])
+ this.$set(this.addEditForm, 'erectTime', [obj.plannedErectionBeamBeginTime, obj.plannedErectionBeamEndTime])
+ console.log('编辑梁信息', this.addEditForm)
},
submit() {
let params = JSON.parse(JSON.stringify(this.addEditForm))
@@ -655,12 +664,12 @@ export default {
let a = document.createElement('a')
console.log(url)
a.href = url
- a.download = item.bridgeName
+ a.download = item.beamNo
a.click()
document.removeChild(a)
}
x.send()
- },
+ }
}
}
diff --git a/src/views/projectFront/smartBeamField/processList.vue b/src/views/projectFront/smartBeamField/processList.vue
index 7bc2be46..df1ff15b 100644
--- a/src/views/projectFront/smartBeamField/processList.vue
+++ b/src/views/projectFront/smartBeamField/processList.vue
@@ -167,8 +167,8 @@ export default {
},
// 删除
toDelete(val) {
- console.log('删除', val)
- this.$confirm('此操作将永久删除该巡检点, 是否继续?', '提示', {
+ // console.log('删除', val)
+ this.$confirm('此操作将永久删除该工序, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
diff --git a/src/views/projectFront/smartBeamField/productManage.vue b/src/views/projectFront/smartBeamField/productManage.vue
index fdc11df7..a4d325c9 100644
--- a/src/views/projectFront/smartBeamField/productManage.vue
+++ b/src/views/projectFront/smartBeamField/productManage.vue
@@ -301,8 +301,8 @@ export default {
},
// 删除
toDelete(val) {
- console.log('删除', val)
- this.$confirm('此操作将永久删除该巡检点, 是否继续?', '提示', {
+ // console.log('删除', val)
+ this.$confirm('此操作将永久删除该生产线, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'