Sourcedisaster.vue 35 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153
  1. <template>
  2. <!-- 所有弹出框 -->
  3. <div class="l_Dialog" >
  4. <!--火灾左侧栏-->
  5. <div class="common-layout" style="margin: 0;">
  6. <el-aside width="354px" class="L_aside asideg asidegbg leftbgimg1" v-show="sour.collfire">
  7. <div class="demo-collapse">
  8. <el-collapse v-model="coolactiveName1" accordion >
  9. <el-collapse-item name="1">
  10. <template #title>
  11. <el-icon class="iconimg Frame2" fit="contain" ></el-icon>
  12. 火灾<el-icon class="header-icon">
  13. <info-filled />
  14. </el-icon>
  15. </template>
  16. <div class="asides_content">
  17. <div class="jc_content tablecolor">
  18. <div class="jc_padding">
  19. <div class="xian btncolor tablefocus" >
  20. <el-table
  21. :data="tableDatay"
  22. style="width: 100%"
  23. @row-click="handleDelete($event)"
  24. :row-class-name="tableRowClassName"
  25. max-height="350px"
  26. :header-cell-style="{'background':'rgba(13, 22, 57, 0.96) '}"
  27. :highlight-current-row="true"
  28. >
  29. <el-table-column prop="pname" label="选择巷道" width="130" />
  30. <el-table-column prop="site" label="位置" width="70" />
  31. <el-table-column label="操作" width="100">
  32. <template #default="scope">
  33. <el-button
  34. size="small"
  35. type="success"
  36. @click.stop="handledetection(scope.$index, scope.row)"
  37. >查看</el-button
  38. >
  39. </template>
  40. </el-table-column>
  41. </el-table>
  42. <div class="asdis_btn">
  43. <div class="flex_a" @click="newtable();sdialog.dianadddialog=true"><div class="btns"><span class="spantext">添加</span></div></div>
  44. <div class="flex_a" @click="shanchu('1');sdialog.dialogsgdelect=true"><div class="btns"><span class="spantext">删除</span></div></div>
  45. <div class="flex_a"><div class="btns"><span class="spantext">确定</span></div></div>
  46. </div>
  47. </div>
  48. <!-- -->
  49. <div class="xian tablefocus" style="margin-top: 20px;" v-show="sdialog.isDisasterfire">
  50. <div class="header_l header_z">
  51. <el-image :src="icon" fit="contain" ></el-image>
  52. <h4 class="tianjia"> 灾害源表</h4>
  53. <div class="closeimg"><el-image :src="closeimg" fit="contain" ></el-image></div>
  54. </div>
  55. <el-table
  56. :data="tableDatafir"
  57. style="width: 100%"
  58. :row-class-name="tableRowClassName"
  59. :header-cell-style="{'background':'rgba(13, 22, 57, 0.96) '}"
  60. :max-height="tableHeight"
  61. @row-click="handleDelete2($event)"
  62. :highlight-current-row="true"
  63. >
  64. <el-table-column prop="timeline" label="时间" width="70" />
  65. <el-table-column prop="val1" label="温度℃" width="70" />
  66. <el-table-column prop="val2" label="污染物1浓度" width="100" />
  67. <el-table-column prop="val2" label="污染物2浓度" width="100" />
  68. </el-table>
  69. <div class="asdis_btn">
  70. <div class="flex_a" @click="firinit();sdialog.adddialog=true"><div class="btns"><span class="spantext">添加</span></div></div>
  71. <div class="flex_a" @click="shanchu('2');sdialog.dialogsgdelect=true"><div class="btns"><span class="spantext">删除</span></div></div>
  72. <div class="flex_a"><div class="btns"><span class="spantext">确定</span></div></div>
  73. </div>
  74. </div>
  75. </div>
  76. <div style="height:200px"></div>
  77. </div>
  78. </div>
  79. </el-collapse-item>
  80. </el-collapse>
  81. </div>
  82. </el-aside>
  83. <el-aside width="354px" class="L_aside asideg asidegbg leftbgimg1" v-show="sour.collwater">
  84. <div class="demo-collapse">
  85. <!-- 突水 sour.collwater-->
  86. <el-collapse v-model="coolactiveName1" accordion >
  87. <el-collapse-item name="1">
  88. <template #title>
  89. <el-icon class="iconimg Frame3" fit="contain" ></el-icon>
  90. 突水<el-icon class="header-icon">
  91. <info-filled />
  92. </el-icon>
  93. </template>
  94. <div class="asides_content">
  95. <div class="jc_content tablecolor">
  96. <div class="jc_padding">
  97. <div class="xian btncolor tablefocus" >
  98. <el-table
  99. :data="tableDatawat"
  100. style="width: 100%"
  101. :row-class-name="tableRowClassName"
  102. :header-cell-style="{'background':'rgba(13, 22, 57, 0.96) '}"
  103. @row-click="handleDelete($event)"
  104. max-height="350px"
  105. :highlight-current-row="true"
  106. >
  107. <el-table-column prop="pname" label="选择巷道" width="130" />
  108. <el-table-column prop="site" label="位置" width="70" />
  109. <el-table-column label="操作" width="100">
  110. <template #default="scope">
  111. <el-button
  112. size="small"
  113. type="success"
  114. @click.stop="handledetection2(scope.$index, scope.row)"
  115. >查看</el-button
  116. >
  117. </template>
  118. </el-table-column>
  119. </el-table>
  120. <div class="asdis_btn">
  121. <div class="flex_a" @click="newtable();sdialog.dianadddialog=true"><div class="btns"><span class="spantext">添加</span></div></div>
  122. <div class="flex_a" @click="shanchu('1');sdialog.dialogsgdelect=true"><div class="btns"><span class="spantext">删除</span></div></div>
  123. <div class="flex_a"><div class="btns"><span class="spantext">确定</span></div></div>
  124. </div>
  125. </div>
  126. <!-- 灾害源表 -->
  127. <div class="xian tablefocus" style="margin-top: 20px;" v-show="sdialog.disDisasterwter">
  128. <div class="header_l header_z">
  129. <el-image :src="icon" fit="contain" ></el-image>
  130. <h4 class="tianjia">灾害源表</h4>
  131. <div class="closeimg" @click="sdialog.disDisasterwter"><el-image :src="closeimg" fit="contain" ></el-image></div>
  132. </div>
  133. <el-table
  134. :data="tableData4"
  135. style="width: 100%"
  136. :max-height="tableHeight"
  137. :row-class-name="tableRowClassName"
  138. :header-cell-style="{'background':'rgba(13, 22, 57, 0.96) '}"
  139. @row-click="handleDelete3($event)"
  140. :highlight-current-row="true"
  141. >
  142. <el-table-column prop="timeline" label="时间" />
  143. <el-table-column prop="val1" label="突水量(m³/s)" />
  144. </el-table>
  145. <div class="asdis_btn">
  146. <div class="flex_a" @click="firinit();sdialog.adddwater=true"><div class="btns"><span class="spantext">添加</span></div></div>
  147. <div class="flex_a" @click="shanchu('2');sdialog.dialogsgdelect=true"><div class="btns"><span class="spantext">删除</span></div></div>
  148. <div class="flex_a"><div class="btns"><span class="spantext">确定</span></div></div>
  149. </div>
  150. </div>
  151. </div>
  152. <div style="height:200px"></div>
  153. </div>
  154. </div>
  155. </el-collapse-item>
  156. </el-collapse>
  157. </div>
  158. </el-aside>
  159. </div>
  160. <!-- 灾害点源数据的添加-->
  161. <el-dialog v-model="sdialog.dianadddialog" width="400" class="dialog_class bgcolor tianjia">
  162. <template #header="{titleId, titleClass }">
  163. <div class="my-header ">
  164. <el-image :src="icon" fit="contain" ></el-image>
  165. <h4 :id="titleId" :class="titleClass">添加</h4>
  166. </div>
  167. </template>
  168. <div class="demo-input-suffix firsttitle magintop">
  169. <el-form-item label="管道名称" :label-width="formLabelWidth5">
  170. <el-input v-model="selectstr"
  171. class="w-50 m-2"
  172. placeholder="管道名称"
  173. :prefix-icon="Search" />
  174. </el-form-item>
  175. <div class="btn2">
  176. <el-button type="primary" @click="fireclick();sdialog.dialogVisiblenode=true">选择管道</el-button></div>
  177. </div>
  178. <div class="input">
  179. <el-form-item label="位置" :label-width="formLabelWidth5">
  180. <el-input-number v-model="source.site" :min="0" :max="1"
  181. :precision="2" :step="0.1"
  182. controls-position="right"
  183. class="w-50 m-2"
  184. placeholder="位置"
  185. />
  186. </el-form-item>
  187. </div>
  188. <div class="dialog-footer footer_div l_btn">
  189. <div class="footerbtn flex1"><div class="borderimg"><el-button @click="sdialog.dianadddialog=false">取消</el-button></div></div>
  190. <div class="footerbtn flex1"><div class="borderimg"><el-button @click="handleEditfire(); sdialog.dianadddialog=false">
  191. 确定
  192. </el-button></div></div>
  193. </div>
  194. </el-dialog>
  195. <!-- 选择管道 -->
  196. <el-dialog
  197. v-model="sdialog.dialogVisiblenode"
  198. width="50%"
  199. class="dialog_class bgcolor tianjia asideg asidegbg leftbgimg"
  200. >
  201. <template #header="{titleId, titleClass }">
  202. <div class="my-header ">
  203. <el-image :src="icon" fit="contain" ></el-image>
  204. <h4 :id="titleId" :class="titleClass"> 选择管道</h4>
  205. </div>
  206. </template>
  207. <div class="demo-input-suffix firsttitle leftbgimg2">
  208. <div class="guand_1">
  209. <el-form-item label="节点选择" :label-width="formLabelWidth5">
  210. <el-input v-model="searchtaggd"
  211. class="w-50 m-2"
  212. placeholder="管道名称"
  213. :prefix-icon="Search" />
  214. </el-form-item>
  215. <div class="asdis_btn">
  216. <div class="flex_a"><div class="btns" @click="searchgd"><span class="spantext">搜索</span></div></div>
  217. </div>
  218. <!-- <div class="btn2">
  219. <el-button type="success" @click="searchgd">搜索</el-button></div> -->
  220. </div>
  221. <!-- <div class="btn2">
  222. <el-button type="success">导入</el-button></div>
  223. </div> -->
  224. <el-table
  225. :row-class-name="tableRowClassName"
  226. :max-height="tableHeight"
  227. ref="multipleTableRef"
  228. :data="tableData2"
  229. style="width: 100%"
  230. @selection-change="handleSelectionChange"
  231. @select="projectsSelectionSelect"
  232. :header-cell-style="{'background':'rgba(13, 22, 57, 0.96) '}"
  233. >
  234. <el-table-column type="selection" width="55" />
  235. <el-table-column property="snId" label="开始节点"/>
  236. <el-table-column property="enId" label="结束节点"/>
  237. <el-table-column property="id" label="编号" width="70"/>
  238. <el-table-column property="name" label="名称" width="70"/>
  239. <el-table-column property="sectionType" label="截面类型" width="120"/>
  240. <el-table-column property="roughCoe" label="粗糙系数"/>
  241. <el-table-column property="sectionPara1" label="截面参数1" width="90"/>
  242. <el-table-column property="sectionPara2" label="截面参数2" width="90" />
  243. <el-table-column property="sectionPara3" label="截面参数3" width="90"/>
  244. <el-table-column property="sectionPara4" label="截面参数4" width="90"/>
  245. <el-table-column property="sectionPara5" label="截面参数5" width="90"/>
  246. </el-table>
  247. <div class="demo-pagination-block" style="margin-top: 20px;">
  248. <el-pagination
  249. v-model:current-page="currentPage4"
  250. v-model:page-size="pageSize4"
  251. small
  252. background
  253. layout="prev, total,pager, next, jumpe,"
  254. :total="parseInt(total)"
  255. class="mt-4"
  256. @size-change="handleSizeChange"
  257. @current-change="handleCurrentChange"
  258. />
  259. </div>
  260. <div class="dialog-footer footer_div l_btn">
  261. <div class="footerbtn flex1"><div class="borderimg"><el-button @click="sdialog.dialogVisiblenode">取消</el-button></div></div>
  262. <div class="footerbtn flex1"><div class="borderimg"><el-button @click="queding();sdialog.dialogVisiblenode = false">
  263. 确定
  264. </el-button></div></div>
  265. </div>
  266. </div>
  267. </el-dialog>
  268. <!-- 灾害火灾源检测数据的添加-->
  269. <el-dialog v-model="sdialog.adddialog" width="400" class="dialog_class bgcolor tianjia">
  270. <template #header="{titleId, titleClass }">
  271. <div class="my-header ">
  272. <el-image :src="icon" fit="contain" ></el-image>
  273. <h4 :id="titleId" :class="titleClass">添加</h4>
  274. </div>
  275. </template>
  276. <div>
  277. <el-form>
  278. <el-form-item label="时间" :label-width="formLabelWidth6">
  279. <el-input v-model="Disastersource.timeline" class="w-50 m-2" placeholder="请输入" />
  280. </el-form-item>
  281. <el-form-item label="温度℃" :label-width="formLabelWidth6">
  282. <el-input v-model="Disastersource.val1" class="w-50 m-2" placeholder="请输入" />
  283. </el-form-item>
  284. <el-form-item label="污染物1浓度" :label-width="formLabelWidth6">
  285. <el-input v-model="Disastersource.val2" class="w-50 m-2" placeholder="请输入" />
  286. </el-form-item>
  287. <el-form-item label="污染物2浓度" :label-width="formLabelWidth6">
  288. <el-input v-model="Disastersource.val3" class="w-50 m-2" placeholder="请输入" />
  289. </el-form-item>
  290. </el-form>
  291. </div>
  292. <div class="dialog-footer footer_div l_btn">
  293. <div class="footerbtn flex1"><div class="borderimg"><el-button @click="sdialog.adddialog=false">取消</el-button></div></div>
  294. <div class="footerbtn flex1"><div class="borderimg"><el-button @click="addjiancf();sdialog.adddialog=false">
  295. 确定
  296. </el-button></div></div>
  297. </div>
  298. </el-dialog>
  299. <!-- 灾害源突水检测数据的添加-->
  300. <el-dialog v-model="sdialog.adddwater" width="400" class="dialog_class bgcolor tianjia">
  301. <template #header="{titleId, titleClass }">
  302. <div class="my-header ">
  303. <el-image :src="icon" fit="contain" ></el-image>
  304. <h4 :id="titleId" :class="titleClass">添加</h4>
  305. </div>
  306. </template>
  307. <div>
  308. <el-form>
  309. <el-form-item label="时间" :label-width="formLabelWidth6">
  310. <el-input v-model="Disastersource.timeline" class="w-50 m-2" placeholder="请输入" />
  311. </el-form-item>
  312. <el-form-item label="突水量(m³/s)" :label-width="formLabelWidth6">
  313. <el-input v-model="Disastersource.val1" class="w-50 m-2" placeholder="请输入" />
  314. </el-form-item>
  315. </el-form>
  316. </div>
  317. <div class="dialog-footer footer_div l_btn">
  318. <div class="footerbtn flex1"><div class="borderimg"><el-button @click="sdialog.adddwater=false">取消</el-button></div></div>
  319. <div class="footerbtn flex1"><div class="borderimg"><el-button @click="addjiancf();sdialog.adddwater=false">
  320. 确定
  321. </el-button></div></div>
  322. </div>
  323. </el-dialog>
  324. <!-- 删除 -->
  325. <el-dialog v-model="sdialog.dialogsgdelect" width="400" class="dialog_class bgcolor tianjia">
  326. <template #header="{titleId, titleClass }">
  327. <div class="my-header ">
  328. <el-image :src="icon" fit="contain" ></el-image>
  329. <h4 :id="titleId" :class="titleClass">删除框</h4>
  330. </div>
  331. </template>
  332. <h4 class="delecttitle"> 是否确认删除 <span class="spanclad">{{zqname }}</span></h4>
  333. <div class="dialog-footer footer_div l_btn">
  334. <div class="footerbtn flex1"><div class="borderimg"><el-button @click="sdialog.dialogsgdelect=false">取消</el-button></div></div>
  335. <div class="footerbtn flex1"><div class="borderimg"><el-button @click="fundeledata();sdialog.dialogsgdelect=false">
  336. 确定
  337. </el-button></div></div>
  338. </div>
  339. </el-dialog>
  340. </div>
  341. </template>
  342. <script setup>
  343. import { computed,ref,onMounted,reactive, toRef } from "vue";
  344. import { request, uploadFile } from "@/utils/request";
  345. import icon from "@/assets/img/icon.png";
  346. import closeimg from "@/assets/img/colse.png";
  347. import { ElMessage,ElButton, ElDialog,ElSelect } from 'element-plus'
  348. import { c } from "@kitware/vtk.js/macros2";
  349. const props= defineProps({
  350. classradio: {
  351. type: String,
  352. },
  353. aid:{
  354. type: String,
  355. }
  356. });
  357. const sdialog=ref({
  358. adddialog:false,
  359. dialogsgdelect:false,
  360. dianadddialog:false,
  361. dialogVisiblenode:false,
  362. isDisasterfire:false,
  363. isDisasterwter:false,
  364. adddwater:false,
  365. })
  366. let selectstr=ref('');
  367. const currentPage4 = ref(1);
  368. const pageSize4 = ref(5)
  369. const tableDatawat = ref([]);
  370. const tableDatafir= ref([])
  371. const dialogVisible = ref(true);
  372. const sour = ref({
  373. collfire:false,
  374. collwater:false,
  375. });
  376. let firepid=ref("");
  377. let svid=ref("");
  378. let firesid=ref("");
  379. let searchtaggd=ref("");
  380. let total=ref(1);
  381. let gdadd=ref("0");
  382. let jcadd=ref();
  383. let tableHeight=ref(300)
  384. const multipleTableRef = ref()
  385. const multipleSelection = ref([])
  386. const formLabelWidth5=ref(77);
  387. const formLabelWidth6=ref(120);
  388. let source=reactive({pname:"",site:0.1})
  389. let Disastersource=ref({
  390. svid:0,
  391. timeline:'',
  392. val1:'',
  393. val2:'',
  394. val3:'',
  395. val4:'',
  396. })
  397. const tableData2= ref([])
  398. let aid=ref();
  399. let biaoid= ref();
  400. let coolactiveName1=ref(["1","2"]);
  401. let zqname=ref('');
  402. const tableRowClassName = ({row, rowIndex}) =>{
  403. if (rowIndex%2 != 0) {
  404. return 'evenRow';
  405. }
  406. return 'oddRow';
  407. }
  408. const tableData = [
  409. {
  410. id:1,
  411. date: '01',
  412. name: '首次火灾事故',
  413. address: 'No. 189, Grove S',
  414. },
  415. {
  416. id:2,
  417. date: '02',
  418. name: 'T首次火灾事故om',
  419. address: 'No. 189, Grove St',
  420. },
  421. {
  422. id:3,
  423. date: '03',
  424. name: '首次火灾事故',
  425. address: 'No. 189, Grove St ',
  426. },
  427. ]
  428. const tableDatay = ref([
  429. {
  430. date: '15.30',
  431. name: '35',
  432. address: '20%',
  433. address2: '10%',
  434. },
  435. {
  436. date: '15.30',
  437. name: '35',
  438. address: '20%',
  439. address2: '10%',
  440. },
  441. {
  442. date: '15.30',
  443. name: '35',
  444. address: '20%',
  445. address2: '10%',
  446. },
  447. {
  448. date: '15.30',
  449. name: '35',
  450. address: '20%',
  451. address2: '10%',
  452. },
  453. ])
  454. const tableData4=ref([]);
  455. const accident3=()=>{
  456. console.log(props.classradio);
  457. if(props.classradio=="Fire"){
  458. sour.value.collfire=true;
  459. }else if(props.classradio=="Water"){
  460. sour.value.collwater=true;
  461. }
  462. }
  463. //灾情源查询列表
  464. const handledisaster=(aidval)=>{
  465. aid.value=aidval;
  466. const params = {
  467. transCode: 'D00005',
  468. aid:aid.value,
  469. }
  470. request(params)
  471. .then((res) => {
  472. if(props.classradio=='Fire'){
  473. tableDatay.value=res.rows
  474. }else{
  475. tableDatawat.value=res.rows
  476. }
  477. ;
  478. })
  479. .catch((err) => {
  480. ElMessage.error(err.returnMsg)
  481. })
  482. }
  483. // 灾情源添加
  484. const fireadd=()=>{
  485. const params = {
  486. transCode: 'D00004',
  487. pid:firepid.value,
  488. aid:aid.value,
  489. stype:props.classradio,
  490. site:source.site,
  491. }
  492. request(params)
  493. .then((res) => {
  494. ElMessage({
  495. message: res.returnMsg,
  496. type: 'success',
  497. })
  498. handledisaster(aid.value)
  499. })
  500. .catch((err) => {
  501. })
  502. }
  503. //灾情源添加清空
  504. const firinit=()=>{
  505. Disastersource.value.timeline=''
  506. Disastersource.value.val1=''
  507. Disastersource.value.val2=''
  508. Disastersource.value.val3=''
  509. Disastersource.value.val4=''
  510. }
  511. //添加保存
  512. const handleEditfire=()=>{
  513. if(gdadd.value=='1'){
  514. fireadd()
  515. sdialog.value.dianadddialog=false;
  516. // waaddshow.value=false;
  517. }else if(gdadd.value=='2'){
  518. if(props.classradio=='Fire'){
  519. sdialog.value.dianadddialog=false;
  520. }else {
  521. // waaddshow.value=false;
  522. }
  523. }
  524. handledisaster(aid.value);
  525. }
  526. //灾情源删除
  527. const handleDelete=(val)=>{
  528. console.log(val);
  529. firesid.value=val.sid;
  530. zqname.value=val.pname;
  531. }
  532. const shanchu=(val)=>{
  533. biaoid.value=val;
  534. }
  535. const fundeledata=()=>{
  536.  if( biaoid.value=='1'){
  537.         fundeledata2();
  538.       }else{
  539.         fundeledata3();
  540.       }
  541. }
  542. const fundeledata2=()=>{
  543. const params = {
  544. transCode: 'D000011',
  545. sid:firesid.value,
  546. }
  547. console.log(params);
  548. request(params)
  549. .then((res) => {
  550. ElMessage({
  551. message: '删除成功',
  552. type: 'success',
  553. })
  554. handledisaster(aid.value);
  555. })
  556. .catch((err) => {
  557. })
  558. }
  559. // 管道搜索
  560. function searchgd(){
  561. pipelinedata(searchtaggd.value);
  562. }
  563. // 分页查询
  564. function handleSizeChange(val) {
  565. }
  566. const handleCurrentChange=(val)=>{
  567. pipelinedata(searchtaggd.value)
  568. }
  569. //新建fire
  570. const newtable=()=>{
  571. selectstr.value='';
  572. firepid.value='';
  573. source.site=0;
  574. newtable.value='1';
  575. gdadd.value='1';
  576. }
  577. // 选择
  578. const fireclick=()=>{
  579. pipelinedata('');
  580. }
  581. const queding=()=>{
  582. selectfun();
  583. }
  584. const selectfun=()=>{
  585. selectstr.value='';
  586. currentPage4.value=1;
  587. console.log()
  588. if(multipleSelection.value.length!=0){
  589. firepid.value=multipleSelection.value[0].id;
  590. selectstr.value=multipleSelection.value[0].name;
  591. }else{
  592. selectstr.value='';
  593. }
  594. }
  595. const projectsSelectionSelect=(selection, row)=>{
  596. if(selection.length>1){
  597. multipleTableRef.value.clearSelection();
  598. multipleTableRef.value.toggleRowSelection(row,true);
  599. multipleSelection.value=selection[1];
  600. return;
  601. }
  602. if(selection.length==1){
  603. multipleSelection.value=selection;
  604. }else if(selection.length==0){
  605. }
  606. // console.log(row)
  607. }
  608. //管道数据查询
  609. const pipelinedata=(searchtag)=>{
  610. const params = {
  611. transCode: 'D00001',
  612. count:pageSize4.value,
  613. page:currentPage4.value,
  614. searchtag:searchtag,
  615. }
  616. request(params)
  617. .then((res) => {
  618. tableData2.value=res.rows
  619. total.value=res.total
  620. })
  621. .catch((err) => {
  622. })
  623. }
  624. // 灾源检测
  625. const handledetection=(index,row)=>{
  626. sdialog.value.isDisasterfire=true;
  627. firesid.value=row.sid;
  628. getinquire();
  629. }
  630. //突水灾源检测
  631. const handledetection2=(index,row)=>{
  632. sdialog.value.disDisasterwter=true;
  633. firesid.value=row.sid;
  634. getinquire();
  635. }
  636. // 灾源检测查询
  637. const getinquire=()=>{
  638. const params = {
  639. transCode: 'D00007',
  640. sid:firesid.value,
  641. }
  642. request(params)
  643. .then((res) => {
  644. console.log(res.rows);
  645. if(props.classradio=='Fire'){
  646. tableDatafir.value=res.rows;
  647. }else{
  648. tableData4.value=res.rows
  649. }
  650. })
  651. .catch((err) => {
  652. })
  653. }
  654. // const Disasterclick=(index,row)=>{
  655. // addjiancf();
  656. // }
  657. // 灾源火灾检测添加
  658. const addjiancf=()=>{
  659. const params = {
  660. transCode: 'D00006',
  661. sid:firesid.value,
  662. timeline:Disastersource.value.timeline,
  663. val1:Disastersource.value.val1,
  664. val2:Disastersource.value.val2,
  665. val3:Disastersource.value.val3,
  666. val4:Disastersource.value.val4,
  667. }
  668. request(params)
  669. .then((res) => {
  670. //console.log(res);
  671. ElMessage({
  672. message: res.returnMsg,
  673. type: 'success',
  674. })
  675. getinquire();
  676. })
  677. .catch((err) => {
  678. })
  679. }
  680. // 灾源突水检测添加
  681. //灾情检测删除
  682. const handleDelete2=(val)=>{
  683. console.log(val);
  684. firesid.value=val.sid;
  685. zqname.value="检测表的一条信息";
  686. svid.value=val.svid
  687. }
  688. const handleDelete3=(val)=>{
  689. console.log(val);
  690. firesid.value=val.sid;
  691. zqname.value="检测表的一条信息";
  692. svid.value=val.svid
  693. }
  694. const fundeledata3=()=>{
  695. const params = {
  696. transCode: 'D000013',
  697. svid:svid.value,
  698. }
  699. request(params)
  700. .then((res) => {
  701. //console.log(res);
  702. ElMessage({
  703. message: "删除成功",
  704. type: 'success',
  705. })
  706. getinquire();
  707. })
  708. .catch((err) => {
  709. })
  710. }
  711. onMounted(() => {
  712. });
  713. defineExpose({sour,accident3,handledisaster});
  714. </script>
  715. <style lang="scss" scoped>
  716. .jc_padding .el-table tr{
  717. height: 30px !important;
  718. background: rgba(104,173,255,0.3);
  719. box-shadow: inset 0px 0px 17px 5px rgba(12,97,197,0.2);
  720. border-radius: 0px 0px 0px 0px;
  721. border: 1px solid;
  722. border-image: linear-gradient(180deg, rgba(31, 107, 255, 1), rgba(31, 107, 255, 0.48)) 1 1;
  723. }
  724. .flex_a{
  725. flex: 1;
  726. padding: 0 19px;
  727. }
  728. .btns{
  729. width: 72px;
  730. height: 30px;
  731. background-image: url(../../assets/img/Rectangle399.png);
  732. background-repeat: no-repeat;
  733. line-height: 30px;
  734. overflow: hidden;
  735. margin: 10px 0;
  736. .spantext{
  737. font-weight: bold;
  738. font-size: 12px;
  739. color: #FFFFFF;
  740. text-align: left;
  741. font-style: normal;
  742. text-transform: none;
  743. }
  744. }
  745. .header_z{
  746. box-shadow:none !important;
  747. padding: 10px 20px !important;
  748. }
  749. .header_l{
  750. line-height: 10px;
  751. // height: 40px;
  752. text-align: left;
  753. padding: 0 20px;
  754. // border-bottom: 1px solid;
  755. border-image: linear-gradient(180deg, rgba(31, 107, 255, 1), rgba(31, 107, 255, 0.48)) 1 1;
  756. box-shadow: inset 0px 0px 17px 5px rgba(12,97,197,0.2);
  757. border-radius: 0px 0px 0px 0px;
  758. .el-image{
  759. padding: 10px 10px 0 0;
  760. }
  761. h4{
  762. font-weight: bold;
  763. font-size: 12px;
  764. color: #68ADFF;
  765. line-height: 14px;
  766. text-align: left;
  767. font-style: normal;
  768. text-transform: none;
  769. }
  770. }
  771. .tianjia{
  772. display: inline-block;
  773. }
  774. .jc_padding{
  775. padding: 18px 10px;
  776. }
  777. .line{
  778. border-bottom: 1px solid rgba(255, 255, 255, 0.20);
  779. box-sizing: border-box;
  780. }
  781. .L_aside{
  782. .iconimg{
  783. width: 37px;
  784. height: 36px;
  785. margin:0 7px 0 24px;
  786. }
  787. .Frame2{
  788. background-image: url(../../assets/img/Frame2.png);
  789. background-size: 100%;
  790. background-position: center;
  791. }
  792. .Frame3{
  793. background-image: url(../../assets/img/Frame3.png);
  794. background-repeat: no-repeat;
  795. background-position: center;
  796. }
  797. .el-collapse,.el-collapse-item__header{
  798. border: none;
  799. ul li{
  800. text-align: left;
  801. }
  802. .inputkuang{
  803. height: 30px;
  804. width: 100%;
  805. background: rgba(13,22,57,0.4);
  806. position: relative;
  807. .righttext{
  808. display: inline-block;
  809. position: absolute;
  810. right: 10px;
  811. top: 3px;
  812. color: rgba($color: #FFFFFF, $alpha: 0.8);
  813. }
  814. }
  815. .inputtext_1{
  816. font-weight: 400;
  817. font-size: 13px;
  818. color: #FFFFFF;
  819. line-height: 14px;
  820. text-align: left;
  821. font-style: normal;
  822. text-transform: none;
  823. padding: 13px 0 7px 0;
  824. display: inline-block;
  825. }
  826. }
  827. }
  828. .ddd{
  829. margin-top: 20px;
  830. .ddd_div{
  831. padding: 20px 0;
  832. position: relative;
  833. }
  834. .class_btn{
  835. position: absolute;
  836. right: 0;
  837. top: 21px;
  838. }
  839. .header_l{
  840. line-height: 10px;
  841. // height: 40px;
  842. text-align: left;
  843. padding: 0 20px;
  844. // border-bottom: 1px solid;
  845. border-image: linear-gradient(180deg, rgba(31, 107, 255, 1), rgba(31, 107, 255, 0.48)) 1 1;
  846. box-shadow: inset 0px 0px 17px 5px rgba(12,97,197,0.2);
  847. border-radius: 0px 0px 0px 0px;
  848. .el-image{
  849. padding: 10px 10px 0 0;
  850. }
  851. h4{
  852. font-weight: bold;
  853. font-size: 12px;
  854. color: #68ADFF;
  855. line-height: 14px;
  856. text-align: left;
  857. font-style: normal;
  858. text-transform: none;
  859. }
  860. }
  861. }
  862. .tianjia{
  863. display: inline-block;
  864. }
  865. .el-dialog__title{
  866. display: inline-block;
  867. }
  868. .bgcolor{
  869. // width: 482px;
  870. box-shadow: inset 0px 0px 17px 5px rgba(12,97,197,0.2);
  871. border-radius: 0px 0px 0px 0px;
  872. border: 1px solid;
  873. border-image: linear-gradient(180deg, rgba(31, 107, 255, 1), rgba(31, 107, 255, 0.48)) 1 1;
  874. }
  875. .dialog_class{
  876. .my-header{
  877. line-height: 10px;
  878. height: 40px;
  879. text-align: left;
  880. padding: 0 20px;
  881. border-bottom: 1px solid;
  882. border-image: linear-gradient(180deg, rgba(31, 107, 255, 1), rgba(31, 107, 255, 0.48)) 1 1;
  883. box-shadow: inset 0px 0px 17px 5px rgba(12,97,197,0.2);
  884. border-radius: 0px 0px 0px 0px;
  885. .el-image{
  886. padding: 10px 10px 0 0;
  887. }
  888. h4{
  889. font-weight: bold;
  890. font-size: 12px;
  891. color: #68ADFF;
  892. line-height: 14px;
  893. text-align: left;
  894. font-style: normal;
  895. text-transform: none;
  896. }
  897. }
  898. .my_content{
  899. width: 100%;
  900. height: 90px;
  901. box-shadow: inset 0px 0px 17px 5px rgba(12,97,197,0.2);
  902. border-radius: 0px 0px 0px 0px;
  903. position: relative;
  904. .radio-group{
  905. display: flex;
  906. justify-content: center;
  907. .el-radio{
  908. flex: 1;
  909. justify-content: center;
  910. font-weight: bold;
  911. font-size: 12px;
  912. color: #FFFFFF;
  913. line-height: 14px;
  914. }
  915. }
  916. }
  917. .el-dialog__footer{
  918. position: absolute;
  919. bottom: 17px;
  920. display: flex;
  921. .footerbtn{
  922. flex: 1;
  923. text-align: center;
  924. }
  925. }
  926. }
  927. .my_content1{
  928. .el-table .cell{
  929. font-weight: 400;
  930. font-size: 12px;
  931. color: #FFFFFF !important;
  932. line-height: 14px;
  933. text-align: left;
  934. font-style: normal;
  935. text-transform: none;
  936. }
  937. }
  938. .l_btn .borderimg {
  939. width: 109px;
  940. height: 30px;
  941. background: rgba(104,173,255,0.3);
  942. box-shadow: inset 0px 0px 17px 5px rgba(12,97,197,0.2);
  943. /* border: 1px solid rgba(31, 107, 255, 1); */
  944. border-image: linear-gradient(180deg, rgba(31, 107, 255, 1), rgba(31, 107, 255, 0.48)) 1 1;
  945. border-radius: 4px;
  946. display: flex;
  947. display: inline-block;
  948. box-sizing: border-box;
  949. }
  950. .borderimg{
  951. width: 109px;
  952. height: 30px;
  953. background: rgba(104,173,255,0.3);
  954. box-shadow: inset 0px 0px 17px 5px rgba(12,97,197,0.2);
  955. /* border: 1px solid rgba(31, 107, 255, 1); */
  956. -o-border-image: linear-gradient(180deg, rgba(31, 107, 255, 1), rgba(31, 107, 255, 0.48)) 1 1;
  957. border-image: linear-gradient(180deg, rgba(31, 107, 255, 1), rgba(31, 107, 255, 0.48)) 1 1;
  958. border-radius: 4px;
  959. display: flex;
  960. display: inline-block;
  961. box-sizing: border-box
  962. }
  963. .el-table,.el-table thead th {
  964. background-color: rgba(13, 22, 57, 0.96) !important;
  965. }
  966. .L_aside{
  967. height: calc(100vh - 70px);
  968. position: absolute;
  969. top: 70px;
  970. }
  971. .el-form-item__label{
  972. color: #FFFFFF !important;
  973. }
  974. .asdis_btn{
  975. display: flex;
  976. margin-top: 9px;
  977. .btn{
  978. flex: 1;
  979. width: 145px;
  980. height: 54px;
  981. background-image: url(../../assets/img/Rectangle5.png) ;
  982. background-size: cover;
  983. background-position-x: center !important;
  984. line-height: 54px;
  985. .spantext{
  986. font-weight: bold;
  987. font-size: 12px;
  988. color: #FFFFFF;
  989. text-align: center;
  990. font-style: normal;
  991. text-transform: none;
  992. }
  993. }
  994. }
  995. .jiancedian{
  996. width:380px;
  997. position: absolute;
  998. right: 0;
  999. top: 70px;
  1000. box-shadow: inset 0px 0px 17px 5px rgba(12,97,197,0.2);
  1001. border-radius: 4px 4px 4px 4px;
  1002. border: 1px solid;
  1003. border-image: linear-gradient(180deg, rgba(31, 107, 255, 1), rgba(31, 107, 255, 0.48)) 1 1;
  1004. }
  1005. </style>
  1006. <style>
  1007. .leftbgimg1 .el-collapse-item__header{
  1008. background-image: url(../../assets/img/Group10.png)!important;
  1009. background-size: cover;
  1010. background-position-x: center !important;
  1011. }
  1012. .xian{
  1013. border: 1px solid;
  1014. -o-border-image: linear-gradient(180deg, rgba(31, 107, 255, 1), rgba(31, 107, 255, 0.48)) 1 1;
  1015. border-image: linear-gradient(180deg, rgba(31, 107, 255, 1), rgba(31, 107, 255, 0.48)) 1 1;
  1016. box-shadow: inset 0px 0px 17px 5px rgba(12,97,197,0.2);
  1017. border-radius: 0px 0px 0px 0px;
  1018. background-color: rgba(13, 22, 57, 0.4);
  1019. }
  1020. .header_l{
  1021. position: relative;
  1022. }
  1023. .header_l .closeimg{
  1024. position: absolute;
  1025. top: 10px;
  1026. right: 0;
  1027. }
  1028. .asideg .el-collapse-item__wrap{
  1029. height: calc(100vh - 120px);
  1030. background: rgba(13, 22, 57, 0.4);
  1031. /* //border: 1px solid; */
  1032. border-bottom: 1px solid;
  1033. border-left:1px solid;
  1034. border-right:1px solid;
  1035. -o-border-image: linear-gradient(180deg, rgba(31, 107, 255, 1), rgba(31, 107, 255, 0.48)) 1 1;
  1036. border-image: linear-gradient(180deg, rgba(31, 107, 255, 1), rgba(31, 107, 255, 0.48)) 1 1;
  1037. box-shadow: inset 0px 0px 17px 5px rgba(12,97,197,0.2);
  1038. border-radius: 0px 0px 0px 0px;
  1039. background-color: rgba(13, 22, 57, 0.4);
  1040. }
  1041. .leftbgimg1 .el-table tr{
  1042. height: 30px !important;
  1043. background: rgba(104,173,255,0.3);
  1044. box-shadow: inset 0px 0px 17px 5px rgba(12,97,197,0.2);
  1045. border-radius: 0px 0px 0px 0px;
  1046. border: 1px solid;
  1047. border-image: linear-gradient(180deg, rgba(31, 107, 255, 1), rgba(31, 107, 255, 0.48)) 1 1;
  1048. }
  1049. .btncolor .el-button{
  1050. background-color: rgba(104,173,255,0);
  1051. font-weight: 400;
  1052. font-size: 12px;
  1053. color: #FFF500;
  1054. line-height: 14px;
  1055. text-align: left;
  1056. font-style: normal;
  1057. text-transform: none;
  1058. border: none;
  1059. }
  1060. .btncolor .el-button:focus, .el-button:hover{
  1061. background-color: none;
  1062. background-color: rgba(104,173,255,0);
  1063. }
  1064. .btncolor .el-table__header{
  1065. margin: 0 14px
  1066. }
  1067. .magintop{
  1068. display: flex;
  1069. }
  1070. .magintop .el-form-item{
  1071. margin-right: 20px;
  1072. }
  1073. .guand_1{
  1074. display: flex;
  1075. }
  1076. .guand_1 .asdis_btn{
  1077. margin-top: -9px;
  1078. }
  1079. .el-table .cell{
  1080. color: #fff;
  1081. font-size: 12px;
  1082. }
  1083. .spanclad{
  1084. color: #FFF500;
  1085. }
  1086. .tablefocus .el-table__body tr.current-row>td.el-table__cell {
  1087. background-color: rgba(255,255,25,0.5);
  1088. }
  1089. </style>