|
@@ -1,22 +1,213 @@
|
|
<template>
|
|
<template>
|
|
|
|
+ <div>
|
|
|
|
+ <!-- 头 -->
|
|
<div>
|
|
<div>
|
|
- <div>
|
|
|
|
- <el-button icon="el-icon-back" size="small" type="primary" @click="$router.back()">返回</el-button>
|
|
|
|
- <el-button icon="el-icon-refresh" size="small" type="primary">重新诊断</el-button>
|
|
|
|
- <el-button icon="el-icon-document" size="small" type="primary">诊断结果</el-button>
|
|
|
|
- </div>
|
|
|
|
-
|
|
|
|
|
|
+ <el-button
|
|
|
|
+ icon="el-icon-back"
|
|
|
|
+ size="small"
|
|
|
|
+ type="primary"
|
|
|
|
+ @click="$router.back()"
|
|
|
|
+ >返回</el-button
|
|
|
|
+ >
|
|
|
|
+ <el-button icon="el-icon-refresh" size="small" type="primary"
|
|
|
|
+ >重新诊断</el-button
|
|
|
|
+ >
|
|
|
|
+ <el-button icon="el-icon-document" size="small" type="primary"
|
|
|
|
+ >诊断结果</el-button
|
|
|
|
+ >
|
|
</div>
|
|
</div>
|
|
|
|
+
|
|
|
|
+ <el-row :gutter="20" class="mt-5 panel-box">
|
|
|
|
+ <el-col :span="8">
|
|
|
|
+ <el-card class="box-card">
|
|
|
|
+ <div slot="header" class="clearfix">
|
|
|
|
+ <i class="el-icon-warning mr-1"></i>
|
|
|
|
+ <span>基本信息</span>
|
|
|
|
+ </div>
|
|
|
|
+ <el-table :show-header="false" :data="tableData" stripe>
|
|
|
|
+ <el-table-column prop="date" label="日期" width="100px">
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column prop="name" label="姓名" align="left">
|
|
|
|
+ </el-table-column>
|
|
|
|
+ </el-table>
|
|
|
|
+ </el-card>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="8">
|
|
|
|
+ <el-card class="box-card">
|
|
|
|
+ <div slot="header" class="clearfix">
|
|
|
|
+ <i class="el-icon-warning mr-1"></i>
|
|
|
|
+ <span>故障诊断</span>
|
|
|
|
+ </div>
|
|
|
|
+ <el-tag type="danger">1.工作状态:参数不正确</el-tag>
|
|
|
|
+ </el-card>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="8">
|
|
|
|
+ <el-card class="box-card">
|
|
|
|
+ <div slot="header" class="clearfix">
|
|
|
|
+ <i class="el-icon-picture mr-1"></i>
|
|
|
|
+ <span>现场影音</span>
|
|
|
|
+ </div>
|
|
|
|
+ <el-empty description="没有上传影音文件"></el-empty>
|
|
|
|
+ </el-card>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-row>
|
|
|
|
+
|
|
|
|
+ <el-row :gutter="20" class="mt-5">
|
|
|
|
+ <el-col :span="5">
|
|
|
|
+ <el-card>
|
|
|
|
+ <el-tree
|
|
|
|
+ default-expand-all
|
|
|
|
+ :data="data"
|
|
|
|
+ :props="defaultProps"
|
|
|
|
+ ></el-tree>
|
|
|
|
+ </el-card>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="19">
|
|
|
|
+ <el-tabs v-model="activeName" type="card" @tab-click="handleClick">
|
|
|
|
+ <el-tab-pane label="参数状态" name="1">
|
|
|
|
+ <LeeTable :tableData="tableData" :tableTitle="tableTitle">
|
|
|
|
+ <el-table-column align="center" slot="status" label="状态">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <i class="el-icon-success" style="color:#24d500;font-size: 20px;" ></i>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+
|
|
|
|
+ <el-table-column align="center" type="index" slot="index" label="序号" width="70">
|
|
|
|
+ </el-table-column>
|
|
|
|
+ </LeeTable>
|
|
|
|
+ </el-tab-pane>
|
|
|
|
+ </el-tabs>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-row>
|
|
|
|
+ </div>
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
export default {
|
|
export default {
|
|
- name: 'faultDetail',
|
|
|
|
- data() {
|
|
|
|
- return {
|
|
|
|
|
|
+ name: "faultDetail",
|
|
|
|
+ data() {
|
|
|
|
+ return {
|
|
|
|
+ tableData: [
|
|
|
|
+ {
|
|
|
|
+ date: "捣蛋编号 :",
|
|
|
|
+ name: "123",
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ date: "数据编号 :",
|
|
|
|
+ name: "20110606",
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ date: "测试项目 :",
|
|
|
|
+ name: "发射",
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ date: "数据类型 :",
|
|
|
|
+ name: "测试报告",
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ date: "数据编号 :",
|
|
|
|
+ name: "20110606",
|
|
|
|
+ },
|
|
|
|
+ ],
|
|
|
|
+ activeName: "1",
|
|
|
|
+
|
|
|
|
+ data: [
|
|
|
|
+ {
|
|
|
|
+ label: "一级 1",
|
|
|
|
+ children: [
|
|
|
|
+ {
|
|
|
|
+ label: "二级 1-1",
|
|
|
|
+ children: [
|
|
|
|
+ {
|
|
|
|
+ label: "三级 1-1-1",
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: "三级 1-1-2",
|
|
|
|
+ },
|
|
|
|
+ ],
|
|
|
|
+ },
|
|
|
|
+ ],
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: "一级 2",
|
|
|
|
+ children: [
|
|
|
|
+ {
|
|
|
|
+ label: "二级 2-1",
|
|
|
|
+ children: [
|
|
|
|
+ {
|
|
|
|
+ label: "三级 2-1-1",
|
|
|
|
+ },
|
|
|
|
+ ],
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: "二级 2-2",
|
|
|
|
+ children: [
|
|
|
|
+ {
|
|
|
|
+ label: "三级 2-2-1",
|
|
|
|
+ },
|
|
|
|
+ ],
|
|
|
|
+ },
|
|
|
|
+ ],
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: "一级 3",
|
|
|
|
+ children: [
|
|
|
|
+ {
|
|
|
|
+ label: "二级 3-1",
|
|
|
|
+ children: [
|
|
|
|
+ {
|
|
|
|
+ label: "三级 3-1-1",
|
|
|
|
+ },
|
|
|
|
+ ],
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: "二级 3-2",
|
|
|
|
+ children: [
|
|
|
|
+ {
|
|
|
|
+ label: "三级 3-2-1",
|
|
|
|
+ },
|
|
|
|
+ ],
|
|
|
|
+ },
|
|
|
|
+ ],
|
|
|
|
+ },
|
|
|
|
+ ],
|
|
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ defaultProps: {
|
|
|
|
+ children: "children",
|
|
|
|
+ label: "label",
|
|
|
|
+ },
|
|
|
|
+ tableTitle: [
|
|
|
|
+ { slot: "status" },
|
|
|
|
+ { slot:'index' },
|
|
|
|
+ { label: "参数名称", property: "name" },
|
|
|
|
+ { label: "测试子项", property: "date" },
|
|
|
|
+ { label: "测试项", property: "date" },
|
|
|
|
+ { label: "理论值", property: "date" },
|
|
|
|
+ { label: "实测值", property: "date" },
|
|
|
|
+ { label: "误差", property: "date" },
|
|
|
|
+ ],
|
|
|
|
+ tableData: [],
|
|
|
|
+ };
|
|
|
|
+ },
|
|
|
|
+ mounted() {
|
|
|
|
+ const item = {
|
|
|
|
+ date: "2016-05-02",
|
|
|
|
+ name: "王小虎",
|
|
|
|
+ address: "上海市普陀区金沙江路 1518 弄",
|
|
|
|
+ };
|
|
|
|
+ this.tableData = Array(6).fill(item);
|
|
|
|
+ },
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
<style scoped lang="scss">
|
|
<style scoped lang="scss">
|
|
|
|
+.panel-box {
|
|
|
|
+ ::v-deep .el-tag {
|
|
|
|
+ width: 100%;
|
|
|
|
+ }
|
|
|
|
+ ::v-deep .el-card__body {
|
|
|
|
+ height: 260px !important;
|
|
|
|
+ }
|
|
|
|
+ ::v-deep .el-empty {
|
|
|
|
+ padding: 0 !important;
|
|
|
|
+ }
|
|
|
|
+}
|
|
</style>
|
|
</style>
|