index.vue 25 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052
  1. <template>
  2. <view class="work-container">
  3. <view style="work-banner">
  4. <image :src="loadImgSrc('work-banner.png')" style="width: 100%;height:43vh"></image>
  5. <view style="float: left;top: 100px;margin-left: 20px;">{{nickName}}:欢迎登录</view>
  6. </view>
  7. <view class="grid-body">
  8. <view class="Grid">
  9. <view class="Grid-Item" v-for="item in List" :key="item.id" @click="navClick(item.id)"
  10. hover-class="click-hover" hover-start-time="50" hover-stay-time="50"
  11. v-if="userRole.includes(item.title)">
  12. <image class="icon-item" :src="loadImgSrc('mygc.png')" v-if="item.title == '民用工程'"></image>
  13. <image class="icon-item" :src="loadImgSrc('gygc.png')" v-if="item.title == '工业工程'"></image>
  14. <image class="icon-item" :src="loadImgSrc('szgc.png')" v-if="item.title == '市政工程'"></image>
  15. <image class="icon-item" :src="loadImgSrc('wxzy.png')" v-if="item.title == '碰口作业'"></image>
  16. <image class="icon-item" :src="loadImgSrc('dggc.png')" v-if="item.title == '顶管工程'"></image>
  17. <image class="icon-item" :src="loadImgSrc('jjgc.png')" v-if="item.title == '基建工程'"></image>
  18. <image class="icon-item" :src="loadImgSrc('open_bolt.png')" v-if="item.title == '开栓'"></image>
  19. <!-- <image class="icon-item" :src="loadImgSrc('gas_sealing.png')" v-if="item.title == '带气封堵施工'"></image> -->
  20. <view class="GStitle">{{ item.title }}</view>
  21. </view>
  22. </view>
  23. <view v-if="showPopup" class="popup">
  24. <view class="content">
  25. <view class="line1 top40">
  26. <view style="width: 61rpx;
  27. color: #CEB98D;
  28. height: 61rpx;
  29. display: flex;
  30. justify-content: center;
  31. align-items: center;
  32. border: 3px solid #CEB98D;
  33. border-radius: 50%; margin-right: 20rpx;">旧</view>
  34. <view>旧改工程</view>
  35. </view>
  36. <view class="line2 btn-grp">
  37. <view class="btn-grp-item" v-for="(item, index) in OldProjectList" :key="index"
  38. @click="OldProject(item)">
  39. <image :src="loadImgSrc('sn.png')" class="line2-btn-big" v-if="item.dictLabel == '室内'">
  40. </image>
  41. <image :src="loadImgSrc('ty.png')" class="line2-btn-big" v-if="item.dictLabel == '庭院'">
  42. </image>
  43. <image :src="loadImgSrc('jk.png')" class="line2-btn-big" v-if="item.dictLabel == '架空'">
  44. </image>
  45. <image :src="loadImgSrc('dt.png')" class="line2-btn-big" v-if="item.dictLabel == '底腿'">
  46. </image>
  47. <image :src="loadImgSrc('gd.png')" class="line2-btn-big" v-if="item.dictLabel == '未安装'">
  48. </image>
  49. <image :src="loadImgSrc('gd.png')" class="line2-btn-big" v-if="item.dictLabel == '调压柜'">
  50. </image>
  51. {{item.dictLabel}}
  52. </view>
  53. </view>
  54. <view class="line1">
  55. <view style="width: 61rpx;
  56. color: #85c9c2;
  57. height: 61rpx;
  58. display: flex;
  59. justify-content: center;
  60. align-items: center;
  61. border: 3px solid #85c9c2;
  62. border-radius: 50%; margin-right: 20rpx;">新</view>
  63. <view>新建工程</view>
  64. </view>
  65. <view class="line2 btn-grp">
  66. <view class="btn-grp-item" v-for="(item, index) in NewProjectList" :key="index"
  67. @click="NewProject(item)">
  68. <image :src="loadImgSrc('sn2.png')" class="line2-btn-big" v-if="item.dictLabel == '室内'">
  69. </image>
  70. <image :src="loadImgSrc('ty2.png')" class="line2-btn-big" v-if="item.dictLabel == '庭院'">
  71. </image>
  72. <image :src="loadImgSrc('jk2.png')" class="line2-btn-big" v-if="item.dictLabel == '架空'">
  73. </image>
  74. <image :src="loadImgSrc('dt2.png')" class="line2-btn-big" v-if="item.dictLabel == '底腿'">
  75. </image>
  76. <image :src="loadImgSrc('gd2.png')" class="line2-btn-big" v-if="item.dictLabel == '未安装'">
  77. </image>
  78. <image :src="loadImgSrc('gd2.png')" class="line2-btn-big" v-if="item.dictLabel == '调压柜'">
  79. </image>
  80. {{item.dictLabel}}
  81. </view>
  82. </view>
  83. </view>
  84. <!-- <view class="btn-group">
  85. <view class="btn_position">
  86. <view class="cancel" @click="showMinYong">取消</view>
  87. </view>
  88. </view> -->
  89. </view>
  90. <view v-if="showPopup" class="mask" @click="showMinYong"></view>
  91. </view>
  92. <view class="share">
  93. <view :class="{'share-box': shareState}" @click="handleHiddenShare">
  94. </view>
  95. <view class="share-item" :class="{'share-show': shareState}">
  96. <view class="share-to">
  97. <text>请选择</text>
  98. </view>
  99. <scroll-view scroll-y="true" class="scroll-Y">
  100. <view class="content">
  101. <view class="block" v-for="(item, index) in typeList" :key="index" @click="showTypeSheet(item)">
  102. <!-- <image :src="item.image" mode="aspectFill"></image> -->
  103. <text>{{item.dictLabel}}</text>
  104. </view>
  105. </view>
  106. </scroll-view>
  107. <view class="cancel" @click.stop="handleHiddenShare">
  108. <text>取消</text>
  109. </view>
  110. </view>
  111. </view>
  112. <SelectPicker :list="selectList" @change="changeSelect" v-if="open" @close="close" titleKey="title"
  113. subtitleKey="id" v-model="name"></SelectPicker>
  114. </view>
  115. </view>
  116. </template>
  117. <script>
  118. import SelectPicker from '../../components/selectPicker/select_picker.vue'
  119. import {
  120. getDicts
  121. } from "@/api/system/dict/data";
  122. import {
  123. getUserRole
  124. } from '@/utils/auth';
  125. import user from '@/store/modules/user'
  126. import {
  127. getEnginProjectList,
  128. getMunicipalProjectList,
  129. getCollisionProjectList,
  130. getTopPipeNameList,
  131. } from '@/api/common';
  132. export default {
  133. components: {
  134. SelectPicker,
  135. },
  136. data() {
  137. return {
  138. nickName: user.state.nickName,
  139. userRole: getUserRole(),
  140. showPopup: false,
  141. shareState: false,
  142. array: [],
  143. projectType: '', //工程类型
  144. OldProjectList: '', //旧改工程
  145. NewProjectList: '', //民用工程
  146. typeList: '', //二次弹窗数据
  147. enginType: '',
  148. enginClassification: '', // 旧改节点 数据字典
  149. enginClassValue: '', //二次节点 数据字典
  150. current: 0,
  151. swiperDotIndex: 0,
  152. title_lebel: '',
  153. List: [{
  154. id: 1,
  155. img: '/static/logo.png',
  156. title: '民用工程'
  157. },
  158. {
  159. id: 2,
  160. img: '/static/logo.png',
  161. title: '工业工程'
  162. },
  163. {
  164. id: 3,
  165. img: '/static/logo.png',
  166. title: '市政工程'
  167. },
  168. {
  169. id: 4,
  170. img: '/static/logo.png',
  171. title: '碰口作业'
  172. },
  173. {
  174. id: 5,
  175. img: '/static/logo.png',
  176. title: '顶管工程'
  177. },
  178. {
  179. id: 6,
  180. img: '/static/logo.png',
  181. title: '基建工程'
  182. },
  183. {
  184. id: 7,
  185. img: '/static/logo.png',
  186. title: '开栓'
  187. },
  188. {
  189. id: 8,
  190. img: '/static/logo.png',
  191. title: '带气封堵施工'
  192. },
  193. ],
  194. selectList: [],
  195. open: false,
  196. id: '',
  197. enginName: '',
  198. enginType: '',
  199. address: '',
  200. GYClassification: [],
  201. }
  202. },
  203. methods: { //关闭弹窗
  204. close(e) {
  205. this.open = false
  206. },
  207. changeSelect(item, index) {
  208. this.open = false;
  209. this.typeList = [];
  210. if (this.projectType == 'GongYe') {
  211. this.enginName = item.name;
  212. this.enginType = item.enginType;
  213. // //工业工程
  214. // getDicts("engin_classification").then(response => {
  215. // this.typeList = response.data;
  216. // });
  217. // this.handleShowSheet();
  218. this.GYClassification = item.enginClassification;
  219. this.typeList = this.GYClassification;
  220. this.handleShowSheet();
  221. } else if (this.projectType == 'ShiZheng') {
  222. this.id = item.id;
  223. this.enginName = item.name;
  224. this.enginType = item.enginType;
  225. getDicts("municipal_node_types").then(response => {
  226. this.typeList = response.data;
  227. });
  228. this.handleShowSheet();
  229. } else if (this.projectType == 'DingGuan') {
  230. this.id = item.id;
  231. this.enginName = item.name;
  232. this.enginType = item.enginType;
  233. getDicts("pipe_jack").then(response => {
  234. this.typeList = response.data;
  235. });
  236. this.handleShowSheet();
  237. } else if (this.projectType == 'PengKou') {
  238. this.id = item.id;
  239. this.enginName = item.name;
  240. this.enginType = item.enginType;
  241. this.address = item.locations;
  242. getDicts(item.modeOperation).then(response => {
  243. this.typeList = response.data;
  244. });
  245. this.handleShowSheet();
  246. }
  247. },
  248. navClick(newId) {
  249. if (newId == 1) {
  250. this.showMinYong()
  251. } else if (newId == 2) {
  252. this.showGongYe();
  253. } else if (newId == 3) {
  254. this.municipalProjectClick();
  255. } else if (newId == 4) {
  256. this.showDangerous();
  257. } else if (newId == 5) {
  258. this.showTopPipe();
  259. } else if (newId == 6) {
  260. this.showInfrastructureDialog();
  261. } else if (newId == 7) {
  262. this.showOpenBolt();
  263. } else if (newId == 8) {
  264. this.showGasSealingDialog();
  265. }
  266. },
  267. // 显示二次弹窗
  268. handleShowSheet() {
  269. this.shareState = true;
  270. },
  271. // 隐藏二次弹窗
  272. handleHiddenShare() {
  273. this.shareState = false;
  274. },
  275. showMinYong() {
  276. this.projectType = 'MinYong';
  277. getDicts("old_renovation").then(response => {
  278. this.OldProjectList = response.data;
  279. });
  280. getDicts("new_built").then(response => {
  281. this.NewProjectList = response.data;
  282. });
  283. this.showPopup = !this.showPopup;
  284. },
  285. //市政工程-首页-点击事件
  286. municipalProjectClick() {
  287. this.projectType = 'ShiZheng';
  288. this.open = true;
  289. getMunicipalProjectList().then(res => {
  290. let list = res.data;
  291. let mList = [];
  292. list.forEach((item, index) => {
  293. mList.push({
  294. id: item.id,
  295. name: item.name,
  296. enginType: item.enginType,
  297. title: item.name + " - " + item.enginType
  298. })
  299. })
  300. this.selectList = mList;
  301. })
  302. },
  303. NewProject(e) {
  304. this.enginType = 'new_built'; //写死
  305. this.enginClassification = e.dictValue;
  306. this.enginClassValue = e.dictLabel; //(拆旧管等 字典值)
  307. this.typeList = ''; //置空
  308. if (e.dictValue == 'indoor_engin') {
  309. //新建室内
  310. getDicts("new_built_indoor_engin").then(response => {
  311. this.typeList = response.data;
  312. });
  313. this.handleShowSheet();
  314. } else if (e.dictValue == 'courtyard') {
  315. //新建庭院
  316. getDicts("new_built_courtyard").then(response => {
  317. this.typeList = response.data;
  318. });
  319. this.handleShowSheet();
  320. } else if (e.dictValue == 'overhead') {
  321. //新建架空
  322. getDicts("new_built_overhead").then(response => {
  323. this.typeList = response.data;
  324. });
  325. this.handleShowSheet();
  326. } else if (e.dictValue == 'bottom_leg') {
  327. //新建底腿
  328. const obj = {
  329. enginClassValue: this.enginClassValue, //(拆旧管等 字典值)
  330. enginType: this.enginType, //旧改 还是新建 写死
  331. enginClassification: this.enginClassification //室内 庭院 架空
  332. };
  333. uni.navigateTo({
  334. url: '/pages/bottom_leg/bottom_leg?params=' + encodeURIComponent(JSON
  335. .stringify(
  336. obj))
  337. })
  338. } else if (e.dictValue == 'not_installed') {
  339. //新建管道施工记录
  340. const obj = {
  341. enginClassValue: this.enginClassValue, //(拆旧管等 字典值)
  342. enginType: this.enginType, //旧改 还是新建 写死
  343. enginClassification: this.enginClassification //室内 庭院 架空
  344. };
  345. uni.navigateTo({
  346. url: '/pages/piping_record/piping_record?params=' + encodeURIComponent(JSON
  347. .stringify(
  348. obj))
  349. })
  350. } else if (e.dictValue == 'pressure_regulating') {
  351. //调压柜
  352. const obj = {
  353. enginClassValue: this.enginClassValue, //(拆旧管等 字典值)
  354. enginType: this.enginType, //旧改 还是新建 写死
  355. enginClassification: this.enginClassification //室内 庭院 架空
  356. };
  357. uni.navigateTo({
  358. url: '/pages/surge_tank/surge_tank?params=' + encodeURIComponent(JSON
  359. .stringify(
  360. obj))
  361. })
  362. // getDicts("gy_tyg").then(response => {
  363. // this.typeList = response.data;
  364. // });
  365. // this.handleShowSheet();
  366. }
  367. },
  368. OldProject(e) {
  369. this.enginType = 'old_renovation'; //写死
  370. this.enginClassification = e.dictValue;
  371. this.enginClassValue = e.dictLabel; //(拆旧管等 字典值)
  372. this.typeList = ''; //置空
  373. if (e.dictValue == 'indoor_engin') {
  374. //旧改室内
  375. getDicts("old_renovation_indoor_engin").then(response => {
  376. this.typeList = response.data;
  377. });
  378. this.handleShowSheet();
  379. } else if (e.dictValue == 'courtyard') {
  380. //旧改庭院
  381. getDicts("old_renovation_courtyard").then(response => {
  382. this.typeList = response.data;
  383. });
  384. this.handleShowSheet();
  385. } else if (e.dictValue == 'overhead') {
  386. //旧改架空
  387. getDicts("old_renovation_overhead").then(response => {
  388. this.typeList = response.data;
  389. });
  390. this.handleShowSheet();
  391. } else if (e.dictValue == 'bottom_leg') {
  392. //旧改底腿
  393. const obj = {
  394. enginClassValue: this.enginClassValue, //(拆旧管等 字典值)
  395. enginType: this.enginType, //旧改 还是新建 写死
  396. enginClassification: this.enginClassification //室内 庭院 架空
  397. };
  398. uni.navigateTo({
  399. url: '/pages/bottom_leg/bottom_leg?params=' + encodeURIComponent(JSON
  400. .stringify(
  401. obj))
  402. })
  403. } else if (e.dictValue == 'not_installed') {
  404. //旧改管道施工记录
  405. const obj = {
  406. enginClassValue: this.enginClassValue, //(拆旧管等 字典值)
  407. enginType: this.enginType, //旧改 还是新建 写死
  408. enginClassification: this.enginClassification //室内 庭院 架空
  409. };
  410. uni.navigateTo({
  411. url: '/pages/piping_record/piping_record?params=' + encodeURIComponent(JSON
  412. .stringify(
  413. obj))
  414. })
  415. } else if (e.dictValue == 'pressure_regulating') {
  416. //调压柜
  417. const obj = {
  418. enginClassValue: this.enginClassValue, //(拆旧管等 字典值)
  419. enginType: this.enginType, //旧改 还是新建 写死
  420. enginClassification: this.enginClassification //室内 庭院 架空
  421. };
  422. uni.navigateTo({
  423. url: '/pages/surge_tank/surge_tank?params=' + encodeURIComponent(JSON
  424. .stringify(
  425. obj))
  426. })
  427. // uni.navigateTo({
  428. // url: '/pages/DailyLog/daily_log?params=' + encodeURIComponent(JSON
  429. // .stringify(
  430. // obj))
  431. // })
  432. // getDicts("gy_tyg").then(response => {
  433. // this.typeList = response.data;
  434. // });
  435. // this.handleShowSheet();
  436. }
  437. },
  438. //二次弹窗 选择类型
  439. showTypeSheet(item) {
  440. if (this.projectType == 'MinYong') {
  441. //this.showPopup = !this.showPopup; //隐藏第一次弹窗
  442. this.enginClassValue = item.dictValue; //二次节点赋值
  443. const obj = {
  444. enginClassValue: this.enginClassValue, //(拆旧管等 字典值)
  445. enginType: this.enginType, //旧改 还是新建 写死
  446. enginClassification: this.enginClassification //室内 庭院 架空
  447. };
  448. //this.handleHiddenShare();
  449. // 室内
  450. if (this.enginClassification == 'indoor_engin') {
  451. uni.navigateTo({
  452. url: '/pages/oldrenovation/indoor/indoor?params=' + encodeURIComponent(JSON.stringify(
  453. obj))
  454. })
  455. }
  456. // 庭院
  457. else if (this.enginClassification == 'courtyard') {
  458. if (this.enginClassValue == '下沟') {
  459. uni.navigateTo({
  460. url: '/pages/oldrenovation/courtyard/courtyard?params=' + encodeURIComponent(
  461. JSON
  462. .stringify(
  463. obj))
  464. })
  465. } else {
  466. uni.navigateTo({
  467. url: '/pages/oldrenovation/courtyard/newcourtyard?params=' + encodeURIComponent(
  468. JSON
  469. .stringify(
  470. obj))
  471. })
  472. }
  473. } else if (this.enginClassification == 'overhead') { //架空
  474. if (this.enginClassValue == '全貌照片' || this.enginClassValue == '焊接') {
  475. uni.navigateTo({
  476. url: '/pages/oldrenovation/overhead/newoverhead?params=' + encodeURIComponent(JSON
  477. .stringify(
  478. obj))
  479. })
  480. } else {
  481. uni.navigateTo({
  482. url: '/pages/oldrenovation/overhead/overhead?params=' + encodeURIComponent(JSON
  483. .stringify(
  484. obj))
  485. })
  486. }
  487. }
  488. // else {
  489. // //调压柜
  490. // uni.navigateTo({
  491. // url: '/pages/surge_tank/surge_tank?params=' + encodeURIComponent(JSON
  492. // .stringify(
  493. // obj))
  494. // })
  495. // }
  496. } else if (this.projectType == 'ShiZheng') {
  497. let obj = {
  498. id: this.id,
  499. Label: item.dictLabel,
  500. value: item.dictValue,
  501. title: item.dictLabel
  502. };
  503. uni.navigateTo({
  504. url: '/pages/municipal/municipal?params=' + encodeURIComponent(JSON
  505. .stringify(obj))
  506. });
  507. } else if (this.projectType == 'GongYe') {
  508. if (item.dictLabel == '室内管线' || item.dictLabel == '庭院' || item.dictLabel == '架空管线') {
  509. this.handleHiddenShare();
  510. this.title_lebel = item.dictValue;
  511. getDicts(item.dictType).then(response => {
  512. this.typeList = response.data;
  513. });
  514. this.handleShowSheet();
  515. } else {
  516. let obj = ''
  517. if (item.dictLabel == '每日施工日志') {
  518. obj = {
  519. value: item.dictValue,
  520. title: item.dictLabel,
  521. name: this.enginName,
  522. enginType: this.enginType,
  523. };
  524. } else {
  525. obj = {
  526. value: item.dictValue,
  527. title: this.title_lebel,
  528. name: this.enginName,
  529. enginType: this.enginType,
  530. };
  531. }
  532. uni.navigateTo({
  533. url: '/pages/enginproject/enginproject?params=' + encodeURIComponent(JSON
  534. .stringify(
  535. obj))
  536. })
  537. }
  538. } else if (this.projectType == 'PengKou') {
  539. let obj = {
  540. id: this.id,
  541. value: item.dictValue,
  542. title: item.dictLabel,
  543. name: this.enginName,
  544. address: this.address
  545. };
  546. uni.navigateTo({
  547. url: '/pages/collision/collisionMouth?params=' + encodeURIComponent(JSON
  548. .stringify(
  549. obj))
  550. })
  551. } else if (this.projectType == 'JiJian') {
  552. let obj = {
  553. value: item.dictValue,
  554. name: this.enginName,
  555. enginType: this.enginType,
  556. };
  557. //this.handleHiddenShare();
  558. uni.navigateTo({
  559. url: '/pages/infrastructure/infrastructure?params=' + encodeURIComponent(JSON
  560. .stringify(
  561. obj))
  562. })
  563. } else if (this.projectType == 'DingGuan') {
  564. let obj = {
  565. id: this.id,
  566. value: item.dictValue
  567. };
  568. //this.handleHiddenShare();
  569. uni.navigateTo({
  570. url: '/pages/TopPipeWork/TopPipeWork?params=' + encodeURIComponent(JSON
  571. .stringify(
  572. obj))
  573. })
  574. } else if (this.projectType == 'DaiQiFengDuShiGong') {
  575. let obj = {
  576. Label: item.dictLabel,
  577. value: item.dictValue
  578. };
  579. //this.handleHiddenShare();
  580. uni.navigateTo({
  581. url: '/pages/gas_sealing_project/gas_sealing_project?params=' + encodeURIComponent(JSON
  582. .stringify(
  583. obj))
  584. })
  585. }
  586. },
  587. showGongYe() {
  588. this.projectType = 'GongYe';
  589. // //工业工程
  590. // getDicts("engin_classification").then(response => {
  591. // this.typeList = response.data;
  592. // });
  593. // this.handleShowSheet();
  594. this.open = true;
  595. getEnginProjectList().then(res => {
  596. let list = res.data;
  597. let mList = [];
  598. list.forEach((item, index) => {
  599. mList.push({
  600. name: item.name,
  601. enginType: item.enginType,
  602. title: item.name + " - " + item.enginType,
  603. enginClassification: item.enginClassification
  604. })
  605. })
  606. this.selectList = mList;
  607. })
  608. },
  609. showTopPipe() {
  610. this.projectType = 'DingGuan';
  611. this.open = true;
  612. getTopPipeNameList().then(response => {
  613. let list = response.data;
  614. let mList = [];
  615. list.forEach((item, index) => {
  616. mList.push({
  617. id: item.id,
  618. name: item.name,
  619. title: item.name
  620. })
  621. })
  622. this.selectList = mList;
  623. });
  624. },
  625. showInfrastructureDialog() {
  626. this.projectType = 'JiJian';
  627. //基建工程
  628. getDicts("engineering_infrastructure").then(response => {
  629. this.typeList = response.data;
  630. });
  631. this.handleShowSheet();
  632. },
  633. showDangerous() {
  634. this.projectType = 'PengKou';
  635. this.open = true;
  636. //请求
  637. getCollisionProjectList().then(response => {
  638. let list = response.data;
  639. let mList = [];
  640. list.forEach((item, index) => {
  641. mList.push({
  642. id: item.id,
  643. name: item.name,
  644. title: item.name,
  645. locations: item.locations,
  646. modeOperation: item.modeOperation
  647. })
  648. })
  649. this.selectList = mList;
  650. });
  651. },
  652. showOpenBolt() {
  653. let obj = {
  654. type: 'new'
  655. };
  656. uni.navigateTo({
  657. url: '/pages/open_bolt/open_bolt?params=' + encodeURIComponent(JSON
  658. .stringify(
  659. obj))
  660. })
  661. },
  662. showGasSealingDialog() {
  663. this.projectType = 'DaiQiFengDuShiGong';
  664. //基建工程
  665. getDicts("air_wall_node").then(response => {
  666. this.typeList = response.data;
  667. });
  668. this.handleShowSheet();
  669. },
  670. }
  671. }
  672. </script>
  673. <style lang="scss">
  674. /* #ifndef APP-NVUE */
  675. page {
  676. display: flex;
  677. flex-direction: column;
  678. box-sizing: border-box;
  679. background-color: #fff;
  680. min-height: 100%;
  681. height: auto;
  682. }
  683. view {
  684. font-size: 14px;
  685. line-height: inherit;
  686. }
  687. .work-container {
  688. display: flex;
  689. flex-direction: column;
  690. }
  691. /* #endif */
  692. .text {
  693. text-align: center;
  694. font-size: 26rpx;
  695. margin-top: 10rpx;
  696. }
  697. .grid-item-box {
  698. flex: 1;
  699. /* #ifndef APP-NVUE */
  700. display: flex;
  701. /* #endif */
  702. flex-direction: column;
  703. align-items: center;
  704. justify-content: center;
  705. padding: 15px 0;
  706. }
  707. .uni-margin-wrap {
  708. width: 690rpx;
  709. width: 100%;
  710. ;
  711. }
  712. .swiper {
  713. height: 300rpx;
  714. }
  715. .swiper-box {
  716. height: 150px;
  717. }
  718. .swiper-item {
  719. /* #ifndef APP-NVUE */
  720. display: flex;
  721. /* #endif */
  722. flex-direction: column;
  723. justify-content: center;
  724. align-items: center;
  725. color: #fff;
  726. height: 300rpx;
  727. line-height: 300rpx;
  728. }
  729. @media screen and (min-width: 500px) {
  730. .uni-swiper-dot-box {
  731. width: 400px;
  732. /* #ifndef APP-NVUE */
  733. margin: 0 auto;
  734. /* #endif */
  735. margin-top: 8px;
  736. }
  737. .image {
  738. width: 100%;
  739. }
  740. }
  741. // 弹窗效果
  742. .popup {
  743. position: fixed;
  744. bottom: 0;
  745. left: 0;
  746. width: 100%;
  747. background-color: #fff;
  748. // padding: 20rpx;
  749. box-sizing: border-box;
  750. z-index: 999;
  751. border-top-left-radius: 40rpx;
  752. border-top-right-radius: 40rpx;
  753. }
  754. // 遮罩层
  755. .mask {
  756. position: fixed;
  757. top: 0;
  758. left: 0;
  759. width: 100%;
  760. height: 100%;
  761. background-color: rgba(0, 0, 0, 0.5);
  762. z-index: 888;
  763. }
  764. // 弹窗内容
  765. .content {
  766. .top40 {
  767. margin-top: 30rpx;
  768. }
  769. .line1 {
  770. text-align: center;
  771. display: flex;
  772. justify-content: start;
  773. align-items: center;
  774. padding: 20rpx;
  775. }
  776. .btn-grp {
  777. display: flex;
  778. .btn-grp-item {
  779. width: 33%;
  780. display: flex;
  781. flex-direction: column;
  782. align-items: center;
  783. text-align: center;
  784. .line2-btn-big {
  785. width: 90rpx;
  786. height: 90rpx;
  787. margin-bottom: 10rpx;
  788. }
  789. }
  790. }
  791. .line2 {
  792. padding: 20rpx;
  793. // border-bottom: 1px solid black;
  794. view {
  795. margin-bottom: 10rpx;
  796. }
  797. }
  798. }
  799. // 按钮样式
  800. .btn-group {
  801. box-shadow: 0px -2px 6px rgba(0, 0, 0, 0.5);
  802. /* 示例阴影参数,根据需要进行调整 */
  803. .btn_position {
  804. display: flex;
  805. width: 100%;
  806. .cancel {
  807. width: 50%;
  808. text-align: center;
  809. padding: 20rpx 0;
  810. color: #519fe7;
  811. }
  812. .submit {
  813. width: 50%;
  814. background-color: #519fe7;
  815. text-align: center;
  816. padding: 20rpx 0;
  817. color: #fff;
  818. }
  819. }
  820. }
  821. .share {
  822. width: 100%;
  823. height: 100%;
  824. }
  825. .share-box {
  826. width: 100%;
  827. height: 100%;
  828. position: fixed;
  829. top: 0rpx;
  830. left: 0rpx;
  831. bottom: 0rpx;
  832. right: 0rpx;
  833. background-color: rgba(0, 0, 0, 0.4);
  834. transition: .3s;
  835. z-index: 999;
  836. }
  837. // 进入分享动画
  838. .share-show {
  839. transition: all 0.3s ease;
  840. transform: translateY(0%) !important;
  841. }
  842. .scroll-Y {
  843. height: 350rpx;
  844. }
  845. // 离开分享动画
  846. .share-item {
  847. position: fixed;
  848. left: 0;
  849. bottom: 0;
  850. width: 100%;
  851. height: auto;
  852. background-color: #FFFFFF;
  853. transition: all 0.3s ease;
  854. transform: translateY(100%);
  855. z-index: 1999;
  856. border-top-left-radius: 40rpx;
  857. border-top-right-radius: 40rpx;
  858. .share-to {
  859. width: 100%;
  860. height: 3rem;
  861. display: flex;
  862. justify-content: center;
  863. align-items: center;
  864. &::after {
  865. content: '';
  866. width: 240rpx;
  867. height: 0rpx;
  868. border-top: 1px solid #E4E7ED;
  869. -webkit-transform: scaleY(0.5);
  870. transform: scaleY(0.5);
  871. margin-left: 30rpx;
  872. }
  873. &::before {
  874. content: '';
  875. width: 240rpx;
  876. height: 0rpx;
  877. border-top: 1px solid #E4E7ED;
  878. -webkit-transform: scaleY(0.5);
  879. transform: scaleY(0.5);
  880. margin-right: 30rpx;
  881. }
  882. }
  883. .content {
  884. width: 100%;
  885. height: 50%;
  886. display: flex;
  887. flex-wrap: wrap;
  888. .block {
  889. width: 100%;
  890. display: flex;
  891. flex-direction: column;
  892. justify-content: center;
  893. align-items: center;
  894. height: 80rpx;
  895. text {
  896. margin-top: 16rpx;
  897. font-size: 28rpx;
  898. color: #606266;
  899. }
  900. }
  901. }
  902. .cancel {
  903. width: 100%;
  904. height: 3rem;
  905. display: flex;
  906. justify-content: center;
  907. align-items: center;
  908. border-top: 1rpx solid #E4E7ED;
  909. }
  910. }
  911. /*********************九宫格********************* */
  912. .Grid {
  913. display: flex;
  914. flex-wrap: wrap;
  915. justify-content: space-between;
  916. align-content: space-between;
  917. // background: #f7f7f7;
  918. padding: 10rpx 0;
  919. .Grid-Item {
  920. width: 50%;
  921. // height: 100px;
  922. text-align: center;
  923. // border: 1rpx solid #ff0000;
  924. box-sizing: border-box;
  925. .icon-item {
  926. width: 220rpx;
  927. height: 220rpx;
  928. }
  929. .GSimg {
  930. width: 96rpx;
  931. height: 96rpx;
  932. margin-top: 42rpx;
  933. margin-left: 75rpx;
  934. .Image {
  935. width: 96rpx;
  936. height: 96rpx;
  937. }
  938. }
  939. .GStitle {
  940. width: 100%;
  941. color: #516d97;
  942. font-size: 28rpx;
  943. text-align: center;
  944. margin-top: -30rpx;
  945. margin-bottom: 30rpx;
  946. }
  947. }
  948. }
  949. .click-hover {
  950. background-color: #d0d0d0;
  951. }
  952. </style>