Authored by 陈峰

Merge branch 'feature/suggestDev' into 'master'

Feature/suggest dev



See merge request !60
@@ -22,10 +22,11 @@ @@ -22,10 +22,11 @@
22 :key="option.value">{{option.label}}</Option> 22 :key="option.value">{{option.label}}</Option>
23 </Select> 23 </Select>
24 </filter-item> 24 </filter-item>
25 - <filter-item :label="filters.answerUserName.label">  
26 - <Input v-model.trim="filters.answerUserName.model"  
27 - :placeholder="filters.answerUserName.holder"></Input>  
28 - </filter-item> 25 +
  26 + <!--<filter-item :label="filters.answerUserName.label">-->
  27 + <!--<Input v-model.trim="filters.answerUserName.model"-->
  28 + <!--:placeholder="filters.answerUserName.holder"></Input>-->
  29 + <!--</filter-item>-->
29 <filter-item :label="filters.askTimeStr.label"> 30 <filter-item :label="filters.askTimeStr.label">
30 <Date-picker type="datetimerange" 31 <Date-picker type="datetimerange"
31 placeholder="选择日期和时间" 32 placeholder="选择日期和时间"
@@ -86,7 +87,8 @@ @@ -86,7 +87,8 @@
86 clearFilters() { 87 clearFilters() {
87 this.filters.productSKN.model = null; 88 this.filters.productSKN.model = null;
88 this.filters.prodName.model = null; 89 this.filters.prodName.model = null;
89 - this.filters.answerUserName.model = null; 90 +
  91 + // this.filters.answerUserName.model = null;
90 this.filters.isReply.model = null; 92 this.filters.isReply.model = null;
91 this.filters.brandId.model = null; 93 this.filters.brandId.model = null;
92 this.filters.askStartTime.model = ''; 94 this.filters.askStartTime.model = '';
@@ -112,7 +114,8 @@ @@ -112,7 +114,8 @@
112 let fts = this.filters; 114 let fts = this.filters;
113 let productSKN = fts.productSKN.model, 115 let productSKN = fts.productSKN.model,
114 productName = fts.prodName.model, 116 productName = fts.prodName.model,
115 - answerUserName = fts.answerUserName.model, 117 +
  118 + // answerUserName = fts.answerUserName.model,
116 isReply = fts.isReply.model, 119 isReply = fts.isReply.model,
117 maxSortId = fts.sort.first.model, 120 maxSortId = fts.sort.first.model,
118 middleSortId = fts.sort.second.model, 121 middleSortId = fts.sort.second.model,
@@ -142,7 +145,8 @@ @@ -142,7 +145,8 @@
142 params, 145 params,
143 productSKN, 146 productSKN,
144 productName, 147 productName,
145 - answerUserName, 148 +
  149 + // answerUserName,
146 isReply, 150 isReply,
147 maxSortId, 151 maxSortId,
148 middleSortId, 152 middleSortId,
@@ -70,19 +70,20 @@ export default function() { @@ -70,19 +70,20 @@ export default function() {
70 } 70 }
71 } 71 }
72 }, 72 },
73 - {  
74 - title: '回复人',  
75 - align: 'center',  
76 - render: (h, params) => {  
77 - let answerUserName = params.row.answerUserName;  
78 73
79 - if (answerUserName) {  
80 - return params.row.answerUserName;  
81 - } else {  
82 - return '—';  
83 - }  
84 - },  
85 - }, 74 + // {
  75 + // title: '回复人',
  76 + // align: 'center',
  77 + // render: (h, params) => {
  78 + // let answerUserName = params.row.answerUserName;
  79 + //
  80 + // if (answerUserName) {
  81 + // return params.row.answerUserName;
  82 + // } else {
  83 + // return '—';
  84 + // }
  85 + // },
  86 + // },
86 { 87 {
87 title: '咨询及回复时间', 88 title: '咨询及回复时间',
88 key: 'image', 89 key: 'image',
@@ -98,44 +99,45 @@ export default function() { @@ -98,44 +99,45 @@ export default function() {
98 ); 99 );
99 } 100 }
100 }, 101 },
101 - {  
102 - title: '操作',  
103 - key: 'action',  
104 - align: 'center',  
105 - render: (h, params) => {  
106 - const row = params.row;  
107 102
108 - let status = row.operateFlag;  
109 -  
110 - if (status === 2) {  
111 - return (  
112 - <div class="cell-action-row">  
113 - <i-button type="error" size="small"  
114 - onClick={() => this.editAnswer(row)}>  
115 - 修改  
116 - </i-button>  
117 - </div>  
118 - );  
119 - } else if (status === 0) {  
120 - return (  
121 - <div class="cell-action-row">  
122 - <i-button type="primary" size="small"  
123 - onClick={() => this.editAnswer(row)}>  
124 - 回复  
125 - </i-button>  
126 - </div>  
127 - );  
128 - } else if (status === 1) {  
129 - return (  
130 - <div class="cell-action-row">  
131 - <i-button type="error" size="small" style="backgroundColor: #999;border-color: #999;cursor: not-allowed;">  
132 - 修改  
133 - </i-button>  
134 - </div>  
135 - );  
136 - }  
137 - },  
138 - } 103 + // {
  104 + // title: '操作',
  105 + // key: 'action',
  106 + // align: 'center',
  107 + // render: (h, params) => {
  108 + // const row = params.row;
  109 + //
  110 + // let status = row.operateFlag;
  111 + //
  112 + // if (status === 2) {
  113 + // return (
  114 + // <div class="cell-action-row">
  115 + // <i-button type="error" size="small"
  116 + // onClick={() => this.editAnswer(row)}>
  117 + // 修改
  118 + // </i-button>
  119 + // </div>
  120 + // );
  121 + // } else if (status === 0) {
  122 + // return (
  123 + // <div class="cell-action-row">
  124 + // <i-button type="primary" size="small"
  125 + // onClick={() => this.editAnswer(row)}>
  126 + // 回复
  127 + // </i-button>
  128 + // </div>
  129 + // );
  130 + // } else if (status === 1) {
  131 + // return (
  132 + // <div class="cell-action-row">
  133 + // <i-button type="error" size="small" style="backgroundColor: #999;border-color: #999;cursor: not-allowed;">
  134 + // 修改
  135 + // </i-button>
  136 + // </div>
  137 + // );
  138 + // }
  139 + // },
  140 + // }
139 ], 141 ],
140 tableData: [], 142 tableData: [],
141 pageData: { 143 pageData: {
@@ -158,10 +160,11 @@ export default function() { @@ -158,10 +160,11 @@ export default function() {
158 label: '选择品牌', 160 label: '选择品牌',
159 model: '' 161 model: ''
160 }, 162 },
161 - answerUserName: {  
162 - label: '回复人',  
163 - model: ''  
164 - }, 163 +
  164 + // answerUserName: {
  165 + // label: '回复人',
  166 + // model: ''
  167 + // },
165 sort: { 168 sort: {
166 first: { 169 first: {
167 label: '选择类目', 170 label: '选择类目',