Selaa lähdekoodia

删除新增删除跳到最后一页

suxinf 4 vuotta sitten
vanhempi
commit
707e74288f

+ 0 - 1
src/views/data/UploadRecord.vue

@@ -140,7 +140,6 @@ export default {
       let id = this.tableData[i].id;
       this.deleteInformationInfo(id)
         .then(() => {
-          this.currentPage = Math.ceil((this.sum - 1) / this.pageSize);
           let req = {
             page: this.currentPage,
             rows: this.pageSize,

+ 0 - 30
src/views/data/uploadinfo.js

@@ -1,30 +0,0 @@
-const AREASLIST = [
-    {
-        sign: 'all',
-        area: '全区',
-        checked: false
-    },
-    {
-        sign: 'n',
-        area: '北区',
-        checked: false
-    },
-    {
-        sign: 's',
-        area: '南区',
-        checked: false
-    },
-    {
-        sign: 'e',
-        area: '东区',
-        checked: false
-    },
-    {
-        sign: 'self',
-        area: '自定义分组',
-        checked: false
-    }
-]
-module.exports = {
-    AREASLIST,
-}

+ 0 - 2
src/views/parameter/CarSeries.vue

@@ -100,7 +100,6 @@ export default {
     // 模态框保存
     submit: function (car) {
       this.addCarSeries(car).then(() => {
-        this.currentPage = Math.ceil((this.sum + 1) / this.pageSize);
         this.getDateList(this.currentPage, this.pageSize);
       });
       this.modalFlag = false;
@@ -120,7 +119,6 @@ export default {
     deleteData: function (index) {
       let id = this.tableData[index]["id"];
       this.deleteCarTypeInfo(id).then(() => {
-        this.currentPage = Math.ceil((this.sum - 1) / this.pageSize);
         this.getDateList(this.currentPage, this.pageSize);
       });
     },

+ 0 - 2
src/views/parameter/ContentCategory1.vue

@@ -98,14 +98,12 @@ export default {
     // 点击删除
     deleteData(index) {
       this.deleteDict(index).then(() => {
-        this.currentPage = Math.ceil((this.sum - 1) / this.pageSize);
         this.getDateList(this.currentPage, this.pageSize);
       });
     },
     // 新增车型模态框 保存
     submit: function (name) {
       this.addList(name).then(() => {
-        this.currentPage = Math.ceil((this.sum + 1) / this.pageSize);
         this.getDateList(this.currentPage, this.pageSize);
       });
       this.modalFlag = false;

+ 0 - 2
src/views/parameter/ContentCategory2.vue

@@ -103,14 +103,12 @@ export default {
     // 点击删除
     deleteData(index) {
       this.deleteDict(index).then(() => {
-        this.currentPage = Math.ceil((this.sum - 1) / this.pageSize);
         this.getDateList(this.currentPage, this.pageSize);
       });
     },
     // 新增分类模态框 保存
     submit: function (name) {
       this.addList(name).then(() => {
-        this.currentPage = Math.ceil((this.sum + 1) / this.pageSize);
         this.getDateList(this.currentPage, this.pageSize);
       });
       this.modalFlag = false;

+ 0 - 2
src/views/parameter/Grouping.vue

@@ -101,7 +101,6 @@ export default {
     // 模态框保存,
     submit: function (groupName) {
       this.addGroupInfo(groupName).then(() => {
-        this.currentPage = Math.ceil((this.sum + 1) / this.pageSize);
         this.selectGroupList(this.currentPage, this.pageSize);
       });
       this.modalFlag = false;
@@ -117,7 +116,6 @@ export default {
     deleteData: function (index) {
       let id = this.tableData[index]["id"];
       this.deleteGroupInfo(id).then(() => {
-        this.currentPage = Math.ceil((this.sum - 1) / this.pageSize);
         this.selectGroupList(this.currentPage, this.pageSize);
       });
     },

+ 0 - 2
src/views/parameter/LinkUpload.vue

@@ -142,7 +142,6 @@ export default {
         publishPlatformId: this.plateFormId,
       };
       this.deleteMediaPublishInfo(res).then(() => {
-        this.currentPage = Math.ceil((this.sum - 1) / this.pageSize);
         let dataObj = {
           publishPlatformId: this.plateFormId,
           page: this.currentPage,
@@ -155,7 +154,6 @@ export default {
     submit: function (time, num, obj) {
       let addTime = time.replace("-", "/");
       this.addMediaPublishInfo(+num, addTime, obj.platformName, obj.id).then( () => {
-          this.currentPage = Math.ceil((this.sum + 1) / this.pageSize);
           let req = {
             publishPlatformId: this.plateFormId,
             page: this.currentPage,

+ 0 - 2
src/views/parameter/MediaPlatform.vue

@@ -104,7 +104,6 @@ export default {
     // 点击删除
     deleteData(index) {
       this.deleteDict(index).then(() => {
-        this.currentPage = Math.ceil((this.sum - 1) / this.pageSize);
         this.getDateList(this.currentPage, this.pageSize);
         alert("删除成功");
       });
@@ -112,7 +111,6 @@ export default {
     // 新增车型模态框 保存
     submit: function (name) {
       this.addList(name).then(() => {
-        this.currentPage = Math.ceil((this.sum + 1) / this.pageSize);
         this.getDateList(this.currentPage, this.pageSize);
       });
       this.modalFlag = false;

+ 0 - 2
src/views/parameter/PlatformModule.vue

@@ -101,7 +101,6 @@ export default {
     // 模态框保存
     submit: function (plateName) {
       this.addPublishPlatformInfo(plateName).then(() => {
-        this.currentPage = Math.ceil((this.sum + 1) / this.pageSize);
         this.selectPublishPlatformPage(this.currentPage, this.pageSize);
       });
       this.modalFlag = false;
@@ -118,7 +117,6 @@ export default {
     deleteData: function (index) {
       let id = this.tableData[index]["id"];
       this.deletePublishPlatformInfo(id).then(() => {
-        this.currentPage = Math.ceil((this.sum - 1) / this.pageSize);
         this.selectPublishPlatformPage(this.currentPage, this.pageSize);
       });
     },

+ 0 - 2
src/views/parameter/components/Carseries/CarType.vue

@@ -105,14 +105,12 @@ export default {
     deleteData(index) {
       let id = this.tableData[index]["id"];
       this.deleteCarTypeInfo(id).then(() => {
-        this.currentPage = Math.ceil((this.sum - 1) / this.pageSize);
         this.getData(this.currentPage, this.pageSize);
       });
     },
     // 新增车型模态框 保存
     submit: function (car) {
       this.addCarSeries(car).then(() => {
-        this.currentPage = Math.ceil((this.sum + 1) / this.pageSize);
         this.getData(this.currentPage, this.pageSize);
         this.modalFlag = false;
       });

+ 0 - 2
src/views/parameter/components/Grouping/GroupMember.vue

@@ -96,7 +96,6 @@ export default {
         groupId: this.groupId,
       };
       this.deleteAgentInfo(req).then(() => {
-        this.currentPage = Math.ceil((this.sum - 1) / this.pageSize);
         this.selectAgentInfoPage(this.groupId, this.currentPage, this.pageSize);
       });
     },
@@ -108,7 +107,6 @@ export default {
         agentId: strReq,
       };
       this.groupAddDlr(req).then(() => {
-        this.currentPage = Math.ceil((this.sum + 1) / this.pageSize);
         this.selectAgentInfoPage(this.groupId, this.currentPage, this.pageSize);
       });
       ///sys/agentGroup/bindAgentGroup 调用这个接口来新增小组成员

+ 0 - 2
src/views/parameter/components/PlatformModule/DetailPage.vue

@@ -118,7 +118,6 @@ export default {
     deleteData(index) {
       let parentId = this.parentId;
       let id = this.tableData[index]["id"];
-      this.currentPage = Math.ceil((this.sum - 1) / this.pageSize);
       this.deletePublishPlatformInfo(parentId, id).then(() => {
         this.selectPublishPlatformPage(
           this.parentId,
@@ -130,7 +129,6 @@ export default {
     // 新增版块模态框 保存
     submit: function (platName) {
       let parentId = this.parentId;
-      this.currentPage = Math.ceil((this.sum + 1) / this.pageSize);
       this.addPublishPlatformInfo(parentId, platName).then(() => {
         this.selectPublishPlatformPage(
           this.parentId,