SetNode.vue 7.9 KB

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