SetPipe.vue 8.5 KB

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