优化代码

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",
queryRoomRenovationRecordDetail: baseUrl + "app/roomRenovation/queryRoomRenovationRecordDetail",
queryContract: baseUrl + "app/contract/queryContract",
queryQuestionAnswer: baseUrl + "app/questionAnswer/queryQuestionAnswer",
queryQuestionAnswer: baseUrl + "app/question.queryOwnerQuestionAnswer",
queryQuestionAnswerTitle: baseUrl + "app/questionAnswer/queryQuestionAnswerTitle",
saveUserQuestionAnswerValue: baseUrl + "app/userQuestionAnswer/saveUserQuestionAnswerValue",
listMachineTranslates: baseUrl + "app/machineTranslate.listMachineTranslates",

View File

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