index.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059
  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. }
  201. },
  202. methods: { //关闭弹窗
  203. close(e) {
  204. this.open = false
  205. },
  206. changeSelect(item, index) {
  207. this.open = false;
  208. this.typeList = [];
  209. if (this.projectType == 'GongYe') {
  210. this.enginName = item.name;
  211. this.enginType = item.enginType;
  212. // //工业工程
  213. getDicts("engin_classification").then(response => {
  214. this.typeList = response.data;
  215. });
  216. this.handleShowSheet();
  217. } else if (this.projectType == 'ShiZheng') {
  218. this.id = item.id;
  219. this.enginName = item.name;
  220. this.enginType = item.enginType;
  221. getDicts("municipal_node_types").then(response => {
  222. this.typeList = response.data;
  223. });
  224. this.handleShowSheet();
  225. } else if (this.projectType == 'DingGuan') {
  226. this.id = item.id;
  227. this.enginName = item.name;
  228. this.enginType = item.enginType;
  229. getDicts("pipe_jack").then(response => {
  230. this.typeList = response.data;
  231. });
  232. this.handleShowSheet();
  233. } else if (this.projectType == 'PengKou') {
  234. this.id = item.id;
  235. this.enginName = item.name;
  236. this.enginType = item.enginType;
  237. this.address = item.locations;
  238. getDicts(item.modeOperation).then(response => {
  239. this.typeList = response.data;
  240. });
  241. this.handleShowSheet();
  242. }
  243. },
  244. navClick(newId) {
  245. if (newId == 1) {
  246. this.showMinYong()
  247. } else if (newId == 2) {
  248. this.showGongYe();
  249. } else if (newId == 3) {
  250. this.municipalProjectClick();
  251. } else if (newId == 4) {
  252. this.showDangerous();
  253. } else if (newId == 5) {
  254. this.showTopPipe();
  255. } else if (newId == 6) {
  256. this.showInfrastructureDialog();
  257. } else if (newId == 7) {
  258. this.showOpenBolt();
  259. } else if (newId == 8) {
  260. this.showGasSealingDialog();
  261. }
  262. },
  263. // 显示二次弹窗
  264. handleShowSheet() {
  265. this.shareState = true;
  266. },
  267. // 隐藏二次弹窗
  268. handleHiddenShare() {
  269. this.shareState = false;
  270. },
  271. showMinYong() {
  272. this.projectType = 'MinYong';
  273. getDicts("old_renovation").then(response => {
  274. this.OldProjectList = response.data;
  275. });
  276. getDicts("new_built").then(response => {
  277. this.NewProjectList = response.data;
  278. });
  279. this.showPopup = !this.showPopup;
  280. },
  281. //市政工程-首页-点击事件
  282. municipalProjectClick() {
  283. this.projectType = 'ShiZheng';
  284. this.open = true;
  285. getMunicipalProjectList().then(res => {
  286. let list = res.data;
  287. let mList = [];
  288. list.forEach((item, index) => {
  289. mList.push({
  290. id: item.id,
  291. name: item.name,
  292. enginType: item.enginType,
  293. title: item.name + " - " + item.enginType
  294. })
  295. })
  296. this.selectList = mList;
  297. })
  298. },
  299. NewProject(e) {
  300. this.enginType = 'new_built'; //写死
  301. this.enginClassification = e.dictValue;
  302. this.enginClassValue = e.dictLabel; //(拆旧管等 字典值)
  303. this.typeList = ''; //置空
  304. if (e.dictValue == 'indoor_engin') {
  305. //新建室内
  306. getDicts("new_built_indoor_engin").then(response => {
  307. this.typeList = response.data;
  308. });
  309. this.handleShowSheet();
  310. } else if (e.dictValue == 'courtyard') {
  311. //新建庭院
  312. getDicts("new_built_courtyard").then(response => {
  313. this.typeList = response.data;
  314. });
  315. this.handleShowSheet();
  316. } else if (e.dictValue == 'overhead') {
  317. //新建架空
  318. getDicts("new_built_overhead").then(response => {
  319. this.typeList = response.data;
  320. });
  321. this.handleShowSheet();
  322. } else if (e.dictValue == 'bottom_leg') {
  323. //新建底腿
  324. const obj = {
  325. enginClassValue: this.enginClassValue, //(拆旧管等 字典值)
  326. enginType: this.enginType, //旧改 还是新建 写死
  327. enginClassification: this.enginClassification //室内 庭院 架空
  328. };
  329. uni.navigateTo({
  330. url: '/pages/bottom_leg/bottom_leg?params=' + encodeURIComponent(JSON
  331. .stringify(
  332. obj))
  333. })
  334. } else if (e.dictValue == 'not_installed') {
  335. //新建管道施工记录
  336. const obj = {
  337. enginClassValue: this.enginClassValue, //(拆旧管等 字典值)
  338. enginType: this.enginType, //旧改 还是新建 写死
  339. enginClassification: this.enginClassification //室内 庭院 架空
  340. };
  341. uni.navigateTo({
  342. url: '/pages/piping_record/piping_record?params=' + encodeURIComponent(JSON
  343. .stringify(
  344. obj))
  345. })
  346. } else if (e.dictValue == 'pressure_regulating') {
  347. //调压柜
  348. const obj = {
  349. enginClassValue: this.enginClassValue, //(拆旧管等 字典值)
  350. enginType: this.enginType, //旧改 还是新建 写死
  351. enginClassification: this.enginClassification //室内 庭院 架空
  352. };
  353. uni.navigateTo({
  354. url: '/pages/surge_tank/surge_tank?params=' + encodeURIComponent(JSON
  355. .stringify(
  356. obj))
  357. })
  358. // getDicts("gy_tyg").then(response => {
  359. // this.typeList = response.data;
  360. // });
  361. // this.handleShowSheet();
  362. }
  363. },
  364. OldProject(e) {
  365. this.enginType = 'old_renovation'; //写死
  366. this.enginClassification = e.dictValue;
  367. this.enginClassValue = e.dictLabel; //(拆旧管等 字典值)
  368. this.typeList = ''; //置空
  369. if (e.dictValue == 'indoor_engin') {
  370. //旧改室内
  371. getDicts("old_renovation_indoor_engin").then(response => {
  372. this.typeList = response.data;
  373. });
  374. this.handleShowSheet();
  375. } else if (e.dictValue == 'courtyard') {
  376. //旧改庭院
  377. getDicts("old_renovation_courtyard").then(response => {
  378. this.typeList = response.data;
  379. });
  380. this.handleShowSheet();
  381. } else if (e.dictValue == 'overhead') {
  382. //旧改架空
  383. getDicts("old_renovation_overhead").then(response => {
  384. this.typeList = response.data;
  385. });
  386. this.handleShowSheet();
  387. } else if (e.dictValue == 'bottom_leg') {
  388. //旧改底腿
  389. const obj = {
  390. enginClassValue: this.enginClassValue, //(拆旧管等 字典值)
  391. enginType: this.enginType, //旧改 还是新建 写死
  392. enginClassification: this.enginClassification //室内 庭院 架空
  393. };
  394. uni.navigateTo({
  395. url: '/pages/bottom_leg/bottom_leg?params=' + encodeURIComponent(JSON
  396. .stringify(
  397. obj))
  398. })
  399. } else if (e.dictValue == 'not_installed') {
  400. //旧改管道施工记录
  401. const obj = {
  402. enginClassValue: this.enginClassValue, //(拆旧管等 字典值)
  403. enginType: this.enginType, //旧改 还是新建 写死
  404. enginClassification: this.enginClassification //室内 庭院 架空
  405. };
  406. uni.navigateTo({
  407. url: '/pages/piping_record/piping_record?params=' + encodeURIComponent(JSON
  408. .stringify(
  409. obj))
  410. })
  411. } else if (e.dictValue == 'pressure_regulating') {
  412. //调压柜
  413. const obj = {
  414. enginClassValue: this.enginClassValue, //(拆旧管等 字典值)
  415. enginType: this.enginType, //旧改 还是新建 写死
  416. enginClassification: this.enginClassification //室内 庭院 架空
  417. };
  418. uni.navigateTo({
  419. url: '/pages/surge_tank/surge_tank?params=' + encodeURIComponent(JSON
  420. .stringify(
  421. obj))
  422. })
  423. // uni.navigateTo({
  424. // url: '/pages/DailyLog/daily_log?params=' + encodeURIComponent(JSON
  425. // .stringify(
  426. // obj))
  427. // })
  428. // getDicts("gy_tyg").then(response => {
  429. // this.typeList = response.data;
  430. // });
  431. // this.handleShowSheet();
  432. }
  433. },
  434. //二次弹窗 选择类型
  435. showTypeSheet(item) {
  436. if (this.projectType == 'MinYong') {
  437. //this.showPopup = !this.showPopup; //隐藏第一次弹窗
  438. this.enginClassValue = item.dictValue; //二次节点赋值
  439. const obj = {
  440. enginClassValue: this.enginClassValue, //(拆旧管等 字典值)
  441. enginType: this.enginType, //旧改 还是新建 写死
  442. enginClassification: this.enginClassification //室内 庭院 架空
  443. };
  444. //this.handleHiddenShare();
  445. // 室内
  446. if (this.enginClassification == 'indoor_engin') {
  447. uni.navigateTo({
  448. url: '/pages/oldrenovation/indoor/indoor?params=' + encodeURIComponent(JSON.stringify(
  449. obj))
  450. })
  451. }
  452. // 庭院
  453. else if (this.enginClassification == 'courtyard') {
  454. if (this.enginClassValue == '下沟') {
  455. uni.navigateTo({
  456. url: '/pages/oldrenovation/courtyard/courtyard?params=' + encodeURIComponent(
  457. JSON
  458. .stringify(
  459. obj))
  460. })
  461. } else {
  462. uni.navigateTo({
  463. url: '/pages/oldrenovation/courtyard/newcourtyard?params=' + encodeURIComponent(
  464. JSON
  465. .stringify(
  466. obj))
  467. })
  468. }
  469. } else if (this.enginClassification == 'overhead') { //架空
  470. if (this.enginClassValue == '全貌照片' || this.enginClassValue == '焊接') {
  471. uni.navigateTo({
  472. url: '/pages/oldrenovation/overhead/newoverhead?params=' + encodeURIComponent(JSON
  473. .stringify(
  474. obj))
  475. })
  476. } else {
  477. uni.navigateTo({
  478. url: '/pages/oldrenovation/overhead/overhead?params=' + encodeURIComponent(JSON
  479. .stringify(
  480. obj))
  481. })
  482. }
  483. }
  484. // else {
  485. // //调压柜
  486. // uni.navigateTo({
  487. // url: '/pages/surge_tank/surge_tank?params=' + encodeURIComponent(JSON
  488. // .stringify(
  489. // obj))
  490. // })
  491. // }
  492. } else if (this.projectType == 'ShiZheng') {
  493. let obj = {
  494. id: this.id,
  495. value: item.dictValue,
  496. title: item.dictLabel
  497. };
  498. uni.navigateTo({
  499. url: '/pages/municipal/municipal?params=' + encodeURIComponent(JSON
  500. .stringify(obj))
  501. });
  502. } else if (this.projectType == 'GongYe') {
  503. let label = '';
  504. if (item.dictLabel == '室内管线' || item.dictLabel == '室外管线') {
  505. switch (item.dictLabel) {
  506. case '室内管线':
  507. label = 'gy_inner '
  508. break
  509. case '室外管线':
  510. label = 'gy_out'
  511. break
  512. case '调压柜':
  513. label = 'gy_tyg'
  514. break
  515. }
  516. this.handleHiddenShare();
  517. this.title_lebel = item.dictValue;
  518. getDicts(label).then(response => {
  519. this.typeList = response.data;
  520. });
  521. this.handleShowSheet();
  522. } else {
  523. let obj = ''
  524. if (item.dictLabel == '调压柜') {
  525. obj = {
  526. value: item.dictValue,
  527. title: item.dictLabel,
  528. name: this.enginName,
  529. enginType: this.enginType,
  530. };
  531. } else {
  532. obj = {
  533. value: item.dictValue,
  534. title: this.title_lebel,
  535. name: this.enginName,
  536. enginType: this.enginType,
  537. };
  538. }
  539. uni.navigateTo({
  540. url: '/pages/enginproject/enginproject?params=' + encodeURIComponent(JSON
  541. .stringify(
  542. obj))
  543. })
  544. }
  545. } else if (this.projectType == 'PengKou') {
  546. let obj = {
  547. id: this.id,
  548. value: item.dictValue,
  549. title: item.dictLabel,
  550. name: this.enginName,
  551. address: this.address
  552. };
  553. uni.navigateTo({
  554. url: '/pages/collision/collisionMouth?params=' + encodeURIComponent(JSON
  555. .stringify(
  556. obj))
  557. })
  558. } else if (this.projectType == 'JiJian') {
  559. let obj = {
  560. value: item.dictValue,
  561. name: this.enginName,
  562. enginType: this.enginType,
  563. };
  564. //this.handleHiddenShare();
  565. uni.navigateTo({
  566. url: '/pages/infrastructure/infrastructure?params=' + encodeURIComponent(JSON
  567. .stringify(
  568. obj))
  569. })
  570. } else if (this.projectType == 'DingGuan') {
  571. let obj = {
  572. id: this.id,
  573. value: item.dictValue
  574. };
  575. //this.handleHiddenShare();
  576. uni.navigateTo({
  577. url: '/pages/TopPipeWork/TopPipeWork?params=' + encodeURIComponent(JSON
  578. .stringify(
  579. obj))
  580. })
  581. } else if (this.projectType == 'DaiQiFengDuShiGong') {
  582. let obj = {
  583. Label: item.dictLabel,
  584. value: item.dictValue
  585. };
  586. //this.handleHiddenShare();
  587. uni.navigateTo({
  588. url: '/pages/gas_sealing_project/gas_sealing_project?params=' + encodeURIComponent(JSON
  589. .stringify(
  590. obj))
  591. })
  592. }
  593. },
  594. showGongYe() {
  595. this.projectType = 'GongYe';
  596. // //工业工程
  597. // getDicts("engin_classification").then(response => {
  598. // this.typeList = response.data;
  599. // });
  600. // this.handleShowSheet();
  601. this.open = true;
  602. getEnginProjectList().then(res => {
  603. let list = res.data;
  604. let mList = [];
  605. list.forEach((item, index) => {
  606. mList.push({
  607. name: item.name,
  608. enginType: item.enginType,
  609. title: item.name + " - " + item.enginType
  610. })
  611. })
  612. this.selectList = mList;
  613. })
  614. },
  615. showTopPipe() {
  616. this.projectType = 'DingGuan';
  617. this.open = true;
  618. getTopPipeNameList().then(response => {
  619. let list = response.data;
  620. let mList = [];
  621. list.forEach((item, index) => {
  622. mList.push({
  623. id: item.id,
  624. name: item.name,
  625. title: item.name
  626. })
  627. })
  628. this.selectList = mList;
  629. });
  630. },
  631. showInfrastructureDialog() {
  632. this.projectType = 'JiJian';
  633. //基建工程
  634. getDicts("engineering_infrastructure").then(response => {
  635. this.typeList = response.data;
  636. });
  637. this.handleShowSheet();
  638. },
  639. showDangerous() {
  640. this.projectType = 'PengKou';
  641. this.open = true;
  642. //请求
  643. getCollisionProjectList().then(response => {
  644. let list = response.data;
  645. let mList = [];
  646. list.forEach((item, index) => {
  647. mList.push({
  648. id: item.id,
  649. name: item.name,
  650. title: item.name,
  651. locations: item.locations,
  652. modeOperation: item.modeOperation
  653. })
  654. })
  655. this.selectList = mList;
  656. });
  657. },
  658. showOpenBolt() {
  659. let obj = {
  660. type: 'new'
  661. };
  662. uni.navigateTo({
  663. url: '/pages/open_bolt/open_bolt?params=' + encodeURIComponent(JSON
  664. .stringify(
  665. obj))
  666. })
  667. },
  668. showGasSealingDialog() {
  669. this.projectType = 'DaiQiFengDuShiGong';
  670. //基建工程
  671. getDicts("air_wall_node").then(response => {
  672. this.typeList = response.data;
  673. });
  674. this.handleShowSheet();
  675. },
  676. }
  677. }
  678. </script>
  679. <style lang="scss">
  680. /* #ifndef APP-NVUE */
  681. page {
  682. display: flex;
  683. flex-direction: column;
  684. box-sizing: border-box;
  685. background-color: #fff;
  686. min-height: 100%;
  687. height: auto;
  688. }
  689. view {
  690. font-size: 14px;
  691. line-height: inherit;
  692. }
  693. .work-container {
  694. display: flex;
  695. flex-direction: column;
  696. }
  697. /* #endif */
  698. .text {
  699. text-align: center;
  700. font-size: 26rpx;
  701. margin-top: 10rpx;
  702. }
  703. .grid-item-box {
  704. flex: 1;
  705. /* #ifndef APP-NVUE */
  706. display: flex;
  707. /* #endif */
  708. flex-direction: column;
  709. align-items: center;
  710. justify-content: center;
  711. padding: 15px 0;
  712. }
  713. .uni-margin-wrap {
  714. width: 690rpx;
  715. width: 100%;
  716. ;
  717. }
  718. .swiper {
  719. height: 300rpx;
  720. }
  721. .swiper-box {
  722. height: 150px;
  723. }
  724. .swiper-item {
  725. /* #ifndef APP-NVUE */
  726. display: flex;
  727. /* #endif */
  728. flex-direction: column;
  729. justify-content: center;
  730. align-items: center;
  731. color: #fff;
  732. height: 300rpx;
  733. line-height: 300rpx;
  734. }
  735. @media screen and (min-width: 500px) {
  736. .uni-swiper-dot-box {
  737. width: 400px;
  738. /* #ifndef APP-NVUE */
  739. margin: 0 auto;
  740. /* #endif */
  741. margin-top: 8px;
  742. }
  743. .image {
  744. width: 100%;
  745. }
  746. }
  747. // 弹窗效果
  748. .popup {
  749. position: fixed;
  750. bottom: 0;
  751. left: 0;
  752. width: 100%;
  753. background-color: #fff;
  754. // padding: 20rpx;
  755. box-sizing: border-box;
  756. z-index: 999;
  757. border-top-left-radius: 40rpx;
  758. border-top-right-radius: 40rpx;
  759. }
  760. // 遮罩层
  761. .mask {
  762. position: fixed;
  763. top: 0;
  764. left: 0;
  765. width: 100%;
  766. height: 100%;
  767. background-color: rgba(0, 0, 0, 0.5);
  768. z-index: 888;
  769. }
  770. // 弹窗内容
  771. .content {
  772. .top40 {
  773. margin-top: 30rpx;
  774. }
  775. .line1 {
  776. text-align: center;
  777. display: flex;
  778. justify-content: start;
  779. align-items: center;
  780. padding: 20rpx;
  781. }
  782. .btn-grp {
  783. display: flex;
  784. .btn-grp-item {
  785. width: 33%;
  786. display: flex;
  787. flex-direction: column;
  788. align-items: center;
  789. text-align: center;
  790. .line2-btn-big {
  791. width: 90rpx;
  792. height: 90rpx;
  793. margin-bottom: 10rpx;
  794. }
  795. }
  796. }
  797. .line2 {
  798. padding: 20rpx;
  799. // border-bottom: 1px solid black;
  800. view {
  801. margin-bottom: 10rpx;
  802. }
  803. }
  804. }
  805. // 按钮样式
  806. .btn-group {
  807. box-shadow: 0px -2px 6px rgba(0, 0, 0, 0.5);
  808. /* 示例阴影参数,根据需要进行调整 */
  809. .btn_position {
  810. display: flex;
  811. width: 100%;
  812. .cancel {
  813. width: 50%;
  814. text-align: center;
  815. padding: 20rpx 0;
  816. color: #519fe7;
  817. }
  818. .submit {
  819. width: 50%;
  820. background-color: #519fe7;
  821. text-align: center;
  822. padding: 20rpx 0;
  823. color: #fff;
  824. }
  825. }
  826. }
  827. .share {
  828. width: 100%;
  829. height: 100%;
  830. }
  831. .share-box {
  832. width: 100%;
  833. height: 100%;
  834. position: fixed;
  835. top: 0rpx;
  836. left: 0rpx;
  837. bottom: 0rpx;
  838. right: 0rpx;
  839. background-color: rgba(0, 0, 0, 0.4);
  840. transition: .3s;
  841. z-index: 999;
  842. }
  843. // 进入分享动画
  844. .share-show {
  845. transition: all 0.3s ease;
  846. transform: translateY(0%) !important;
  847. }
  848. .scroll-Y {
  849. height: 350rpx;
  850. }
  851. // 离开分享动画
  852. .share-item {
  853. position: fixed;
  854. left: 0;
  855. bottom: 0;
  856. width: 100%;
  857. height: auto;
  858. background-color: #FFFFFF;
  859. transition: all 0.3s ease;
  860. transform: translateY(100%);
  861. z-index: 1999;
  862. border-top-left-radius: 40rpx;
  863. border-top-right-radius: 40rpx;
  864. .share-to {
  865. width: 100%;
  866. height: 3rem;
  867. display: flex;
  868. justify-content: center;
  869. align-items: center;
  870. &::after {
  871. content: '';
  872. width: 240rpx;
  873. height: 0rpx;
  874. border-top: 1px solid #E4E7ED;
  875. -webkit-transform: scaleY(0.5);
  876. transform: scaleY(0.5);
  877. margin-left: 30rpx;
  878. }
  879. &::before {
  880. content: '';
  881. width: 240rpx;
  882. height: 0rpx;
  883. border-top: 1px solid #E4E7ED;
  884. -webkit-transform: scaleY(0.5);
  885. transform: scaleY(0.5);
  886. margin-right: 30rpx;
  887. }
  888. }
  889. .content {
  890. width: 100%;
  891. height: 50%;
  892. display: flex;
  893. flex-wrap: wrap;
  894. .block {
  895. width: 100%;
  896. display: flex;
  897. flex-direction: column;
  898. justify-content: center;
  899. align-items: center;
  900. height: 80rpx;
  901. text {
  902. margin-top: 16rpx;
  903. font-size: 28rpx;
  904. color: #606266;
  905. }
  906. }
  907. }
  908. .cancel {
  909. width: 100%;
  910. height: 3rem;
  911. display: flex;
  912. justify-content: center;
  913. align-items: center;
  914. border-top: 1rpx solid #E4E7ED;
  915. }
  916. }
  917. /*********************九宫格********************* */
  918. .Grid {
  919. display: flex;
  920. flex-wrap: wrap;
  921. justify-content: space-between;
  922. align-content: space-between;
  923. // background: #f7f7f7;
  924. padding: 10rpx 0;
  925. .Grid-Item {
  926. width: 50%;
  927. // height: 100px;
  928. text-align: center;
  929. // border: 1rpx solid #ff0000;
  930. box-sizing: border-box;
  931. .icon-item {
  932. width: 220rpx;
  933. height: 220rpx;
  934. }
  935. .GSimg {
  936. width: 96rpx;
  937. height: 96rpx;
  938. margin-top: 42rpx;
  939. margin-left: 75rpx;
  940. .Image {
  941. width: 96rpx;
  942. height: 96rpx;
  943. }
  944. }
  945. .GStitle {
  946. width: 100%;
  947. color: #516d97;
  948. font-size: 28rpx;
  949. text-align: center;
  950. margin-top: -30rpx;
  951. margin-bottom: 30rpx;
  952. }
  953. }
  954. }
  955. .click-hover {
  956. background-color: #d0d0d0;
  957. }
  958. </style>