|
@@ -14,7 +14,8 @@
|
|
|
</el-form-item>-->
|
|
|
<el-form-item style="float: right">
|
|
|
当前保养状态:
|
|
|
- <span style="color: #ff4949; margin-right: 16px;">需要</span>
|
|
|
+ <span v-if="requirement" style="color: #ff4949; margin-right: 16px;">需要</span>
|
|
|
+ <span v-else style="color: black; margin-right: 16px;">不需要</span>
|
|
|
<el-button size="small" type="primary" v-if="requirement" @click="showMaintenance">立即处理</el-button>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
@@ -94,12 +95,7 @@
|
|
|
</el-form-item>
|
|
|
<!-- 保养类型为0时 选择保养动作 -->
|
|
|
<el-form-item v-else label="选择动作" prop="action">
|
|
|
- <el-select
|
|
|
- v-model="action.value"
|
|
|
- filterable
|
|
|
- placeholder="请选择动作"
|
|
|
- style="width:202px"
|
|
|
- >
|
|
|
+ <el-select v-model="action.value" filterable placeholder="请选择动作" style="width:202px">
|
|
|
<el-option
|
|
|
v-for="item in action"
|
|
|
:key="item.value"
|
|
@@ -247,6 +243,7 @@ export default {
|
|
|
res => {
|
|
|
if (res.code == "ok") {
|
|
|
this.mouldName = res.data.vo.modelName;
|
|
|
+ this.requirement = res.data.vo.isMaintain == 1;
|
|
|
} else {
|
|
|
this.$message({
|
|
|
message: res.msg,
|
|
@@ -318,7 +315,7 @@ export default {
|
|
|
},
|
|
|
mounted() {
|
|
|
this.mouldId = this.$route.params.id; //传到当前页面的模具编号
|
|
|
- // this.getList();
|
|
|
+ this.getList();
|
|
|
this.getDetail();
|
|
|
}
|
|
|
};
|