- {{ $dateFormat(new Date(scope.row.issue_time), "yyyy-MM-dd") }}
+
+ {{ $dateFormat(new Date(scope.row.issueTime), "yyyy-MM-dd") }}
@@ -910,8 +910,8 @@
:label="$t('m.putTime')"
width="130">
-
- {{ $dateFormat(new Date(scope.row.put_time), "yyyy-MM-dd") }}
+
+ {{ $dateFormat(new Date(scope.row.SSRQ), "yyyy-MM-dd") }}
@@ -919,7 +919,7 @@
+ :label="selectIndex === 'INLAND_STAND' ? '文本状态' : (this.selectIndex === 'INLAND_LAWS' ? '文件状态' : '企业标准状态')">
{{ scope.row.standstateshow }}
diff --git a/src/pages/searchCenter/pages/standardSearch.vue b/src/pages/searchCenter/pages/standardSearch.vue
index 15040c34f..6ebf1555e 100644
--- a/src/pages/searchCenter/pages/standardSearch.vue
+++ b/src/pages/searchCenter/pages/standardSearch.vue
@@ -11,7 +11,7 @@
From 9f7988254ffe6984131e4374f06b0dcb516811a4 Mon Sep 17 00:00:00 2001
From: zhutianqi
Date: Tue, 10 Aug 2021 15:50:24 +0800
Subject: [PATCH 2/7] commit
---
.../pages/standInvolveProjectDetail.vue | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/pages/regulatoryRepository/localProductsOrProjectLibrary/pages/standInvolveProjectDetail.vue b/src/pages/regulatoryRepository/localProductsOrProjectLibrary/pages/standInvolveProjectDetail.vue
index 0d07c9321..748e8056b 100644
--- a/src/pages/regulatoryRepository/localProductsOrProjectLibrary/pages/standInvolveProjectDetail.vue
+++ b/src/pages/regulatoryRepository/localProductsOrProjectLibrary/pages/standInvolveProjectDetail.vue
@@ -367,8 +367,7 @@ export default {
form.current = this.sarProStateTotalPage
form.size = this.sarProStatePageSize
this.$http.get('sarStandardComplianceAssessResult/product', form, {
- _this: this,
- loading: 'loading'
+ _this: this
}, res => {
if (res.ok) {
// res.data.records.forEach((item)=>{
From fbac71acd7fa485df5c309e76d287e433e7d1cee Mon Sep 17 00:00:00 2001
From: super_liu <396572590@qq.com>
Date: Tue, 10 Aug 2021 15:57:17 +0800
Subject: [PATCH 3/7] feat: There is no way the
---
.../searchCenter/pages/advancedSearch.vue | 77 +++++++++++++------
.../searchCenter/pages/standardSearch.vue | 40 ++++++++--
2 files changed, 86 insertions(+), 31 deletions(-)
diff --git a/src/pages/searchCenter/pages/advancedSearch.vue b/src/pages/searchCenter/pages/advancedSearch.vue
index c04b3ec0e..ef7c8d359 100644
--- a/src/pages/searchCenter/pages/advancedSearch.vue
+++ b/src/pages/searchCenter/pages/advancedSearch.vue
@@ -937,7 +937,16 @@
查看
- 取消收藏
+
+ 收藏
+
+
+ 取消收藏
+
@@ -948,8 +957,16 @@
查看
- 收藏
-
+
+ 收藏
+
+
+ 取消收藏
+
@@ -960,7 +977,16 @@
查看
- 取消收藏
+
+ 收藏
+
+
+ 取消收藏
+
收藏
@@ -1306,9 +1332,7 @@ export default {
const inlandList = data['INLAND_STAND'] || []
const foreignList = data['FOREIGN_STAND'] || []
const foreignFilterList = foreignList.filter ( item => item.attrField === 'GXHBQ' || item.attrField === 'ZBJBD' || item.attrField === 'KWJ' || item.attrField === 'TXLB');
- console.log(foreignFilterList)
this.formFieldListStandData = this.formFieldListStandData.concat(inlandList).concat(foreignFilterList);
- console.log(this.formFieldListStandData,'-----------------------------------1')
}
}, e => {})
},
@@ -1720,6 +1744,13 @@ export default {
this.total = res.data.count;
this.resultData = res.data.list;
this.resultData.map((item) => {
+ if (item.collectId != null && item.collectId !== '') {
+ item.collectBtn = false
+ item.cancelCollectBtn = true
+ } else {
+ item.collectBtn = true
+ item.cancelCollectBtn = false
+ }
if (item.applyArcticShow) {
item.applyArcticShow.toString();
item.applyArcticShow = item.applyArcticShow.slice(0, item.applyArcticShow.length - 1);
@@ -1936,13 +1967,13 @@ export default {
}
let pagetype = "";
if (item.type === "stand") {
- if (item.stand_type === "INLAND") {
+ if (item.standType === "INLAND") {
pagetype = "INLAND_STAND";
} else {
pagetype = "FOREIGN_STAND";
}
} else if (item.type === "laws") {
- if (item.laws_type === "INLAND") {
+ if (item.lawsType === "INLAND") {
pagetype = "INLAND_LAWS";
} else {
pagetype = "FOREIGN_LAWS";
@@ -1959,6 +1990,7 @@ export default {
}
}
personCollect.collectType = pagetype;
+ personCollect.userId = this.$store.getters.userInfo.userId
this.$http.postData("person/personCollect", personCollect, {
_this: this
}, res => {
@@ -1970,21 +2002,20 @@ export default {
},
// 取消收藏
cancelCollectStandard(item) {
- // this.judgeBussRole(item)
- // if (this.bussRoleFlag === false) {
- // this.$message.error('当前角色无权限操作此数据')
- // } else {
- // }
- this.$http.put("person/personCollect/updateByUserId", {
- id: item.collectId
- }, {
- _this: this
- }, res => {
- item.collectBtn = !item.collectBtn;
- item.cancelCollectBtn = !item.cancelCollectBtn;
- item.collectId = "";
- }, e => {
- });
+ item.isSubmit = true
+ this.$http.put('person/personCollect/updateByUserId', {
+ id: item.collectId
+ }, {
+ _this: this
+ }, res => {
+ item.isSubmit = false
+ item.collectBtn = !item.collectBtn
+ item.cancelCollectBtn = !item.cancelCollectBtn
+ item.collectId = ''
+ this.$message.success(res.message)
+ }, e => {
+ item.isSubmit = false
+ })
},
// 取消
treeCancel() {
diff --git a/src/pages/searchCenter/pages/standardSearch.vue b/src/pages/searchCenter/pages/standardSearch.vue
index 6ebf1555e..b179d70d1 100644
--- a/src/pages/searchCenter/pages/standardSearch.vue
+++ b/src/pages/searchCenter/pages/standardSearch.vue
@@ -156,8 +156,17 @@
查看
- 取消收藏
-
+
+ 收藏
+
+
+ 取消收藏
+
+
@@ -170,8 +179,17 @@