InfoDialoges.vue 51 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778
  1. <template>
  2. <!-- 所有弹出框 -->
  3. <div class="l_Dialog tuiy">
  4. <!-- 灾害类型 -->
  5. <el-dialog v-model="dialogVisible" width="482" align-center :modal="false" :close-on-click-modal="false"
  6. draggable class="dialog_class bgcolor">
  7. <template #header="{ titleId, titleClass }">
  8. <div class="my-header">
  9. <el-image :src="icon" fit="contain"></el-image>
  10. <h4 :id="titleId" :class="titleClass">灾害类型</h4>
  11. </div>
  12. </template>
  13. <div class="my_content">
  14. <el-radio-group v-model="classradio1" class="radio-group">
  15. <el-radio label="Fire">火灾</el-radio>
  16. <el-radio label="Water">突水</el-radio>
  17. <!-- <el-radio label="9">瓦斯爆炸</el-radio> -->
  18. </el-radio-group>
  19. </div>
  20. <template #footer>
  21. <div class="dialog-footer class_footer l_btn ">
  22. <div class="footerbtn">
  23. <div class="borderimg"><el-button @click="dialogVisible = false">取消</el-button></div>
  24. </div>
  25. <div class="footerbtn">
  26. <div class="borderimg"><el-button @click="classclick(); dialogVisible= false;">
  27. 确定
  28. </el-button></div>
  29. </div>
  30. </div>
  31. </template>
  32. </el-dialog>
  33. <!--火灾 事故列表 -->
  34. <el-dialog v-model="dialog.dialogVisible_fire" width="600" :modal="false" :close-on-click-modal="false"
  35. draggable class="dialog_class bgcolor tablefocus">
  36. <template #header="{ titleId, titleClass }">
  37. <div class="my-header">
  38. <el-image :src="icon" fit="contain"></el-image>
  39. <h4 :id="titleId" :class="titleClass"> 事故列表</h4>
  40. </div>
  41. </template>
  42. <div class="my_content1 bgcolor tablefocus scoperadio ">
  43. <el-table :data="tableData" style="width: 100%" v-loading="loading" element-loading-text="Loading..."
  44. element-loading-background="rgba(0, 10, 0, 0.1)" :row-class-name="tableRowClassName"
  45. :header-cell-style="{ 'background': ' #375A88' }" @select="projectsSelectionSelect">
  46. <el-table-column width="50">
  47. <template #default="scope">
  48. <el-radio v-model="scoperadio" :label="scope.row.aid"
  49. @change="getRadioRow(scope.row)"></el-radio>
  50. </template>
  51. </el-table-column>
  52. <el-table-column type="index" label="序号" width="50" />
  53. <el-table-column prop="name" label="名称" />
  54. <el-table-column prop="name" label="来源" width="120" />
  55. <el-table-column prop="time" label="时间" width="180" />
  56. </el-table>
  57. <div class="demo-pagination-block pagination">
  58. <el-pagination v-model:current-page="currentPage4" v-model:page-size="pageSize4" small background
  59. layout="prev, total,pager, next, jumpe," :total="parseInt(total)" class="mt-4"
  60. @current-change="handleCurrentChange2" />
  61. </div>
  62. <div class="dialog-footer footer_div l_btn">
  63. <div class="footerbtn flex1">
  64. <div class="borderimg"><el-button @click="addsg('1');">添加</el-button></div>
  65. </div>
  66. <div class="footerbtn flex1">
  67. <div class="borderimg"><el-button @click="addsg('2')">
  68. 修改
  69. </el-button></div>
  70. </div>
  71. <div class="footerbtn flex1">
  72. <div class="borderimg"><el-button @click="dialog.dialogsgdelect = true">
  73. 删除
  74. </el-button></div>
  75. </div>
  76. <div class="footerbtn flex1">
  77. <div class="borderimg"><el-button @click="accident()">
  78. 确定
  79. </el-button></div>
  80. </div>
  81. </div>
  82. </div>
  83. <div class="ddd" v-show="dialog.dialogForm">
  84. <div class="header_l">
  85. <el-image :src="icon" fit="contain"></el-image>
  86. <h4 class="tianjia"> {{ shigtext }}</h4>
  87. <div class="closeimg" @click="dialog.dialogForm = false"><el-image :src="closeimg" fit="contain"
  88. style="margin-top: -10px;"></el-image></div>
  89. <div class="ddd_div" style="display: flex;">
  90. <div class="demo-input-suffix firsttitle magintop">
  91. <el-form-item label="事故名称">
  92. <el-input v-model="formull.name" class="w-50 m-2" :placeholder="placeholder" />
  93. </el-form-item>
  94. <div class="l_btn class_btn" style="width: auto;">
  95. <div class="footerbtn">
  96. <div class="borderimg"><el-button @click="sgadd()">
  97. 确定
  98. </el-button></div>
  99. </div>
  100. </div>
  101. </div>
  102. </div>
  103. </div>
  104. </div>
  105. <el-dialog v-model="dialog.dialogsgdelect" width="400" class="dialog_class bgcolor tianjia">
  106. <template #header="{ titleId, titleClass }">
  107. <div class="my-header ">
  108. <el-image :src="icon" fit="contain"></el-image>
  109. <h4 :id="titleId" :class="titleClass">删除</h4>
  110. </div>
  111. </template>
  112. <h4 class="delecttitle"> 是否确认删除<span class="spanclad">{{ idobj.name }}</span></h4>
  113. <div class="dialog-footer footer_div l_btn">
  114. <div class="footerbtn flex1">
  115. <div class="borderimg"><el-button @click="dialog.dialogsgdelect = false">取消</el-button></div>
  116. </div>
  117. <div class="footerbtn flex1">
  118. <div class="borderimg"><el-button @click="sgdelect(); dialog.dialogsgdelect = false">
  119. 确定
  120. </el-button></div>
  121. </div>
  122. </div>
  123. </el-dialog>
  124. </el-dialog>
  125. <!--火灾左侧栏-->
  126. <div class="common-layout" style="margin: 0;" v-show="leftcoll.collfire">
  127. <el-aside width="278px" class="L_aside L_aside1 asideg asidegbg leftbgimg">
  128. <div class="demo-collapse">
  129. <el-collapse v-model="coolactiveName" accordion>
  130. <el-collapse-item name="1">
  131. <template #title>
  132. <el-icon class="iconimg Frame2" fit="contain"></el-icon>
  133. 火灾<el-icon class="header-icon">
  134. </el-icon>
  135. </template>
  136. <div class="asides_content">
  137. <el-form :inline="true" :model="tuiyanobj" class="demo-form-inline">
  138. <div class="l_padding " style="padding:20px 20px 20px 24px; ">
  139. <div class="line selecwidth">
  140. <el-form-item label="污染物选择:">
  141. <!-- <el-select v-model="options.coid" multiple filterable allow-create
  142. default-first-option :reserve-keyword="false" value-key="code"
  143. @change="selectchange($event)" placeholder="请选择">
  144. <el-option v-for="item in options" :key="item.coid"
  145. :label="item.code" :value="item" />
  146. </el-select> -->
  147. <el-select v-model="value" multiple filterable allow-create
  148. default-first-option :reserve-keyword="false" value-key="code"
  149. @change="selectchange($event)" placeholder="请选择">
  150. <el-option v-for="item in options" :key="item.coid"
  151. :label="item.code" :value="item" />
  152. </el-select>
  153. </el-form-item>
  154. </div>
  155. <ul>
  156. <li>
  157. <div class="demo-datetime-picker">
  158. <span class="inputtext_1">选择时间</span>
  159. <div class="block">
  160. <el-date-picker v-model="tuiyanobj.pickertime" type="datetime"
  161. placeholder="Pick a Date" format="YYYY-MM-DD HH:mm:ss"
  162. @change="timeclick()" />
  163. </div>
  164. </div>
  165. </li>
  166. <li><span class="inputtext_1">时间步长</span>
  167. <div class="inputkuang"> <el-input v-model="tuiyanobj.dt" />
  168. <span class="righttext">s</span>
  169. </div>
  170. </li>
  171. <li><span class="inputtext_1">空间步长</span>
  172. <div class="inputkuang"> <el-input v-model="tuiyanobj.dx" />
  173. <span class="righttext">m</span>
  174. </div>
  175. </li>
  176. <li><span class="inputtext_1">模拟时长</span>
  177. <div class="inputkuang"> <el-input v-model="tuiyanobj.totaltime" />
  178. <span class="righttext">s</span>
  179. </div>
  180. </li>
  181. <li><span class="inputtext_1">输出步长</span>
  182. <div class="inputkuang"> <el-input v-model="tuiyanobj.reportstep" />
  183. <span class="righttext">s</span>
  184. </div>
  185. </li>
  186. <li><span class="inputtext_1">交互步长</span>
  187. <div class="inputkuang"> <el-input
  188. v-model="tuiyanobj.interactionstep" />
  189. <span class="righttext">s</span>
  190. </div>
  191. </li>
  192. </ul>
  193. </div>
  194. <div class="asdis_btn">
  195. <div class="btn"><span class="spantext" @click="initial();">初始数据</span></div>
  196. <div class="btn"><span class="spantext" @click="calculate();">开始计算</span></div>
  197. </div>
  198. <div class=" logs">
  199. <div class="logs_pading">
  200. <h4>模拟日志</h4>
  201. <div class="footerTextBox">
  202. <el-input class="footerText" type="textarea" id="textarea_id"
  203. v-model="rizhi.logs"></el-input>
  204. </div>
  205. </div>
  206. </div>
  207. </el-form>
  208. </div>
  209. </el-collapse-item>
  210. </el-collapse>
  211. </div>
  212. </el-aside>
  213. </div>
  214. <!-- 突水 -->
  215. <div class="common-layout" style="margin: 0;" v-show="leftcoll.collwater">
  216. <el-aside width="278px" class="L_aside L_aside1 asideg asidegbg leftbgimg">
  217. <div class="demo-collapse">
  218. <el-collapse v-model="coolactiveName" accordion>
  219. <el-collapse-item name="1">
  220. <template #title>
  221. <el-icon class="iconimg Frame3" fit="contain"></el-icon>
  222. 突水<el-icon class="header-icon">
  223. </el-icon>
  224. </template>
  225. <div class="asides_content">
  226. <el-form :inline="true" :model="tuiyanobj" class="demo-form-inline">
  227. <div class="l_padding " style="padding:20px 20px 20px 24px; ">
  228. <ul>
  229. <li>
  230. <div class="demo-datetime-picker">
  231. <span class="inputtext_1">选择时间</span>
  232. <div class="block">
  233. <el-date-picker v-model="tuiyanobj.pickertime" type="datetime"
  234. placeholder="Pick a Date" format="YYYY-MM-DD HH:mm:ss"
  235. value-format="YYYY-MM-DD HH:mm:ss" @change="timeclick()" />
  236. </div>
  237. </div>
  238. </li>
  239. <li><span class="inputtext_1">时间步长</span>
  240. <div class="inputkuang"> <el-input v-model="tuiyanobj.dt" />
  241. <span class="righttext">s</span>
  242. </div>
  243. </li>
  244. <li><span class="inputtext_1">空间步长</span>
  245. <div class="inputkuang"> <el-input v-model="tuiyanobj.dx" />
  246. <span class="righttext">m</span>
  247. </div>
  248. </li>
  249. <li><span class="inputtext_1">模拟时长</span>
  250. <div class="inputkuang"> <el-input v-model="tuiyanobj.totaltime" />
  251. <span class="righttext">s</span>
  252. </div>
  253. </li>
  254. <li><span class="inputtext_1">输出步长</span>
  255. <div class="inputkuang"> <el-input v-model="tuiyanobj.reportstep" />
  256. <span class="righttext">s</span>
  257. </div>
  258. </li>
  259. <li><span class="inputtext_1">交互步长</span>
  260. <div class="inputkuang"> <el-input
  261. v-model="tuiyanobj.interactionstep" />
  262. <span class="righttext">s</span>
  263. </div>
  264. </li>
  265. </ul>
  266. </div>
  267. <div class="asdis_btn">
  268. <div class="btn"><span class="spantext" @click="initial();">初始数据</span></div>
  269. <div class="btn"><span class="spantext" @click="calculate();">开始计算</span></div>
  270. </div>
  271. <div class=" logs">
  272. <div class="logs_pading">
  273. <h4>模拟日志</h4>
  274. <div class="footerTextBox">
  275. <el-input class="footerText" type="textarea" id="textarea_id"
  276. v-model="rizhi.logs"></el-input>
  277. </div>
  278. </div>
  279. </div>
  280. </el-form>
  281. </div>
  282. </el-collapse-item>
  283. </el-collapse>
  284. </div>
  285. </el-aside>
  286. </div>
  287. </div>
  288. </template>
  289. <!-- timestampToTime -->
  290. <script setup>
  291. import { computed, ref, onMounted, reactive, toRef } from "vue";
  292. import { request, uploadFile } from "@/utils/request";
  293. import { ElMessage, ElButton, ElDialog, ElSelect, formEmits } from 'element-plus'
  294. import icon from "@/assets/img/icon.png";
  295. import Frame2 from "@/assets/img/Frame2.png";
  296. import t1 from "@/assets/img/t1.png";
  297. import t2 from "@/assets/img/t2.png";
  298. import t3 from "@/assets/img/t3.png";
  299. import t4 from "@/assets/img/t4.png";
  300. import mitts from "@/utils/Bus"
  301. import closeimg from "@/assets/img/colse.png";
  302. import { timestampToTime } from '@/js/lindex.js'
  303. import { vtkmodel } from "@/control/vtkModel.js";
  304. const changeModel= ()=> {
  305. vtkmodel.clearJgAddMode();
  306. vtkmodel.renderWindow.render();
  307. }
  308. let placeholder=ref('某次某事件火灾事故');
  309. let emit = defineEmits(['headerclick', 'childfun', 'moxingclick','handleSelect'])
  310. const props = defineProps({
  311. addselect: {
  312. type: Function,
  313. required: true,
  314. },
  315. headerobj: {
  316. type: Object,
  317. }
  318. });
  319. let startlog=ref('0');
  320. let shigtext = ref('');
  321. let websock = ref(null);
  322. let times = ref({
  323. lockReconnect: false, //是否真正建立连接
  324. timeout: 28 * 1000, //30秒一次心跳
  325. timeoutObj: null, //心跳倒计时
  326. serverTimeout0bj: null, //
  327. timeoutnum: null, //断开重连倒计时
  328. })
  329. let zqname = ref({});
  330. let shiguobj = ref({
  331. source: '自荐',
  332. type: '预演',
  333. sid: '-1'
  334. })
  335. let sgdata = ref({});
  336. let formull = ref({
  337. source: '',
  338. name: ''
  339. })
  340. let idobj = ref({
  341. sgaid: "",
  342. name: "",
  343. time: ""
  344. })
  345. const value1 = ref('')
  346. let loading = ref(true)
  347. let aid = ref();
  348. let firepid = ref("");
  349. let firesid = ref("");
  350. const currentPage4 = ref(1);
  351. const pageSize4 = ref(3)
  352. let total = ref(1);
  353. const dialogVisible = ref(true);
  354. const classradio = ref();
  355. let classradio1 = ref('Fire');
  356. const leftcoll = ref({
  357. collfire: false,
  358. collwater: false,
  359. });
  360. const monitor = ref(false);
  361. const dialog = ref({
  362. dialogVisible_fire: false,
  363. jianced: true,
  364. monitor: false,
  365. dialogForm: false,
  366. dialogsgdelect: false,
  367. })
  368. let tuiyanobj = ref({
  369. value: [''],
  370. pickertime: '24-03-06 00:00:00',
  371. acctime: '2024-03-06 00:00:00',
  372. dt: '',
  373. dx: '',
  374. reportstep: '',
  375. interactionstep: '',
  376. totaltime: '',
  377. coids: '',
  378. cocodes: ''
  379. })
  380. let tuiyanobj2 = ref({
  381. value: ['SO2'],
  382. pickertime: '',
  383. acctime: '2024-03-06 00:00:00',
  384. dt: '0.1',
  385. dx: '10',
  386. reportstep: '60',
  387. interactionstep: '3600',
  388. totaltime: '3600',
  389. coids: '1',
  390. cocodes: 'CO2'
  391. })
  392. let tuiyanobj3 = ref({
  393. value: ['SO2'],
  394. pickertime: '',
  395. acctime: '2024-03-06 00:00:00',
  396. dt: '5',
  397. dx: '5',
  398. reportstep: '60',
  399. interactionstep: '3600',
  400. totaltime: '3600',
  401. coids: '1',
  402. cocodes: 'CO2'
  403. })
  404. let tableobj = ref({});
  405. let coolactiveName = ref(["1", "2"]);
  406. let newlog = ref("");
  407. let rizhi = ref({
  408. top: "50px",
  409. logs: '',
  410. left: "90px"
  411. });
  412. let formLabelWidth5 = ref('130px');
  413. const formInline = ref({
  414. user: '11',
  415. region: 'shanghai',
  416. date: '',
  417. })
  418. const value = ref([])
  419. const options = ref([])
  420. let arrvalue=ref([]);
  421. let scoperadio = ref(1);
  422. // 推演结果
  423. const customColor = ref('#409eff')
  424. const tableRowClassName = ({ row, rowIndex }) => {
  425. if (rowIndex % 2 != 0) {
  426. return 'evenRow';
  427. }
  428. return 'oddRow';
  429. }
  430. const tableData = ref([]);
  431. const tableData2 = [
  432. {
  433. date: '站点1',
  434. name: '2',
  435. address: '10',
  436. },
  437. {
  438. date: '站点1',
  439. name: '2',
  440. address: '10',
  441. },
  442. {
  443. date: '站点1',
  444. name: '2',
  445. address: '10',
  446. },
  447. {
  448. date: '站点1',
  449. name: '2',
  450. address: '10',
  451. },
  452. ]
  453. const handleCurrentChange = ({ row, rowIndex }) => {
  454. // console.log(row);
  455. }
  456. // aid获取
  457. // 类型选择
  458. const classclick = () => {
  459. scoperadio.value="";
  460. dialog.value.dialogVisible_fire = true;
  461. classradio.value = classradio1.value;
  462. props.addselect();
  463. getdata();
  464. }
  465. // 事故确定列表
  466. const accident = () => {
  467. if (idobj.value.name == '') {
  468. ElMessage.error('请选择项目')
  469. } else {
  470.   rizhi.value.logs='';
  471.     newlog.value ='';
  472. emit('headerclick', sgdata.value);
  473. dialog.value.dialogVisible_fire = false;
  474. emit('childfun');
  475. emit('moxingclick', true);
  476. pollute();
  477. emit('handleSelect', '1');
  478. }
  479. fetchFileContent();
  480. }
  481. const accident2 = (key) => {
  482. if (key == '3') {
  483. if (classradio.value== "Fire") {
  484. leftcoll.value.collfire = true;
  485. } else if (classradio.value== "Water") {
  486. leftcoll.value.collwater = true;
  487. } else {
  488. }
  489. rewu();
  490. } else {
  491. leftcoll.value.collfire = false;
  492. leftcoll.value.collwater = false;
  493. }
  494. }
  495. //事故添加列表
  496. const sgadd = () => {
  497. const params = {
  498. transCode: 'D00002',
  499. source: shiguobj.value.source,
  500. type: shiguobj.value.type,
  501. name: formull.value.name,
  502. stype: classradio.value,
  503. sid: shiguobj.value.sid,
  504. aid: aid.value
  505. }
  506. request(params)
  507. .then((res) => {
  508. dialog.value.dialogForm = false;
  509. getdata();
  510. scoperadio.value = null;
  511. })
  512. .catch((err) => {
  513. ElMessage.error(err.returnMsg)
  514. })
  515. }
  516. // 事故列表的选择
  517. const getRadioRow = (val) => {
  518. sgdata.value = (val);
  519. console.log(tableobj.value)
  520. formull.value.name = val.name;
  521. aid.value = val.aid;
  522. idobj.value.name = val.name;
  523. idobj.value.time = val.time;
  524. }
  525. function handleCurrentChange2(val) {
  526. currentPage4.value = val;
  527. getdata();
  528. }
  529. // 事故添加按钮
  530. const addsg = (val) => {
  531. if (val == '1') {
  532. shigtext.value = '事故添加';
  533. aid.value = 0;
  534. formull.value.name = '';
  535. } else if (val == '2') {
  536. shigtext.value = '事故修改';
  537. formull.value.name = idobj.value.name
  538. }
  539. dialog.value.dialogForm = true;
  540. }
  541. // 事故删除
  542. const sgdelect = () => {
  543. const params = {
  544. transCode: 'D000016',
  545. aid: aid.value,
  546. }
  547. request(params)
  548. .then((res) => {
  549. getdata();
  550. ElMessage({
  551. message: '删除成功',
  552. type: 'success',
  553. })
  554. })
  555. .catch((err) => {
  556. loading.value = false;
  557. ElMessage.error(err.returnMsg)
  558. })
  559. }
  560. //事故获取列表
  561. const getdata = () => {
  562. if(classradio.value== "Fire"){
  563. placeholder.value='某次某事件火灾事故'
  564. } else if (classradio.value== "Water") {
  565. placeholder.value='某次某事件突水事故'
  566. }else{
  567. }
  568. const params = {
  569. transCode: 'D00003',
  570. count: pageSize4.value,
  571. page: currentPage4.value,
  572. aid: aid.value,
  573. stype: classradio.value,
  574. }
  575. request(params)
  576. .then((res) => {
  577. loading.value = false;
  578. tableData.value = res.rows;
  579. total.value = res.total;
  580. })
  581. .catch((err) => {
  582. loading.value = false;
  583. ElMessage.error(err.returnMsg)
  584. })
  585. }
  586. // 污染物的查询
  587. const pollute = () => {
  588. value.value=[];
  589. const params = {
  590. transCode: 'D10013',
  591. }
  592. request(params)
  593. .then((res) => {
  594. options.value = res.rows;
  595. // value.value= res.rows[0].code.split(',');
  596. // tuiyanobj2.value.coids=res.rows[0].coid;
  597. // tuiyanobj2.value.value= value.value;
  598. value.value.push(res.rows[0]);
  599. // tuiyanobj2.value.cocodes =res.rows[0].code;
  600. // tuiyanobj2.value.coids=res.rows[0].coid;
  601. })
  602. .catch((err) => {
  603. ElMessage.error(err.returnMsg)
  604. })
  605. }
  606. //任务求解任务信息
  607. const rewu=()=>{
  608. arrvalue.value=[];
  609. const params = {
  610. transCode: 'D10017',
  611. aid:aid.value,
  612. }
  613. request(params)
  614. .then((res) => {
  615. arrvalue.value=res.cocodes.split(',');
  616. tuiyanobj.value=res;
  617. tuiyanobj.value.pickertime=res.acctime;
  618. console.log(tuiyanobj.value.acctime)
  619. console.log(options.value.length);
  620. value.value=arrvalue.value;
  621. value.value=[];
  622. for (let i = 0; i <options.value.length; i++){
  623. console.log(options.value[i])
  624. for (let j = 0; j < arrvalue.value.length; j++){
  625. if(options.value[i].code==arrvalue.value[j]){
  626. value.value.push(options.value[i]);
  627. }
  628. }
  629. }
  630. })
  631. .catch((err) => {
  632. // ElMessage.error(err.returnMsg)
  633. addinitial();
  634. })
  635. }
  636. //默认时间
  637. const inititimeDefaultal = () => {
  638. var date = new Date();
  639. var timeStamp = Date.parse(date)
  640. var s1 = timestampToTime(timeStamp);
  641. return s1;
  642. }
  643. // 初始数据
  644. const initial = () => {
  645. addinitial();
  646. }
  647. const addinitial=()=>{
  648. if (classradio.value == "Fire") {
  649. tuiyanobj2.value.pickertime = inititimeDefaultal();
  650. tuiyanobj2.value.acctime = inititimeDefaultal();
  651. tuiyanobj2.value.cocodes = options.value[0].code;
  652. tuiyanobj2.value.coids=options.value[0].coid;
  653. console.log(value.value);
  654. tuiyanobj.value = tuiyanobj2.value;
  655. console.log(tuiyanobj2.value);
  656. } else {
  657. tuiyanobj3.value.pickertime = inititimeDefaultal();
  658. tuiyanobj3.value.acctime = inititimeDefaultal();
  659. tuiyanobj.value = tuiyanobj3.value;
  660. }
  661. }
  662. function zdtimechange() {
  663. }
  664. const timeclick = () => {
  665. var timeStamp = Date.parse(tuiyanobj.value.pickertime)
  666. tuiyanobj.value.acctime = timestampToTime(timeStamp);
  667. }
  668. // 下拉多选
  669. const selectchange = (val) => {
  670. console.log(val);
  671. let arr1 = [];
  672. let arr2 = [];
  673. for (let i = 0; i <= val.length - 1; i++) {
  674. console.log(val[i])
  675. arr1.push(val[i].coid);
  676. arr2.push(val[i].code);
  677. }
  678. tuiyanobj.value.coids = arr1.join(',');
  679. tuiyanobj.value.cocodes = arr2.join(',');
  680. }
  681. //推演的开始计算
  682. const calculate = () => {
  683. rizhi.value.logs='';
  684. newlog.value ='';
  685. const params = {
  686. transCode: 'D00008',
  687. aid: aid.value,
  688. acctime: tuiyanobj.value.acctime,
  689. dt: tuiyanobj.value.dt,
  690. dx: tuiyanobj.value.dx,
  691. reportstep: tuiyanobj.value.reportstep,
  692. interactionstep: tuiyanobj.value.interactionstep,
  693. totaltime: tuiyanobj.value.totaltime,
  694. coids: tuiyanobj.value.coids,
  695. cocodes: tuiyanobj.value.cocodes,
  696. }
  697. request(params)
  698. .then((res) => {
  699. // initWebSocket();
  700. })
  701. .catch((err) => {
  702. ElMessage.error(err.returnMsg)
  703. })
  704. }
  705. const projectsSelectionSelect = () => {
  706. }
  707. // 日志获取
  708. function getthislog(val) {
  709. if (val.includes("msg=heartCheck")) {
  710. } else {
  711. newlog.value = newlog.value + "\n" + val;
  712. rizhi.value.logs = newlog.value;
  713. }
  714. let textarea = document.getElementById("textarea_id");
  715. textarea.scrollTop = textarea.scrollHeight;
  716. }
  717. // 历史日志
  718. async function fetchFileContent() {
  719. const params = {
  720. transCode: "D000015",
  721. aid: aid.value
  722. };
  723. await request(params)
  724. .then((res) => {
  725. if (res.returnCode == "000000000") {
  726. initWebSocket();
  727. getthislog(res.logs);
  728. } else {
  729. ElMessage({
  730. message: res.returnMsg,
  731. type: "error",
  732. });
  733. }
  734. })
  735. .catch((err) => { });
  736. }
  737. // 日志
  738. function initWebSocket() {
  739. //初始化weosocket
  740. // const wsuri = "ws://192.168.0.43:8087//websocket?projectId="+this.pid; ws://192.168.0.131/diswebsocket?projectId=5
  741. const wsurl = import.meta.env.VITE_WEBSOCKET_URL + aid.value
  742. console.log(wsurl);
  743. websock = new WebSocket(wsurl);
  744. websock.onopen = websocketonopen;
  745. websock.onmessage = websocketonmessage;
  746. websock.onerror = websocketonerror;
  747. websock.onclose = websocketclose;
  748. }
  749. // Websoket连接成功事件
  750. const websocketonopen = (res) => {
  751. console.log("WebSocket连接成功", res);
  752. start();
  753. };
  754. // Websoket接收消息事件
  755. const websocketonmessage = (res) => {
  756. // console.log("数据", res);
  757. // console.log(res.data);
  758. getthislog(res.data);
  759. reset();
  760. };
  761. // Websoket连接错误事件
  762. const websocketonerror = (res) => {
  763. console.log("连接错误", res);
  764. websock.value.close();
  765. reconnect();
  766. };
  767. // Websoket断开事件
  768. const websocketclose = (res) => {
  769. console.log("断开连接", res);
  770. };
  771. // 创建 websocket 的实例
  772. // 心跳包
  773. const reconnect = () => {
  774. if (times.value.lockReconnect) return;
  775. times.value.lockReconnect = true;
  776. //没连接上会一直重连,设置延迟避免请求过多
  777. times.value.timeoutnum && clearTimeout(times.value.timeoutnum);
  778. times.value.timeoutnum = setTimeout(function () {
  779. //新连接
  780. initWebSocket();
  781. times.value.lockReconnect = false;
  782. }, 10000);
  783. }
  784. const reset = () => {
  785. //重置心跳
  786. clearTimeout(times.value.timeoutObj);
  787. clearTimeout(times.value.serverTimeoutObj);
  788. start();
  789. }
  790. const start = () => {
  791. //开启心跳
  792. times.value.timeoutObj && clearTimeout(times.value.timeoutObj);
  793. times.value.serverTimeoutObj && clearTimeout(times.value.serverTimeoutObj);
  794. times.value.timeoutObj = setTimeout(function () {
  795. //这里发送一个心跳,后端收到后,返回一个心跳消息
  796. if (websock.readyState == 1) {
  797. //如果连接正常
  798. websock.send("heartCheck");
  799. } else {
  800. //否则重连
  801. console.log(111111)
  802. reconnect();
  803. }
  804. times.value.serverTimeoutObj = setTimeout(function () {
  805. // 超时关闭
  806. websock.close(); //如果onclose会执行reconnect,我们执行ws.close()就行了.如果直接执行reconnect 会触发onclose导致重连两次
  807. }, times.value.timeout);
  808. }, times.value.timeout);
  809. }
  810. // 组件被销毁之前,清空 sock 对象
  811. onBeforeUnmount(() => {
  812. // 关闭连接
  813. websocketclose;
  814. // 销毁 websocket 实例对象
  815. websock.value = null;
  816. rizhi.logs='';
  817. });
  818. onMounted(() => {
  819. // dialogVisible.value=true;
  820. });
  821. defineExpose({ monitor, accident2, leftcoll, classradio, aid, dialogVisible ,changeModel});
  822. </script>
  823. <style lang="scss" scoped>
  824. .jc_padding {
  825. padding: 18px 10px;
  826. }
  827. .line {
  828. border-bottom: 1px solid rgba(255, 255, 255, 0.20);
  829. box-sizing: border-box;
  830. }
  831. .L_aside {
  832. .iconimg {
  833. width: 37px;
  834. height: 36px;
  835. margin: 0 7px 0 24px;
  836. }
  837. .Frame2 {
  838. background-image: url(../assets/img/Frame2.png);
  839. background-size: 100%;
  840. background-position: center;
  841. }
  842. .Frame3 {
  843. background-image: url(../assets/img/Frame3.png);
  844. background-repeat: no-repeat;
  845. background-position: center;
  846. }
  847. .el-collapse,
  848. .el-collapse-item__header {
  849. border: none;
  850. ul li {
  851. text-align: left;
  852. }
  853. .inputkuang {
  854. height: 30px;
  855. width: 100%;
  856. background: rgba(13, 22, 57, 0.4);
  857. position: relative;
  858. .righttext {
  859. display: inline-block;
  860. position: absolute;
  861. right: 10px;
  862. top: 3px;
  863. color: rgba($color: #FFFFFF, $alpha: 0.8);
  864. }
  865. }
  866. .inputtext_1 {
  867. font-weight: 400;
  868. font-size: 13px;
  869. color: #FFFFFF;
  870. line-height: 14px;
  871. text-align: left;
  872. font-style: normal;
  873. text-transform: none;
  874. padding: 13px 0 7px 0;
  875. display: inline-block;
  876. }
  877. }
  878. }
  879. .ddd {
  880. margin-top: 20px;
  881. .ddd_div {
  882. padding: 20px 0;
  883. position: relative;
  884. }
  885. .class_btn {
  886. position: absolute;
  887. right: 0;
  888. top: 21px;
  889. }
  890. }
  891. .header_l {
  892. line-height: 10px;
  893. // height: 40px;
  894. text-align: left;
  895. padding: 0 20px;
  896. // border-bottom: 1px solid;
  897. border-image: linear-gradient(180deg, rgba(31, 107, 255, 1), rgba(31, 107, 255, 0.48)) 1 1;
  898. box-shadow: inset 0px 0px 17px 5px rgba(12, 97, 197, 0.2);
  899. border-radius: 0px 0px 0px 0px;
  900. .el-image {
  901. padding: 10px 10px 0 0;
  902. }
  903. h4 {
  904. font-weight: bold;
  905. font-size: 12px;
  906. color: #68ADFF;
  907. line-height: 14px;
  908. text-align: left;
  909. font-style: normal;
  910. text-transform: none;
  911. }
  912. }
  913. .tianjia {
  914. display: inline-block;
  915. }
  916. .el-dialog__title {
  917. display: inline-block;
  918. }
  919. .bgcolor {
  920. // width: 482px;
  921. box-shadow: inset 0px 0px 17px 5px rgba(12, 97, 197, 0.2);
  922. border-radius: 0px 0px 0px 0px;
  923. border: 1px solid;
  924. border-image: linear-gradient(180deg, rgba(31, 107, 255, 1), rgba(31, 107, 255, 0.48)) 1 1;
  925. }
  926. .dialog_class {
  927. .my-header {
  928. line-height: 10px;
  929. height: 40px;
  930. text-align: left;
  931. padding: 0 20px;
  932. border-bottom: 1px solid;
  933. border-image: linear-gradient(180deg, rgba(31, 107, 255, 1), rgba(31, 107, 255, 0.48)) 1 1;
  934. box-shadow: inset 0px 0px 17px 5px rgba(12, 97, 197, 0.2);
  935. border-radius: 0px 0px 0px 0px;
  936. .el-image {
  937. padding: 10px 10px 0 0;
  938. }
  939. h4 {
  940. font-weight: bold;
  941. font-size: 12px;
  942. color: #68ADFF;
  943. line-height: 14px;
  944. text-align: left;
  945. font-style: normal;
  946. text-transform: none;
  947. }
  948. }
  949. .my_content {
  950. width: 100%;
  951. height: 90px;
  952. box-shadow: inset 0px 0px 17px 5px rgba(12, 97, 197, 0.2);
  953. border-radius: 0px 0px 0px 0px;
  954. position: relative;
  955. .radio-group {
  956. display: flex;
  957. justify-content: center;
  958. .el-radio {
  959. flex: 1;
  960. justify-content: center;
  961. font-weight: bold;
  962. font-size: 12px;
  963. color: #FFFFFF;
  964. line-height: 14px;
  965. }
  966. }
  967. }
  968. .el-dialog__footer {
  969. position: absolute;
  970. bottom: 17px;
  971. display: flex;
  972. .footerbtn {
  973. flex: 1;
  974. text-align: center;
  975. }
  976. }
  977. }
  978. .my_content1 {
  979. .el-table .cell {
  980. font-weight: 400;
  981. font-size: 12px;
  982. color: #FFFFFF !important;
  983. line-height: 14px;
  984. text-align: left;
  985. font-style: normal;
  986. text-transform: none;
  987. }
  988. }
  989. .l_btn .borderimg {
  990. width: 109px;
  991. height: 30px;
  992. background: rgba(104, 173, 255, 0.3);
  993. box-shadow: inset 0px 0px 17px 5px rgba(12, 97, 197, 0.2);
  994. /* border: 1px solid rgba(31, 107, 255, 1); */
  995. border-image: linear-gradient(180deg, rgba(31, 107, 255, 1), rgba(31, 107, 255, 0.48)) 1 1;
  996. border-radius: 4px;
  997. display: flex;
  998. display: inline-block;
  999. box-sizing: border-box;
  1000. }
  1001. .borderimg {
  1002. width: 109px;
  1003. height: 30px;
  1004. background: rgba(104, 173, 255, 0.3);
  1005. box-shadow: inset 0px 0px 17px 5px rgba(12, 97, 197, 0.2);
  1006. /* border: 1px solid rgba(31, 107, 255, 1); */
  1007. -o-border-image: linear-gradient(180deg, rgba(31, 107, 255, 1), rgba(31, 107, 255, 0.48)) 1 1;
  1008. border-image: linear-gradient(180deg, rgba(31, 107, 255, 1), rgba(31, 107, 255, 0.48)) 1 1;
  1009. border-radius: 4px;
  1010. display: flex;
  1011. display: inline-block;
  1012. box-sizing: border-box
  1013. }
  1014. .el-table,
  1015. .el-table thead th {
  1016. background-color: rgba(13, 22, 57, 0.96) !important;
  1017. }
  1018. .L_aside {
  1019. height: calc(100vh - 70px);
  1020. position: absolute;
  1021. top: 70px;
  1022. overflow: hidden;
  1023. }
  1024. .asides_content {
  1025. // background: rgba(13,22,57,0.4);
  1026. // box-shadow: inset 0px 0px 17px 5px rgba(12,97,197,0.2);
  1027. // border-radius: 0px 0px 0px 0px;
  1028. // border: 1px solid;
  1029. // border-image: linear-gradient(359deg, rgba(31, 107, 255, 1), rgba(31, 107, 255, 0)) 1 1;
  1030. .el-form-item__label {
  1031. color: #FFFFFF !important;
  1032. }
  1033. }
  1034. .asdis_btn {
  1035. display: flex;
  1036. margin-top: 9px;
  1037. .btn {
  1038. flex: 1;
  1039. width: 145px;
  1040. height: 54px;
  1041. background-image: url(../assets/img/Rectangle5.png);
  1042. background-repeat: no-repeat;
  1043. line-height: 54px;
  1044. .spantext {
  1045. font-weight: bold;
  1046. font-size: 12px;
  1047. color: #FFFFFF;
  1048. text-align: center;
  1049. font-style: normal;
  1050. text-transform: none;
  1051. }
  1052. }
  1053. }
  1054. .logs {
  1055. margin-top: 25px;
  1056. border-radius: 0px 0px 0px 0px;
  1057. border-top: 1px solid;
  1058. border-image: linear-gradient(180deg, rgba(31, 107, 255, 1), rgba(31, 107, 255, 0.48)) 1 1;
  1059. box-shadow: inset 0px 0px 17px 5px rgba(12, 97, 197, 0.2);
  1060. h4 {
  1061. padding: 10px 0;
  1062. font-weight: 400;
  1063. font-size: 13px;
  1064. color: #FFFFFF;
  1065. line-height: 14px;
  1066. text-align: left;
  1067. font-style: normal;
  1068. text-transform: none;
  1069. }
  1070. }
  1071. .logs_pading {
  1072. padding: 13px 20px 23px 24px;
  1073. }
  1074. .newtime {
  1075. height: 112px;
  1076. padding: 38px;
  1077. font-weight: bold;
  1078. font-size: 20px;
  1079. color: #FF0F0F;
  1080. line-height: 23px;
  1081. text-align: center;
  1082. font-style: normal;
  1083. text-transform: none;
  1084. }
  1085. .animation_s {
  1086. padding: 25px;
  1087. }
  1088. .tanniu ul {
  1089. margin-top: 40px;
  1090. display: flex;
  1091. li {
  1092. flex: 1;
  1093. text-align: center;
  1094. p {
  1095. text-align: center;
  1096. font-weight: 400;
  1097. font-size: 12px;
  1098. color: #FFFFFF;
  1099. line-height: 14px;
  1100. font-style: normal;
  1101. text-transform: none;
  1102. }
  1103. }
  1104. }
  1105. .jiancedian {
  1106. width: 371px;
  1107. position: absolute;
  1108. right: 0;
  1109. top: 70px;
  1110. box-shadow: inset 0px 0px 17px 5px rgba(12, 97, 197, 0.2);
  1111. border-radius: 4px 4px 4px 4px;
  1112. border: 1px solid;
  1113. border-image: linear-gradient(180deg, rgba(31, 107, 255, 1), rgba(31, 107, 255, 0.48)) 1 1;
  1114. }
  1115. </style>
  1116. <style>
  1117. /* //.bgcolor */
  1118. .bgcolor {
  1119. border-radius: 0px 0px 0px 0px;
  1120. border: 1px solid;
  1121. border-image: linear-gradient(180deg, rgba(31, 107, 255, 1), rgba(31, 107, 255, 0.48)) 1 1;
  1122. box-shadow: inset 0px 0px 17px 5px rgba(12, 97, 197, 0.2);
  1123. }
  1124. .dialog_class {
  1125. background-color: rgba(13, 22, 57, 0.96) !important;
  1126. width: 482px;
  1127. }
  1128. .el-dialog__header,
  1129. .el-dialog__body,
  1130. .el-dialog__footer {
  1131. padding: 0 !important;
  1132. margin: 0 !important;
  1133. }
  1134. .el-dialog {
  1135. --el-dialog-padding-primary: 0px !important;
  1136. }
  1137. .el-dialog__headerbtn {
  1138. position: absolute;
  1139. top: 2px !important;
  1140. right: 0;
  1141. padding: 0;
  1142. width: 40px !important;
  1143. height: 40px !important;
  1144. background: 0 0;
  1145. border: none;
  1146. outline: 0;
  1147. cursor: pointer;
  1148. font-size: var(--el-message-close-size, 16px);
  1149. }
  1150. .el-icon {
  1151. color: #68ADFF !important;
  1152. }
  1153. .l_btn .borderimg {
  1154. width: 109px;
  1155. height: 30px;
  1156. background: rgba(104, 173, 255, 0.3);
  1157. box-shadow: inset 0px 0px 17px 5px rgba(12, 97, 197, 0.2);
  1158. /* border: 1px solid rgba(31, 107, 255, 1); */
  1159. border-image: linear-gradient(180deg, rgba(31, 107, 255, 1), rgba(31, 107, 255, 0.48)) 1 1;
  1160. border-radius: 4px;
  1161. display: flex;
  1162. display: inline-block;
  1163. box-sizing: border-box;
  1164. }
  1165. .l_btn .el-button {
  1166. width: 100%;
  1167. height: 100%;
  1168. border-radius: 4px;
  1169. color: #fff;
  1170. background: rgba(104, 173, 255, 0.3);
  1171. border: 1px solid rgba(31, 107, 255, 1);
  1172. }
  1173. .class_footer {
  1174. position: absolute;
  1175. bottom: 17px;
  1176. }
  1177. .footer_div {
  1178. height: 90px;
  1179. padding: 30px 0;
  1180. }
  1181. .l_btn {
  1182. width: 100%;
  1183. bottom: 17px;
  1184. display: flex;
  1185. border-radius: 4px;
  1186. }
  1187. .el-table .el-table__cell {
  1188. padding: 0 !important;
  1189. height: 30px;
  1190. line-height: 30px;
  1191. }
  1192. /* .el-table tr,.el-table th.el-table__cell{
  1193. background-color: rgba(13, 22, 57, 0.96) !important;
  1194. } */
  1195. .el-table__row {
  1196. box-shadow: inset 0px 0px 17px 5px rgba(12, 97, 197, 0.2);
  1197. border-radius: 0px 0px 0px 0px;
  1198. border: 1px solid;
  1199. border-image: linear-gradient(180deg, rgba(31, 107, 255, 1), rgba(31, 107, 255, 0.48)) 1 1;
  1200. }
  1201. .el-table td.el-table__cell,
  1202. .el-table th.el-table__cell.is-leaf {
  1203. /* box-shadow: inset 0px 0px 17px 5px rgba(12,97,197,0.2); */
  1204. border-radius: 0px 0px 0px 0px;
  1205. border-bottom: 1px solid;
  1206. border-image: linear-gradient(180deg, rgba(31, 107, 255, 1), rgba(31, 107, 255, 0.48)) 1 1;
  1207. }
  1208. .oddRow {
  1209. background-color: rgba(104, 173, 255, 0.20) !important;
  1210. }
  1211. .evenRow {
  1212. background-color: rgba(13, 22, 57, 0.96) !important;
  1213. }
  1214. .my_content1 .el-table .cell {
  1215. font-weight: 400;
  1216. font-size: 12px;
  1217. color: #FFFFFF !important;
  1218. line-height: 14px;
  1219. text-align: left;
  1220. font-style: normal;
  1221. text-transform: none;
  1222. }
  1223. .el-table--border .el-table__inner-wrapper::after,
  1224. .el-table--border::after,
  1225. .el-table--border::before,
  1226. .el-table__inner-wrapper::before {
  1227. height: 0 !important;
  1228. background-color: rgba(red, green, blue, 0) !important;
  1229. }
  1230. .el-table--enable-row-hover .el-table__body tr:hover>td.el-table__cell {
  1231. background-color: rgba(104, 173, 255, 0) !important;
  1232. }
  1233. .el-button:focus,
  1234. .el-button:hover {
  1235. background: rgba(104, 173, 255, 1) !important;
  1236. font-weight: bold;
  1237. color: #000 !important;
  1238. box-shadow: inset 0px 0px 17px 5px rgba(12, 97, 197, 0.2);
  1239. border-radius: 4px 4px 4px 4px;
  1240. border: 1px solid;
  1241. border-image: linear-gradient(180deg, rgba(31, 107, 255, 1), rgba(31, 107, 255, 0.48)) 1 1;
  1242. }
  1243. .el-input__wrapper {
  1244. height: 30px;
  1245. background: rgba(104, 173, 255, 0.3) !important;
  1246. box-shadow: inset 0px 0px 17px 5px rgba(12, 97, 197, 0.2) !important;
  1247. border-radius: 0px 0px 0px 0px;
  1248. border: 1px solid;
  1249. border-image: linear-gradient(180deg, rgba(31, 107, 255, 1), rgba(31, 107, 255, 0.48)) 1 1;
  1250. }
  1251. .selecwidth .el-input__wrapper {
  1252. height: auto !important;
  1253. }
  1254. .selecwidth .el-select__tags {
  1255. max-width: 200px !important;
  1256. }
  1257. .ddd_div .el-input__inner {
  1258. border: none;
  1259. /* background: rgba(104,173,255,0.3); */
  1260. }
  1261. .ddd_div .el-form-item__label {
  1262. color: #fff !important;
  1263. }
  1264. .ddd_div .demo-input-suffix {
  1265. width: 100%;
  1266. }
  1267. .ddd .el-form-item {
  1268. width: 72% ;
  1269. }
  1270. /* .el-input__inner::placeholder {
  1271. color: #fff !important;
  1272. } */
  1273. .flex1 {
  1274. flex: 1;
  1275. }
  1276. .el-radio__input.is-checked .el-radio__inner {
  1277. border-color: #fff !important;
  1278. background: #fff !important;
  1279. }
  1280. .el-radio__inner {
  1281. border: 2px solid #fff !important;
  1282. background-color: rgba(104, 173, 255, 0) !important;
  1283. border: 1px solid #68ADFF;
  1284. }
  1285. .asideg .el-collapse-item__header {
  1286. height: 50px !important;
  1287. width: 100%;
  1288. background-position: left;
  1289. border: none !important;
  1290. font-weight: bold;
  1291. font-size: 15px;
  1292. color: #FFFFFF;
  1293. line-height: 18px;
  1294. text-align: left;
  1295. font-style: normal;
  1296. text-transform: none;
  1297. }
  1298. .leftbgimg .el-collapse-item__header {
  1299. background-image: url(../assets/img/Group10.png) !important;
  1300. }
  1301. .asideg1 .jc_header {
  1302. width: 100%;
  1303. height: 52px;
  1304. line-height: 69px;
  1305. background-image: url(../assets/img/Group24.png) !important;
  1306. background-repeat: no-repeat;
  1307. background-position: center;
  1308. }
  1309. .jc_tile {
  1310. padding-left: 20px;
  1311. }
  1312. .he_pading {
  1313. padding: 19px 14px 0 31px;
  1314. }
  1315. .asideg1 .el-form-item__label {
  1316. font-weight: 400;
  1317. font-size: 13px;
  1318. color: #FFFFFF;
  1319. text-align: left;
  1320. font-style: normal;
  1321. text-transform: none;
  1322. }
  1323. .asideg .el-collapse {
  1324. --el-collapse-header-bg-color: none !important;
  1325. }
  1326. .asideg .el-collapse-item__arrow {
  1327. margin: 0 8px 0 auto;
  1328. font-weight: 800;
  1329. color: #fff !important;
  1330. font-weight: bold !important;
  1331. font-size: 20px !important;
  1332. }
  1333. .el-collapse-item__content {
  1334. background: rgba(13, 22, 57, 0.2);
  1335. }
  1336. .asideg .el-input__wrapper {
  1337. background: rgba(104, 173, 255, 0) !important;
  1338. border: 1px solid rgba(31, 107, 255, 1);
  1339. border-radius: 4px;
  1340. box-shadow: none !important;
  1341. }
  1342. .asideg .el-input__inner {
  1343. color: rgba(255, 15, 15, 1);
  1344. font-weight: 400;
  1345. font-size: 16px;
  1346. }
  1347. .el-collapse {
  1348. --el-collapse-header-bg-color: rgba(104, 173, 255, 0) !important;
  1349. --el-collapse-header-text-color: var(--el-text-color-primary);
  1350. --el-collapse-header-font-size: 13px;
  1351. --el-collapse-content-text-color: rgba(104, 173, 255, 0) !important;
  1352. --el-collapse-content-bg-color: rgba(104, 173, 255, 0) !important;
  1353. }
  1354. .asideg .el-collapse-item__content {
  1355. height: calc(100vh - 100px);
  1356. overflow-y: auto;
  1357. padding: 0 !important;
  1358. }
  1359. .asideg .el-collapse-item__wrap {
  1360. box-shadow: inset 0px 0px 17px 5px rgba(12, 97, 197, 0.2);
  1361. border-radius: 4px 4px 4px 4px;
  1362. border-bottom: 1px solid;
  1363. border-image: linear-gradient(180deg, rgba(31, 107, 255, 1), rgba(31, 107, 255, 0.48)) 1 1;
  1364. }
  1365. #textarea_id {
  1366. color: #fff;
  1367. font-size: 12px;
  1368. height: 226px;
  1369. background: rgba(104, 173, 255, 0) !important;
  1370. border: 1px solid rgba(31, 107, 255, 1);
  1371. border-radius: 4px;
  1372. box-shadow: none !important;
  1373. }
  1374. .asides_content .el-form-item__label {
  1375. color: #FFFFFF !important;
  1376. font-weight: 400;
  1377. font-size: 13px;
  1378. line-height: 33px;
  1379. text-align: left;
  1380. font-style: normal;
  1381. text-transform: none;
  1382. }
  1383. .el-form-item {
  1384. width: 100%;
  1385. }
  1386. .el-select__wrapper {
  1387. background-color: rgba(104, 173, 255, 0) !important;
  1388. }
  1389. .el-select__wrapper.is-hovering:not(.is-focused),
  1390. .el-select__wrapper {
  1391. box-shadow: none !important;
  1392. border: 1px solid rgba(31, 107, 255, 1);
  1393. border-radius: 4px;
  1394. box-shadow: none !important;
  1395. }
  1396. /* Webkit内核浏览器(Chrome、Safari等)*/
  1397. ::-webkit-scrollbar {
  1398. width: 4px;
  1399. /* 设置滚动条宽度 */
  1400. background-color: #161A2A;
  1401. /* 设置滚动条背景颜色 */
  1402. }
  1403. /* 滑块样式 */
  1404. ::-webkit-scrollbar-thumb {
  1405. border-radius: 2px;
  1406. /* 设置滑块边角半径 */
  1407. background-color: rgba(31, 107, 255, 1);
  1408. /* 设置滑块背景颜色 */
  1409. }
  1410. /* 滑块在hover状态时的样式 */
  1411. ::-webkit-scrollbar-thumb:hover {
  1412. background-color: #555;
  1413. /* 设置滑块在hover状态下的背景颜色 */
  1414. }
  1415. /* 滚动条轨道样式 */
  1416. ::-webkit-scrollbar-track {
  1417. background-color: rgba(104, 173, 255, 0.4)
  1418. /* 设置滚动条轨道背景颜色 */
  1419. }
  1420. .result .el-tabs__item {
  1421. padding: 17px !important;
  1422. font-weight: bold;
  1423. font-size: 14px;
  1424. color: #FFFFFF;
  1425. line-height: 16px;
  1426. text-align: center;
  1427. font-style: normal;
  1428. text-transform: none;
  1429. }
  1430. .el-tabs--card>.el-tabs__header,
  1431. .el-tabs--card>.el-tabs__header,
  1432. .el-tabs--card>.el-tabs__header .el-tabs__nav {
  1433. border: none !important;
  1434. }
  1435. .el-tabs {
  1436. --el-tabs-header-height: 70px !important;
  1437. }
  1438. .result .el-tabs__item {
  1439. border-left: 1px solid;
  1440. border-right: 1px solid;
  1441. border-bottom: 1px solid;
  1442. border-image: linear-gradient(180deg, rgb(31, 107, 255), rgba(31, 107, 255, 0.48)) 1 1;
  1443. box-shadow: inset 0px 0px 17px 5px rgba(12, 97, 197, 0.2);
  1444. border-radius: 0px 0px 0px 0px;
  1445. font-weight: bold;
  1446. font-size: 14px;
  1447. color: #fff;
  1448. line-height: 23px;
  1449. text-align: center;
  1450. font-style: normal;
  1451. text-transform: none;
  1452. }
  1453. .result .is-active {
  1454. height: 70px;
  1455. background: radial-gradient(ellipse at 54px 0px, #3AA0FF -37%, #123066 53%);
  1456. border-radius: 0px 0px 0px 0px;
  1457. border: 2px solid;
  1458. color: rgba(255, 15, 15, 1) !important;
  1459. border-left: 1px solid rgba(16, 92, 240, 1);
  1460. border-right: 1px solid rgba(18, 48, 102, 1);
  1461. border-image: linear-gradient(347deg, rgba(16, 92, 240, 1), rgba(18, 48, 102, 1)) 1 1;
  1462. }
  1463. .result .el-tabs__item:hover {
  1464. color: rgba(255, 15, 15, 1);
  1465. cursor: pointer;
  1466. }
  1467. .result .el-tabs__header {
  1468. padding: 0 !important;
  1469. margin: 0 !important;
  1470. }
  1471. .result .el-tabs__content {
  1472. border: 1px solid;
  1473. color: rgba(255, 15, 15, 1) !important;
  1474. border-image: linear-gradient(347deg, rgba(16, 92, 240, 1), rgba(18, 48, 102, 1)) 1 1;
  1475. box-shadow: inset 0px 0px 17px 5px rgba(12, 97, 197, 0.2);
  1476. border-radius: 0px 0px 0px 0px;
  1477. position: relative;
  1478. }
  1479. .result .el-tabs__content {
  1480. width: 275px;
  1481. }
  1482. .el-slider__button {
  1483. height: 10px;
  1484. width: 10px;
  1485. }
  1486. .color1 {
  1487. font-weight: 400;
  1488. font-size: 13px;
  1489. color: #FFFFFF;
  1490. line-height: 14px;
  1491. text-align: left;
  1492. font-style: normal;
  1493. text-transform: none;
  1494. }
  1495. .jc_padding .el-table tr {
  1496. height: 40px;
  1497. background-color: none;
  1498. }
  1499. .jc_padding .el-table .cell {
  1500. font-weight: 400;
  1501. font-size: 13px;
  1502. color: #FFFFFF;
  1503. line-height: 14px;
  1504. text-align: left;
  1505. font-style: normal;
  1506. text-transform: none;
  1507. }
  1508. .tianjia .el-dialog__body {
  1509. padding: 20px !important;
  1510. }
  1511. .tianjia .el-form-item__label {
  1512. color: #fff;
  1513. }
  1514. .tianjia .el-input__inner {
  1515. color: #fff;
  1516. font-size: 14px;
  1517. font-weight: 400;
  1518. text-align: left;
  1519. padding: 20px 0;
  1520. height: 30px;
  1521. line-height: 47px;
  1522. }
  1523. .ddd_div .el-input__inner {
  1524. color: #fff;
  1525. }
  1526. .pagination {
  1527. margin-top: 30px;
  1528. display: flex;
  1529. justify-content: center;
  1530. }
  1531. .pagination .el-pagination__total {
  1532. color: #fff;
  1533. }
  1534. .el-pagination.is-background .btn-next.is-disabled,
  1535. .el-pagination.is-background .btn-next:disabled,
  1536. .el-pagination.is-background .btn-prev.is-disabled,
  1537. .el-pagination.is-background .btn-prev:disabled,
  1538. .el-pagination.is-background .el-pager li.is-disabled,
  1539. .el-pagination.is-background .el-pager li:disabled {
  1540. background: rgba(104, 173, 255, 0.3) !important;
  1541. box-shadow: inset 0px 0px 17px 5px rgba(12, 97, 197, 0.2) !important;
  1542. border-radius: 0px 0px 0px 0px;
  1543. border: 1px solid;
  1544. border-image: linear-gradient(180deg, rgba(31, 107, 255, 1), rgba(31, 107, 255, 0.48)) 1 1;
  1545. }
  1546. .delecttitle {
  1547. font-size: 18px;
  1548. font-weight: bold;
  1549. color: #fff;
  1550. }
  1551. .scoperadio .el-radio__label {
  1552. display: none;
  1553. }
  1554. .el-select__input {
  1555. font-size: 12px;
  1556. }
  1557. ul,
  1558. ol {
  1559. list-style: none;
  1560. padding: 0;
  1561. margin: 0;
  1562. }
  1563. .tuiy .asideg .el-input__inner {
  1564. font-size: 14px !important;
  1565. }
  1566. .spantext{
  1567. cursor: pointer;
  1568. }
  1569. </style>