jwyu vor 2 Jahren
Ursprung
Commit
de54feb166

+ 6 - 4
pages-question/components/questionItem.vue

@@ -18,7 +18,8 @@
                </view>
                <view class="status blue-color">{{statusMap[data.ReplyStatus]}}</view>
             </view>
-            
+            <!-- 终止理由 -->
+            <view class="row" v-if="data.ReplyStatus===4">终止原因:{{ data.StopReason }}</view>
          </template>
          
          <!-- 评论item -->
@@ -32,10 +33,10 @@
       </view>
       <view class="action-bot flex">
          <text class="red-color" @click="actionHandle('del')">删除</text>
-         <template v-if="data.ReplyStatus === 1 && type === 'question'">
+         <!-- <template v-if="data.ReplyStatus === 1 && type === 'question'">
             <text class="blue-color" @click="actionHandle('edit')">编辑</text>
             <text :class="data.select_users.user_id ? 'blue-color' : 'grey-color'" @click="actionHandle('send')" >分配并通知</text>
-         </template>
+         </template> -->
          <!-- <text class="blue-color" @click="actionHandle('hot')" v-if="type === 'comment'">{{ data.IsHot ? '取消精选': '精选' }}</text> -->
          
       </view>
@@ -70,7 +71,8 @@
             statusMap: {
                1: '待分配',
                2: '待回答',
-               3: '已回答'
+               3: '已回答',
+               4: '已终止'
             },
          };
       },

+ 9 - 6
pages-question/detail/index.vue

@@ -260,15 +260,15 @@
          /* init*/
          initState({ type,id }) {
             const titleMap = {
-               'question': '分配提问',
+               'question': '问答管理',
                'comment': '评论管理'
             }
             const tabMap = {
                'question': [
-                  {
-                     label: '待分配',
-                     key: 1
-                  },
+                  // {
+                  //    label: '待分配',
+                  //    key: 1
+                  // },
                   {
                      label: '待回答',
                      key: 2
@@ -277,7 +277,10 @@
                      label: '已回答',
                      key: 3
                   },
-                  
+                  {
+                     label: '已终止',
+                     key: 4
+                  },
                ],
                'comment': [
                   {

+ 12 - 12
pages-todomessages/list/list.vue

@@ -232,18 +232,18 @@
 						_this.typeName='seal'
 						_this.avatar=require('../../static/icon-3.png')
 						break;
-               case '5':
-                  navBarTitle = '待分配提问'
-                  _this.type = 5
-                  _this.typeName='question'
-                  _this.avatar=require('../../static/icon-question.png')
-                  break;
-               case '6':
-                  navBarTitle = '待查看评论'
-                  _this.type = 6
-                  _this.typeName='questionComment'
-                  _this.avatar=require('../../static/icon-comment.png')
-                  break;
+					case '5':
+						navBarTitle = '待查看问答'
+						_this.type = 5
+						_this.typeName='question'
+						_this.avatar=require('../../static/icon-question.png')
+						break;
+					case '6':
+						navBarTitle = '待查看评论'
+						_this.type = 6
+						_this.typeName='questionComment'
+						_this.avatar=require('../../static/icon-comment.png')
+						break;
 				}
 				uni.setNavigationBarTitle({
 					title: navBarTitle

+ 1 - 1
pages.json

@@ -189,7 +189,7 @@
          {
             "path": "detail/index",
             "style": {
-              "navigationBarTitleText": "分配提问",
+              "navigationBarTitleText": "问答管理",
               "enablePullDownRefresh": true
             }
          }

+ 1 - 1
pages/workbench/index.vue

@@ -60,7 +60,7 @@
 						label: '问答社区',
 						child: [
 							{
-								label: '分配提问',
+								label: '问答管理',
 								url: '/pages-question/detail/index?type=question',
 								img: require('@/static/icon-question.png')
 							},