优化代码

This commit is contained in:
java110 2023-07-17 18:25:40 +08:00
parent 5d87b1c9a0
commit c523af1e9d
2 changed files with 3 additions and 10 deletions

View File

@ -119,7 +119,7 @@ export default {
queryRoomRenovationRecord: baseUrl + "app/roomRenovation/queryRoomRenovationRecord", queryRoomRenovationRecord: baseUrl + "app/roomRenovation/queryRoomRenovationRecord",
queryRoomRenovationRecordDetail: baseUrl + "app/roomRenovation/queryRoomRenovationRecordDetail", queryRoomRenovationRecordDetail: baseUrl + "app/roomRenovation/queryRoomRenovationRecordDetail",
queryContract: baseUrl + "app/contract/queryContract", queryContract: baseUrl + "app/contract/queryContract",
queryQuestionAnswer: baseUrl + "app/questionAnswer/queryQuestionAnswer", queryQuestionAnswer: baseUrl + "app/question.queryOwnerQuestionAnswer",
queryQuestionAnswerTitle: baseUrl + "app/questionAnswer/queryQuestionAnswerTitle", queryQuestionAnswerTitle: baseUrl + "app/questionAnswer/queryQuestionAnswerTitle",
saveUserQuestionAnswerValue: baseUrl + "app/userQuestionAnswer/saveUserQuestionAnswerValue", saveUserQuestionAnswerValue: baseUrl + "app/userQuestionAnswer/saveUserQuestionAnswerValue",
listMachineTranslates: baseUrl + "app/machineTranslate.listMachineTranslates", listMachineTranslates: baseUrl + "app/machineTranslate.listMachineTranslates",

View File

@ -55,11 +55,7 @@
let that = this; let that = this;
that.communityId = context.getCurrentCommunity().communityId; that.communityId = context.getCurrentCommunity().communityId;
that.userId = context.getUserInfo().userId; that.userId = context.getUserInfo().userId;
getProperty() this._queryQuestionAnswer();
.then(function(_property) {
that.storeId = _property.storeId;
that._queryQuestionAnswer();
})
}, },
methods: { methods: {
_queryQuestionAnswer: function(){ _queryQuestionAnswer: function(){
@ -67,11 +63,8 @@
queryQuestionAnswer({ queryQuestionAnswer({
page:1, page:1,
row:50, row:50,
qaTypes:'1001,3003', qaType:'3003',
objType:'3306',
communityId: that.communityId, communityId: that.communityId,
userId: that.userId,
storeId: that.storeId
}) })
.then(_data=>{ .then(_data=>{
_data.data.forEach(function(item, index) { _data.data.forEach(function(item, index) {