移动端
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

index.vue 19 KiB

2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
1 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
2 år sedan
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495
  1. <template>
  2. <div class="home_wrapper">
  3. <div class="head_main">
  4. <div class="location">
  5. <div class="address" @click="villageVisbile = true"><i class="icon"></i>{{deptName}}</div>
  6. <van-popup v-model="villageVisbile" round position="bottom">
  7. <van-cascader
  8. v-model="villageValue"
  9. title="请选择所在村"
  10. :options="hcAreaInfoOption"
  11. @close="hcAreaInfoClose"
  12. @finish="hcAreaInfoFinish"
  13. active-color="#1989fa"
  14. :field-names="hcAreaInfoFieldName"
  15. />
  16. </van-popup>
  17. <div class="address" @click="bookVisbile = true">{{bookName}}</div>
  18. <van-popup v-model="bookVisbile" round position="bottom">
  19. <van-picker
  20. title="请选择账套"
  21. show-toolbar
  22. :columns="bookList"
  23. @confirm="onConfirmBook"
  24. @cancel="onCancelBook"
  25. value-key="bookName"
  26. />
  27. </van-popup>
  28. </div>
  29. <van-popover
  30. v-model="showPopover"
  31. trigger="click"
  32. :actions="actions"
  33. placement="bottom-end"
  34. @select="selectChange"
  35. >
  36. <template #reference>
  37. <div class="exit_btn">
  38. <i class="icon"></i>
  39. </div>
  40. </template>
  41. </van-popover>
  42. <!-- @click="logout"-->
  43. </div>
  44. <div class="index_info">
  45. <div class="title"></div>
  46. <div class="nav_list" v-for="(item,idx) in menusList" :key="idx">
  47. <div class="nav_list_box">
  48. <van-cell :border="false" style="border-radius: 6px;">
  49. <template #title>
  50. <p style="font-weight: bold;font-size: 18px;display: inline-block">{{item.modleName}}</p>
  51. </template>
  52. </van-cell>
  53. <router-link
  54. v-for="(childrenItem,childrenIdx) in item.menus"
  55. :key="childrenItem.id"
  56. :to="{name:childrenItem.menuUrl,query:{typeX:childrenItem.urlPara}}"
  57. class="nav_item n_13"
  58. v-if="childrenItem.menuIcon!=null"
  59. :style="`background:url(${require('@/assets/images/sunVillage_info/' + childrenItem.menuIcon)}) no-repeat center top;background-size: 50%;`"
  60. >
  61. {{childrenItem.menuName}}
  62. </router-link>
  63. </div>
  64. </div>
  65. </div>
  66. <div class="footer">
  67. {{configValue == ""?'技术支持:北京农燊高科信息技术有限公司':configValue}}
  68. </div>
  69. <!-- <router-link :to="{name:'sunVillageInfoListContract',query:{typeX:'2'}}" class="nav_item n_13">党务公开</router-link>-->
  70. <!-- <router-link :to="{name:'sunVillageInfoListContract',query:{typeX:'3'}}" class="nav_item n_14">政务公开</router-link>-->
  71. <!-- <router-link :to="{name:'sunVillageInfoListFinance'}" class="nav_item n_1">财务公开榜</router-link>-->
  72. <!-- <router-link :to="{name:'sunVillageInfoListTourists'}" class="nav_item n_2">零工公开榜</router-link>-->
  73. <!-- <router-link :to="{name:'sunVillageInfoListRegister'}" class="nav_item n_8">零工登记</router-link>-->
  74. <!-- <router-link :to="{name:'sunVillageInfoStatisticalReport'}" class="nav_item n_9">统计填报</router-link>-->
  75. <!-- <router-link :to="{name:'sunVillageInfoListIssues'}" class="nav_item n_3">重大事项</router-link>-->
  76. <!-- <router-link :to="{name:'sunVillageInfoListVote'}" class="nav_item n_5">发布投票</router-link>-->
  77. <!-- <router-link :to="{name:'sunVillageInfoListPhoto'}" class="nav_item n_11">村庄图公开</router-link>-->
  78. <!-- <router-link :to="{name:'sunVillageInfoListContract',query:{typeX:'1'}}" class="nav_item n_12">合同公开</router-link>-->
  79. <!-- <router-link :to="{name:'sunVillageApprovalList'}" class="nav_item n_01">银行卡转账</router-link>-->
  80. <!-- <router-link :to="{name:'sunVillageApprovalList2'}" class="nav_item n_02">信用卡还款</router-link>-->
  81. <!-- <router-link :to="{name:'sunVillageApprovalList11'}" class="nav_item n_03">备付金支出</router-link>-->
  82. <!-- <router-link :to="{name:'sunVillageApprovalList12'}" class="nav_item n_04">汇票支出</router-link>-->
  83. <!-- <router-link :to="{name:'sunVillageCollectionList'}" class="nav_item n_05">收款账户</router-link>-->
  84. <!-- <router-link :to="{name:'sunVillagePaymentAccountList'}" class="nav_item n_06">付款账户</router-link>-->
  85. <!-- <router-link :to="{name:'sunVillageBankOfDepositList'}" class="nav_item n_07">开户行</router-link>-->
  86. <!-- <router-link :to="{name:'sunVillageInfoListBalanceRanking'}" class="nav_item n_4">余额表</router-link>-->
  87. <!-- <router-link :to="{name:'sunVillageInfoDetailedLedger'}" class="nav_item n_10">明细账</router-link>-->
  88. <!-- <router-link :to="{name:'sunVillageInfoFixedAssets'}" class="nav_item n_6">固定资产</router-link>-->
  89. <!-- <router-link :to="{name:'sunVillageInfoInformation'}" class="nav_item n_7">合同信息</router-link>-->
  90. </div>
  91. </template>
  92. <script>
  93. import { changeBook , listByDeptId , treeselectByUser , menus } from "@/api/sunVillage_info/fixedAssets";
  94. import { getInfo } from "@/api/login/index";
  95. import {changeDept} from "../../api/onlineHome/done";
  96. import {bookListByDeptId} from "../../api/homestead";
  97. import Cookies from "js-cookie";
  98. import {logout} from "../../api/login";
  99. import { sysConfig } from "@/api/homesteadSurvey/index";
  100. import {removeToken} from "@/utils/auth";
  101. export default {
  102. name: "certificateList",
  103. data() {
  104. return {
  105. showPopover: false,
  106. actions: [
  107. { text: '个人信息', icon: 'manager-o' , index: 0 },
  108. { text: '修改密码', icon: 'edit' , index: 1 },
  109. { text: '事项审批', icon: 'manager-o' , index: 2 },
  110. { text: '退出登录', icon: 'revoke' , index: 3 },
  111. ],
  112. deptIdOptions:[],
  113. villageVisbile:false,
  114. showBookList:false,
  115. deptName:'',
  116. //选中的值
  117. villageValue: "",
  118. //省市区区级list
  119. hcAreaInfoOption: [],
  120. hcAreaInfoFieldName: {
  121. text: "label",
  122. value: "value",
  123. children: "children",
  124. },
  125. bookName:'',
  126. queryParams: {
  127. pageNum: 1,
  128. pageSize: 100,
  129. },
  130. //账套列表
  131. bookVisbile:false,
  132. bookList:[],
  133. bookName:"",
  134. bookId:"",
  135. book:"",
  136. ygcwList:[],
  137. zcsqList:[],
  138. cwxxList:[],
  139. menusList:[],
  140. configValue:''
  141. };
  142. },
  143. created() {
  144. getInfo().then(response => {
  145. this.bookName = response.user.bookName
  146. this.deptName = response.user.deptName
  147. Cookies.set("bookName", response.user.bookName, {
  148. expires: 30,
  149. });
  150. Cookies.set("deptName", response.user.deptName, {
  151. expires: 30,
  152. });
  153. Cookies.set("bookId", response.user.loginBookId, {
  154. expires: 30,
  155. });
  156. Cookies.set("deptId", response.user.loginDeptId, {
  157. expires: 30,
  158. });
  159. this.getBookList(response.user.loginDeptId);
  160. });
  161. treeselectByUser().then((res) => {
  162. if (res.code == 200) {
  163. this.hcAreaInfoOption = res.data;
  164. }
  165. });
  166. let query = {
  167. identityType:3
  168. }
  169. menus(query).then((res) => {
  170. if (res.code == 200) {
  171. this.menusList = res.data;
  172. // this.ygcwList = res.data[0].menus;
  173. // this.zcsqList = res.data[1].menus;
  174. // this.cwxxList = res.data[2].menus;
  175. }
  176. });
  177. this.$set(this.queryParams, "systemType", '4');
  178. let params={
  179. configKey: "system.company.name"}
  180. sysConfig(params).then((res) => {
  181. if (res.code == 200) {
  182. this.configValue = res.rows[0].configValue;
  183. }
  184. });
  185. },
  186. methods: {
  187. getPath(url){
  188. // '@/assets/images/sunVillage_info/index_block_13.png'
  189. return require( '@/assets/images/sunVillage_info/' + url );
  190. },
  191. //关闭选择地址弹窗
  192. hcAreaInfoClose() {
  193. this.villageVisbile = false;
  194. },
  195. hcAreaInfoFinish({ value, selectedOptions, tabIndex }) {
  196. // 切换部门
  197. let Depquery={"loginDeptID":value}
  198. changeDept(Depquery).then((response) => {
  199. if (response.code === 200) {
  200. this.$store.dispatch("GetInfo").then(() => {
  201. // this.$router.go(0);
  202. window.location.href = "/sunVillage_info/index";
  203. });
  204. }
  205. });
  206. this.villageVisbile = false;
  207. },
  208. getBookList(e){
  209. let params = {
  210. loginDeptID:e
  211. }
  212. listByDeptId(params).then((response) => {
  213. if (response.code == 200) {
  214. this.bookList = response.rows;
  215. }
  216. })
  217. },
  218. onConfirmBook(e){
  219. this.bookVisbile = false
  220. this.bookName = e.bookName
  221. let param={"loginBookId":e.id}
  222. changeBook(param).then((response) => {
  223. if (response.code === 200) {
  224. this.$store.dispatch("GetInfo").then(() => {
  225. // this.$router.go(0);
  226. window.location.href = "/sunVillage_info/index";
  227. });
  228. }
  229. });
  230. },
  231. onCancelBook(e){
  232. this.bookVisbile = false
  233. },
  234. logout(){
  235. logout().then(res => {
  236. removeToken();
  237. this.$router.push({path:"/sunVillage_info/index_code",query:{bookId:Cookies.get('bookId'),deptId:Cookies.get('deptId')}})
  238. })
  239. },
  240. selectChange(val){
  241. val.index == 0 ? this.$router.push({path:"/sunVillage_info/user"}) :
  242. val.index == 1 ? this.$router.push({path:"/sunVillage_info/passWord"}) :
  243. val.index == 2 ? this.$router.push({path:"../yinnong/my"}) :
  244. val.index == 3 ? this.logout() :
  245. '';
  246. }
  247. },
  248. }
  249. </script>
  250. <style scoped lang="scss">
  251. .home_wrapper{
  252. background: #f1f2f2;
  253. width: 100vw;
  254. min-height: 100vh;
  255. .head_main{
  256. height: 340px;
  257. background: url('../../assets/images/sunVillage_info/index_head.png') no-repeat;
  258. background-size: 100% 100%;
  259. position: relative;
  260. .location{
  261. height: 42px;
  262. line-height: 42px;
  263. position: absolute;
  264. left: 38px;
  265. top: 72px;
  266. display: flex;
  267. .address{
  268. padding:0 18px;
  269. background:rgba(255,255,255,0.75);
  270. border-radius: 42px;
  271. font-size: 28px;
  272. color: #3f3d56;
  273. margin-right: 12px;
  274. display: flex;
  275. align-items:center;
  276. .icon{
  277. display: block;
  278. width: 20px;
  279. height: 26px;
  280. background: url('../../assets/images/sunVillage_info/index_icon_1.png') no-repeat;
  281. background-size: 100% 100%;
  282. margin-right: 10px;
  283. }
  284. }
  285. }
  286. /deep/ .van-popover__wrapper{
  287. position: absolute;
  288. top: 64px;
  289. right: 36px;
  290. }
  291. .exit_btn{
  292. width: 61px;
  293. height: 61px;
  294. /*background: #3f3d56;*/
  295. border-radius: 50%;
  296. display: flex;
  297. align-items: center;
  298. justify-content: center;
  299. /*position: absolute;*/
  300. /*top: 64px;*/
  301. /*right: 36px;*/
  302. .icon{
  303. width: 100%;
  304. height: 100%;
  305. background: url('../../assets/images/sunVillage_info/login_head_h.png') no-repeat;
  306. background-size: 100% 100%;
  307. }
  308. }
  309. }
  310. .index_info{
  311. padding-top: 4.1vh;
  312. .title{
  313. width: 521px;
  314. height: 52px;
  315. background: url('../../assets/images/sunVillage_info/index_title.png') no-repeat;
  316. background-size: 100% 100%;
  317. margin:0 auto;
  318. }
  319. .nav_list{
  320. margin-top: 3vh;
  321. padding:0 38px;
  322. &:nth-child(2){
  323. margin-top: 6vh;
  324. }
  325. .van-cell{
  326. background: transparent;
  327. }
  328. .nav_list_box{
  329. display: flex;
  330. flex-flow: wrap;
  331. box-shadow: 0px 0px 18px rgba(63,68,75,0.2);
  332. /*padding: 0 0 20PX;*/
  333. border-radius: 15PX;
  334. overflow: hidden;
  335. background: #ffffff;
  336. }
  337. .nav_box{
  338. box-shadow: 0px 0px 18px rgba(63,68,75,0.2);
  339. margin-bottom: 40PX;
  340. border-radius: 15PX;
  341. overflow: hidden;
  342. /deep/ .van-grid-item__content{
  343. background: transparent;
  344. padding-top: 0;
  345. }
  346. }
  347. .nav_item{
  348. width: 25%;
  349. /*height: 180px;*/
  350. border-radius: 30px;
  351. font-size: 24px;
  352. color: #3f3d56;
  353. text-align: center;
  354. display: flex;
  355. align-items: center;
  356. justify-content: center;
  357. padding-top: 100px;
  358. &.n_1{
  359. background: url('../../assets/images/sunVillage_info/index_block_01.png') no-repeat center top;
  360. background-size: 50%;
  361. margin-bottom: 20PX;
  362. }
  363. &.n_2{
  364. background: url('../../assets/images/sunVillage_info/index_block_02.png') no-repeat center top;
  365. background-size: 50%;
  366. margin-bottom: 20PX;
  367. }
  368. &.n_3 {
  369. background: url('../../assets/images/sunVillage_info/index_block_03.png') no-repeat center top;
  370. background-size: 50%;
  371. margin-bottom: 20PX;
  372. }
  373. &.n_4 {
  374. background: url('../../assets/images/sunVillage_info/index_block_04.png') no-repeat center top;
  375. background-size: 50%;
  376. margin-bottom: 20PX;
  377. }
  378. &.n_5 {
  379. background: url('../../assets/images/sunVillage_info/index_block_05.png') no-repeat center top;
  380. background-size: 50%;
  381. margin-bottom: 20PX;
  382. }
  383. &.n_6 {
  384. background: url('../../assets/images/sunVillage_info/index_block_06.png') no-repeat center top;
  385. background-size: 50%;
  386. margin-bottom: 20PX;
  387. }
  388. &.n_7 {
  389. background: url('../../assets/images/sunVillage_info/index_block_07.png') no-repeat center top;
  390. background-size: 50%;
  391. margin-bottom: 20PX;
  392. }
  393. &.n_8 {
  394. background: url('../../assets/images/sunVillage_info/index_block_08.png') no-repeat center top;
  395. background-size: 50%;
  396. margin-bottom: 20PX;
  397. }
  398. &.n_9 {
  399. background: url('../../assets/images/sunVillage_info/index_block_09.png') no-repeat center top;
  400. background-size: 50%;
  401. margin-bottom: 20PX;
  402. }
  403. &.n_10 {
  404. background: url('../../assets/images/sunVillage_info/index_block_10.png') no-repeat center top;
  405. background-size: 50%;
  406. margin-bottom: 20PX;
  407. }
  408. &.n_11 {
  409. background: url('../../assets/images/sunVillage_info/index_block_11.png') no-repeat center top;
  410. background-size: 50%;
  411. margin-bottom: 20PX;
  412. }
  413. &.n_12 {
  414. background: url('../../assets/images/sunVillage_info/index_block_12.png') no-repeat center top;
  415. background-size: 50%;
  416. margin-bottom: 20PX;
  417. }
  418. &.n_13 {
  419. background-size: 50%;
  420. margin-bottom: 20PX;
  421. }
  422. &.n_14 {
  423. background: url('../../assets/images/sunVillage_info/index_block_14.png') no-repeat center top;
  424. background-size: 50%;
  425. margin-bottom: 20PX;
  426. }
  427. &.n_01 {
  428. background: url('../../assets/images/sunVillage_info/index_icon_01.png') no-repeat center top;
  429. background-size: 50%;
  430. margin-bottom: 20PX;
  431. }
  432. &.n_02 {
  433. background: url('../../assets/images/sunVillage_info/index_icon_02.png') no-repeat center top;
  434. background-size: 50%;
  435. margin-bottom: 20PX;
  436. }
  437. &.n_03 {
  438. background: url('../../assets/images/sunVillage_info/index_icon_03.png') no-repeat center top;
  439. background-size: 50%;
  440. margin-bottom: 20PX;
  441. }
  442. &.n_04 {
  443. background: url('../../assets/images/sunVillage_info/index_icon_04.png') no-repeat center top;
  444. background-size: 50%;
  445. margin-bottom: 20PX;
  446. }
  447. &.n_05 {
  448. background: url('../../assets/images/sunVillage_info/index_icon_05.png') no-repeat center top;
  449. background-size: 50%;
  450. margin-bottom: 20PX;
  451. }
  452. &.n_06 {
  453. background: url('../../assets/images/sunVillage_info/index_icon_06.png') no-repeat center top;
  454. background-size: 50%;
  455. margin-bottom: 20PX;
  456. }
  457. &.n_07 {
  458. background: url('../../assets/images/sunVillage_info/index_icon_07.png') no-repeat center top;
  459. background-size: 50%;
  460. margin-bottom: 20PX;
  461. }
  462. }
  463. .icon{
  464. padding: 15px;
  465. border-radius: 10px;
  466. box-sizing: border-box;
  467. width: 80px;
  468. height: 80px;
  469. text-align:center;
  470. }
  471. .icon img{
  472. width:50px;
  473. }
  474. }
  475. }
  476. .footer{
  477. width: 100%;
  478. font-size: 22px;
  479. color: #3f3d56;
  480. text-align: center;
  481. padding-top: 20px;
  482. padding-bottom: 25PX;
  483. }
  484. }
  485. </style>