Compare commits

...

10 Commits

Author SHA1 Message Date
2843743858 修改this实例问题 2025-08-21 10:10:50 +08:00
c70f7de7cd 修改this实例问题 2025-08-12 22:18:32 +08:00
e888f0cee7 修改this实例问题 2025-08-11 19:20:05 +08:00
e2ea6b3f4a 修改this实例问题 2025-08-11 19:19:23 +08:00
ba50f358cd Merge remote-tracking branch 'origin/master' 2025-08-11 17:18:39 +08:00
620de4ffce 修改this实例问题 2025-08-11 17:18:25 +08:00
砂糖
c173a51f0a Merge branch 'master' of https://gitee.com/hdka/Industry-ui 2025-08-11 12:57:02 +08:00
砂糖
981c26e78d 🐞 fix: 修复this指向 2025-08-11 11:54:09 +08:00
08eabfda10 修改this实例问题 2025-08-11 11:48:47 +08:00
砂糖
6da197da11 🌈 style: 格式化 2025-08-11 11:21:48 +08:00
9 changed files with 30 additions and 26 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -634,6 +634,7 @@ export default {
if (res.code === 200) {
this.$message('提交成功,请点击轧制完成')
this.dialogVisible = false
this.finalFlag = 0
}
})

View File

@@ -579,7 +579,8 @@ export default {
startProcess() {
let params = {
state: 1
state: 1,
batchId: this.processBatchId
}
materialStart(params).then(res => {
if (res.data === 1) {
@@ -630,6 +631,7 @@ export default {
if (res.code === 200) {
this.$message('提交成功,请点击轧制完成')
this.dialogVisible = false
this.finalFlag = 0
}
})
},
@@ -727,21 +729,17 @@ export default {
mounted() {
// TODO
// clearInterval(this.intervalTime)
// this.getDataList() // 接口方法
//
// this.intervalTime = setInterval(() => {
// this.getFault()
// this.getPLCData()
// this.getDataList() // 接口方法
// }, 2000)
clearInterval(this.intervalTime)
this.intervalTime = setInterval(() => {
this.getFault()
this.getPLCData()
}, 2000)
},
computed: {},
created() {
this.getPLCData()
this.getDataList() // 接口方法
newIP()
this.getFault()
},
beforeDestroy() {

View File

@@ -20,17 +20,21 @@
<td class="hxjx_table_btnColumn" :class="{ table_td_select: index === indexSelect && item.id != null }">
{{ index + 1 }}
</td>
<td class="hxjx_table_btnColumn" :class="{ table_td_select: index === indexSelect && item.id != null }">{{
item.id }}
<td class="hxjx_table_btnColumn" :class="{ table_td_select: index === indexSelect && item.id != null }">
{{
item.id }}
</td>
<td class="hxjx_table_btnColumn" :class="{ table_td_select: index === indexSelect && item.id != null }">{{
item.specification }}
<td class="hxjx_table_btnColumn" :class="{ table_td_select: index === indexSelect && item.id != null }">
{{
item.specification }}
</td>
<td class="hxjx_table_btnColumn" :class="{ table_td_select: index === indexSelect && item.id != null }">{{
item.technology }}
<td class="hxjx_table_btnColumn" :class="{ table_td_select: index === indexSelect && item.id != null }">
{{
item.technology }}
</td>
<td class="hxjx_table_btnColumn" :class="{ table_td_select: index === indexSelect && item.id != null }">{{
item.diameter }}
<td class="hxjx_table_btnColumn" :class="{ table_td_select: index === indexSelect && item.id != null }">
{{
item.diameter }}
</td>
</tr>
</tbody>
@@ -172,7 +176,7 @@
<el-button style="margin-left: 20px;" @click="clear">初始化
</el-button>
<el-button style="margin-left: 20px;" type="danger" @click="removeMaterial" :disabled="indexSelect !== 0">删除物料
<el-button style="margin-left: 20px;" type="danger" @click="removeMaterial" :disabled="indexSelect === 0">删除物料
</el-button>
</div>
@@ -190,7 +194,7 @@
<tr>
<td class="hxjx_table_label_format hxjx_table_label" style="padding:0.25rem;">时间:</td>
<td class="hxjx_table_label_format hxjx_table_text" style="padding:0.25rem;">{{ messageData.createTime
}}
}}
</td>
<td class="hxjx_table_label_format hxjx_table_text_rule"
style="padding:0.25rem;vertical-align: middle;"></td>
@@ -221,8 +225,6 @@
<a href="#" class="hxjx-button-ensure btn btn-danger btn-sm custom hxjx_foot_btn_custom"
style="margin-right: 0;" @click="ensure">确定</a>
</div>
</td>
</tr>
</table>
@@ -241,7 +243,7 @@ import {
updateResource
} from '@/api/system/resource'
import { getFaultMessage, newIP } from '@/api/system/common'
import { deleteMaterial } from "../../../api/system/material";
import { deleteMaterial } from "@/api/system/material";
export default {
name: 'index',
@@ -291,17 +293,20 @@ export default {
alert('提交失败,检查是否存在物料')
} else if (res.data === 2) {
alert('提交成功,但工艺出现差异,已将差异物料提交异常')
} else if (res.data === 3) {
alert('检测到物料无对应的工艺,不允通过')
}
})
},
removeMaterial() {
let materialId = this.dataList[this.indexSelect].id
if (this.indexSelect === 0) {
return
} else {
this.$modal.confirm('是否确认删除钽靶编号为"' + this.dataList[this.indexSelect].id + '"的数据项?').then(function () {
return deleteMaterial(this.dataList[this.indexSelect].id)
this.$modal.confirm('是否确认删除钽靶编号为"' + materialId + '"的数据项?').then(function () {
return deleteMaterial(materialId)
}).then(() => {
this.getDataList()
this.$modal.msgSuccess("删除成功");