@@ -208,10 +208,13 @@ export default {
this.getContentData(code);
},
getData(pageNum, code) {
- console.log('pageNum: ', pageNum);
this.pageNum = pageNum;
this.getContentData(code);
},
+ resetData() {
+ this.pageNum = 1;
+ this.getContentData(this.code);
+ },
},
};
diff --git a/src/views/OtherPages/Department.vue b/src/views/OtherPages/Department.vue
index a0f537e..564a95a 100644
--- a/src/views/OtherPages/Department.vue
+++ b/src/views/OtherPages/Department.vue
@@ -3,7 +3,7 @@
-
+
@@ -706,6 +706,10 @@ export default {
console.log('data: ', data);
} catch (error) {}
},
+ resetData() {
+ this.pageNum = 1;
+ this.getContentData();
+ },
getNumData(pageNum) {
console.log('pageNum: ', pageNum);
this.pageNum = pageNum;
diff --git a/src/views/OtherPages/Information.vue b/src/views/OtherPages/Information.vue
index 9bb25c2..003d6ff 100644
--- a/src/views/OtherPages/Information.vue
+++ b/src/views/OtherPages/Information.vue
@@ -3,7 +3,7 @@
-
+
@@ -134,6 +134,9 @@ export default {
this.content = data || {};
} catch (error) {}
},
+ resetData() {
+ this.getData();
+ },
chanegCode(code) {
this.code = code;
},
diff --git a/src/views/OtherPages/NoticeNotice.vue b/src/views/OtherPages/NoticeNotice.vue
index 701fc2c..4edd5e1 100644
--- a/src/views/OtherPages/NoticeNotice.vue
+++ b/src/views/OtherPages/NoticeNotice.vue
@@ -3,7 +3,7 @@
-
+
@@ -108,6 +108,10 @@ export default {
this.content = data;
} catch (error) {}
},
+ resetData() {
+ this.pageNum = 1;
+ this.getContentData();
+ },
// 获取文章信息
async getIntroContent() {
try {
diff --git a/src/views/OtherPages/PartyBuilding.vue b/src/views/OtherPages/PartyBuilding.vue
index 354d341..4efa8e1 100644
--- a/src/views/OtherPages/PartyBuilding.vue
+++ b/src/views/OtherPages/PartyBuilding.vue
@@ -3,7 +3,7 @@
-
+
@@ -112,6 +112,10 @@ export default {
this.content = data;
} catch (error) {}
},
+ resetData() {
+ this.pageNum = 1;
+ this.getContentData();
+ },
// 获取文章信息
async getIntroContent() {
try {
diff --git a/src/views/OtherPages/PilePages.vue b/src/views/OtherPages/PilePages.vue
index ef4c9b8..bbc1881 100644
--- a/src/views/OtherPages/PilePages.vue
+++ b/src/views/OtherPages/PilePages.vue
@@ -3,7 +3,7 @@
-
+
@@ -97,6 +97,10 @@ export default {
this.content = data;
} catch (error) {}
},
+ resetData() {
+ this.pageNum = 1;
+ this.getContentData();
+ },
// 获取文章信息
async getIntroContent() {
try {
diff --git a/src/views/OtherPages/SafeProduction.vue b/src/views/OtherPages/SafeProduction.vue
index 6cc1a82..0436bd9 100644
--- a/src/views/OtherPages/SafeProduction.vue
+++ b/src/views/OtherPages/SafeProduction.vue
@@ -3,7 +3,7 @@
-
+
@@ -111,6 +111,10 @@ export default {
this.content = data;
} catch (error) {}
},
+ resetData() {
+ this.pageNum = 1;
+ this.getContentData();
+ },
// 获取文章信息
async getIntroContent() {
try {
diff --git a/src/views/OtherPages/System.vue b/src/views/OtherPages/System.vue
index f31d551..cfb78f1 100644
--- a/src/views/OtherPages/System.vue
+++ b/src/views/OtherPages/System.vue
@@ -3,7 +3,7 @@
-
+
@@ -102,6 +102,10 @@ export default {
this.content = data || {};
} catch (error) {}
},
+ resetData() {
+ this.pageNum = 1;
+ this.getData(this.code);
+ },
chanegCode(code) {
this.code = code;
},