| | |
| | | <template> |
| | | <div class="title"> |
| | | <el-row :gutter="20" style="height:100%"> |
| | | <el-row :gutter="20" style="height:85%"> |
| | | <el-col :span="8"> |
| | | <span style="position: relative; top: 100px;left: 30px;">第ä¸å±</span> |
| | | <span style="position: relative; top: 100px;left: 30px;"> |
| | | <h4>䏿¥¼è®¾å¤çæ§</h4> |
| | | </span> |
| | | <el-row :gutter="20" style="height:1000px"> |
| | | <el-col :span="8"></el-col> |
| | | <el-col :span="8"> |
| | | <div> |
| | | <div v-for="(group, index) in groupedLines(linescopy7)" :key="index"> |
| | | <div class="positionY-group"> |
| | | <LineInfoCopy v-for="(line, lineIndex) in group.lines" :key="lineIndex" |
| | | :equipNo="line.equipNo" :imgType="line.imgType" :positionX="line.positionX" |
| | | :positionY="line.positionY" :condition="line.condition" |
| | | url="api/Equipment/GetLineInfoByNo" /> |
| | | </div> |
| | | </div> |
| | | <div style="margin-top: 118px;"></div> |
| | | <div v-for="(group, index) in groupedLines(linescopy8)" :key="index"> |
| | | <div class="positionY-group"> |
| | | <LineInfoCopy v-for="(line, lineIndex) in group.lines" :key="lineIndex" |
| | | :equipNo="line.equipNo" :imgType="line.imgType" :positionX="line.positionX" |
| | | :positionY="line.positionY" :condition="line.condition" |
| | | url="api/Equipment/GetLineInfoByNo" /> |
| | | </div> |
| | | </div> |
| | | <div style="margin-top: 115px;"></div> |
| | | <div v-for="(group, index) in groupedLines(linescopy9)" :key="index"> |
| | | <div class="positionY-group"> |
| | | <LineInfoCopy v-for="(line, lineIndex) in group.lines" :key="lineIndex" |
| | | :equipNo="line.equipNo" :imgType="line.imgType" :positionX="line.positionX" |
| | | :positionY="line.positionY" :condition="line.condition" |
| | | url="api/Equipment/GetLineInfoByNo" /> |
| | | </div> |
| | | </div> |
| | | <div style="margin-top: 112px;"></div> |
| | | <div v-for="(group, index) in groupedLines(linescopy10)" :key="index"> |
| | | <div class="positionY-group"> |
| | | <LineInfoCopy v-for="(line, lineIndex) in group.lines" :key="lineIndex" |
| | | :equipNo="line.equipNo" :imgType="line.imgType" :positionX="line.positionX" |
| | | :positionY="line.positionY" :condition="line.condition" /> |
| | | </div> |
| | | </div> |
| | | <div style="margin-top: 109px;"></div> |
| | | <div v-for="(group, index) in groupedLines(linescopy11)" :key="index"> |
| | | <div class="positionY-group"> |
| | | <LineInfoCopy v-for="(line, lineIndex) in group.lines" :key="lineIndex" |
| | | :equipNo="line.equipNo" :imgType="line.imgType" :positionX="line.positionX" |
| | | :positionY="line.positionY" :condition="line.condition" /> |
| | | </div> |
| | | </div> |
| | | <div style="margin-top: 107px;"></div> |
| | | <div v-for="(group, index) in groupedLines(linescopy12)" :key="index"> |
| | | <div class="positionY-group"> |
| | | <LineInfoCopy v-for="(line, lineIndex) in group.lines" :key="lineIndex" |
| | | :equipNo="line.equipNo" :imgType="line.imgType" :positionX="line.positionX" |
| | | :positionY="line.positionY" :condition="line.condition" /> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </el-col> |
| | | <el-col :span="8"> |
| | | <div class="line-container"> |
| | | <div class="RGVline"></div> |
| | | <div :class="updateRGVOne()" :style="{ marginTop: RGV01.LevelPoint + 'px' }" ref="childDot" @click="mouseClick">1</div> |
| | | <div :class="updateRGVTwo()" :style="{ marginTop: RGV02.LevelPoint + 'px' }" ref="childDot" @click="mouseClick">2</div> |
| | | <div :class="updateRGVOne()" :style="{ marginTop: RGV01.LevelPoint + 'px' }" |
| | | @click="mouseClickRGVFirst">1</div> |
| | | <div :class="updateRGVTwo()" :style="{ marginTop: 1000 + 'px' }" @click="mouseClickSecond">2 |
| | | </div> |
| | | </div> |
| | | </el-col> |
| | | <el-col :span="8"> |
| | |
| | | <div class="positionY-group"> |
| | | <LineInfoCopy v-for="(line, lineIndex) in group.lines" :key="lineIndex" |
| | | :equipNo="line.equipNo" :imgType="line.imgType" :positionX="line.positionX" |
| | | :positionY="line.positionY" :condition="line.condition" /> |
| | | :positionY="line.positionY" :condition="line.condition" |
| | | url="api/Equipment/GetLineInfoByNo" /> |
| | | </div> |
| | | </div> |
| | | <div style="margin-top: 118px;"></div> |
| | |
| | | <div class="positionY-group"> |
| | | <LineInfoCopy v-for="(line, lineIndex) in group.lines" :key="lineIndex" |
| | | :equipNo="line.equipNo" :imgType="line.imgType" :positionX="line.positionX" |
| | | :positionY="line.positionY" :condition="line.condition" /> |
| | | :positionY="line.positionY" :condition="line.condition" |
| | | url="api/Equipment/GetLineInfoByNo" /> |
| | | </div> |
| | | </div> |
| | | <div style="margin-top: 115px;"></div> |
| | |
| | | <div class="positionY-group"> |
| | | <LineInfoCopy v-for="(line, lineIndex) in group.lines" :key="lineIndex" |
| | | :equipNo="line.equipNo" :imgType="line.imgType" :positionX="line.positionX" |
| | | :positionY="line.positionY" :condition="line.condition" /> |
| | | :positionY="line.positionY" :condition="line.condition" |
| | | url="api/Equipment/GetLineInfoByNo" /> |
| | | </div> |
| | | </div> |
| | | <div style="margin-top: 112px;"></div> |
| | |
| | | </div> |
| | | </div> |
| | | </el-col> |
| | | <!-- <el-col :span="8"> |
| | | <div> |
| | | <div v-for="(group, index) in groupedLines(linescopy3)" :key="index"> |
| | | <div class="positionY-group"> |
| | | <LineInfoCopy v-for="(line, lineIndex) in group.lines" :key="lineIndex" :equipNo="line.equipNo" |
| | | :imgType="line.imgType" :positionX="line.positionX" :positionY="line.positionY" |
| | | url="api/Equipment/GetLineInfoByNo" :condition="line.condition" /> |
| | | </div> |
| | | </div> |
| | | <div style="margin-top: 105px;"></div> |
| | | <div v-for="(group, index) in groupedLines(linescopy3)" :key="index"> |
| | | <div class="positionY-group"> |
| | | <LineInfoCopy v-for="(line, lineIndex) in group.lines" :key="lineIndex" :equipNo="line.equipNo" |
| | | :imgType="line.imgType" :positionX="line.positionX" :positionY="line.positionY" |
| | | url="api/Equipment/GetLineInfoByNo" :condition="line.condition" /> |
| | | </div> |
| | | </div> |
| | | <div style="margin-top: 105px;"></div> |
| | | <div v-for="(group, index) in groupedLines(linescopy3)" :key="index"> |
| | | <div class="positionY-group"> |
| | | <LineInfoCopy v-for="(line, lineIndex) in group.lines" :key="lineIndex" :equipNo="line.equipNo" |
| | | :imgType="line.imgType" :positionX="line.positionX" :positionY="line.positionY" |
| | | url="api/Equipment/GetLineInfoByNo" :condition="line.condition" /> |
| | | </div> |
| | | </div> |
| | | <div style="margin-top: 105px;"></div> |
| | | <div v-for="(group, index) in groupedLines(linescopy3)" :key="index"> |
| | | <div class="positionY-group"> |
| | | <LineInfoCopy v-for="(line, lineIndex) in group.lines" :key="lineIndex" :equipNo="line.equipNo" |
| | | :imgType="line.imgType" :positionX="line.positionX" :positionY="line.positionY" |
| | | url="api/Equipment/GetLineInfoByNo" :condition="line.condition" /> |
| | | </div> |
| | | </div> |
| | | <div style="margin-top: 100px;"></div> |
| | | <div v-for="(group, index) in groupedLines(linescopy3)" :key="index"> |
| | | <div class="positionY-group"> |
| | | <LineInfoCopy v-for="(line, lineIndex) in group.lines" :key="lineIndex" :equipNo="line.equipNo" |
| | | :imgType="line.imgType" :positionX="line.positionX" :positionY="line.positionY" |
| | | url="api/Equipment/GetLineInfoByNo" :condition="line.condition" /> |
| | | </div> |
| | | </div> |
| | | <div style="margin-top: 100px;"></div> |
| | | <div v-for="(group, index) in groupedLines(linescopy3)" :key="index"> |
| | | <div class="positionY-group"> |
| | | <LineInfoCopy v-for="(line, lineIndex) in group.lines" :key="lineIndex" :equipNo="line.equipNo" |
| | | :imgType="line.imgType" :positionX="line.positionX" :positionY="line.positionY" |
| | | url="api/Equipment/GetLineInfoByNo" :condition="line.condition" /> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </el-col> --> |
| | | </el-row> |
| | | <el-row :gutter="20" class="cardWidthrow"> |
| | | <el-col :span="12"> |
| | | <div> |
| | | <span style="position: relative; top: 120px;left: 30px;">第äºå±</span> |
| | | <div v-for="(group, index) in groupedLines(linescopy4)" :key="index"> |
| | | <div class="positionY-group"> |
| | | <LineInfoCopy v-for="(line, lineIndex) in group.lines" :key="lineIndex" :equipNo="line.equipNo" |
| | | :imgType="line.imgType" :positionX="line.positionX" :positionY="line.positionY" |
| | | url="api/Equipment/GetLineInfoByNo" :condition="line.condition" /> |
| | | |
| | | <el-row :gutter="20" style="height:1000px;margin-top:50px;"> |
| | | <span style="position: relative; top: 150px;left: 30px;">第äºå±</span> |
| | | <div> |
| | | <div v-for="(group, index) in groupedLines(linescopy13)" :key="index"> |
| | | <div class="positionY-group"> |
| | | <LineInfo v-for="(line, lineIndex) in group.lines" :key="lineIndex" |
| | | :equipNo="line.equipNo" :imgType="line.imgType" :positionX="line.positionX" |
| | | :positionY="line.positionY" :condition="line.condition" |
| | | url="api/Equipment/GetLineInfoByNo" /> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="line-containerThird"> |
| | | <div class="lineThird"></div> |
| | | <div :class="updateRGVThird()" |
| | | :style="{ transform: `translateX(${RGV03.LevelPoint}px)`, marginTop: '3px' }" |
| | | @click="mouseClickThird">3</div> |
| | | </div> |
| | | <div style="margin-top:180px;margin-right:100px"> |
| | | <div v-for="(group, index) in groupedLines(linescopy14)" :key="index"> |
| | | <div class="positionY-group"> |
| | | <LineInfo v-for="(line, lineIndex) in group.lines" :key="lineIndex" |
| | | :equipNo="line.equipNo" :imgType="line.imgType" :positionX="line.positionX" |
| | | :positionY="line.positionY" :condition="line.condition" |
| | | url="api/Equipment/GetLineInfoByNo" /> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </el-row> |
| | | </div> |
| | | </el-col> |
| | | |
| | | </el-row> |
| | | |
| | | |
| | | </div> |
| | | |
| | | <el-dialog v-model="RGVFirst" title="RGVä¿¡æ¯æ¥ç" :before-close="handleClose"> |
| | | <el-form ref="$form" :model="StackerCrane" label-position="left" label-width="120px" size="medium"> |
| | | <el-row :gutter="20" type="flex" justify="start" align="top" tag="div"> |
| | | <el-col :span="12" :offset="0" :push="0" :pull="0" tag="div"> |
| | | <el-form-item label="设å¤ç¼å·ï¼"> |
| | | <j-el-description :value="RGV01.DeviceName" type="primary" ellipsis></j-el-description> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12" :offset="0" :push="0" :pull="0" tag="div"> |
| | | <el-form-item label="设å¤ç¶æ:"> |
| | | <j-el-description :value="RGV01.Fault" type="primary" ellipsis></j-el-description> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row :gutter="20" type="flex" justify="start" align="top" tag="div"> |
| | | <el-col :span="12" :offset="0" :push="0" :pull="0" tag="div"> |
| | | <el-form-item label="工使¨¡å¼:"> |
| | | <j-el-description :value="RGV01.Automatic" type="primary" ellipsis></j-el-description> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12" :offset="0" :push="0" :pull="0" tag="div"> |
| | | <el-form-item label="ä»»å¡å·ï¼"> |
| | | <j-el-description :value="RGV01.CurrentTaskNum" type="primary" ellipsis></j-el-description> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row :gutter="20" type="flex" justify="start" align="top" tag="div" style="margin-bottom: 10px;"> |
| | | <el-col :span="12" :offset="0" :push="0" :pull="0" tag="div"> |
| | | <el-form-item label="ä½ä¸ç¶æ:"> |
| | | <j-el-description :value="RGV01.Running" type="primary" ellipsis></j-el-description> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12" :offset="0" :push="0" :pull="0" tag="div"> |
| | | <el-form-item label="å½åæ°´å¹³ä½ç½®ï¼"> |
| | | <j-el-description :value="RGV01.LevelPoint" type="primary" ellipsis></j-el-description> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row :gutter="20" type="flex" justify="start" align="top" tag="div" style="margin-bottom: 10px;"> |
| | | <el-col :span="24" :offset="0" :push="0" :pull="0" tag="div"> |
| | | <el-form-item label="æ¥è¦ä¿¡æ¯:"> |
| | | <j-el-description :value="RGV01.Alarm" type="primary" ellipsis></j-el-description> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-divider /> |
| | | <h4 style="margin-bottom: 50px;">æå¨æä½</h4> |
| | | <el-form ref="form" :model="formRGV" label-width="90px"> |
| | | <el-row :gutter="20" type="flex" justify="start" align="top" tag="div"> |
| | | <el-col :span="16" :offset="0" :push="0" :pull="0" tag="div"> |
| | | <el-form-item label="ä»»å¡å½ä»¤" prop="TargetAddress"> |
| | | <el-select size="large" v-model="formRGV.TaskType" placeholder="è¯·éæ©ä»»å¡å½ä»¤"> |
| | | <el-option label="åå®ä½" value="1" /> |
| | | <el-option label="æ¾å®ä½" value="2" /> |
| | | <el-option label="åè´§" value="3" /> |
| | | <el-option label="æ¾è´§" value="4" /> |
| | | <el-option label="åæ¾è´§" value="5" /> |
| | | <el-option label="éå" value="6" /> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row :gutter="20" type="flex" justify="start" align="top" tag="div"> |
| | | <el-col :span="16" :offset="0" :push="0" :pull="0" tag="div"> |
| | | <el-form-item label="åè´§ä½:"> |
| | | <el-input size="large" v-model="formRGV.SourceAddress" style="width: 800px" placeholder="åè´§ä½" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row :gutter="20" type="flex" justify="start" align="top" tag="div"> |
| | | <el-col :span="16" :offset="0" :push="0" :pull="0" tag="div"> |
| | | <el-form-item label="æ¾è´§ä½:"> |
| | | <el-input size="large" v-model="formRGV.TargetAddress" style="width: 800px" placeholder="æ¾è´§ä½" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | </el-form> |
| | | <el-divider /> |
| | | <el-row :gutter="20" type="flex" justify="start" align="top" tag="div"> |
| | | <el-col :span="4" :offset="0" :push="0" :pull="0" tag="div"> |
| | | <el-button type="primary" size="small" plain @click="SendCommand(RGV01.DeviceCode)"> |
| | | <i class="el-icon-check">åéå½ä»¤</i> |
| | | </el-button> |
| | | </el-col> |
| | | <el-col :span="4" :offset="0" :push="0" :pull="0" tag="div"> |
| | | <el-button type="warning" size="small" plain @click="RGVReset(RGV01.DeviceCode)"> |
| | | <i class="el-icon-check">å¤ä½</i> |
| | | </el-button> |
| | | </el-col> |
| | | <el-col :span="4" :offset="0" :push="0" :pull="0" tag="div"> |
| | | <el-button type="danger" size="small" plain @click="RGVemergencyStop(RGV01.DeviceCode)"> |
| | | <i class="el-icon-check">æ¥å</i> |
| | | </el-button> |
| | | </el-col> |
| | | <el-col :span="4" :offset="0" :push="0" :pull="0" tag="div"> |
| | | <el-button type="danger" size="small" plain @click="RGVPause(RGV01.DeviceCode)"> |
| | | <i class="el-icon-check">忢</i> |
| | | </el-button> |
| | | </el-col> |
| | | <el-col :span="4" :offset="0" :push="0" :pull="0" tag="div"> |
| | | <el-button type="danger" size="small" plain @click="RGVCancel(RGV01.DeviceCode)"> |
| | | <i class="el-icon-check">åæ¶ä»»å¡</i> |
| | | </el-button> |
| | | </el-col> |
| | | <el-col :span="4" :offset="0" :push="0" :pull="0" tag="div"> |
| | | <el-button type="danger" size="small" plain @click="RGVInitialize(RGV01.DeviceCode)"> |
| | | <i class="el-icon-check">å·¥ä½åå§å</i> |
| | | </el-button> |
| | | </el-col> |
| | | </el-row> |
| | | </el-form> |
| | | <template #footer> |
| | | <div class="dialog-footer"> |
| | | <el-button @click="RGVFirst = false">åæ¶</el-button> |
| | | <el-button type="primary" @click="RGVFirst = false"> |
| | | 确认 |
| | | </el-button> |
| | | </div> |
| | | </template> |
| | | </el-dialog> |
| | | <el-dialog v-model="RGVSecond" title="RGVä¿¡æ¯æ¥ç" :before-close="handleClose"> |
| | | <el-form ref="$form" :model="StackerCrane" label-position="left" label-width="120px" size="medium"> |
| | | <el-row :gutter="20" type="flex" justify="start" align="top" tag="div"> |
| | | <el-col :span="12" :offset="0" :push="0" :pull="0" tag="div"> |
| | | <el-form-item label="设å¤ç¼å·ï¼"> |
| | | <j-el-description :value="RGV02.DeviceName" type="primary" ellipsis></j-el-description> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12" :offset="0" :push="0" :pull="0" tag="div"> |
| | | <el-form-item label="设å¤ç¶æ:"> |
| | | <j-el-description :value="RGV02.Fault" type="primary" ellipsis></j-el-description> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row :gutter="20" type="flex" justify="start" align="top" tag="div"> |
| | | <el-col :span="12" :offset="0" :push="0" :pull="0" tag="div"> |
| | | <el-form-item label="工使¨¡å¼:"> |
| | | <j-el-description :value="RGV02.Automatic" type="primary" ellipsis></j-el-description> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12" :offset="0" :push="0" :pull="0" tag="div"> |
| | | <el-form-item label="ä»»å¡å·ï¼"> |
| | | <j-el-description :value="RGV02.CurrentTaskNum" type="primary" ellipsis></j-el-description> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row :gutter="20" type="flex" justify="start" align="top" tag="div" style="margin-bottom: 10px;"> |
| | | <el-col :span="12" :offset="0" :push="0" :pull="0" tag="div"> |
| | | <el-form-item label="ä½ä¸ç¶æ:"> |
| | | <j-el-description :value="RGV02.Running" type="primary" ellipsis></j-el-description> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12" :offset="0" :push="0" :pull="0" tag="div"> |
| | | <el-form-item label="å½åæ°´å¹³ä½ç½®ï¼"> |
| | | <j-el-description :value="RGV02.LevelPoint" type="primary" ellipsis></j-el-description> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row :gutter="20" type="flex" justify="start" align="top" tag="div" style="margin-bottom: 10px;"> |
| | | <el-col :span="24" :offset="0" :push="0" :pull="0" tag="div"> |
| | | <el-form-item label="æ¥è¦ä¿¡æ¯:"> |
| | | <j-el-description :value="RGV02.Alarm" type="primary" ellipsis></j-el-description> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-divider /> |
| | | <h4 style="margin-bottom: 50px;">æå¨æä½</h4> |
| | | <el-form ref="form" :model="formRGV" label-width="90px"> |
| | | <el-row :gutter="20" type="flex" justify="start" align="top" tag="div"> |
| | | <el-col :span="16" :offset="0" :push="0" :pull="0" tag="div"> |
| | | <el-form-item label="ä»»å¡å½ä»¤" prop="TargetAddress"> |
| | | <el-select size="large" v-model="formRGV.TaskType" placeholder="è¯·éæ©ä»»å¡å½ä»¤"> |
| | | <el-option label="åå®ä½" value="1" /> |
| | | <el-option label="æ¾å®ä½" value="2" /> |
| | | <el-option label="åè´§" value="3" /> |
| | | <el-option label="æ¾è´§" value="4" /> |
| | | <el-option label="åæ¾è´§" value="5" /> |
| | | <el-option label="éå" value="6" /> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row :gutter="20" type="flex" justify="start" align="top" tag="div"> |
| | | <el-col :span="16" :offset="0" :push="0" :pull="0" tag="div"> |
| | | <el-form-item label="åè´§ä½:"> |
| | | <el-input size="large" v-model="formRGV.SourceAddress" style="width: 800px" placeholder="åè´§ä½" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row :gutter="20" type="flex" justify="start" align="top" tag="div"> |
| | | <el-col :span="16" :offset="0" :push="0" :pull="0" tag="div"> |
| | | <el-form-item label="æ¾è´§ä½:"> |
| | | <el-input size="large" v-model="formRGV.TargetAddress" style="width: 800px" placeholder="æ¾è´§ä½" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | </el-form> |
| | | <el-divider /> |
| | | <el-row :gutter="20" type="flex" justify="start" align="top" tag="div"> |
| | | <el-col :span="4" :offset="0" :push="0" :pull="0" tag="div"> |
| | | <el-button type="primary" size="small" plain @click="SendCommand(RGV02.DeviceCode)"> |
| | | <i class="el-icon-check">åéå½ä»¤</i> |
| | | </el-button> |
| | | </el-col> |
| | | <el-col :span="4" :offset="0" :push="0" :pull="0" tag="div"> |
| | | <el-button type="warning" size="small" plain @click="RGVReset(RGV02.DeviceCode)"> |
| | | <i class="el-icon-check">å¤ä½</i> |
| | | </el-button> |
| | | </el-col> |
| | | <el-col :span="4" :offset="0" :push="0" :pull="0" tag="div"> |
| | | <el-button type="danger" size="small" plain @click="RGVemergencyStop(RGV02.DeviceCode)"> |
| | | <i class="el-icon-check">æ¥å</i> |
| | | </el-button> |
| | | </el-col> |
| | | <el-col :span="4" :offset="0" :push="0" :pull="0" tag="div"> |
| | | <el-button type="danger" size="small" plain @click="RGVPause(RGV02.DeviceCode)"> |
| | | <i class="el-icon-check">忢</i> |
| | | </el-button> |
| | | </el-col> |
| | | <el-col :span="4" :offset="0" :push="0" :pull="0" tag="div"> |
| | | <el-button type="danger" size="small" plain @click="RGVCancel(RGV02.DeviceCode)"> |
| | | <i class="el-icon-check">åæ¶ä»»å¡</i> |
| | | </el-button> |
| | | </el-col> |
| | | <el-col :span="4" :offset="0" :push="0" :pull="0" tag="div"> |
| | | <el-button type="danger" size="small" plain @click="RGVInitialize(RGV02.DeviceCode)"> |
| | | <i class="el-icon-check">å·¥ä½åå§å</i> |
| | | </el-button> |
| | | </el-col> |
| | | </el-row> |
| | | </el-form> |
| | | <template #footer> |
| | | <div class="dialog-footer"> |
| | | <el-button @click="RGVSecond = false">åæ¶</el-button> |
| | | <el-button type="primary" @click="RGVSecond = false"> |
| | | 确认 |
| | | </el-button> |
| | | </div> |
| | | </template> |
| | | </el-dialog> |
| | | <el-dialog v-model="RGVThird" title="RGVä¿¡æ¯æ¥ç" :before-close="handleClose"> |
| | | <el-form ref="$form" :model="StackerCrane" label-position="left" label-width="120px" size="medium"> |
| | | <el-row :gutter="20" type="flex" justify="start" align="top" tag="div"> |
| | | <el-col :span="12" :offset="0" :push="0" :pull="0" tag="div"> |
| | | <el-form-item label="设å¤ç¼å·ï¼"> |
| | | <j-el-description :value="RGV03.DeviceName" type="primary" ellipsis></j-el-description> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12" :offset="0" :push="0" :pull="0" tag="div"> |
| | | <el-form-item label="设å¤ç¶æ:"> |
| | | <j-el-description :value="RGV03.Fault" type="primary" ellipsis></j-el-description> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row :gutter="20" type="flex" justify="start" align="top" tag="div"> |
| | | <el-col :span="12" :offset="0" :push="0" :pull="0" tag="div"> |
| | | <el-form-item label="工使¨¡å¼:"> |
| | | <j-el-description :value="RGV03.Automatic" type="primary" ellipsis></j-el-description> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12" :offset="0" :push="0" :pull="0" tag="div"> |
| | | <el-form-item label="ä»»å¡å·ï¼"> |
| | | <j-el-description :value="RGV03.CurrentTaskNum" type="primary" ellipsis></j-el-description> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row :gutter="20" type="flex" justify="start" align="top" tag="div" style="margin-bottom: 10px;"> |
| | | <el-col :span="12" :offset="0" :push="0" :pull="0" tag="div"> |
| | | <el-form-item label="ä½ä¸ç¶æ:"> |
| | | <j-el-description :value="RGV03.Running" type="primary" ellipsis></j-el-description> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12" :offset="0" :push="0" :pull="0" tag="div"> |
| | | <el-form-item label="å½åæ°´å¹³ä½ç½®ï¼"> |
| | | <j-el-description :value="RGV03.LevelPoint" type="primary" ellipsis></j-el-description> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row :gutter="20" type="flex" justify="start" align="top" tag="div" style="margin-bottom: 10px;"> |
| | | <el-col :span="24" :offset="0" :push="0" :pull="0" tag="div"> |
| | | <el-form-item label="æ¥è¦ä¿¡æ¯:"> |
| | | <j-el-description :value="RGV03.Alarm" type="primary" ellipsis></j-el-description> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-divider /> |
| | | <h4 style="margin-bottom: 50px;">æå¨æä½</h4> |
| | | <el-form ref="form" :model="formRGV" label-width="90px"> |
| | | <el-row :gutter="20" type="flex" justify="start" align="top" tag="div"> |
| | | <el-col :span="16" :offset="0" :push="0" :pull="0" tag="div"> |
| | | <el-form-item label="ä»»å¡å½ä»¤" prop="TargetAddress"> |
| | | <el-select size="large" v-model="formRGV.TaskType" placeholder="è¯·éæ©ä»»å¡å½ä»¤"> |
| | | <el-option label="åå®ä½" value="1" /> |
| | | <el-option label="æ¾å®ä½" value="2" /> |
| | | <el-option label="åè´§" value="3" /> |
| | | <el-option label="æ¾è´§" value="4" /> |
| | | <el-option label="åæ¾è´§" value="5" /> |
| | | <el-option label="éå" value="6" /> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row :gutter="20" type="flex" justify="start" align="top" tag="div"> |
| | | <el-col :span="16" :offset="0" :push="0" :pull="0" tag="div"> |
| | | <el-form-item label="åè´§ä½:"> |
| | | <el-input size="large" v-model="formRGV.SourceAddress" style="width: 800px" placeholder="åè´§ä½" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row :gutter="20" type="flex" justify="start" align="top" tag="div"> |
| | | <el-col :span="16" :offset="0" :push="0" :pull="0" tag="div"> |
| | | <el-form-item label="æ¾è´§ä½:"> |
| | | <el-input size="large" v-model="formRGV.TargetAddress" style="width: 800px" placeholder="æ¾è´§ä½" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | </el-form> |
| | | <el-divider /> |
| | | <el-row :gutter="20" type="flex" justify="start" align="top" tag="div"> |
| | | <el-col :span="4" :offset="0" :push="0" :pull="0" tag="div"> |
| | | <el-button type="primary" size="small" plain @click="SendCommand(RGV03.DeviceCode)"> |
| | | <i class="el-icon-check">åéå½ä»¤</i> |
| | | </el-button> |
| | | </el-col> |
| | | <el-col :span="4" :offset="0" :push="0" :pull="0" tag="div"> |
| | | <el-button type="warning" size="small" plain @click="RGVReset(RGV03.DeviceCode)"> |
| | | <i class="el-icon-check">å¤ä½</i> |
| | | </el-button> |
| | | </el-col> |
| | | <el-col :span="4" :offset="0" :push="0" :pull="0" tag="div"> |
| | | <el-button type="danger" size="small" plain @click="RGVemergencyStop(RGV03.DeviceCode)"> |
| | | <i class="el-icon-check">æ¥å</i> |
| | | </el-button> |
| | | </el-col> |
| | | <el-col :span="4" :offset="0" :push="0" :pull="0" tag="div"> |
| | | <el-button type="danger" size="small" plain @click="RGVPause(RGV03.DeviceCode)"> |
| | | <i class="el-icon-check">忢</i> |
| | | </el-button> |
| | | </el-col> |
| | | <el-col :span="4" :offset="0" :push="0" :pull="0" tag="div"> |
| | | <el-button type="danger" size="small" plain @click="RGVCancel(RGV03.DeviceCode)"> |
| | | <i class="el-icon-check">åæ¶ä»»å¡</i> |
| | | </el-button> |
| | | </el-col> |
| | | <el-col :span="4" :offset="0" :push="0" :pull="0" tag="div"> |
| | | <el-button type="danger" size="small" plain @click="RGVInitialize(RGV03.DeviceCode)"> |
| | | <i class="el-icon-check">å·¥ä½åå§å</i> |
| | | </el-button> |
| | | </el-col> |
| | | </el-row> |
| | | </el-form> |
| | | <template #footer> |
| | | <div class="dialog-footer"> |
| | | <el-button @click="RGVThird = false">åæ¶</el-button> |
| | | <el-button type="primary" @click="RGVThird = false"> |
| | | 确认 |
| | | </el-button> |
| | | </div> |
| | | </template> |
| | | </el-dialog> |
| | | </template> |
| | | |
| | | <script> |
| | | import { onMounted, ref, reactive } from "vue"; |
| | | // import StackerInfo from "./StackerInfo.vue"; |
| | | // import LineInfo from "./LineInfo.vue"; |
| | | import LineInfo from "./LineInfo.vue"; |
| | | import LineInfoCopy from "./LineInfocopy.vue"; |
| | | import LineComponent from './LineComponent.vue'; |
| | | import eventBus from "../uitils/eventBus"; |
| | | |
| | | import JElDescription from "./JElDescription"; |
| | | |
| | | export default { |
| | | data() { |
| | |
| | | condition: false, |
| | | }, |
| | | ], |
| | | linescopy7: [ |
| | | { |
| | | equipNo: "1001", |
| | | imgType: "1", |
| | | positionX: 5, |
| | | positionY: 8, |
| | | condition: false, |
| | | }, |
| | | { |
| | | equipNo: "1002", |
| | | imgType: "1", |
| | | positionX: 5, |
| | | positionY: 8, |
| | | condition: false, |
| | | }, |
| | | |
| | | { |
| | | equipNo: "1003", |
| | | imgType: "1", |
| | | positionX: 5, |
| | | positionY: 20, |
| | | condition: false, |
| | | }, |
| | | { |
| | | equipNo: "1004", |
| | | imgType: "1", |
| | | positionX: 5, |
| | | positionY: 20, |
| | | condition: false, |
| | | }, |
| | | ], |
| | | linescopy8: [ |
| | | { |
| | | equipNo: "1039", |
| | | imgType: "1", |
| | | positionX: 6, |
| | | positionY: 8, |
| | | condition: false, |
| | | }, |
| | | { |
| | | equipNo: "1040", |
| | | imgType: "1", |
| | | positionX: 6, |
| | | positionY: 16, |
| | | condition: false, |
| | | }, |
| | | ], |
| | | linescopy9: [ |
| | | { |
| | | equipNo: "1013", |
| | | imgType: "1", |
| | | positionX: 6, |
| | | positionY: 8, |
| | | condition: false, |
| | | }, |
| | | { |
| | | equipNo: "1014", |
| | | imgType: "1", |
| | | positionX: 6, |
| | | positionY: 16, |
| | | condition: false, |
| | | }, |
| | | ], |
| | | linescopy10: [ |
| | | { |
| | | equipNo: "1015", |
| | | imgType: "1", |
| | | positionX: 6, |
| | | positionY: 8, |
| | | condition: false, |
| | | }, |
| | | { |
| | | equipNo: "1016", |
| | | imgType: "1", |
| | | positionX: 6, |
| | | positionY: 16, |
| | | condition: false, |
| | | }, |
| | | ], |
| | | linescopy11: [ |
| | | { |
| | | equipNo: "1027", |
| | | imgType: "1", |
| | | positionX: 6, |
| | | positionY: 8, |
| | | condition: false, |
| | | }, |
| | | { |
| | | equipNo: "1028", |
| | | imgType: "1", |
| | | positionX: 6, |
| | | positionY: 16, |
| | | condition: false, |
| | | }, |
| | | |
| | | ], |
| | | linescopy12: [ |
| | | { |
| | | equipNo: "1029", |
| | | imgType: "1", |
| | | positionX: 6, |
| | | positionY: 8, |
| | | condition: false, |
| | | }, |
| | | { |
| | | equipNo: "1030", |
| | | imgType: "1", |
| | | positionX: 6, |
| | | positionY: 16, |
| | | condition: false, |
| | | }, |
| | | ], |
| | | linescopy13: [ |
| | | { |
| | | equipNo: "3005", |
| | | imgType: "2", |
| | | positionX: 5, |
| | | positionY: 8, |
| | | condition: false, |
| | | }, |
| | | { |
| | | equipNo: "3006", |
| | | imgType: "2", |
| | | positionX: 5, |
| | | positionY: 9, |
| | | condition: false, |
| | | }, |
| | | |
| | | { |
| | | equipNo: "3007", |
| | | imgType: "2", |
| | | positionX: 6, |
| | | positionY: 8, |
| | | condition: false, |
| | | }, |
| | | { |
| | | equipNo: "3008", |
| | | imgType: "2", |
| | | positionX: 6, |
| | | positionY: 9, |
| | | condition: false, |
| | | }, { |
| | | equipNo: "3010", |
| | | imgType: "2", |
| | | positionX: 8, |
| | | positionY: 8, |
| | | condition: false, |
| | | }, |
| | | { |
| | | equipNo: "3009", |
| | | imgType: "2", |
| | | positionX: 8, |
| | | positionY: 9, |
| | | condition: false, |
| | | }, |
| | | { |
| | | equipNo: "3012", |
| | | imgType: "2", |
| | | positionX: 9, |
| | | positionY: 8, |
| | | condition: false, |
| | | }, |
| | | { |
| | | equipNo: "3011", |
| | | imgType: "2", |
| | | positionX: 9, |
| | | positionY: 9, |
| | | condition: false, |
| | | }, |
| | | { |
| | | equipNo: "3014", |
| | | imgType: "2", |
| | | positionX: 11, |
| | | positionY: 8, |
| | | condition: false, |
| | | }, |
| | | { |
| | | equipNo: "3013", |
| | | imgType: "2", |
| | | positionX: 11, |
| | | positionY: 9, |
| | | condition: false, |
| | | }, |
| | | { |
| | | equipNo: "3016", |
| | | imgType: "2", |
| | | positionX: 12, |
| | | positionY: 8, |
| | | condition: false, |
| | | }, |
| | | { |
| | | equipNo: "3015", |
| | | imgType: "2", |
| | | positionX: 12, |
| | | positionY: 9, |
| | | condition: false, |
| | | }, |
| | | { |
| | | equipNo: "3018", |
| | | imgType: "2", |
| | | positionX: 14, |
| | | positionY: 8, |
| | | condition: false, |
| | | }, |
| | | { |
| | | equipNo: "3017", |
| | | imgType: "2", |
| | | positionX: 14, |
| | | positionY: 9, |
| | | condition: false, |
| | | }, |
| | | { |
| | | equipNo: "3020", |
| | | imgType: "2", |
| | | positionX: 15, |
| | | positionY: 8, |
| | | condition: false, |
| | | }, |
| | | { |
| | | equipNo: "3019", |
| | | imgType: "2", |
| | | positionX: 15, |
| | | positionY: 9, |
| | | condition: false, |
| | | }, |
| | | |
| | | { |
| | | equipNo: "3022", |
| | | imgType: "2", |
| | | positionX: 17, |
| | | positionY: 8, |
| | | condition: false, |
| | | }, |
| | | { |
| | | equipNo: "3021", |
| | | imgType: "2", |
| | | positionX: 17, |
| | | positionY: 9, |
| | | condition: false, |
| | | }, |
| | | { |
| | | equipNo: "3024", |
| | | imgType: "2", |
| | | positionX: 18, |
| | | positionY: 8, |
| | | condition: false, |
| | | }, |
| | | { |
| | | equipNo: "3023", |
| | | imgType: "2", |
| | | positionX: 18, |
| | | positionY: 9, |
| | | condition: false, |
| | | }, |
| | | |
| | | { |
| | | equipNo: "3026", |
| | | imgType: "2", |
| | | positionX: 20, |
| | | positionY: 8, |
| | | condition: false, |
| | | }, |
| | | { |
| | | equipNo: "3025", |
| | | imgType: "2", |
| | | positionX: 20, |
| | | positionY: 9, |
| | | condition: false, |
| | | }, |
| | | { |
| | | equipNo: "3028", |
| | | imgType: "2", |
| | | positionX: 21, |
| | | positionY: 8, |
| | | condition: false, |
| | | }, |
| | | { |
| | | equipNo: "3027", |
| | | imgType: "2", |
| | | positionX: 21, |
| | | positionY: 9, |
| | | condition: false, |
| | | }, |
| | | { |
| | | equipNo: "3030", |
| | | imgType: "2", |
| | | positionX: 23, |
| | | positionY: 8, |
| | | condition: false, |
| | | }, |
| | | { |
| | | equipNo: "3029", |
| | | imgType: "2", |
| | | positionX: 23, |
| | | positionY: 9, |
| | | condition: false, |
| | | }, |
| | | { |
| | | equipNo: "3032", |
| | | imgType: "2", |
| | | positionX: 24, |
| | | positionY: 8, |
| | | condition: false, |
| | | }, |
| | | { |
| | | equipNo: "3031", |
| | | imgType: "2", |
| | | positionX: 24, |
| | | positionY: 9, |
| | | condition: false, |
| | | }, |
| | | ], |
| | | linescopy14: [ |
| | | { |
| | | equipNo: "3004", |
| | | imgType: "2", |
| | | positionX: -8, |
| | | positionY: 1, |
| | | condition: false, |
| | | }, |
| | | { |
| | | equipNo: "3002", |
| | | imgType: "2", |
| | | positionX: -6, |
| | | positionY: 1, |
| | | condition: false, |
| | | }, |
| | | { |
| | | equipNo: "3001", |
| | | imgType: "2", |
| | | positionX: -5, |
| | | positionY: 2, |
| | | condition: false, |
| | | }, |
| | | ], |
| | | |
| | | |
| | | StackerCrane: { |
| | | Automatic: "", |
| | | Fault: "", |
| | |
| | | CurrentTaskNum: "", |
| | | Running: "", |
| | | DeviceName: "", |
| | | DeviceCOde: "", |
| | | StackerAlarm: "", |
| | | }, |
| | | RGVFirst: false, |
| | | RGVSecond: false, |
| | | RGVThird: false, |
| | | xValue1: 0, |
| | | xValue2: 0, |
| | | xValue3: 0, |
| | |
| | | xValue6: 0, |
| | | timer1: null, // 宿¶å¨åé |
| | | timer2: null, // 宿¶å¨åé |
| | | RGV01:{ |
| | | RGV01: { |
| | | Automatic: "", |
| | | Fault: "", |
| | | LevelPoint:0, |
| | | LevelPoint: 0, |
| | | CurrentTaskNum: "", |
| | | Running: "", |
| | | DeviceName: "", |
| | | DeviceCode:"RGV01", |
| | | DeviceCode: "RGV01", |
| | | Alarm:"", |
| | | }, |
| | | RGV02:{ |
| | | RGV02: { |
| | | Automatic: "", |
| | | Fault: "", |
| | | LevelPoint:1280, |
| | | LevelPoint: 1280, |
| | | CurrentTaskNum: "", |
| | | Running: "", |
| | | DeviceName: "", |
| | | DeviceCode:"RGV02", |
| | | DeviceCode: "RGV02", |
| | | Alarm:"", |
| | | }, |
| | | RGV03:{ |
| | | RGV03: { |
| | | Automatic: "", |
| | | Fault: "", |
| | | LevelPoint:0, |
| | | LevelPoint: 0, |
| | | CurrentTaskNum: "", |
| | | Running: "", |
| | | DeviceName: "", |
| | | DeviceCode:"", |
| | | DeviceCode: "RGV03", |
| | | Alarm:"", |
| | | }, |
| | | formRGV: { |
| | | TaskType: "", |
| | | SourceAddress: "", |
| | | TargetAddress: "", |
| | | DeviceCode: "", |
| | | }, |
| | | }; |
| | | }, |
| | | components: { |
| | | LineInfoCopy, |
| | | LineInfo, |
| | | LineComponent, |
| | | JElDescription, |
| | | }, |
| | | methods: { |
| | | groupedLines(linescopy) { |
| | |
| | | }); |
| | | return Object.values(groups); |
| | | }, |
| | | updateRGVOne(){ |
| | | if(this.RGV01.Automatic&&!this.RGV01.Fault&&!this.RGV01.Running){ |
| | | return 'dot-Automatic '; |
| | | } |
| | | else if(!this.RGV01.Fault&&this.RGV01.Running){ |
| | | return 'dot-Running '; |
| | | }else if(this.RGV01.Fault){ |
| | | return 'dot-Fault '; |
| | | }else{ |
| | | return 'dot-Fault '; |
| | | } |
| | | updateRGVOne() { |
| | | if (this.RGV01.Automatic == "èæºæ¨¡å¼" && this.RGV01.Fault != "æ
é" && this.RGV01.Running == "å¾
æº") { |
| | | return 'dot-Automatic '; |
| | | } |
| | | else if (this.RGV01.Automatic == "èæºæ¨¡å¼" && this.RGV01.Fault != "æ
é" && this.RGV01.Running == "è¿è¡ä¸") { |
| | | return 'dot-Running '; |
| | | } else if (this.RGV01.Fault == "æ
é") { |
| | | return 'dot-Fault '; |
| | | } else { |
| | | return 'dot-Fault '; |
| | | } |
| | | }, |
| | | updateRGVTwo(){ |
| | | if(this.RGV02.Automatic&&!this.RGV02.Fault&&!this.RGV02.Running){ |
| | | return 'dot-Automatic '; |
| | | } |
| | | else if(!this.RGV02.Fault&&this.RGV02.Running){ |
| | | return 'dot-Running '; |
| | | }else if(this.RGV02.Fault){ |
| | | return 'dot-Fault '; |
| | | }else{ |
| | | return 'dot-Fault '; |
| | | } |
| | | updateRGVTwo() { |
| | | if (this.RGV02.Automatic == "èæºæ¨¡å¼" && this.RGV02.Fault != "æ
é" && this.RGV02.Running == "å¾
æº") { |
| | | return 'dot-Automatic '; |
| | | } |
| | | else if (this.RGV02.Automatic == "èæºæ¨¡å¼" && this.RGV01.Fault != "æ
é" && this.RGV02.Running == "è¿è¡ä¸") { |
| | | return 'dot-Running '; |
| | | } else if (this.RGV02.Fault == "æ
é") { |
| | | return 'dot-Fault '; |
| | | } else { |
| | | return 'dot-Fault '; |
| | | } |
| | | }, |
| | | updateRGV03(){ |
| | | if(this.RGV03.Automatic&&!this.RGV03.Fault&&!this.RGV03.Running){ |
| | | return 'dot-Automatic '; |
| | | } |
| | | else if(!this.RGV03.Fault&&this.RGV03.Running){ |
| | | return 'dot-Running '; |
| | | }else if(this.RGV03.Fault){ |
| | | return 'dot-Fault '; |
| | | }else{ |
| | | return 'dot-Fault '; |
| | | } |
| | | updateRGVThird() { |
| | | if (this.RGV03.Automatic == "èæºæ¨¡å¼" && this.RGV03.Fault != "æ
é" && this.RGV03.Running == "å¾
æº") { |
| | | return 'dot-Automatic '; |
| | | } |
| | | else if (this.RGV03.Automatic == "èæºæ¨¡å¼" && this.RGV03.Fault != "æ
é" && this.RGV03.Running == "è¿è¡ä¸") { |
| | | return 'dot-Running '; |
| | | } else if (this.RGV03.Fault == "æ
é") { |
| | | return 'dot-Fault '; |
| | | } else { |
| | | return 'dot-Fault '; |
| | | } |
| | | }, |
| | | mouseClickRGVFirst() { |
| | | this.fullscreenLoading = true; |
| | | this.RGVFirst = true; |
| | | this.fullscreenLoading = false; |
| | | }, |
| | | mouseClickSecond() { |
| | | this.fullscreenLoading = true; |
| | | this.RGVSecond = true; |
| | | this.fullscreenLoading = false; |
| | | }, |
| | | mouseClickThird() { |
| | | this.fullscreenLoading = true; |
| | | this.RGVThird = true; |
| | | this.fullscreenLoading = false; |
| | | }, |
| | | SendCommand(x) { |
| | | this.fullscreenLoading = true; |
| | | this.formRGV.DeviceCode = x; |
| | | this.http.post("api/DeviceInfo/RGVHandTask", this.formRGV) |
| | | .then((x) => { |
| | | if (!x.status) { |
| | | this.$message.error(x.message); |
| | | } else { |
| | | this.$Message.success(x.message); |
| | | $vue.refresh(); |
| | | } |
| | | }) |
| | | .finally(() => { |
| | | this.fullscreenLoading = false; |
| | | }); |
| | | }, |
| | | RGVReset(x) { |
| | | this.fullscreenLoading = true; |
| | | this.http.post("api/DeviceInfo/RGVReset?DeviceCode=" + x, null, "") |
| | | .then((x) => { |
| | | if (!x.status) { |
| | | this.$message.error(x.message); |
| | | } else { |
| | | this.$Message.success(x.message); |
| | | |
| | | } |
| | | }) |
| | | .finally(() => { |
| | | this.fullscreenLoading = false; |
| | | }); |
| | | }, |
| | | RGVemergencyStop(x) { |
| | | this.fullscreenLoading = true; |
| | | this.http.post("api/DeviceInfo/RGVemergencyStop?DeviceCode=" + x, null, "") |
| | | .then((x) => { |
| | | if (!x.status) { |
| | | this.$message.error(x.message); |
| | | } else { |
| | | this.$Message.success(x.message); |
| | | |
| | | } |
| | | }) |
| | | .finally(() => { |
| | | this.fullscreenLoading = false; |
| | | }); |
| | | }, |
| | | RGVPause(x) { |
| | | this.fullscreenLoading = true; |
| | | this.http.post("api/DeviceInfo/RGVPause?DeviceCode=" + x, null, "") |
| | | .then((x) => { |
| | | if (!x.status) { |
| | | this.$message.error(x.message); |
| | | } else { |
| | | this.$Message.success(x.message); |
| | | } |
| | | }) |
| | | .finally(() => { |
| | | this.fullscreenLoading = false; |
| | | }); |
| | | }, |
| | | RGVCancel(x) { |
| | | this.fullscreenLoading = true; |
| | | this.http.post("api/DeviceInfo/RGVCancel?DeviceCode=" + x, null, "") |
| | | .then((x) => { |
| | | if (!x.status) { |
| | | this.$message.error(x.message); |
| | | } else { |
| | | this.$Message.success(x.message); |
| | | } |
| | | }) |
| | | .finally(() => { |
| | | this.fullscreenLoading = false; |
| | | }); |
| | | }, |
| | | RGVInitialize(x) { |
| | | this.fullscreenLoading = true; |
| | | this.http.post("api/DeviceInfo/RGVInitialize?DeviceCode=" + x, null, "") |
| | | .then((x) => { |
| | | if (!x.status) { |
| | | this.$message.error(x.message); |
| | | } else { |
| | | this.$Message.success(x.message); |
| | | } |
| | | }) |
| | | .finally(() => { |
| | | this.fullscreenLoading = false; |
| | | }); |
| | | }, |
| | | }, |
| | | computed: { |
| | |
| | | }, |
| | | created() { |
| | | eventBus.on('stackerData', eventData => { |
| | | |
| | | |
| | | const stackerComponentsMap = { |
| | | "SC01": 'stacker1', |
| | | "SC02": 'stacker2', |
| | |
| | | }; |
| | | const componentKey = stackerComponentsMap[eventData.data.deviceCode]; |
| | | if (componentKey) { |
| | | this.StackerCrane.Automatic=eventData.data.automatic; |
| | | this.StackerCrane.Fault=eventData.data.fault; |
| | | this.StackerCrane.Running=eventData.data.running; |
| | | this.StackerCrane.CurrentColumn=eventData.data.currentColumn; |
| | | this.StackerCrane.CurrentLayer=eventData.data.currentLayer; |
| | | this.StackerCrane.LevelPoint=eventData.data.levelPoint; |
| | | this.StackerCrane.DeviceName=eventData.data.deviceName; |
| | | this.StackerCrane.Automatic = eventData.data.automatic; |
| | | this.StackerCrane.Fault = eventData.data.fault; |
| | | this.StackerCrane.Running = eventData.data.running; |
| | | this.StackerCrane.CurrentColumn = eventData.data.currentColumn; |
| | | this.StackerCrane.CurrentLayer = eventData.data.currentLayer; |
| | | this.StackerCrane.LevelPoint = eventData.data.levelPoint; |
| | | this.StackerCrane.DeviceName = eventData.data.deviceName; |
| | | this.StackerCrane.DeviceCode = eventData.data.deviceCode; |
| | | this.StackerCrane.StackerAlarm = eventData.data.stackerAlarm; |
| | | |
| | | this.$nextTick(() => { |
| | | this.$refs[componentKey].moveDot(this.StackerCrane); |
| | | }); |
| | | } |
| | | }); |
| | | |
| | | eventBus.on('RGVData', eventData => { |
| | | |
| | | if(eventData.data.deviceCode=="RGV01"){ |
| | | this.RGV01.Automatic=eventData.data.automatic; |
| | | this.RGV01.Fault=eventData.data.fault; |
| | | this.RGV01.Running=eventData.data.running; |
| | | this.RGV01.LevelPoint=eventData.data.levelPoint; |
| | | this.RGV01.DeviceName=eventData.data.deviceName; |
| | | console.log(this.RGV01.LevelPoint) |
| | | }else if(eventData.data.deviceCode=="RGV02"){ |
| | | this.RGV02.Automatic=eventData.data.automatic; |
| | | this.RGV02.Fault=eventData.data.fault; |
| | | this.RGV02.Running=eventData.data.running; |
| | | this.RGV02.LevelPoint=eventData.data.levelPoint; |
| | | this.RGV02.DeviceName=eventData.data.deviceName; |
| | | }else if(eventData.data.deviceCode=="RGV03"){ |
| | | this.RGV03.Automatic=eventData.data.automatic; |
| | | this.RGV03.Fault=eventData.data.fault; |
| | | this.RGV03.Running=eventData.data.running; |
| | | this.RGV03.LevelPoint=eventData.data.levelPoint; |
| | | this.RGV03.DeviceName=eventData.data.deviceName; |
| | | eventBus.on('RGVData', x => { |
| | | |
| | | if (x.data.deviceCode == "RGV01") { |
| | | this.RGV01.Automatic = x.data.automatic == null ? "æ
é" : x.data.automatic; |
| | | this.RGV01.Fault = x.data.fault == null ? "æ
é" : x.data.fault; |
| | | this.RGV01.Running = x.data.running == null ? "æ
é" : x.data.running; |
| | | this.RGV01.LevelPoint = x.data.levelPoint; |
| | | this.RGV01.DeviceName = x.data.deviceName; |
| | | this.RGV01.DeviceCode = x.data.deviceCode; |
| | | this.RGV01.Alarm = x.data.alarm; |
| | | } else if (x.data.deviceCode == "RGV02") { |
| | | this.RGV02.Automatic = x.data.automatic == null ? "æ
é" : x.data.automatic; |
| | | this.RGV02.Fault = x.data.fault == null ? "æ
é" : x.data.fault; |
| | | this.RGV02.Running = x.data.running == null ? "æ
é" : x.data.running; |
| | | this.RGV02.LevelPoint = x.data.levelPoint; |
| | | this.RGV02.DeviceName = x.data.deviceName; |
| | | this.RGV02.Alarm = x.data.alarm; |
| | | } else if (x.data.deviceCode == "RGV03") { |
| | | this.RGV03.Automatic = x.data.automatic == null ? "æ
é" : x.data.automatic; |
| | | this.RGV03.Fault = x.data.fault == null ? "æ
é" : x.data.fault; |
| | | this.RGV03.Running = x.data.running == null ? "æ
é" : x.data.running; |
| | | this.RGV03.LevelPoint = x.data.levelPoint; |
| | | this.RGV03.DeviceName = x.data.deviceName; |
| | | this.RGV03.Alarm = x.data.alarm; |
| | | } |
| | | |
| | | }); |
| | | |
| | | eventBus.on("LineData", eventData => { |
| | | const stationMap = { |
| | | "SC01": this.linescopy1, |
| | | "SC02": this.linescopy2, |
| | | "SC03": this.linescopy3, |
| | | "SC04": this.linescopy4, |
| | | "SC05": this.linescopy5, |
| | | "SC06": this.linescopy6, |
| | | "SC07": this.linescopy7, |
| | | "SC011F": this.linescopy1, |
| | | "SC021F": this.linescopy2, |
| | | "SC031F": this.linescopy3, |
| | | "SC041F": this.linescopy4, |
| | | "SC051F": this.linescopy5, |
| | | "SC061F": this.linescopy6, |
| | | "SC071F": this.linescopy7, |
| | | "SC081F": this.linescopy8, |
| | | "SC091F": this.linescopy9, |
| | | "SC101F": this.linescopy10, |
| | | "SC111F": this.linescopy11, |
| | | "SC121F": this.linescopy12, |
| | | "SC012F": this.linescopy13, |
| | | "SC022F": this.linescopy13, |
| | | "SC032F": this.linescopy13, |
| | | "SC042F": this.linescopy13, |
| | | "SC052F": this.linescopy13, |
| | | "SC062F": this.linescopy13, |
| | | "SC072F": this.linescopy13, |
| | | "SC082F": this.linescopy14, |
| | | }; |
| | | |
| | | var station = eventData.stationChildCode; |
| | |
| | | .cardWidthrow { |
| | | height: 40%; |
| | | width: 100%; |
| | | margin-top: 10px; |
| | | /* margin-top: 10px; */ |
| | | box-shadow: 0 2px 4px rgba(0, 0, 0, .12), 0 0 6px rgba(0, 0, 0, .04); |
| | | } |
| | | |
| | |
| | | color: rgba(0, 195, 255, 0.822); |
| | | margin-bottom: 12px; |
| | | } |
| | | |
| | | .dot-Running { |
| | | position: absolute; |
| | | top: -5px; |
| | | width: 20px; |
| | | position: absolute; |
| | | top: -5px; |
| | | width: 20px; |
| | | height: 20px; |
| | | border-radius: 50%; |
| | | background-color: #409eff; |
| | | transition: transform 0.3s ease; |
| | | display: flex; |
| | | justify-content: center; |
| | | align-items: center; |
| | | font-size: 9px; |
| | | font-weight: bold; |
| | | color: white; |
| | | border-radius: 50%; |
| | | background-color: #409eff; |
| | | transition: transform 0.3s ease; |
| | | display: flex; |
| | | justify-content: center; |
| | | align-items: center; |
| | | font-size: 9px; |
| | | font-weight: bold; |
| | | color: white; |
| | | } |
| | | |
| | | .dot-Automatic { |
| | | position: absolute; |
| | | top: -5px; |
| | | width: 20px; |
| | | position: absolute; |
| | | top: -5px; |
| | | width: 20px; |
| | | height: 20px; |
| | | border-radius: 50%; |
| | | background-color: #0df705; |
| | | transition: transform 0.3s ease; |
| | | display: flex; |
| | | justify-content: center; |
| | | align-items: center; |
| | | font-size: 9px; |
| | | font-weight: bold; |
| | | color: white; |
| | | border-radius: 50%; |
| | | background-color: #0df705; |
| | | transition: transform 0.3s ease; |
| | | display: flex; |
| | | justify-content: center; |
| | | align-items: center; |
| | | font-size: 9px; |
| | | font-weight: bold; |
| | | color: white; |
| | | } |
| | | |
| | | .dot-Fault { |
| | | position: absolute; |
| | | top: -5px; |
| | | width: 20px; |
| | | position: absolute; |
| | | top: -5px; |
| | | width: 20px; |
| | | height: 20px; |
| | | /* right:0px; */ |
| | | border-radius: 50%; |
| | | background-color: #f80410; |
| | | transition: transform 0.3s ease; |
| | | display: flex; |
| | | justify-content: center; |
| | | align-items: center; |
| | | font-size: 9px; |
| | | font-weight: bold; |
| | | color: white; |
| | | border-radius: 50%; |
| | | background-color: #f80410; |
| | | transition: transform 0.3s ease; |
| | | display: flex; |
| | | justify-content: center; |
| | | align-items: center; |
| | | font-size: 9px; |
| | | font-weight: bold; |
| | | color: white; |
| | | } |
| | | |
| | | |
| | |
| | | height: 1280px; |
| | | background-color: #ecf5ff; |
| | | width: 20px; |
| | | top:30px; |
| | | left:200px |
| | | top: 30px; |
| | | left: 200px |
| | | } |
| | | |
| | | .RGVline { |
| | | position: absolute; |
| | | top: 0; |
| | |
| | | height: 2px; |
| | | background-color: #a0cfff; |
| | | } |
| | | |
| | | .line { |
| | | position: absolute; |
| | | top: 0; |
| | |
| | | height: 2px; |
| | | background-color: #a0cfff; |
| | | } |
| | | |
| | | .line-containerThird { |
| | | position: absolute; |
| | | height: 20px; |
| | | background-color: #ecf5ff; |
| | | width: 1330px; |
| | | /* margin-top:180px; */ |
| | | top: 180px; |
| | | |
| | | left: 300px; |
| | | } |
| | | |
| | | .lineThird { |
| | | /* position: absolute; */ |
| | | height: 1px; |
| | | /* margin-top:180px; */ |
| | | background-color: #a0cfff; |
| | | } |
| | | </style> |