diff --git a/src/pages/personal/pages/my-questions/index.vue b/src/pages/personal/pages/my-questions/index.vue index 0bfaecf5a..d06761c6a 100644 --- a/src/pages/personal/pages/my-questions/index.vue +++ b/src/pages/personal/pages/my-questions/index.vue @@ -277,10 +277,11 @@ - +
暂无数据 @@ -291,7 +292,7 @@ class="question-box" type="border-card" v-model="activestand" - @tab-click="standClick" + @tab-click="standClick2" style="height: 100%" tab-position="left" > @@ -340,17 +341,427 @@
- + +
+
+ 暂无数据 +
+
+
+ + + +
- + +
+
+ 暂无数据 +
+
+
+ + + +
- + +
+
+ 暂无数据 +
+
+
+ + + +
-
+
+ + +
+
+ 暂无数据 +
+
+
+ + + +
+
+ +
+
+ 暂无数据 +
+
+
+ + + +
+
+ +
+
+ 暂无数据 +
+
+
+ + + +
+
+ +
+
+ 暂无数据 +
+
+
+ + + +
+
+
@@ -1033,17 +1444,61 @@ export default { this.questionForm.classification = this.standType }, handleClick(){ - console.log(this.activeName); - this.ansSearch() + this.standList = [] + switch (this.activeName) { + case 'myQue': + this.standSearch() // 查询提问标准 + break + case 'myAns': + this.ansSearch() //查询回答标准 + break + case 'mySub': + this.subSearch() //查询订阅标准 + break + } + }, sourceClick(){ this.questionSerach.classification = this.activeType this.questionSerach.standardEncdoing = '' this.standSearch() }, + sourceClick2(){ + this.questionSerach.classification = this.activeType + this.ansSearch() + }, + //我的订阅 + sourceClick3(){ + this.questionSerach.classification = this.activeType + this.subSearch() + }, standClick(){ this.queSearch() }, + standClick2(){ + this.$http.get('lawss/AskQuestions/getAskQuestionsByStandardId',{ + standardId: this.activestand, + answerer: this.$store.getters.userInfo.userId, + },{ + _this: this + }, res => { + this.questionsList = res.data + }, e =>{ + + }) + }, + standClick3(){ + this.$http.get('lawss/AskQuestions/getAskQuestionsByStandardId',{ + standardId: this.activestand, + answerer: this.$store.getters.userInfo.userId, + },{ + _this: this + }, res => { + this.questionsList = res.data + }, e =>{ + + }) + }, questionClick(){ sessionStorage.setItem('queId', this.activeQue) this.$http.get('lawss/AskQuestions/getAskQuestionsByakId',{ @@ -1070,25 +1525,38 @@ export default { queSearch(){ this.$http.get('lawss/AskQuestions/getAskQuestionsByStandardId',{ standardId: this.activestand, + answerer: this.$store.getters.userInfo.userId, },{ _this: this }, res => { this.questionsList = res.data - console.log(this.questionsList); }) }, - //回答查询 + //查询回答标准 ansSearch(){ this.$http.get('lawss/AskQuestions/getReplyDetails',{ - classification: this.questionSerach.classification, + classification: this.activeType, answerer: this.$store.getters.userInfo.userId, }, { _this: this, }, res => { - + this.standList = res.data }) }, - //查询标准 + //查询订阅标准 + subSearch(){ + this.$http.get('lawss/AskQuestions/getAskQuestionsBySubscription',{ + classification: this.activeType, + answerer: this.$store.getters.userInfo.userId, + },{ + _this: this + }, res => { + this.standList = res.data + }, e =>{ + + }) + }, + //查询提问标准 standSearch(){ this.$http.get('lawss/AskQuestions/getAskQuestionsDetails',{ ...this.questionSerach },{ _this: this diff --git a/src/pages/phone/domesticStand.vue b/src/pages/phone/domesticStand.vue index cb8ff81b9..0021f28aa 100644 --- a/src/pages/phone/domesticStand.vue +++ b/src/pages/phone/domesticStand.vue @@ -24,8 +24,8 @@
{{item.lawsNumber}}
-
{{item.standSortShow + '  ' + item.standNumber + '-' + item.standYear }}
-
{{item.standSortShow + '  ' + item.standNumber }}
+
{{item.standSort + '  ' + item.standNumber + '-' + item.standYear }}
+
{{item.standSort + '  ' + item.standNumber }}
{{item.standName}}
@@ -79,10 +79,10 @@
- 发布日期: - {{ item.issueTime ? $moment(item.issueTime).format("YYYY-MM-DD") : "" }} - 实施日期: {{item.XCXSSRQLAWS}} - 实施日期: {{item.putTime}} + 发布日期: + {{ item.issueTime ? (item.issueTime !== '' ? $moment(item.issueTime).format("YYYY-MM-DD") : " ") : " " }} + 实施日期: {{item.XCXSSRQLAWS}} + 实施日期: {{item.SSRQ}}
@@ -149,46 +149,31 @@ export default { this.standList = [] this.page = 1 if(this.titleType === 'INLAND'){ - this.$http.get('sarStandardsInfo/sar-standards-info/getSarStandardsInfoPage',{ + // this.$http.get('sarStandardsInfo/sar-standards-info/getSarStandardsInfoPage',{ + // page: this.page, + // standNumber: this.searchKey, + // pageSize: 20, + // standType: 'INLAND' + // },{ + // _this: this + // },res=>{ + // if (res.ok){ + // this.standList = res.data.list + // this.loading = false + // }else { + // this.$message.error(res.message) + // } + // },e=>{ + // }) + this.$http.post('search/searchCenter/searchSarBykey',{ + selectIndex: 'stand', + selectValue: this.searchKey, + selectType: 'titleSearch', + standType: 'INLAND', page: this.page, - standNumber: this.searchKey, - pageSize: 20, - standType: 'INLAND' + pageSize: 20 },{ - _this: this - },res=>{ - if (res.ok){ - this.standList = res.data.list - this.loading = false - }else { - this.$message.error(res.message) - } - },e=>{ - }) - }else if(this.titleType === 'FOREIGN'){ - this.$http.get('sarStandardsInfo/sar-standards-info/getSarStandardsInfoPage',{ - page: 1, - pageSize: 20, - standNumber: this.searchKey, - standType: 'FOREIGN' - },{ - _this: this - },res=>{ - if (res.ok){ - this.standList = res.data.list - this.loading = false - }else { - this.$message.error(res.message) - } - },e=>{ - }) - }else if(this.titleType === 'POLICY'){ - this.$http.get('lawss/sarLawsInfo/page',{ - page: 1, - pageSize: 20, - lawsNumber: this.searchKey, - },{ - _this: this + _this: this, }, res => { if (res.ok){ this.standList = res.data.list @@ -196,9 +181,83 @@ export default { }else { this.$message.error(res.message) } - }, e =>{ - console.log(e); + }, e => { + console.log(e) }) + }else if(this.titleType === 'FOREIGN'){ + // this.$http.get('sarStandardsInfo/sar-standards-info/getSarStandardsInfoPage',{ + // page: 1, + // pageSize: 20, + // standNumber: this.searchKey, + // standType: 'FOREIGN' + // },{ + // _this: this + // },res=>{ + // if (res.ok){ + // this.standList = res.data.list + // this.loading = false + // }else { + // this.$message.error(res.message) + // } + // },e=>{ + // }) + this.$http.post('search/searchCenter/searchSarBykey',{ + selectIndex: 'stand', + selectValue: this.searchKey, + selectType: 'titleSearch', + standType: 'FOREIGN', + page: this.page, + pageSize: 20 + },{ + _this: this, + }, res => { + if (res.ok){ + this.standList = res.data.list + this.loading = false + }else { + this.$message.error(res.message) + } + }, e => { + console.log(e) + }) + + }else if(this.titleType === 'POLICY'){ + // this.$http.get('lawss/sarLawsInfo/page',{ + // page: 1, + // pageSize: 20, + // lawsNumber: this.searchKey, + // },{ + // _this: this + // }, res => { + // if (res.ok){ + // this.standList = res.data.list + // this.loading = false + // }else { + // this.$message.error(res.message) + // } + // }, e =>{ + // console.log(e); + // }) + this.$http.post('search/searchCenter/searchSarBykey',{ + selectIndex: 'laws', + selectValue: this.searchKey, + selectType: 'titleSearch', + type: 'laws', + page: this.page, + pageSize: 20 + },{ + _this: this, + }, res => { + if (res.ok){ + this.standList = res.data.list + this.loading = false + }else { + this.$message.error(res.message) + } + }, e => { + console.log(e) + }) + }else{ this.$http.get("/lawss/NewsFeed/getNewsFeed", { messageType: 'ZYBZFG', @@ -223,15 +282,41 @@ export default { this.listFlag = false this.moreFlag = false if(this.titleType === 'INLAND'){ - this.$http.get('sarStandardsInfo/sar-standards-info/getSarStandardsInfoPage',{ + // this.$http.get('sarStandardsInfo/sar-standards-info/getSarStandardsInfoPage',{ + // page: this.page, + // pageSize: 20, + // standNumber: this.searchKey, + // standType: 'INLAND' + // },{ + // _this: this + // },res=>{ + // if (res.ok){ + // if(res.data.list.length){ + // if(this.standList.length){ + // this.standList = this.standList.concat(res.data.list) + // }else{ + // this.standList = res.data.list + // } + // this.loading = false + // }else{ + // this.listFlag = true + // } + // }else { + // this.$message.error(res.message) + // } + // },e=>{ + // }) + this.$http.post('search/searchCenter/searchSarBykey',{ + selectIndex: 'stand', + selectValue: this.searchKey, + selectType: 'titleSearch', + standType: 'INLAND', page: this.page, - pageSize: 20, - standNumber: this.searchKey, - standType: 'INLAND' + pageSize: 20 },{ - _this: this - },res=>{ - if (res.ok){ + _this: this, + }, res => { + if(res.ok){ if(res.data.list.length){ if(this.standList.length){ this.standList = this.standList.concat(res.data.list) @@ -240,23 +325,52 @@ export default { } this.loading = false }else{ + this.loading = false this.listFlag = true } - }else { + }else{ this.$message.error(res.message) } - },e=>{ + }, e => { + console.log(e) }) + }else if(this.titleType === 'FOREIGN'){ - this.$http.get('sarStandardsInfo/sar-standards-info/getSarStandardsInfoPage',{ - page: 1, - pageSize: 20, - standNumber: this.searchKey, - standType: 'FOREIGN' + // this.$http.get('sarStandardsInfo/sar-standards-info/getSarStandardsInfoPage',{ + // page: 1, + // pageSize: 20, + // standNumber: this.searchKey, + // standType: 'FOREIGN' + // },{ + // _this: this + // },res=>{ + // if (res.ok){ + // if(res.data.list.length){ + // if(this.standList.length){ + // this.standList = this.standList.concat(res.data.list) + // }else{ + // this.standList = res.data.list + // } + // this.loading = false + // }else{ + // this.listFlag = true + // } + // }else { + // this.$message.error(res.message) + // } + // },e=>{ + // }) + this.$http.post('search/searchCenter/searchSarBykey',{ + selectIndex: 'stand', + selectValue: this.searchKey, + selectType: 'titleSearch', + standType: 'FOREIGN', + page: this.page, + pageSize: 20 },{ - _this: this - },res=>{ - if (res.ok){ + _this: this, + }, res => { + if(res.ok){ if(res.data.list.length){ if(this.standList.length){ this.standList = this.standList.concat(res.data.list) @@ -265,38 +379,68 @@ export default { } this.loading = false }else{ + this.loading = false this.listFlag = true } - }else { + }else{ this.$message.error(res.message) } - },e=>{ + }, e => { + console.log(e) }) }else if(this.titleType === 'POLICY'){ - this.$http.get('lawss/sarLawsInfo/page',{ - lawsNumber: this.searchKey, - page: 1, - pageSize: 20, - },{ - _this: this - }, res => { - if (res.ok){ - if(res.data.list.length){ - if(this.standList.length){ - this.standList = this.standList.concat(res.data.list) - }else{ - this.standList = res.data.list - } - this.loading = false - }else{ - this.listFlag = true - } - }else { - this.$message.error(res.message) - } - }, e =>{ - console.log(e); - }) + // this.$http.get('lawss/sarLawsInfo/page',{ + // lawsNumber: this.searchKey, + // page: 1, + // pageSize: 20, + // },{ + // _this: this + // }, res => { + // if (res.ok){ + // if(res.data.list.length){ + // if(this.standList.length){ + // this.standList = this.standList.concat(res.data.list) + // }else{ + // this.standList = res.data.list + // } + // this.loading = false + // }else{ + // this.listFlag = true + // } + // }else { + // this.$message.error(res.message) + // } + // }, e =>{ + // console.log(e); + // }) + this.$http.post('search/searchCenter/searchSarBykey',{ + selectIndex: 'laws', + selectValue: this.searchKey, + selectType: 'titleSearch', + type: 'laws', + page: this.page, + pageSize: 20 + },{ + _this: this, + }, res => { + if(res.ok){ + if(res.data.list.length){ + if(this.standList.length){ + this.standList = this.standList.concat(res.data.list) + }else{ + this.standList = res.data.list + } + this.loading = false + }else{ + this.loading = false + this.listFlag = true + } + }else{ + this.$message.error(res.message) + } + }, e => { + console.log(e) + }) }else{ this.$http.get("/lawss/NewsFeed/getNewsFeed", { messageType: 'ZYBZFG', @@ -315,6 +459,7 @@ export default { } this.loading = false }else{ + this.loading = false this.listFlag = true } }else { diff --git a/src/pages/regulatoryRepository/enterpriseStandardDatabase/components/EnterpriseStandardDatabase.vue b/src/pages/regulatoryRepository/enterpriseStandardDatabase/components/EnterpriseStandardDatabase.vue index 68faaa91e..c61b5cab7 100644 --- a/src/pages/regulatoryRepository/enterpriseStandardDatabase/components/EnterpriseStandardDatabase.vue +++ b/src/pages/regulatoryRepository/enterpriseStandardDatabase/components/EnterpriseStandardDatabase.vue @@ -326,7 +326,7 @@ {{ scope.row.standCode }} - {{ + {{ scope.row.standCode }} {{