rtudetail.vue 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416
  1. <!--
  2. * @Title:
  3. * @Description: 测站基础信息
  4. * @Author: swp
  5. * @Date: 2022-08-24 10:49:21
  6. * @LastEditors:
  7. * @LastEditTime: 2022-08-24 10:49:21
  8. -->
  9. <template>
  10. <basic-container>
  11. <el-form ref="form">
  12. <el-card shadow="hover" style="margin-top: 10px;">
  13. <div slot="header">
  14. <span>测站基本信息</span>
  15. </div>
  16. <!-- <el-row type="flex">
  17. <el-col :span="24"> -->
  18. <el-form-item label="测站名称:" labelWidth="150px">
  19. <div style="color: black;">{{ rtuInfo.rtuName }}</div>
  20. </el-form-item>
  21. <!-- </el-col>
  22. </el-row> -->
  23. <!-- <el-row type="flex">
  24. <el-col :span="24"> -->
  25. <el-form-item label="测站编码:" labelWidth="150px">
  26. <div style="color: black;">{{ rtuInfo.rtuCode }}</div>
  27. </el-form-item>
  28. <!-- </el-col>
  29. </el-row> -->
  30. <!-- <el-row type="flex">
  31. <el-col :span="24"> -->
  32. <el-form-item label="站点类型:" labelWidth="150px">
  33. <label style="color: black;">{{ rtuInfo.rtuKindDesc }}</label>
  34. </el-form-item>
  35. <!-- </el-col>
  36. </el-row> -->
  37. <!-- <el-row type="flex">
  38. <el-col :span="24"> -->
  39. <el-form-item label="通信网络类型:" labelWidth="150px">
  40. <div>
  41. <label v-if="(rtuInfo.isSatellite == 1)" style="color: black;">北斗通信</label>
  42. <label v-else style="color: black;">4G/5G移动网络通信</label>
  43. </div>
  44. </el-form-item>
  45. <!-- </el-col>
  46. </el-row> -->
  47. <!-- <el-row type="flex">
  48. <el-col :span="24"> -->
  49. <el-form-item label="运维单位:" labelWidth="150px">
  50. <div>
  51. <label style="color: black;">{{ rtuInfo.manageCompany }}</label>
  52. </div>
  53. </el-form-item>
  54. <!-- </el-col>
  55. </el-row> -->
  56. </el-card>
  57. <el-card shadow="hover" style="margin-top: 10px;">
  58. <div slot="header">
  59. <span>测站地理位置信息</span>
  60. </div>
  61. <!-- <el-row type="flex">
  62. <el-col :span="24"> -->
  63. <el-form-item label="盟市:" labelWidth="150px">
  64. <div>
  65. <label style="color: black;">{{ rtuInfo.adCity }}</label>
  66. </div>
  67. </el-form-item>
  68. <!-- </el-col>
  69. </el-row> -->
  70. <!-- <el-row type="flex">
  71. <el-col :span="24"> -->
  72. <el-form-item label="旗县区:" labelWidth="150px">
  73. <div>
  74. <label style="color: black;">{{ rtuInfo.adDist }}</label>
  75. </div>
  76. </el-form-item>
  77. <!-- </el-col>
  78. </el-row> -->
  79. <!-- <el-row type="flex">
  80. <el-col :span="24"> -->
  81. <el-form-item label="经纬度:" labelWidth="150px">
  82. <div class="block">
  83. <label style="color: black;">{{ rtuInfo.lng }},{{ rtuInfo.lat }}</label>
  84. </div>
  85. </el-form-item>
  86. <!-- </el-col>
  87. </el-row> -->
  88. <!-- <el-row type="flex">
  89. <el-col :span="24"> -->
  90. <!-- <el-form-item label="纬度:" labelWidth="150px">
  91. <div class="block">
  92. <label style="color: black;">{{ rtuInfo.lat }}</label>
  93. </div>
  94. </el-form-item> -->
  95. <!-- </el-col>
  96. </el-row> -->
  97. <!-- <el-row type="flex">
  98. <el-col :span="24"> -->
  99. <el-form-item label="站点具体位置描述:" labelWidth="150px">
  100. <label style="color: black;">{{ rtuInfo.locationDesc }}</label>
  101. </el-form-item>
  102. <!-- </el-col>
  103. </el-row> -->
  104. </el-card>
  105. <el-card shadow="hover" style="margin-top: 10px;">
  106. <div slot="header">
  107. <span>RTU信息</span>
  108. </div>
  109. <!-- <el-row type="flex">
  110. <el-col :span="24"> -->
  111. <el-form-item label="RTU品牌:" labelWidth="150px">
  112. <div class="block">
  113. <label style="color: black;"> {{ rtuInfo.rtuBrand }}</label>
  114. </div>
  115. </el-form-item>
  116. <!-- </el-col>
  117. </el-row> -->
  118. <!--
  119. <el-row type="flex">
  120. <el-col :span="24"> -->
  121. <el-form-item label="RTU型号:" labelWidth="150px">
  122. <div class="block">
  123. <label style="color: black;">{{ rtuInfo.rtuModel }}</label>
  124. </div>
  125. </el-form-item>
  126. <!-- </el-col>
  127. </el-row> -->
  128. <!-- <el-row type="flex">
  129. <el-col :span="24"> -->
  130. <el-form-item label="RTU更换时间:" labelWidth="150px">
  131. <div class="block">
  132. <label style="color: black;">{{ rtuInfo.rtuReplaceDate }}</label>
  133. </div>
  134. </el-form-item>
  135. <!-- </el-col>
  136. </el-row> -->
  137. <!-- <el-row type="flex">
  138. <el-col :span="24"> -->
  139. <el-form-item label="RTU报送单位:" labelWidth="150px">
  140. <label v-if="rtuInfo.datagramToSheng = 1 && rtuInfo.datagramToShi == 1 && rtuInfo.datagramToQu == 1"
  141. style="color: black;">自治区/盟市/旗县区</label>
  142. <label v-else-if="rtuInfo.datagramToSheng = 1 && rtuInfo.datagramToShi == 1"
  143. style="color: black;">自治区/盟市</label>
  144. <label v-else-if="rtuInfo.datagramToSheng = 1 && rtuInfo.datagramToQu == 1"
  145. style="color: black;">自治区/旗县区</label>
  146. <label v-else-if="rtuInfo.datagramToShi == 1 && rtuInfo.datagramToQu == 1"
  147. style="color: black;">盟市/旗县区</label>
  148. <label v-else-if="rtuInfo.datagramToSheng = 1" style="color: black;">自治区</label>
  149. <label v-else-if="rtuInfo.datagramToShi == 1" style="color: black;">盟市</label>
  150. <label v-else-if="rtuInfo.datagramToQu == 1" style="color: black;">旗县区</label>
  151. </el-form-item>
  152. <!-- </el-col>
  153. </el-row> -->
  154. </el-card>
  155. <el-card v-if="rtuInfo.isRain == 1" shadow="hover" style="margin-top: 10px;">
  156. <div slot="header">
  157. <span>雨量传感器信息</span>
  158. </div>
  159. <!-- <el-row type="flex">
  160. <el-col :span="24"> -->
  161. <el-form-item label="雨量计品牌:" labelWidth="150px">
  162. <div class="block">
  163. <label style="color: black;">{{ rtuInfo.rainSensorBrand }}</label>
  164. </div>
  165. </el-form-item>
  166. <!-- </el-col>
  167. </el-row> -->
  168. <!-- <el-row type="flex">
  169. <el-col :span="24"> -->
  170. <el-form-item label="雨量计型号:" labelWidth="150px">
  171. <div class="block">
  172. <label style="color: black;">{{ rtuInfo.rainSensorModel }}</label>
  173. </div>
  174. </el-form-item>
  175. <!-- </el-col>
  176. </el-row> -->
  177. <!-- <el-row type="flex">
  178. <el-col :span="24"> -->
  179. <el-form-item label="雨量计更换时间:" labelWidth="150px">
  180. <div class="block">
  181. <label style="color: black;">{{ rtuInfo.rainSensorReplaceDate }}</label>
  182. </div>
  183. </el-form-item>
  184. <!-- </el-col>
  185. </el-row> -->
  186. </el-card>
  187. <el-card v-if="(rtuInfo.isRiver == 1 || rtuInfo.isRes == 1)" shadow="hover" style="margin-top: 10px;">
  188. <div slot="header">
  189. <span>水位计传感器信息</span>
  190. </div>
  191. <!-- <el-row type="flex">
  192. <el-col :span="24"> -->
  193. <el-form-item label="水位计传感器类型:" labelWidth="150px">
  194. <div class="block">
  195. <label style="color: black;">{{ rtuInfo.waterSensorTypeText }}</label>
  196. </div>
  197. </el-form-item>
  198. <!-- </el-col>
  199. </el-row> -->
  200. <!-- <el-row type="flex">
  201. <el-col :span="24"> -->
  202. <el-form-item label="水位计品牌:" labelWidth="150px">
  203. <div class="block">
  204. <label style="color: black;">{{ rtuInfo.waterSensorBrand }}</label>
  205. </div>
  206. </el-form-item>
  207. <!-- </el-col>
  208. </el-row> -->
  209. <!-- <el-row type="flex">
  210. <el-col :span="24"> -->
  211. <el-form-item label="水位计型号:" labelWidth="150px">
  212. <div class="block">
  213. <label style="color: black;">{{ rtuInfo.waterSensorModel }}</label>
  214. </div>
  215. </el-form-item>
  216. <!-- </el-col>
  217. </el-row> -->
  218. <!-- <el-row type="flex">
  219. <el-col :span="24"> -->
  220. <el-form-item label="水位计更换时间:" labelWidth="150px">
  221. <div class="block">
  222. <label style="color: black;">{{ rtuInfo.waterSensorReplaceDate }}</label>
  223. </div>
  224. </el-form-item>
  225. <!-- </el-col>
  226. </el-row> -->
  227. </el-card>
  228. <el-card v-if="rtuInfo.isGround == 1" shadow="hover" style="margin-top: 10px;">
  229. <div slot="header">
  230. <span>墒情传感器信息</span>
  231. </div>
  232. <!-- <el-row type="flex">
  233. <el-col :span="24"> -->
  234. <el-form-item label="墒情站传感器类型:" labelWidth="150px">
  235. <div class="block">
  236. <label style="color: black;">{{ rtuInfo.groundSensorTypeText }}</label>
  237. </div>
  238. </el-form-item>
  239. <!-- </el-col>
  240. </el-row> -->
  241. <!-- <el-row type="flex">
  242. <el-col :span="24"> -->
  243. <el-form-item label="墒情传感器品牌:" labelWidth="150px">
  244. <div class="block">
  245. <label style="color: black;">{{ rtuInfo.groundSensorBrand }}</label>
  246. </div>
  247. </el-form-item>
  248. <!-- </el-col>
  249. </el-row> -->
  250. <!-- <el-row type="flex">
  251. <el-col :span="24"> -->
  252. <el-form-item label="墒情传感器型号:" labelWidth="150px">
  253. <div class="block">
  254. <label style="color: black;">{{ rtuInfo.groundSensorModel }}</label>
  255. </div>
  256. </el-form-item>
  257. <!-- </el-col>
  258. </el-row> -->
  259. <!-- <el-row type="flex">
  260. <el-col :span="24"> -->
  261. <el-form-item label="墒情传感器更换时间:" labelWidth="150px">
  262. <div class="block">
  263. <label style="color: black;">{{ rtuInfo.groundSensorReplaceDate }}</label>
  264. </div>
  265. </el-form-item>
  266. <!-- </el-col>
  267. </el-row> -->
  268. </el-card>
  269. <el-card shadow="hover" style="margin-top: 10px;">
  270. <div slot="header">
  271. <span>供电系统信息</span>
  272. </div>
  273. <!-- <el-row type="flex">
  274. <el-col :span="24"> -->
  275. <el-form-item label="蓄电池容量(AH):" labelWidth="150px">
  276. <div class="block">
  277. <label style="color: black;">{{ rtuInfo.batteryModel }}</label>
  278. </div>
  279. </el-form-item>
  280. <!-- </el-col>
  281. </el-row> -->
  282. <!-- <el-row type="flex">
  283. <el-col :span="24"> -->
  284. <el-form-item label="蓄电池更换时间:" labelWidth="150px">
  285. <div class="block">
  286. <label style="color: black;">{{ rtuInfo.batteryReplaceDate }}</label>
  287. </div>
  288. </el-form-item>
  289. <!-- </el-col>
  290. </el-row> -->
  291. <!-- <el-row type="flex">
  292. <el-col :span="24"> -->
  293. <el-form-item label="太阳能板(w):" labelWidth="150px">
  294. <div class="block">
  295. <label style="color: black;">{{ rtuInfo.sunPowerModel }}</label>
  296. </div>
  297. </el-form-item>
  298. <!-- </el-col>
  299. </el-row> -->
  300. </el-card>
  301. <el-card v-if="rtuInfo.isSatellite == 1" shadow="hover" style="margin-top: 10px;">
  302. <div slot="header">
  303. <span>卫星通讯</span>
  304. </div>
  305. <!-- <el-row type="flex">
  306. <el-col :span="24"> -->
  307. <el-form-item label="通讯模式:" labelWidth="150px">
  308. <div class="block">
  309. <label style="color: black;">{{ rtuInfo.satelliteModelText }}</label>
  310. </div>
  311. </el-form-item>
  312. <!-- </el-col>
  313. </el-row> -->
  314. </el-card>
  315. <el-card v-else shadow="hover" style="margin-top: 10px;">
  316. <div slot="header">
  317. <span>SIM卡信息</span>
  318. </div>
  319. <!-- <el-row type="flex">
  320. <el-col :span="24"> -->
  321. <el-form-item label="SIM卡号:" labelWidth="150px">
  322. <div class="block">
  323. <label style="color: black;">{{ rtuInfo.networkSimId }}</label>
  324. </div>
  325. </el-form-item>
  326. <!-- </el-col>
  327. </el-row> -->
  328. <!-- <el-row type="flex">
  329. <el-col :span="24"> -->
  330. <el-form-item label="SIM卡开卡单位:" labelWidth="150px">
  331. <div class="block">
  332. <label style="color: black;">{{ rtuInfo.networkPayer }}</label>
  333. </div>
  334. </el-form-item>
  335. <!-- </el-col>
  336. </el-row> -->
  337. <!-- <el-row type="flex">
  338. <el-col :span="24"> -->
  339. <el-form-item label="SIM卡缴费截止时间:" labelWidth="150px">
  340. <div class="block">
  341. <label style="color: black;">{{ rtuInfo.networkPayEndDate }}</label>
  342. </div>
  343. </el-form-item>
  344. <!-- </el-col>
  345. </el-row> -->
  346. </el-card>
  347. </el-form>
  348. </basic-container>
  349. </template>
  350. <script>
  351. import { getDetail } from "@/api/baseinfo/rtu.js";
  352. export default {
  353. components: {
  354. },
  355. props: {
  356. id: {
  357. type: [Number],
  358. required: true
  359. },
  360. },
  361. name: 'rtudetail',
  362. data() {
  363. return {
  364. activeName: 'base',
  365. query: {},
  366. rtuInfo: [],
  367. }
  368. },
  369. created() {
  370. this.init();
  371. },
  372. methods: {
  373. init() {
  374. this.onLoad();
  375. },
  376. onLoad() {
  377. this.loading = true;
  378. getDetail(this.id).then((res) => {
  379. console.log(JSON.stringify(res.data));
  380. this.rtuInfo = res.data.data;
  381. this.loading = false;
  382. });
  383. },
  384. }
  385. }
  386. </script>
  387. <style></style>