移动端
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

pirms 3 gadiem
pirms 3 gadiem
pirms 3 gadiem
pirms 3 gadiem
pirms 3 gadiem
pirms 3 gadiem
pirms 3 gadiem
pirms 3 gadiem
pirms 3 gadiem
pirms 3 gadiem
pirms 3 gadiem
pirms 3 gadiem
pirms 3 gadiem
pirms 3 gadiem
pirms 3 gadiem
pirms 3 gadiem
pirms 3 gadiem
pirms 3 gadiem
pirms 3 gadiem
pirms 3 gadiem
pirms 3 gadiem
pirms 3 gadiem
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296
  1. <template>
  2. <div class="app-container">
  3. <div class="topBackground">
  4. <van-nav-bar title="我的" fixed placeholder/>
  5. <van-row class="userInformation">
  6. <van-col :span="24" v-show="loginType">
  7. <p class="userName">{{user.nickName}}<span style="font-size: 0.4rem;float: right;">{{roleGroup}}</span></p>
  8. <!-- <i style="margin-right: 0.5rem;"></i>-->
  9. <p class="userDept">{{user.dept.deptName}}</p>
  10. <p class="userDept">{{postGroup}}</p>
  11. </van-col>
  12. <van-col :span="24" v-show="loginButton">
  13. <van-button icon="friends" color="red" style="border-radius: 30PX;padding: 0 30PX;height: 30PX;" to="/lawEnforcement/login">
  14. 请登录
  15. </van-button>
  16. <p style="margin-top: 10PX;color: #5289ed">登录后可查看更多信息</p>
  17. </van-col>
  18. </van-row>
  19. </div>
  20. <van-cell-group class="listBox db" v-show="loginType">
  21. <van-cell value="全部" is-link :to="{name:loginType ? 'waitingProcessing':''}">
  22. <template #title>
  23. <van-icon name="../../../static/images/lawEnforcement/icon/icon_db.png" size="20"></van-icon>
  24. <span class="custom-title">待办事项<i class="bgBlue"></i></span>
  25. </template>
  26. </van-cell>
  27. <van-cell
  28. v-for="(item,index) in taskList"
  29. :key="index"
  30. :value="item.formData.createTime == null ? '' : item.formData.createTime.substr(5,5)"
  31. :to="{
  32. name:item.formData.activityBusinessType == '21' ? 'schemeDetail':'caseDetail',
  33. query:{
  34. id:item.formData.activityBusinessType == '21' ? item.formData.id:item.formData.caseId,
  35. caseProgress:item.formData.activityBusinessType == '21' ? '': item.formData.activityBusinessType == '22' ? 2:item.formData.activityBusinessType == '24' ? 4:item.formData.activityBusinessType == '25' ? 5:'',
  36. type:'waiting'
  37. }
  38. }"
  39. >
  40. <template #title>
  41. <span class="tap">{{selectDictLabel(activityBusinessTypeOptions,item.formData.activityBusinessType).substr(2,2)}}</span>
  42. <span>{{item.projectName}}</span>
  43. </template>
  44. </van-cell>
  45. </van-cell-group>
  46. <van-cell-group class="listBox" v-if="tabShow">
  47. <van-cell is-link :to="{name:loginType ? 'programme':''}" >
  48. <template #title>
  49. <van-icon name="../../../static/images/lawEnforcement/icon/icon_fagl.png" size="20"></van-icon>
  50. <span class="custom-title">方案管理</span>
  51. </template>
  52. </van-cell>
  53. <van-cell is-link :to="{name:loginType ? 'complaint':''}" >
  54. <template #title>
  55. <van-icon name="../../../static/images/lawEnforcement/icon/icon_tshf.png" size="20"></van-icon>
  56. <span class="custom-title">投诉回复</span>
  57. </template>
  58. </van-cell>
  59. </van-cell-group>
  60. <van-cell-group class="listBox">
  61. <van-cell is-link :to="{name:loginType ? 'changePassword':''}" >
  62. <template #title>
  63. <van-icon name="../../../static/images/lawEnforcement/icon/icon_mmxg.png" size="20"></van-icon>
  64. <span class="custom-title">密码修改</span>
  65. </template>
  66. </van-cell>
  67. <van-cell is-link :to="{name:loginType ? 'feedback':''}" >
  68. <template #title>
  69. <van-icon name="../../../static/images/lawEnforcement/icon/icon_bzfk.png" size="20"></van-icon>
  70. <span class="custom-title">帮助反馈</span>
  71. </template>
  72. </van-cell>
  73. <van-cell is-link :to="{name:loginType ? 'agreement':''}" >
  74. <template #title>
  75. <van-icon name="../../../static/images/lawEnforcement/icon/icon_cpxy.png" size="20"></van-icon>
  76. <span class="custom-title">产品协议</span>
  77. </template>
  78. </van-cell>
  79. </van-cell-group>
  80. <van-button type="default" class="loginOut" @click="loginOut" v-if="loginType">退出登录</van-button>
  81. <law></law>
  82. </div>
  83. </template>
  84. <script>
  85. import request from "@/utils/request";
  86. import { getUserProfile } from "@/api/lawEnforcement/index";
  87. import { logout ,getInfo } from "@/api/login/index";
  88. import law from "@/components/common/law_footer";
  89. import Cookies from "js-cookie";
  90. export default {
  91. name: "user",
  92. components: {
  93. law
  94. },
  95. data() {
  96. return {
  97. user: {
  98. dept:{}
  99. },
  100. loginType:false,
  101. loginButton:false,
  102. tabShow: false,
  103. // 查询参数
  104. queryParamsTask: {
  105. pageNum: 1,
  106. pageSize: 5,
  107. taskId: null,
  108. taskName: null,
  109. systemType: 26,
  110. },
  111. roleGroup: {},
  112. postGroup: {},
  113. activeTab: "userinfo",
  114. taskList:[],
  115. activityBusinessTypeOptions:[],
  116. };
  117. },
  118. created() {
  119. this.getDicts("activity_business_type").then((response) => {
  120. this.activityBusinessTypeOptions = response.data;
  121. });
  122. console.log(Cookies.get("User-Token"))
  123. if(!Cookies.get("User-Token")){
  124. this.loginType = false ;
  125. this.loginButton = true ;
  126. return
  127. }
  128. this.getUser();
  129. },
  130. activated: function () {
  131. this.getDicts("activity_business_type").then((response) => {
  132. this.activityBusinessTypeOptions = response.data;
  133. });
  134. if(!Cookies.get("User-Token")){
  135. this.loginType = false ;
  136. this.loginButton = true ;
  137. return
  138. }
  139. this.getUser();
  140. },
  141. methods: {
  142. loginOut(){
  143. logout().then(response => {
  144. console.log(response);
  145. Cookies.remove("User-Token");
  146. this.$router.push({
  147. path: '/lawEnforcement'
  148. })
  149. });
  150. },
  151. getUser() {
  152. getUserProfile().then(response => {
  153. this.loginType = true ;
  154. this.user = response.data;
  155. this.roleGroup = response.roleGroup;
  156. this.postGroup = response.postGroup;
  157. if (response.data.roles.length < 1){
  158. this.tabShow = false;
  159. }else{
  160. response.data.roles.forEach(res=>{
  161. if (res.roleKey == 'personal_user' || res.roleKey == 'company_user'){
  162. this.tabShow = false;
  163. }else{
  164. this.tabShow = true;
  165. }
  166. })
  167. }
  168. this.getTaskList();
  169. });
  170. },
  171. getTaskList() {
  172. this.loading = true;
  173. return request({
  174. url: "/activiti/process/taskList",
  175. method: "get",
  176. params: this.queryParamsTask,
  177. })
  178. .then((response) => {
  179. console.log(response)
  180. this.taskList = response.rows;
  181. this.total = response.total;
  182. console.log(this.total)
  183. this.loading = false;
  184. })
  185. .then(() => {
  186. });
  187. },
  188. },
  189. };
  190. </script>
  191. <style scoped lang="scss">
  192. @font-face {
  193. font-family: SourceHanSansCNBold;
  194. src: url("../../../assets/fonts/SourceHanSansCN-Bold.otf");
  195. }
  196. .app-container {
  197. padding: 0 ;
  198. }
  199. /deep/ .van-hairline--bottom::after{
  200. border: none;
  201. }
  202. /deep/ .van-nav-bar{
  203. background-color: transparent;
  204. }
  205. /deep/ .van-nav-bar__title{
  206. color: #FFFFFF;
  207. }
  208. .topBackground{
  209. background-image: url("../../../../static/images/lawEnforcement/user_bg.png") ;
  210. background-size: 100%;
  211. background-repeat: no-repeat;
  212. }
  213. .headImg{
  214. width: 1.7rem;
  215. height: 1.7rem;
  216. border-radius: 10PX;
  217. overflow: hidden;
  218. }
  219. .userName{
  220. font-size: 0.8rem;
  221. color: #FFFFFF;
  222. line-height: 0.85rem;
  223. }
  224. .userDept{
  225. font-size: 0.4rem;
  226. text-align: right;
  227. color: #FFFFFF;
  228. line-height: 0.85rem;
  229. }
  230. .userInformation{
  231. padding: 0.3rem 6%;
  232. }
  233. .listBox{
  234. width: 96%;
  235. margin: 0 auto;
  236. border-radius: 8Px;
  237. overflow: hidden;
  238. box-shadow: 0PX 5PX 5PX #cccccc;
  239. margin-top: 10PX;
  240. padding: 3% 0;
  241. .van-icon{
  242. vertical-align: middle;
  243. }
  244. .van-cell{
  245. padding: 3% 5%;
  246. }
  247. .custom-title{
  248. font-size: 16PX;
  249. color: #333333;
  250. vertical-align: middle;
  251. line-height: 1;
  252. position: relative;
  253. margin-left: 5PX;
  254. }
  255. .tap{
  256. color: #1D6FE9;
  257. }
  258. .bgBlue{
  259. display: block;
  260. position: absolute;
  261. width: 17PX;
  262. height: 17PX;
  263. border-radius: 50%;
  264. background-color: rgba(29,111,233,0.26);
  265. top: -2PX;
  266. right: -8PX;
  267. }
  268. }
  269. .loginOut{
  270. width: 96%;
  271. margin: 10PX 2%;
  272. border-radius: 8Px;
  273. box-shadow: 0PX 5PX 5PX #cccccc;
  274. border: none;
  275. }
  276. .db{
  277. .van-cell__title{
  278. color: #666666;
  279. flex: 0.7;
  280. display: -webkit-box;
  281. -webkit-box-orient: vertical;
  282. -webkit-line-clamp: 1;
  283. word-break: break-all;
  284. overflow: hidden;
  285. }
  286. .van-cell__value{
  287. flex: 0.3;
  288. }
  289. }
  290. </style>