|
@@ -12,23 +12,35 @@
|
|
保养提醒:
|
|
保养提醒:
|
|
<el-switch v-model="prompt" active-color="#ff4949"></el-switch>
|
|
<el-switch v-model="prompt" active-color="#ff4949"></el-switch>
|
|
</el-form-item>-->
|
|
</el-form-item>-->
|
|
- <el-form-item style="float: right">
|
|
|
|
- 当前保养状态:
|
|
|
|
- <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 class="state" style="float: right;">
|
|
|
|
+ 当前状态:
|
|
|
|
+ <span v-if="mouldState == 0">静止</span>
|
|
|
|
+ <span v-else-if="mouldState == 1">运行</span>
|
|
|
|
+ <!-- 因为目前还不知道mouldState的意义 -->
|
|
|
|
+ <span v-else>不明</span>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
</el-col>
|
|
</el-col>
|
|
|
|
+ <!-- v-if="requirement" -->
|
|
|
|
+ <!-- 模具处理 -->
|
|
|
|
+ <el-col :span="24" class="title">模具处理</el-col>
|
|
|
|
+ <el-col :span="12" style="line-height: 32px;">
|
|
|
|
+ 当前保养状态:
|
|
|
|
+ <span v-if="requirement" style="color: #ff4949;">需要</span>
|
|
|
|
+ <span v-else style="color: black;">正常</span>
|
|
|
|
+ <el-button size="small" type="primary" @click="showMaintenance" style="float: right; margin-right: 16px;">立即处理</el-button>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="12" style="line-height: 32px;">
|
|
|
|
+ 云模盒告警:{{warning}}
|
|
|
|
+ <el-button size="small" type="primary" style="float: right;">立即处理</el-button>
|
|
|
|
+ </el-col>
|
|
|
|
|
|
|
|
+ <!-- 操作记录 -->
|
|
|
|
+ <el-col :span="24" class="title">操作记录</el-col>
|
|
<!--列表-->
|
|
<!--列表-->
|
|
- <el-table
|
|
|
|
- :data="records"
|
|
|
|
- highlight-current-row
|
|
|
|
- :height="tableHeight"
|
|
|
|
- v-loading="listLoading"
|
|
|
|
- style="width: 100%;"
|
|
|
|
- >
|
|
|
|
|
|
+ <!-- :height="tableHeight" -->
|
|
|
|
+ <el-table :data="records" highlight-current-row v-loading="listLoading" style="width: 100%;">
|
|
<el-table-column type="index" width="60"></el-table-column>
|
|
<el-table-column type="index" width="60"></el-table-column>
|
|
<el-table-column prop="maintainUserName" label="保养人" width="100" sortable></el-table-column>
|
|
<el-table-column prop="maintainUserName" label="保养人" width="100" sortable></el-table-column>
|
|
<el-table-column prop="maintainType" label="保养方案" sortable></el-table-column>
|
|
<el-table-column prop="maintainType" label="保养方案" sortable></el-table-column>
|
|
@@ -41,7 +53,11 @@
|
|
>
|
|
>
|
|
<!-- 大图加载 -->
|
|
<!-- 大图加载 -->
|
|
<div class="demo-image__preview">
|
|
<div class="demo-image__preview">
|
|
- <el-image style="width: 100px; height: 100px" :src="scope.row.fileUrl" :preview-src-list="scope.row.fileUrl"></el-image>
|
|
|
|
|
|
+ <el-image
|
|
|
|
+ style="width: 100px; height: 100px"
|
|
|
|
+ :src="scope.row.fileUrl"
|
|
|
|
+ :preview-src-list="scope.row.fileUrl"
|
|
|
|
+ ></el-image>
|
|
</div>
|
|
</div>
|
|
</a>
|
|
</a>
|
|
</template>
|
|
</template>
|
|
@@ -146,9 +162,13 @@ export default {
|
|
mouldId: null,
|
|
mouldId: null,
|
|
//模具名字
|
|
//模具名字
|
|
mouldName: null,
|
|
mouldName: null,
|
|
|
|
+ //模具状态
|
|
|
|
+ mouldState: 0,
|
|
options: [{ value: "aaa", label: "123" }, { value: "bbb", label: "456" }],
|
|
options: [{ value: "aaa", label: "123" }, { value: "bbb", label: "456" }],
|
|
//记录
|
|
//记录
|
|
records: [],
|
|
records: [],
|
|
|
|
+ //警告信息
|
|
|
|
+ warning: "低电量、过热",
|
|
//标题栏过滤器
|
|
//标题栏过滤器
|
|
filters: {
|
|
filters: {
|
|
name: "",
|
|
name: "",
|
|
@@ -257,6 +277,7 @@ export default {
|
|
res => {
|
|
res => {
|
|
if (res.code == "ok") {
|
|
if (res.code == "ok") {
|
|
this.mouldName = res.data.vo.modelName;
|
|
this.mouldName = res.data.vo.modelName;
|
|
|
|
+ this.mouldState = res.data.vo.state;
|
|
this.requirement = res.data.vo.isMaintain == 1;
|
|
this.requirement = res.data.vo.isMaintain == 1;
|
|
} else {
|
|
} else {
|
|
this.$message({
|
|
this.$message({
|
|
@@ -326,8 +347,8 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
- let height = window.innerHeight;
|
|
|
|
- this.tableHeight = height - 260;
|
|
|
|
|
|
+ // let height = window.innerHeight;
|
|
|
|
+ // this.tableHeight = height - 260;
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
this.mouldId = this.$route.params.id; //传到当前页面的模具编号
|
|
this.mouldId = this.$route.params.id; //传到当前页面的模具编号
|
|
@@ -338,6 +359,14 @@ export default {
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style scoped>
|
|
<style scoped>
|
|
|
|
+.title {
|
|
|
|
+ padding-left: 10px;
|
|
|
|
+ padding-bottom: 0px;
|
|
|
|
+ margin: 20px 0;
|
|
|
|
+ font-size: 16px;
|
|
|
|
+ line-height: 24px;
|
|
|
|
+ border-left: 1px #20a0ff solid;
|
|
|
|
+}
|
|
.toolbar .el-form-item {
|
|
.toolbar .el-form-item {
|
|
font-size: 14px;
|
|
font-size: 14px;
|
|
vertical-align: middle;
|
|
vertical-align: middle;
|