|
@@ -79,6 +79,7 @@ import LoadIng from "./../views/loading.vue";
|
79
|
79
|
export default {
|
80
|
80
|
data() {
|
81
|
81
|
return {
|
|
82
|
+ loginUser: JSON.parse(localStorage.getItem("loginUser")),
|
82
|
83
|
// items: _foods,
|
83
|
84
|
items: [],
|
84
|
85
|
pullDownRefresh: true,
|
|
@@ -156,18 +157,26 @@ export default {
|
156
|
157
|
|
157
|
158
|
getData() {
|
158
|
159
|
var that = this;
|
|
160
|
+ let postData = {
|
|
161
|
+ idx: that.idx,
|
|
162
|
+ solution: {
|
|
163
|
+ searchWord: that.search,
|
|
164
|
+ tabType: 'publish',
|
|
165
|
+ // solutionType: { id: "" },
|
|
166
|
+ // status: { id: 72 },
|
|
167
|
+ // createUser: { name: "" }
|
|
168
|
+ },
|
|
169
|
+ sum: that.sum
|
|
170
|
+ }
|
|
171
|
+ if(this.loginUser.duty){
|
|
172
|
+ // 当前的所属责任科室
|
|
173
|
+ postData.solution.dutyId = this.loginUser.duty.id;
|
|
174
|
+ }else if(this.loginUser.branch){
|
|
175
|
+ // 当前的所属院区
|
|
176
|
+ postData.solution.branch = this.loginUser.branch.id;
|
|
177
|
+ }
|
159
|
178
|
this.$http
|
160
|
|
- .post("service/solution/fetchDataList/solution", {
|
161
|
|
- idx: that.idx,
|
162
|
|
- solution: {
|
163
|
|
- searchWord: that.search,
|
164
|
|
- tabType: 'publish',
|
165
|
|
- // solutionType: { id: "" },
|
166
|
|
- // status: { id: 72 },
|
167
|
|
- // createUser: { name: "" }
|
168
|
|
- },
|
169
|
|
- sum: that.sum
|
170
|
|
- })
|
|
179
|
+ .post("service/solution/fetchDataList/solution", postData)
|
171
|
180
|
.then(function(res) {
|
172
|
181
|
if (res.data.list.length > 0) {
|
173
|
182
|
that.items=that.items.concat(res.data.list);
|