123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252 |
- <template>
- <view class="wrapper">
- <view>
- <view>
- <view class="suggestHead">
- <text>建议号</text>
- <text class="suggestHeadDetail">{{suggestion.id}}</text>
- </view>
- <view class="suggestHead">
- <text>建议人UID</text>
- <text class="suggestHeadDetailID">{{suggestion.fromUid}}</text>
- </view>
- <view class="suggestHead">
- <text>处理人UID</text>
- <text class="suggestHeadDetailID">{{suggestion.processorUid}}</text>
- </view>
- <view class="suggestHead">
- <text>建议日期</text>
- <text class="suggestHeadDetail">{{suggestion.fistDatetime}}</text>
- </view>
- </view>
-
- <view>
- <view class="suggestTitle">
- <text>建议标题</text>
- <text class="suggestTitleDetail">{{suggestion.adviseTitle}}</text>
- </view>
- <view class="suggestContent">
- <text>建议内容</text>
- <text class="suggestContentDetail">{{suggestion.adviseDetail}}</text>
- </view>
- </view>
-
- <view>
- <view class="handleResult">
- <text>处理结果</text>
- <text class="handleResultDetail">{{suggestion.result}}</text>
- </view>
- <view class="handleDate">
- <text>结案日期</text>
- <text class="DateDetail">{{suggestion.closetime}}</text>
- </view>
- <view class="handleStatus">
- <text>状态</text>
- <text style="width: 50px;" class="handleStatusDetail">{{suggestion.status}}</text>
- </view>
- <view class="handleBtn-wrapper">
- <view class="handleBtn" @click="toHandleSuggest">处理</view>
- </view>
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- suggestion: {}
- };
- },
- onLoad(opt){
- this.suggestion = JSON.parse(decodeURIComponent(opt.item));
-
- if(this.suggestion.result==null){
- this.suggestion.result=" ";
- }
- if(this.suggestion.closetime==null){
- this.suggestion.closetime = " ";
- }
- if(this.suggestion.processorUid==null){
- this.suggestion.processorUid = " ";
- }
- },
- methods:{
- toHandleSuggest(){
- if(this.suggestion.status=="已处理"){
-
- uni.showModal({
- title: '',
- content: '该建议已被处理'
- })
- }
- else{
- uni.request({
- url: `${uni.$http.baseUrl}/education/my-suggestion/handlingAdvise`,
- data: {
- "id": this.suggestion.id
- },
- header: {
- token: uni.getStorageSync('token')
- },
- method: 'POST',
- success: res => {
- this.suggestion.status = "处理中"
- let suggestion = JSON.stringify(this.suggestion)
- uni.navigateTo({
- url: '/subpkg/manager/suggestion/manager_suggestion_handle?item=' + suggestion
- })
- }
- })
- }
- }
- }
- }
- </script>
- <!-- 设置页面背景 -->
- <style lang="scss">
- page{
- height: 100%;
- // background-color: #FFF;
- }
- </style>
- <style lang="scss" scoped>
- // page {
- // height: 100%;
- // background-color: #FFF2CC;
- // }
- .wrapper {
- width: 93%;
- padding: 20rpx;
- margin-left: 10rpx;
- border-radius: 20rpx;
- background-color: #FFF;
- }
- /* 建议号、建议人、建议日期 */
- .suggestHead {
- display: flex;
- margin-top: 10rpx;
- padding: 10rpx;
- }
- .suggestHeadDetail,
- .suggestHeadDetailID {
- margin-left: 20rpx;
- font-weight: bold;
- }
- /* 建议人和处理人ID */
- .suggestHeadDetailID {
- color: #00B0F0;
- text-decoration: underline;
- }
- /* 建议标题 */
- .suggestTitle,
- .suggestContent {
- margin-top: 40rpx;
- display: flex;
- }
- /* 建议标题内容 */
- .suggestTitleDetail {
- display: block;
- width: 70%;
- height: 120rpx;
- margin-left: 20rpx;
- overflow: hidden;
- text-overflow: ellipsis;
- display: -webkit-box;
- -webkit-box-orient: vertical;
- -webkit-line-clamp: 3;
- }
- /* 建议内容 */
- .suggestContentDetail {
- display: block;
- width: 70%;
- height: 200rpx;
- margin-left: 20rpx;
- overflow: hidden;
- text-overflow: ellipsis;
- display: -webkit-box;
- -webkit-box-orient: vertical;
- -webkit-line-clamp: 5;
- }
- /* 处理结果 */
- .handleResult {
- margin-top: 60rpx;
- display: flex;
- }
- /* 处理结果详情 */
- .handleResultDetail {
- display: block;
- width: 70%;
- height: 80rpx;
- margin-left: 20rpx;
- overflow: hidden;
- text-overflow: ellipsis;
- display: -webkit-box;
- -webkit-box-orient: vertical;
- -webkit-line-clamp: 2;
- }
- /* 结案日期、处理状态 */
- .handleDate,
- .handleStatus {
- display: flex;
- margin-top: 40rpx;
- }
- /* 结案日期详情、状态详情 */
- .DateDetail,
- .handleStatusDetail {
- margin-left: 20rpx;
- font-weight: bold;
- }
- /* 状态详情颜色 */
- .handleStatusDetail {
- color: red;
- }
- /* 开始处理按钮 */
- .handleStart {
- position: absolute;
- bottom: 160rpx;
- width: 200rpx;
- margin-left: auto;
- margin-right: auto;
- left: 0;
- right: 0;
- }
- .handleBtn-wrapper{
- display: flex;
- margin-top: 40rpx;
- // border: 2rpx solid red;
- height: 100rpx;
- width: 100%;
- align-items: center;
- justify-content: center;
- }
- .handleBtn {
- display: flex;
- width: 80px;
- height: 60rpx;
- line-height: 60rpx;
- justify-content: center;
- border-radius: 30rpx;
- background-color: #35b882;
- color: white;
- margin-left: 20px;
- }
- </style>
|