Commit c8f02095b090a26812b106f784235f6bf2a62f7b
1 parent
5624065a
2/29上午
Showing
13 changed files
with
121 additions
and
57 deletions
pages/datain/datain.scss
pages/datain/datain.vue
| 1 | 1 | <template> |
| 2 | 2 | <view class="page"> |
| 3 | - <!-- <view class="listBox"> | |
| 4 | - <view class="content"> | |
| 5 | - <view class="user-list" v-show="!isAdmin"> | |
| 6 | - <view class="list" @click="toData" style="background-color:#D32D25;"> | |
| 7 | - <view class="title" style="color:white"> | |
| 8 | - <text>表单设计</text> | |
| 9 | - </view> | |
| 10 | - <view class="more-content"> | |
| 11 | - <view class="more-content-img"> | |
| 12 | - <image src="../../static/right2.png"></image> | |
| 13 | - </view> | |
| 14 | - </view> | |
| 15 | - </view> | |
| 16 | - </view> | |
| 17 | - <view class="user-list"> | |
| 18 | - <view class="list" @click="toPostCom()"> | |
| 19 | - <view class="title"> | |
| 20 | - <text>企业信息采集</text> | |
| 21 | - </view> | |
| 22 | - <view class="more-content"> | |
| 23 | - <view class="more-content-img"> | |
| 24 | - <image src="../../static/right2.png"></image> | |
| 25 | - </view> | |
| 26 | - </view> | |
| 27 | - </view> | |
| 28 | - </view> | |
| 29 | - <view class="user-list" style="padding-top: 0;padding-bottom: 0;" v-for="(item,index) in formList"> | |
| 30 | - <view class="list" @click="toForm(it)" v-for="(it,index) in item.children"> | |
| 31 | - <view class="title"> | |
| 32 | - <text>{{it.fullName}}</text> | |
| 33 | - </view> | |
| 34 | - <view class="more-content"> | |
| 35 | - <view class="more-content-img"> | |
| 36 | - <image src="../../static/right2.png"></image> | |
| 37 | - </view> | |
| 38 | - </view> | |
| 39 | - </view> | |
| 40 | - </view> | |
| 41 | - </view> | |
| 42 | - </view> --> | |
| 43 | - | |
| 44 | 3 | <!-- 图表 --> |
| 45 | 4 | <!-- <qiun-title-bar title="柱状图+渐变色" /> --> |
| 46 | - <view class="charts-box"> | |
| 5 | + <view class="charts-box" v-if="userId === '360267753694692613'"> | |
| 47 | 6 | <view class="example-body"> |
| 48 | 7 | <uni-datetime-picker v-model="range" type="daterange" @change="change" /> |
| 49 | 8 | </view> |
| ... | ... | @@ -92,10 +51,60 @@ |
| 92 | 51 | 填报企业从业人数大览 |
| 93 | 52 | </view> |
| 94 | 53 | <view class="charts"> |
| 95 | - <qiun-data-charts type="pie" :opts="opts2" :chartData="chartData4" /> | |
| 54 | + <qiun-data-charts type="pie" :opts="opts2" :chartData="chartData4"/> | |
| 96 | 55 | </view> |
| 97 | 56 | </view> |
| 98 | 57 | </view> |
| 58 | + | |
| 59 | + | |
| 60 | + <view class="listBox" v-else> | |
| 61 | + <view class="content"> | |
| 62 | + <view class="user-list" v-show="!isAdmin"> | |
| 63 | + <view class="list" @click="toData" style="background-color:#D32D25;"> | |
| 64 | + <view class="title" style="color:white"> | |
| 65 | + <text>表单设计</text> | |
| 66 | + </view> | |
| 67 | + <view class="more-content"> | |
| 68 | + <view class="more-content-img"> | |
| 69 | + <image src="../../static/right2.png"></image> | |
| 70 | + </view> | |
| 71 | + </view> | |
| 72 | + </view> | |
| 73 | + </view> | |
| 74 | + <view class="user-list"> | |
| 75 | + <view class="list" @click="toPostCom()"> | |
| 76 | + <view class="title"> | |
| 77 | + <text>企业信息采集</text> | |
| 78 | + </view> | |
| 79 | + <view class="more-content"> | |
| 80 | + <view class="more-content-img"> | |
| 81 | + <image src="../../static/right2.png"></image> | |
| 82 | + </view> | |
| 83 | + </view> | |
| 84 | + </view> | |
| 85 | + </view> | |
| 86 | + <view class="user-list" style="padding-top: 0;padding-bottom: 0;" v-for="(item,index) in formList"> | |
| 87 | + <view class="list" @click="toForm(it)" v-for="(it,index) in item.children"> | |
| 88 | + <view class="title"> | |
| 89 | + <text>{{it.fullName}}</text> | |
| 90 | + </view> | |
| 91 | + <view class="more-content"> | |
| 92 | + <view class="buttons"> | |
| 93 | + <button size="mini">已选择<span>0</span>家企业</button> | |
| 94 | + </view> | |
| 95 | + <view class="buttons"> | |
| 96 | + <button size="mini" type="warn">通知</button> | |
| 97 | + </view> | |
| 98 | + <view class="more-content-img"> | |
| 99 | + <image src="../../static/right2.png"></image> | |
| 100 | + </view> | |
| 101 | + </view> | |
| 102 | + </view> | |
| 103 | + </view> | |
| 104 | + </view> | |
| 105 | + </view> | |
| 106 | + | |
| 107 | + | |
| 99 | 108 | </view> |
| 100 | 109 | </template> |
| 101 | 110 | |
| ... | ... | @@ -112,6 +121,7 @@ |
| 112 | 121 | startDate: '2024-02-20', |
| 113 | 122 | // 结束日期 |
| 114 | 123 | endDate: '2024-2-26', |
| 124 | + isSystem:false, | |
| 115 | 125 | chartsDataColumn1: { |
| 116 | 126 | categories: [], |
| 117 | 127 | series: [{ | ... | ... |
pages/my/messageList/messageList.vue
| ... | ... | @@ -27,10 +27,11 @@ |
| 27 | 27 | data() { |
| 28 | 28 | return { |
| 29 | 29 | messageList:[], |
| 30 | - isAdmin:false | |
| 30 | + isAdmin:false, | |
| 31 | + baseUrl: 'http://deyanggaoxin.fengshiyun.com' | |
| 31 | 32 | } |
| 32 | 33 | }, |
| 33 | - onLoad() { | |
| 34 | + onShow() { | |
| 34 | 35 | this.getUser() |
| 35 | 36 | this.getNoticeTell() |
| 36 | 37 | }, |
| ... | ... | @@ -109,12 +110,55 @@ |
| 109 | 110 | console.log("修改已读",res) |
| 110 | 111 | if(res.code == 200){ |
| 111 | 112 | console.log('成功修改') |
| 112 | - uni.navigateTo({ | |
| 113 | - url:link.link + `?data=${JSON.stringify(link.reid)}` | |
| 114 | - }) | |
| 113 | + if(link.type === '公文办理通知'){ | |
| 114 | + this.download(link.link) | |
| 115 | + }else{ | |
| 116 | + uni.navigateTo({ | |
| 117 | + url:link.link + `?data=${JSON.stringify(link.reid)}` | |
| 118 | + }) | |
| 119 | + } | |
| 115 | 120 | } |
| 116 | 121 | }) |
| 117 | - } | |
| 122 | + }, | |
| 123 | + download(it) { | |
| 124 | + uni.downloadFile({ | |
| 125 | + url: this.baseUrl + it,//下载地址接口返回 | |
| 126 | + success: (data) => { | |
| 127 | + if (data.statusCode === 200) { | |
| 128 | + //文件保存到本地 | |
| 129 | + uni.saveFile({ | |
| 130 | + tempFilePath: data.tempFilePath, //临时路径 | |
| 131 | + success: function(res) { | |
| 132 | + uni.showToast({ | |
| 133 | + icon: 'none', | |
| 134 | + mask: true, | |
| 135 | + title: '文件已保存:' + res.savedFilePath, //保存路径 | |
| 136 | + duration: 3000, | |
| 137 | + }); | |
| 138 | + setTimeout(() => { | |
| 139 | + //打开文档查看 | |
| 140 | + uni.openDocument({ | |
| 141 | + filePath: res.savedFilePath, | |
| 142 | + success: function(res) { | |
| 143 | + // console.log('打开文档成功'); | |
| 144 | + } | |
| 145 | + }); | |
| 146 | + }, 3000) | |
| 147 | + } | |
| 148 | + }); | |
| 149 | + } | |
| 150 | + }, | |
| 151 | + fail: (err) => { | |
| 152 | + that.loadelshow = false | |
| 153 | + console.log(err); | |
| 154 | + uni.showToast({ | |
| 155 | + icon: 'none', | |
| 156 | + mask: true, | |
| 157 | + title: '失败请重新下载', | |
| 158 | + }); | |
| 159 | + }, | |
| 160 | + }); | |
| 161 | + }, | |
| 118 | 162 | } |
| 119 | 163 | } |
| 120 | 164 | </script> | ... | ... |
pages/official/official.vue
| ... | ... | @@ -93,9 +93,12 @@ |
| 93 | 93 | }, |
| 94 | 94 | onShow() { |
| 95 | 95 | this.getUser() |
| 96 | - this.getTypeOfCompany() | |
| 97 | - this.getTypeCompanyList('365139048618001669') | |
| 98 | - this.getFileList() | |
| 96 | + if(!this.isAdmin){ | |
| 97 | + this.getFileList() | |
| 98 | + }else{ | |
| 99 | + this.getTypeOfCompany() | |
| 100 | + this.getTypeCompanyList('365139048618001669') | |
| 101 | + } | |
| 99 | 102 | // this.getCompanyList() |
| 100 | 103 | // this.getTypeOfCompany() |
| 101 | 104 | }, |
| ... | ... | @@ -401,6 +404,7 @@ |
| 401 | 404 | title:'公文消息', |
| 402 | 405 | companys:this.city_ids5, |
| 403 | 406 | desc:this.noticeDesc, |
| 407 | + type:'公文办理通知', | |
| 404 | 408 | fangshi:'通知', |
| 405 | 409 | reid:id, |
| 406 | 410 | link:url | ... | ... |
pages/postCon/postCon.vue
pages/postNews/postNews.vue
| ... | ... | @@ -274,7 +274,8 @@ import utils from '../../service/utils'; |
| 274 | 274 | desc:this.tellInfo[1], |
| 275 | 275 | reid:id, |
| 276 | 276 | link:'/pages/newsDetail/newsDetail', |
| 277 | - fangshi:'通知' | |
| 277 | + fangshi:'通知', | |
| 278 | + type:'新闻信息通知' | |
| 278 | 279 | } |
| 279 | 280 | }).then(res=>{ |
| 280 | 281 | console.log('通知结果',res) | ... | ... |
pages/postNotice/postNotice.vue
pages/postPolicy/postPolicy.vue
| ... | ... | @@ -303,7 +303,8 @@ import utils from '../../service/utils'; |
| 303 | 303 | desc:this.tellInfo[1], |
| 304 | 304 | reid:id, |
| 305 | 305 | link:'/pages/policyDetail/policyDetail', |
| 306 | - fangshi:'通知' | |
| 306 | + fangshi:'通知', | |
| 307 | + type:'政策法规通知' | |
| 307 | 308 | } |
| 308 | 309 | }).then(res=>{ |
| 309 | 310 | console.log('通知结果',res) | ... | ... |
pages/recommend/postRecommend/postRecommend.vue
static/2.png
0 → 100644
7.15 KB
static/3.png
0 → 100644
6.57 KB
static/sj.png
0 → 100644
704 Bytes
static/yz.png
0 → 100644
1.47 KB