feat: 新增轧线系统日志、停机和实绩功能模块
- 新增日志、停机和实绩三个功能模块的API接口和页面 - 在计划页面添加完成按钮及相关逻辑 - 更新工艺方案页面,修复ID字段命名问题 - 调整导航栏样式和图标颜色 - 修改代理配置端口为8090 - 更新favicon图标 - 添加package-lock.json文件
This commit is contained in:
@@ -16,8 +16,8 @@
|
||||
|
||||
<!-- 列表 -->
|
||||
<div class="recipe-list">
|
||||
<div v-for="r in recipeList" :key="r.id"
|
||||
:class="['recipe-item', { active: selectedId === r.id }]"
|
||||
<div v-for="r in recipeList" :key="r.recipeId"
|
||||
:class="['recipe-item', { active: selectedId === r.recipeId }]"
|
||||
@click="handleSelect(r)">
|
||||
<div class="recipe-item__no">{{ r.recipeNo }}</div>
|
||||
<div class="recipe-item__info">
|
||||
@@ -32,7 +32,7 @@
|
||||
|
||||
<!-- 右侧:方案详情 -->
|
||||
<div class="right-panel">
|
||||
<div v-if="!form.id && !isNew" class="no-select">
|
||||
<div v-if="!form.recipeId && !isNew" class="no-select">
|
||||
<i class="el-icon-document"></i>
|
||||
<p>请在左侧选择工艺方案</p>
|
||||
</div>
|
||||
@@ -205,9 +205,9 @@ export default {
|
||||
})
|
||||
},
|
||||
handleSelect(r) {
|
||||
this.selectedId = r.id
|
||||
this.selectedId = r.recipeId
|
||||
this.isNew = false
|
||||
getRecipeDetail(r.id).then(res => {
|
||||
getRecipeDetail(r.recipeId).then(res => {
|
||||
this.form = { ...res.data }
|
||||
this.passList = res.data.passList || []
|
||||
})
|
||||
@@ -237,7 +237,7 @@ export default {
|
||||
},
|
||||
handleDelete() {
|
||||
this.$confirm('确定删除该方案?', '提示', { type: 'warning' }).then(() => {
|
||||
delRecipe([this.form.id]).then(() => {
|
||||
delRecipe([this.form.recipeId]).then(() => {
|
||||
this.$message.success('删除成功')
|
||||
this.form = emptyForm(); this.passList = []
|
||||
this.selectedId = null; this.isNew = false
|
||||
|
||||
Reference in New Issue
Block a user