whycwx
2021-05-26 8b2251cfba3e89df7b6eda9d678a1cb950032508
绕组试验
4个文件已修改
125 ■■■■ 已修改文件
src/pages/dynamometerMmotor/dynamometerMmotor.vue 13 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/testedMotor/testedMotor.vue 15 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/windingTest/windingTest.vue 70 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/windingTest/windingTestIndex.vue 27 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/dynamometerMmotor/dynamometerMmotor.vue
@@ -75,7 +75,10 @@
            <div class="clear"></div>
        </div>
        <!-- 轴承温度 -->
        <div class="content_bottom" ref="temperature"></div>
        <div class="content_bottom">
            <p class="title_into">定子轴承温度</p>
            <div ref="temperature" class="temperature"></div>
        </div>
    </div>
    <div class="left_Box">
        <!-- <div class="tipTitle">AFE变频驱动柜监控</div> -->
@@ -388,7 +391,7 @@
                    // ratio: 87.3
                },
                { month: "13",value: 60,},{ month: "14",value: 55 },{month: "15",value: 44,}];
            var bkData = [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100];
            var bkData = [300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300];
            var xData = [],
                yData = [];
            var min = 50;
@@ -449,7 +452,7 @@
                            show: false
                        },
                        // min: min,
                        max: 100,
                        max: 300,
                        axisLine: {
                            lineStyle: {
                                // color: 'rgba(255,255,255,0)'
@@ -531,6 +534,10 @@
.batteryrHistoryquery{
    overflow: auto;
}
.temperature{
    width: 100%;
    height: 90%;
}
.echarts-right{
    width: 100%;
    height: 160px;
src/pages/testedMotor/testedMotor.vue
@@ -75,7 +75,10 @@
            <div class="clear"></div>
        </div>
        <!-- 轴承温度 -->
        <div class="content_bottom" ref="temperature"></div>
        <div class="content_bottom">
            <p class="title_into">定子轴承温度</p>
            <div ref="temperature" class="temperature"></div>
        </div>
    </div>
    <div class="left_Box">
        <!-- <div class="tipTitle">AFE变频驱动柜监控</div> -->
@@ -387,7 +390,7 @@
                    // ratio: 87.3
                },
                { month: "13",value: 60,},{ month: "14",value: 55 },{month: "15",value: 44,}];
            var bkData = [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100];
            var bkData = [300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300];
            var xData = [],
                yData = [];
            var min = 50;
@@ -448,7 +451,7 @@
                            show: false
                        },
                        // min: min,
                        max: 100,
                        max: 300,
                        axisLine: {
                            lineStyle: {
                                // color: 'rgba(255,255,255,0)'
@@ -457,7 +460,7 @@
                        axisLabel: {
                            color: '#95a2aa',
                            fontSize: 14,
                            formatter: '{value}%'
                            formatter: '{value}℃'
                        },
                        splitLine: {
                            lineStyle: {
@@ -527,6 +530,10 @@
    width: 100%;
    border-bottom:1px solid #fff;
}
.temperature{
    width: 100%;
    height: 90%;
}
.batteryrHistoryquery{
    overflow: auto;
}
src/pages/windingTest/windingTest.vue
@@ -9,11 +9,11 @@
                <div class="diagram-flush" ref="flush"></div>
        </div> -->
    </div>
    <div class="content_box">
        <div class="content_top">
    <div class="content_box" ref="content_box">
        <div class="content_top" ref="content_top">
            <div v-if="next_status == 1">
                <p class="title_into">标准试验一</p>
                <p class="title_into">2021040901</p>
                <p class="title_into">{{ thisNumber }}</p>
                <p class="title_list">实验步骤①</p>
                <p class="title_list">测量绕组绝缘电阻:使用绝缘电阻测试仪,如各相绕组的始末端均引出时,分别测量各绕组对机壳及绕组相互间的绝缘电阻;</p>
                <p class="title_list">如电机绕组已在电机内部连接仅引出出线端时,测量所有连在一起的绕组对机壳的绝缘电阻。手工测试完成后将结果填入下列表格。</p>
@@ -22,7 +22,7 @@
            </div>
            <div v-if="next_status == 2">
                <p class="title_into">标准试验一</p>
                <p class="title_into">2021040901</p>
                <p class="title_into">{{ thisNumber }}</p>
                <p class="title_list">实验步骤②</p>
                <p class="title_list">测量直流电阻时,可通过微欧计测量各个绕组的冷态直流电阻数值</p><br/>
            </div>
@@ -71,24 +71,25 @@
                </div>
            </div>
        </div>
        <div class="content_cent">
            <el-table :data="tableData" style="width: 100%" max-height="330px" :span-method="objectSpanMethod"><!--:span-method="objectSpanMethod"-->
        <div class="content_cent" ref="content_cent" :style="{height:contCenH + 'px'}">
            <div class="tipTitle02"><i></i><span>已保存试验数据</span><span class="span02">试验编号:{{thisNumber}}</span><div class="clear"></div></div>
            <el-table :data="tableData" style="width: 100%;" :max-height="h +'px'"  :span-method="objectSpanMethod"><!--:span-method="objectSpanMethod"-->
                <el-table-column prop="id" label="ID" align="center"></el-table-column>
                <el-table-column prop="saveTime" label="数据保存时间" width="150" align="center"></el-table-column>
                <el-table-column prop="saveTime" label="数据保存时间" width="160" align="center"></el-table-column>
                <el-table-column prop="experimentId" label="设备SN" width="150" align="center"></el-table-column>
                <el-table-column label="设备类型" align="center">
                <el-table-column label="设备类型" align="center" width="150">
                    <template slot-scope="scope">
                        <div>
                            <span>{{ getBut(scope.row.deviceId) }}</span>
                        </div>
                    </template>
                </el-table-column>
                <el-table-column prop="winding" label="绕组编号" align="center"></el-table-column>
                <el-table-column prop="resistance" :label="next_status==1?'绝缘电阻值(Ω)':'直流电阻值(Ω)'" width="110" align="center"></el-table-column>
                <el-table-column prop="electricCurrent" :label="next_status==1?'电流(μA)':'电流(mA)'" align="center"></el-table-column>
                <el-table-column prop="vol" label="电压(V)" align="center"></el-table-column>
                <el-table-column prop="realName" label="测试人" align="center"></el-table-column>
                <el-table-column label="操作" align="center" fixed="right" width="130">
                <el-table-column prop="winding" label="绕组编号" align="center" width="150"></el-table-column>
                <el-table-column prop="resistance" :label="next_status==1?'绝缘电阻值(Ω)':'直流电阻值(Ω)'" width="150" align="center"></el-table-column>
                <el-table-column prop="electricCurrent" :label="next_status==1?'电流(μA)':'电流(mA)'" width="150" align="center"></el-table-column>
                <el-table-column prop="vol" label="电压(V)" align="center" width="150"></el-table-column>
                <el-table-column prop="realName" label="测试人" align="center" width="150"></el-table-column>
                <el-table-column label="操作" align="center" fixed="right" width="150">
                    <template slot-scope="scope">
                        <div>
                            <el-button type="error" size="mini" @click="handleDel(scope.row)">删除</el-button>
@@ -109,6 +110,8 @@
export default {
    data(){
        return {
            h:300,
            contCenH:300,
            routeObj:{},
            seveStatus:1,//1:未保存  2:已保存
            compileSatus:1,// 1:新增状态 2:编辑状态
@@ -153,8 +156,17 @@
        if(self.routeObj.gxrzljqk){
            self.selsectVal = self.routeObj.gxrzljqk;
        }
        self.getList();
        let contBoxH = self.$refs["content_box"].offsetHeight;
        let contTopH = self.$refs["content_top"].offsetHeight;
            self.contCenH = contBoxH - contTopH;
             this.$nextTick(() => {
                self.h = self.contCenH - 80;
            })
        self.getThisNumber();
    },
    methods: {
        // 获取设备类型
@@ -206,6 +218,7 @@
                saveRZStep().then(res=>{
                    if(res.data.code == 1){
                        self.thisNumber = res.data.data.id;
                        self.getList();
                    }
                })
                
@@ -273,6 +286,7 @@
            let data = {
                    step:self.next_status,
                    rzLink:self.selsectVal,
                    experimentId:self.thisNumber,
                    pageNum:1,
                    pageSize:1000
                }
@@ -445,6 +459,30 @@
.tipTitle{
    margin-top: 10px;
}
.tipTitle02{
    font-size: 14px;
    color: #556df3;
    margin: 10px;
}
.tipTitle02 i{
    display: inline-block;
    width: 10px;
    height: 20px;
    background-color: #ffe329;
    margin-right: 10px;
}
.tipTitle02 span{
    display: inline-block;
    height: 20px;
}
.tipTitle02 i,.tipTitle02 span{
    float: left;
}
.tipTitle02 .span02{
    color: #fff;
    margin-left: 100px;
}
.left_Box,.content_box,.right_box{
    float: left;
    height: 95%;
@@ -493,7 +531,7 @@
    padding: 10px 10px;
}
.content_cent{
    width: 100%;
    /* width: 100%; */
}
.select_st /deep/ .el-input__inner{
    border: none;
src/pages/windingTest/windingTestIndex.vue
@@ -156,19 +156,20 @@
                saveRZStep().then(res=>{
                    if(res.data.code == 1){
                        let testType = getLabel(res.data.data.type, constTestType);
                        this.$alert("当前已开启试验:"+testType+"。如需要进行其他试验需先关闭此试验。", '系统提示', {
                            callback:()=>{
                                if(res.data.data.type == "rz"){
                                    this.$router.push({
                                        path: '/index/windingTest'
                                    })
                                }else{
                                    this.$router.push({
                                        path: '/index/testManager/testing',
                                    })
                                }
                            }
                        });
                        if(res.data.data.type == "rz"){
                                this.$router.push({
                                    path: '/index/windingTest'
                                })
                            }else{
                                this.$alert("当前已开启试验:"+testType+"。如需要进行其他试验需先关闭此试验。", '系统提示', {
                                    callback:()=>{
                                            this.$router.push({
                                                path: '/index/testManager/testing',
                                            })
                                    }
                                });
                            }
                    }else if(res.data.code == -1){
                        self.getItemName();
                        self.dialogVisible = true;