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 | <template> | 1 | <template> |
| 2 | <view class="page"> | 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 | <!-- <qiun-title-bar title="柱状图+渐变色" /> --> | 4 | <!-- <qiun-title-bar title="柱状图+渐变色" /> --> |
| 46 | - <view class="charts-box"> | 5 | + <view class="charts-box" v-if="userId === '360267753694692613'"> |
| 47 | <view class="example-body"> | 6 | <view class="example-body"> |
| 48 | <uni-datetime-picker v-model="range" type="daterange" @change="change" /> | 7 | <uni-datetime-picker v-model="range" type="daterange" @change="change" /> |
| 49 | </view> | 8 | </view> |
| @@ -92,10 +51,60 @@ | @@ -92,10 +51,60 @@ | ||
| 92 | 填报企业从业人数大览 | 51 | 填报企业从业人数大览 |
| 93 | </view> | 52 | </view> |
| 94 | <view class="charts"> | 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 | </view> | 55 | </view> |
| 97 | </view> | 56 | </view> |
| 98 | </view> | 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 | </view> | 108 | </view> |
| 100 | </template> | 109 | </template> |
| 101 | 110 | ||
| @@ -112,6 +121,7 @@ | @@ -112,6 +121,7 @@ | ||
| 112 | startDate: '2024-02-20', | 121 | startDate: '2024-02-20', |
| 113 | // 结束日期 | 122 | // 结束日期 |
| 114 | endDate: '2024-2-26', | 123 | endDate: '2024-2-26', |
| 124 | + isSystem:false, | ||
| 115 | chartsDataColumn1: { | 125 | chartsDataColumn1: { |
| 116 | categories: [], | 126 | categories: [], |
| 117 | series: [{ | 127 | series: [{ |
pages/my/messageList/messageList.vue
| @@ -27,10 +27,11 @@ | @@ -27,10 +27,11 @@ | ||
| 27 | data() { | 27 | data() { |
| 28 | return { | 28 | return { |
| 29 | messageList:[], | 29 | messageList:[], |
| 30 | - isAdmin:false | 30 | + isAdmin:false, |
| 31 | + baseUrl: 'http://deyanggaoxin.fengshiyun.com' | ||
| 31 | } | 32 | } |
| 32 | }, | 33 | }, |
| 33 | - onLoad() { | 34 | + onShow() { |
| 34 | this.getUser() | 35 | this.getUser() |
| 35 | this.getNoticeTell() | 36 | this.getNoticeTell() |
| 36 | }, | 37 | }, |
| @@ -109,12 +110,55 @@ | @@ -109,12 +110,55 @@ | ||
| 109 | console.log("修改已读",res) | 110 | console.log("修改已读",res) |
| 110 | if(res.code == 200){ | 111 | if(res.code == 200){ |
| 111 | console.log('成功修改') | 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 | </script> | 164 | </script> |
pages/official/official.vue
| @@ -93,9 +93,12 @@ | @@ -93,9 +93,12 @@ | ||
| 93 | }, | 93 | }, |
| 94 | onShow() { | 94 | onShow() { |
| 95 | this.getUser() | 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 | // this.getCompanyList() | 102 | // this.getCompanyList() |
| 100 | // this.getTypeOfCompany() | 103 | // this.getTypeOfCompany() |
| 101 | }, | 104 | }, |
| @@ -401,6 +404,7 @@ | @@ -401,6 +404,7 @@ | ||
| 401 | title:'公文消息', | 404 | title:'公文消息', |
| 402 | companys:this.city_ids5, | 405 | companys:this.city_ids5, |
| 403 | desc:this.noticeDesc, | 406 | desc:this.noticeDesc, |
| 407 | + type:'公文办理通知', | ||
| 404 | fangshi:'通知', | 408 | fangshi:'通知', |
| 405 | reid:id, | 409 | reid:id, |
| 406 | link:url | 410 | link:url |
pages/postCon/postCon.vue
| @@ -242,6 +242,7 @@ | @@ -242,6 +242,7 @@ | ||
| 242 | companys:this.companysId, | 242 | companys:this.companysId, |
| 243 | desc:this.tellInfo[1], | 243 | desc:this.tellInfo[1], |
| 244 | reid:id, | 244 | reid:id, |
| 245 | + type:'党建通知', | ||
| 245 | link:'/pages/conDetail/conDetail', | 246 | link:'/pages/conDetail/conDetail', |
| 246 | fangshi:'通知' | 247 | fangshi:'通知' |
| 247 | } | 248 | } |
pages/postNews/postNews.vue
| @@ -274,7 +274,8 @@ import utils from '../../service/utils'; | @@ -274,7 +274,8 @@ import utils from '../../service/utils'; | ||
| 274 | desc:this.tellInfo[1], | 274 | desc:this.tellInfo[1], |
| 275 | reid:id, | 275 | reid:id, |
| 276 | link:'/pages/newsDetail/newsDetail', | 276 | link:'/pages/newsDetail/newsDetail', |
| 277 | - fangshi:'通知' | 277 | + fangshi:'通知', |
| 278 | + type:'新闻信息通知' | ||
| 278 | } | 279 | } |
| 279 | }).then(res=>{ | 280 | }).then(res=>{ |
| 280 | console.log('通知结果',res) | 281 | console.log('通知结果',res) |
pages/postNotice/postNotice.vue
| @@ -276,7 +276,8 @@ import utils from '../../service/utils'; | @@ -276,7 +276,8 @@ import utils from '../../service/utils'; | ||
| 276 | desc:this.tellInfo[1], | 276 | desc:this.tellInfo[1], |
| 277 | reid:id, | 277 | reid:id, |
| 278 | link:'/pages/conDetail/conDetail', | 278 | link:'/pages/conDetail/conDetail', |
| 279 | - fangshi:'通知' | 279 | + fangshi:'通知', |
| 280 | + type:'公示公告通知' | ||
| 280 | } | 281 | } |
| 281 | }).then(res=>{ | 282 | }).then(res=>{ |
| 282 | console.log('通知结果',res) | 283 | console.log('通知结果',res) |
pages/postPolicy/postPolicy.vue
| @@ -303,7 +303,8 @@ import utils from '../../service/utils'; | @@ -303,7 +303,8 @@ import utils from '../../service/utils'; | ||
| 303 | desc:this.tellInfo[1], | 303 | desc:this.tellInfo[1], |
| 304 | reid:id, | 304 | reid:id, |
| 305 | link:'/pages/policyDetail/policyDetail', | 305 | link:'/pages/policyDetail/policyDetail', |
| 306 | - fangshi:'通知' | 306 | + fangshi:'通知', |
| 307 | + type:'政策法规通知' | ||
| 307 | } | 308 | } |
| 308 | }).then(res=>{ | 309 | }).then(res=>{ |
| 309 | console.log('通知结果',res) | 310 | console.log('通知结果',res) |
pages/recommend/postRecommend/postRecommend.vue
| @@ -214,7 +214,8 @@ | @@ -214,7 +214,8 @@ | ||
| 214 | desc:this.tellInfo[1], | 214 | desc:this.tellInfo[1], |
| 215 | reid:id, | 215 | reid:id, |
| 216 | link:'/pages/recommend/recommendInfo/recommendInfo', | 216 | link:'/pages/recommend/recommendInfo/recommendInfo', |
| 217 | - fangshi:'通知' | 217 | + fangshi:'通知', |
| 218 | + type:'人才推介通知' | ||
| 218 | } | 219 | } |
| 219 | }).then(res=>{ | 220 | }).then(res=>{ |
| 220 | console.log('通知结果',res) | 221 | console.log('通知结果',res) |
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