帮扶申报
This commit is contained in:
		| @@ -23,7 +23,7 @@ | |||||||
|                 <ai-info-item label="排查人员:"><span>{{form.createUserName || '-'}}</span></ai-info-item> |                 <ai-info-item label="排查人员:"><span>{{form.createUserName || '-'}}</span></ai-info-item> | ||||||
|                 <ai-info-item label="申请帮扶原因:"><span>{{form.reason || '-'}}</span></ai-info-item> |                 <ai-info-item label="申请帮扶原因:"><span>{{form.reason || '-'}}</span></ai-info-item> | ||||||
|                 <ai-info-item label="上报时间:"><span>{{form.declareTime || '-'}}</span></ai-info-item> |                 <ai-info-item label="上报时间:"><span>{{form.declareTime || '-'}}</span></ai-info-item> | ||||||
|                  <ai-info-item label="所在地区:"><span>{{form.areaName || '-'}}</span></ai-info-item> |                  <ai-info-item label="所在地区:"><span>{{form.areaName}}{{form.address || ''}}</span></ai-info-item> | ||||||
|               </ai-wrapper> |               </ai-wrapper> | ||||||
|               <ai-wrapper label-width="100px" :columnsNumber="1"> |               <ai-wrapper label-width="100px" :columnsNumber="1"> | ||||||
|                 <ai-info-item label="风险说明:"><span>{{form.riskDescription || '-'}}</span></ai-info-item> |                 <ai-info-item label="风险说明:"><span>{{form.riskDescription || '-'}}</span></ai-info-item> | ||||||
| @@ -253,7 +253,7 @@ export default { | |||||||
|       position: relative; |       position: relative; | ||||||
|       margin-right: 16px; |       margin-right: 16px; | ||||||
|       .ai-steps__item--index{ |       .ai-steps__item--index{ | ||||||
|           width: 24px; |         width: 24px; | ||||||
|         height: 24px; |         height: 24px; | ||||||
|         line-height: 24px; |         line-height: 24px; | ||||||
|         border-radius: 50%; |         border-radius: 50%; | ||||||
| @@ -270,6 +270,7 @@ export default { | |||||||
|       color: #666; |       color: #666; | ||||||
|       font-size: 14px; |       font-size: 14px; | ||||||
|       display: flex; |       display: flex; | ||||||
|  |       width: calc(100% - 40px); | ||||||
|       .ai-steps__item--content { |       .ai-steps__item--content { | ||||||
|         span { |         span { | ||||||
|           color: #333; |           color: #333; | ||||||
| @@ -279,6 +280,7 @@ export default { | |||||||
|         h2 { |         h2 { | ||||||
|           color: #666666; |           color: #666666; | ||||||
|           font-size: 14px; |           font-size: 14px; | ||||||
|  |           word-break: break-all; | ||||||
|         } |         } | ||||||
|  |  | ||||||
|         p { |         p { | ||||||
|   | |||||||
| @@ -1,7 +1,7 @@ | |||||||
| <template> | <template> | ||||||
|   <ai-list class="list"> |   <ai-list class="list"> | ||||||
|     <template slot="title"> |     <template slot="title"> | ||||||
|       <ai-title title="帮扶申报" isShowBottomBorder></ai-title> |       <ai-title title="帮扶申报" :instance="instance" isShowBottomBorder isShowArea :disabledLevel="disabledLevel" v-model="areaId" @change="changeArea"></ai-title> | ||||||
|     </template> |     </template> | ||||||
|     <template slot="content"> |     <template slot="content"> | ||||||
|       <ai-search-bar> |       <ai-search-bar> | ||||||
| @@ -60,13 +60,13 @@ | |||||||
| </template> | </template> | ||||||
|  |  | ||||||
| <script> | <script> | ||||||
|  | import { mapState } from 'vuex' | ||||||
| export default { | export default { | ||||||
|   name: "list", |   name: "list", | ||||||
|   props: { |   props: { | ||||||
|     instance: Function, |     instance: Function, | ||||||
|     dict: Object, |     dict: Object, | ||||||
|     permissions: Function, |     permissions: Function, | ||||||
|     areaId: String, |  | ||||||
|   }, |   }, | ||||||
|   data() { |   data() { | ||||||
|     return { |     return { | ||||||
| @@ -84,9 +84,12 @@ export default { | |||||||
|       tableData: [], |       tableData: [], | ||||||
|       shopList: [], |       shopList: [], | ||||||
|       ids: [], |       ids: [], | ||||||
|  |       areaId: '', | ||||||
|  |       disabledLevel: 0, | ||||||
|     }; |     }; | ||||||
|   }, |   }, | ||||||
|   computed: { |   computed: { | ||||||
|  |     ...mapState(['user']), | ||||||
|     colConfigs() { |     colConfigs() { | ||||||
|       return [ |       return [ | ||||||
|         { |         { | ||||||
| @@ -143,6 +146,8 @@ export default { | |||||||
|     }, |     }, | ||||||
|   }, |   }, | ||||||
|   created() { |   created() { | ||||||
|  |     this.disabledLevel = this.user.info.areaList.length - 1 | ||||||
|  |     this.areaId = this.user.info.areaId | ||||||
|     this.dict.load('helpDeclarationType', 'helpDeclarationStatus', 'helpDeclarationReason').then(() => { |     this.dict.load('helpDeclarationType', 'helpDeclarationStatus', 'helpDeclarationReason').then(() => { | ||||||
|       this.$nextTick(() => this.getList()) |       this.$nextTick(() => this.getList()) | ||||||
|     }) |     }) | ||||||
| @@ -152,7 +157,8 @@ export default { | |||||||
|       this.instance.post(`/app/apphelpdeclarationinfo/list`, null, { |       this.instance.post(`/app/apphelpdeclarationinfo/list`, null, { | ||||||
|         params: { |         params: { | ||||||
|           ...this.searchObj, |           ...this.searchObj, | ||||||
|           ...this.page |           ...this.page, | ||||||
|  |           areaId: this.areaId | ||||||
|         }, |         }, | ||||||
|       }).then((res) => { |       }).then((res) => { | ||||||
|         if (res.code == 0) { |         if (res.code == 0) { | ||||||
| @@ -169,11 +175,10 @@ export default { | |||||||
|       }); |       }); | ||||||
|     }, |     }, | ||||||
|     reset() { |     reset() { | ||||||
|  |       this.page.current = 1 | ||||||
|       Object.keys(this.searchObj).forEach((e) => { |       Object.keys(this.searchObj).forEach((e) => { | ||||||
|         this.searchObj[e] = ""; |         this.searchObj[e] = ""; | ||||||
|       }); |       }); | ||||||
|       this.searchObj.createTimeStart = null; |  | ||||||
|       this.searchObj.createTimeEnd = null; |  | ||||||
|       this.getList(); |       this.getList(); | ||||||
|     }, |     }, | ||||||
|     goDetail(row) { |     goDetail(row) { | ||||||
| @@ -184,6 +189,11 @@ export default { | |||||||
|         } |         } | ||||||
|       }) |       }) | ||||||
|     }, |     }, | ||||||
|  |     changeArea() { | ||||||
|  |       this.$nextTick(() => { | ||||||
|  |         this.reset() | ||||||
|  |       }) | ||||||
|  |     }, | ||||||
|   }, |   }, | ||||||
| }; | }; | ||||||
| </script> | </script> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user