SetNode.vue 7.9 KB

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