SetJC.vue 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362
  1. <template>
  2. <div>
  3. <el-dialog
  4. width="300px"
  5. v-model="dialoglog"
  6. :modal="false"
  7. :close-on-click-modal="false"
  8. :append-to-body="true"
  9. draggable
  10. :fullscreen="false"
  11. :modal-append-to-body="false"
  12. modal-class="summary-dlg"
  13. @close="closeDialog"
  14. class="right log_class bgcolor tianjia asideg asidegbg leftbgimg"
  15. >
  16. <template #header="{ titleId, titleClass }">
  17. <div class="my-header">
  18. <el-image :src="icon" fit="contain"></el-image>
  19. <h4 :id="titleId" :class="titleClass">{{ texttitle }}</h4>
  20. </div>
  21. </template>
  22. <div class="mgstamkuang">
  23. <ul>
  24. <li><span>监测点编号:</span>{{JCinfo.cid}}</li>
  25. <li><span>名称:</span>{{JCinfo.chname}}</li>
  26. <li><span>所在巷道:</span>{{JCinfo.pname}}</li>
  27. </ul>
  28. </div>
  29. <!-- <div class="dialog-footer footer_div l_btn">
  30. <div class="footerbtn flex1">
  31. <div class="borderimg">
  32. <el-button @click=" closeDialog();dialoglog = false">取消</el-button>
  33. </div>
  34. </div>
  35. <div class="footerbtn flex1">
  36. <div class="borderimg">
  37. <el-button @click="textclick(); dialoglog = false"> 确定 </el-button>
  38. </div>
  39. </div>
  40. </div> -->
  41. </el-dialog>
  42. </div>
  43. </template>
  44. <script setup>
  45. import { ref, onMounted, onBeforeUnmount,reactive,onUnmounted } from "vue";
  46. import { RouterView, RouterLink } from "vue-router";
  47. import { request, uploadFile } from "@/utils/request";
  48. import { ElMessage, ElButton, ElDialog, ElSelect } from "element-plus";
  49. import icon from "@/assets/img/icon.png";
  50. import { vtkmodel } from "@/control/vtkModel.js";
  51. let emit = defineEmits(['Dtext','close'])
  52. let dialoglog = ref(false);
  53. let texttitle = ref("监测点信息");
  54. let JCinfo=ref({
  55. cid: '',
  56. chname:'',
  57. pname:''
  58. })
  59. let timing = ref(null);
  60. //管道节点选择对象
  61. let selectObj = ref(null);
  62. const closeDialog=()=>{
  63. emit('close');
  64. vtkmodel.selectNoting();
  65. clearInterval(timing.value);
  66. }
  67. onBeforeUnmount(() => {
  68. clearInterval(timing.value);
  69. });
  70. onMounted(() => {
  71. });
  72. onUnmounted(() => {
  73. clearInterval(timing.value);
  74. })
  75. //选择结果定时器
  76. function jgSelect(){
  77. timing.value = setInterval(() => {//定时器
  78. selectObj.value=vtkmodel.selectObj;
  79. // console.log("selectObj信息",selectObj.value)
  80. if(selectObj.value==null){
  81. }else{
  82. JCinfo.value=selectObj.value;
  83. }
  84. }, 200);
  85. }
  86. defineExpose({ dialoglog,jgSelect,closeDialog});
  87. </script>
  88. <style lang="scss" scoped>
  89. .vtk {
  90. position: absolute;
  91. z-index: 150;
  92. top: 70px;
  93. }
  94. .jc_padding .el-table tr {
  95. height: 30px !important;
  96. background: rgba(104, 173, 255, 0.3);
  97. box-shadow: inset 0px 0px 17px 5px rgba(12, 97, 197, 0.2);
  98. border-radius: 0px 0px 0px 0px;
  99. border: 1px solid;
  100. border-image: linear-gradient(180deg, rgba(31, 107, 255, 1), rgba(31, 107, 255, 0.48)) 1
  101. 1;
  102. }
  103. .flex_a {
  104. flex: 1;
  105. padding: 0 19px;
  106. }
  107. .btns {
  108. width: 72px;
  109. height: 30px;
  110. background-image: url(../../assets/img/Rectangle399.png);
  111. background-repeat: no-repeat;
  112. line-height: 30px;
  113. overflow: hidden;
  114. margin: 10px 0;
  115. .spantext {
  116. font-weight: bold;
  117. font-size: 12px;
  118. color: #ffffff;
  119. text-align: left;
  120. font-style: normal;
  121. text-transform: none;
  122. }
  123. }
  124. .header_z {
  125. box-shadow: none !important;
  126. padding: 10px 20px !important;
  127. }
  128. .header_l {
  129. line-height: 10px;
  130. text-align: left;
  131. padding: 0 20px;
  132. border-image: linear-gradient(180deg, rgba(31, 107, 255, 1), rgba(31, 107, 255, 0.48)) 1
  133. 1;
  134. box-shadow: inset 0px 0px 17px 5px rgba(12, 97, 197, 0.2);
  135. border-radius: 0px 0px 0px 0px;
  136. .el-image {
  137. padding: 10px 10px 0 0;
  138. }
  139. h4 {
  140. font-weight: bold;
  141. font-size: 12px;
  142. color: #68adff;
  143. line-height: 14px;
  144. text-align: left;
  145. font-style: normal;
  146. text-transform: none;
  147. }
  148. }
  149. .jc_padding {
  150. padding: 18px 10px;
  151. }
  152. .line {
  153. border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  154. box-sizing: border-box;
  155. }
  156. .L_aside {
  157. .iconimg {
  158. width: 37px;
  159. height: 36px;
  160. margin: 0 7px 0 24px;
  161. }
  162. }
  163. .ddd {
  164. margin-top: 20px;
  165. .ddd_div {
  166. padding: 20px 0;
  167. position: relative;
  168. }
  169. .class_btn {
  170. position: absolute;
  171. right: 0;
  172. top: 21px;
  173. }
  174. .header_l {
  175. line-height: 10px;
  176. text-align: left;
  177. padding: 0 20px;
  178. border-image: linear-gradient(180deg, rgba(31, 107, 255, 1), rgba(31, 107, 255, 0.48))
  179. 1 1;
  180. box-shadow: inset 0px 0px 17px 5px rgba(12, 97, 197, 0.2);
  181. border-radius: 0px 0px 0px 0px;
  182. .el-image {
  183. padding: 10px 10px 0 0;
  184. }
  185. h4 {
  186. font-weight: bold;
  187. font-size: 12px;
  188. color: #68adff;
  189. line-height: 14px;
  190. text-align: left;
  191. font-style: normal;
  192. text-transform: none;
  193. }
  194. }
  195. }
  196. .el-dialog__title {
  197. display: inline-block;
  198. }
  199. .bgcolor {
  200. box-shadow: inset 0px 0px 17px 5px rgba(12, 97, 197, 0.2);
  201. border-radius: 0px 0px 0px 0px;
  202. border: 1px solid;
  203. border-image: linear-gradient(180deg, rgba(31, 107, 255, 1), rgba(31, 107, 255, 0.48)) 1
  204. 1;
  205. }
  206. .log_class {
  207. .my-header {
  208. display: flex;
  209. align-items: center;
  210. line-height: 10px;
  211. height: 40px;
  212. text-align: left;
  213. padding: 0 20px;
  214. border-bottom: 1px solid;
  215. border-image: linear-gradient(180deg, rgba(31, 107, 255, 1), rgba(31, 107, 255, 0.48))
  216. 1 1;
  217. box-shadow: inset 0px 0px 17px 5px rgba(12, 97, 197, 0.2);
  218. border-radius: 0px 0px 0px 0px;
  219. .el-image {
  220. padding: 0px 10px 0 0;
  221. }
  222. h4 {
  223. font-weight: bold;
  224. font-size: 12px;
  225. color: #68adff;
  226. line-height: 14px;
  227. text-align: left;
  228. font-style: normal;
  229. text-transform: none;
  230. // margin-top: 8px;
  231. }
  232. }
  233. .my_content {
  234. width: 100%;
  235. height: 90px;
  236. box-shadow: inset 0px 0px 17px 5px rgba(12, 97, 197, 0.2);
  237. border-radius: 0px 0px 0px 0px;
  238. position: relative;
  239. .radio-group {
  240. display: flex;
  241. justify-content: center;
  242. .el-radio {
  243. flex: 1;
  244. justify-content: center;
  245. font-weight: bold;
  246. font-size: 12px;
  247. color: #ffffff;
  248. line-height: 14px;
  249. }
  250. }
  251. }
  252. .el-dialog__footer {
  253. position: absolute;
  254. bottom: 17px;
  255. display: flex;
  256. .footerbtn {
  257. flex: 1;
  258. text-align: center;
  259. }
  260. }
  261. }
  262. .my_content1 {
  263. .el-table .cell {
  264. font-weight: 400;
  265. font-size: 12px;
  266. color: #ffffff !important;
  267. line-height: 14px;
  268. text-align: left;
  269. font-style: normal;
  270. text-transform: none;
  271. }
  272. }
  273. .borderimg {
  274. width: 109px;
  275. height: 30px;
  276. background: rgba(104, 173, 255, 0.3);
  277. box-shadow: inset 0px 0px 17px 5px rgba(12, 97, 197, 0.2);
  278. /* border: 1px solid rgba(31, 107, 255, 1); */
  279. -o-border-image: linear-gradient(
  280. 180deg,
  281. rgba(31, 107, 255, 1),
  282. rgba(31, 107, 255, 0.48)
  283. )
  284. 1 1;
  285. border-image: linear-gradient(180deg, rgba(31, 107, 255, 1), rgba(31, 107, 255, 0.48)) 1
  286. 1;
  287. border-radius: 4px;
  288. display: flex;
  289. display: inline-block;
  290. box-sizing: border-box;
  291. }
  292. .el-table,
  293. .el-table thead th {
  294. background-color: rgba(13, 22, 57, 0.96) !important;
  295. }
  296. .el-form-item__label {
  297. color: #ffffff !important;
  298. }
  299. .jiancedian {
  300. width: 380px;
  301. position: absolute;
  302. right: 0;
  303. top: 70px;
  304. box-shadow: inset 0px 0px 17px 5px rgba(12, 97, 197, 0.2);
  305. border-radius: 4px 4px 4px 4px;
  306. border: 1px solid;
  307. border-image: linear-gradient(180deg, rgba(31, 107, 255, 1), rgba(31, 107, 255, 0.48)) 1
  308. 1;
  309. }
  310. </style>
  311. <style>
  312. .log_class {
  313. background-color: rgba(13, 22, 57, 0.96) !important;
  314. }
  315. .right {
  316. right: 0px;
  317. position: absolute;
  318. top: -7vh;
  319. }
  320. </style>