index.vue 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332
  1. <template>
  2. <div class="container">
  3. <el-col class="main" :span="4">
  4. <el-row justify="space-between">
  5. <text>1、{{ parameter.status }}</text>
  6. <text>2、{{ parameter.NozzleNo }}</text>
  7. </el-row>
  8. <el-row>
  9. <text>油品:{{ parameter.fuelName }}</text>
  10. <text>自锁功能: {{ parameter.alarming }}</text>
  11. <text>ECQS编码: {{ parameter.code }}</text>
  12. </el-row>
  13. </el-col>
  14. <el-col class="top" :span="5">
  15. <el-row>
  16. <text class="title">安全装置</text>
  17. </el-row>
  18. <el-row>
  19. <text>二维码:{{ Data.partDetails.blackBox.qrCode }}</text>
  20. </el-row>
  21. <el-row>
  22. <text>版本:{{ Data.partDetails.blackBox.swv }}</text>
  23. </el-row>
  24. </el-col>
  25. <el-col class="bottom" :span="5">
  26. <el-row>
  27. <text class="title">计量器</text>
  28. </el-row>
  29. <el-row>
  30. <text>序列号:</text>
  31. <text>{{ Data.partDetails.meter.uuid }}</text>
  32. </el-row>
  33. <el-row>
  34. <text>制造商:{{ Data.partDetails.meter.description }}</text>
  35. </el-row>
  36. </el-col>
  37. <el-col class="left-top" :span="5">
  38. <el-row>
  39. <text class="title">计控主板</text>
  40. <text class="statusBox">{{ Data.partDetails.calculatorMainboard.onlineStatus }}</text>
  41. </el-row>
  42. <el-row>
  43. <text>校验ID:{{ Data.partDetails.calculatorMainboard.uuid }}</text>
  44. </el-row>
  45. <el-row>
  46. <text>数字签名:{{ Data.partDetails.calculatorMainboard.signature }}</text>
  47. </el-row>
  48. <el-row>
  49. <text>制造商:{{ Data.partDetails.calculatorMainboard.description }}</text>
  50. </el-row>
  51. <el-row>
  52. <text>程序版本:{{ Data.partDetails.calculatorMainboard.swv }}</text>
  53. </el-row>
  54. <el-row>
  55. <text>法制软件版本:{{ Data.partDetails.calculatorMainboard.Legalswv }}</text>
  56. </el-row>
  57. <el-row>
  58. <text>法制软件标识:{{ Data.partDetails.calculatorMainboard.LegalSwvldentification }}</text>
  59. </el-row>
  60. </el-col>
  61. <el-col class="left-bottom" :span="5">
  62. <el-row>
  63. <text class="title">油气回收控制主板</text>
  64. <text class="statusBox">{{ Data.partDetails.vaporRecoveryControl.onlineStatus }}</text>
  65. </el-row>
  66. <el-row>
  67. <text>校验ID:{{ Data.partDetails.vaporRecoveryControl.uuid }}</text>
  68. </el-row>
  69. <el-row>
  70. <text>数字签名:{{ Data.partDetails.vaporRecoveryControl.signature }}</text>
  71. </el-row>
  72. <el-row>
  73. <text>制造商:{{ Data.partDetails.vaporRecoveryControl.description }}</text>
  74. </el-row>
  75. <el-row>
  76. <text>程序版本:{{ Data.partDetails.vaporRecoveryControl.swv }}</text>
  77. </el-row>
  78. </el-col>
  79. <el-col class="right-top" :span="5">
  80. <el-row>
  81. <text class="title">监控微处理器</text>
  82. <text class="statusBox">{{ 1 }}</text>
  83. </el-row>
  84. <el-row>
  85. <text>校验ID:{{ 2 }}</text>
  86. </el-row>
  87. <el-row>
  88. <text>数字签名:{{ 3 }}</text>
  89. </el-row>
  90. <el-row>
  91. <text>制造商:{{ 4 }}</text>
  92. </el-row>
  93. <el-row>
  94. <text>程序版本:{{ 5 }}</text>
  95. </el-row>
  96. <el-row>
  97. <text>序列号:{{ 6 }}</text>
  98. </el-row>
  99. <el-row>
  100. <text>法制软件版本:{{ 7 }}</text>
  101. </el-row>
  102. <el-row>
  103. <text>法制软件标识:{{ 8 }}</text>
  104. </el-row>
  105. </el-col>
  106. <el-col class="right" :span="5">
  107. <el-row>
  108. <text class="title">编码器</text>
  109. <text class="statusBox">{{ Data.partDetails.encoderControls.onlineStatus }}</text>
  110. </el-row>
  111. <el-row>
  112. <text>校验ID:{{ Data.partDetails.encoderControls.uuid }}</text>
  113. </el-row>
  114. <el-row>
  115. <text>数字签名:{{ Data.partDetails.encoderControls.signature }}</text>
  116. </el-row>
  117. <el-row>
  118. <text>制造商:{{ Data.partDetails.encoderControls.description }}</text>
  119. </el-row>
  120. <el-row>
  121. <text>程序版本:{{ Data.partDetails.encoderControls.swv }}</text>
  122. </el-row>
  123. <el-row>
  124. <text>序列号:{{ Data.partDetails.encoderControls.sn }}</text>
  125. </el-row>
  126. <el-row>
  127. <text>法制软件版本:{{ Data.partDetails.encoderControls.Legalswv }}</text>
  128. </el-row>
  129. <el-row>
  130. <text>法制软件标识:{{ Data.partDetails.encoderControls.LegalSwvldentification }}</text>
  131. </el-row>
  132. </el-col>
  133. <el-col class="right-bottom" :span="5">
  134. <el-row>
  135. <text class="title">加密显示屏</text>
  136. <text class="statusBox">{{ Data.partDetails.displayControls.onlineStatus }}</text>
  137. </el-row>
  138. <el-row>
  139. <text>制造商:{{ Data.partDetails.displayControls.description }}</text>
  140. </el-row>
  141. <el-row>
  142. <text>序列号:{{ Data.partDetails.displayControls.uuid }}</text>
  143. </el-row>
  144. </el-col>
  145. </div>
  146. </template>
  147. <script setup lang="ts" name="">
  148. import { onMounted, reactive, ref } from 'vue';
  149. import { useRoute } from 'vue-router';
  150. import { partsFilterModel } from "/@/api/admin/reportManagement/partInformation/partInformationDto";
  151. import { partInformationApi } from "/@/api/admin/reportManagement/partInformation/partInformationApi";
  152. const router = useRoute()
  153. // 中间内容 - 传值
  154. const parameter = reactive({
  155. name: '',
  156. NozzleNo: '',
  157. status: '',
  158. fuelName: '',
  159. alarming: '',
  160. code: ''
  161. } as any)
  162. parameter.name = router.query.name
  163. parameter.NozzleNo = router.query.NozzleNo
  164. parameter.status = router.query.status
  165. parameter.fuelName = router.query.fuelName
  166. parameter.alarming = router.query.alarming
  167. parameter.code = router.query.code
  168. const Data = reactive({
  169. partDetails: {
  170. calculatorMainboard: {
  171. /**在线状态*/
  172. onlineStatus: '',
  173. /**校验1D*/
  174. uuid: '',
  175. /**数字签名 */
  176. signature: '',
  177. /**制造商*/
  178. description: '',
  179. /**程序版本 */
  180. swv: '',
  181. /**法制软件 */
  182. Legalswv: '',
  183. /**法制软件标识 */
  184. LegalSwvldentification: ''
  185. },
  186. /**编码器 */
  187. encoderControls: {
  188. /**在线状态*/
  189. onlineStatus: '',
  190. /**校验id*/
  191. uuid: '',
  192. /**数字签名 */
  193. signature: '',
  194. /**制造商*/
  195. description: '',
  196. /**程序版本 */
  197. swv: '',
  198. /**序列号 */
  199. sn: '',
  200. /**法制软件 */
  201. Legalswv: '',
  202. /**法制软件标识 */
  203. LegalSwvldentification: ''
  204. },
  205. /**加密显示屏 */
  206. displayControls: {
  207. /**在线状态*/
  208. onlineStatus: '',
  209. /**序列号*/
  210. uuid: '',
  211. /**制造商*/
  212. description: ''
  213. },
  214. /**油气回收控制主板 */
  215. vaporRecoveryControl: {
  216. /**在线状态*/
  217. onlineStatus: '',
  218. /**校验id*/
  219. uuid: '',
  220. /**数字签名 */
  221. signature: '',
  222. /**制造商*/
  223. description: '',
  224. /**程序版本 */
  225. swv: ''
  226. },
  227. /**安全装置 */
  228. blackBox: {
  229. /**二维码*/
  230. qrCode: '',
  231. /**版本*/
  232. swv: '',
  233. },
  234. /**计量器 */
  235. meter: {
  236. /**序列号*/
  237. uuid: '',
  238. /**制造商*/
  239. description: ''
  240. },
  241. } as partsFilterModel
  242. })
  243. const init = async () => {
  244. const res: any = await new partInformationApi().getData({ "id": parameter.name })
  245. Data.partDetails = res?.data??{} as partsFilterModel
  246. console.log(Data.partDetails)
  247. }
  248. onMounted(() => {
  249. init()
  250. })
  251. </script>
  252. <style scoped lang="scss">
  253. .container {
  254. height: 100%;
  255. width: 100%;
  256. background-image: url('/@/assets/deviceVision/parts.png');
  257. background-size: 100% 100%;
  258. position: relative;
  259. font-size: 18px;
  260. }
  261. .title {
  262. font-weight: 600;
  263. }
  264. .main {
  265. position: absolute;
  266. top: 40%;
  267. left: 40%;
  268. }
  269. .top {
  270. position: absolute;
  271. top: 8%;
  272. left: 40%;
  273. }
  274. .bottom {
  275. position: absolute;
  276. top: 78%;
  277. left: 40%;
  278. }
  279. .left-top {
  280. position: absolute;
  281. top: 19%;
  282. left: 7%;
  283. }
  284. .left-bottom {
  285. position: absolute;
  286. top: 60%;
  287. left: 7%;
  288. }
  289. .right-top {
  290. position: absolute;
  291. top: 10%;
  292. left: 70%;
  293. }
  294. .right {
  295. position: absolute;
  296. top: 43%;
  297. left: 70%;
  298. }
  299. .right-bottom {
  300. position: absolute;
  301. top: 77%;
  302. left: 70%;
  303. }
  304. .statusBox{
  305. margin-left: 10px;
  306. color:greenyellow
  307. }
  308. .el-row{
  309. margin-bottom: 5px;
  310. }
  311. </style>