hujunwei@agilestar.cn 2 лет назад
Родитель
Сommit
72391bb397

+ 41 - 38
src/pages/main/accountPermissions/accountApplication.vue

@@ -924,56 +924,59 @@ export default {
             this.handleAccountStatus = true
         },
         delAccount() {
-            this.$confirm("即将删除数据, 是否删除?", "提示", {
-                confirmButtonText: "确定",
-                cancelButtonText: "取消",
-                type: "warning",
-            })
-                .then(() => {
-                    this.$http({
-                        url: "/market/BomcProcessAccount/delBatch",
-                        method: "post",
-                        headers: {
-                            "Content-Type": "application/json",
-                        },
-                        data: { delId: this.AccountdelId },
-                    }).then((res) => {
-                        this.getAccountTable({}, this.pageSizeAccount)
-                        this.handleAccountStatus = false
-                    })
+            if (this.AccountdelId.length > 0) {
+                this.$confirm("即将删除数据, 是否删除?", "提示", {
+                    confirmButtonText: "确定",
+                    cancelButtonText: "取消",
+                    type: "warning",
                 })
-                .catch(() => { });
+                    .then(() => {
+                        this.$http({
+                            url: "/market/BomcProcessAccount/delBatch",
+                            method: "post",
+                            headers: {
+                                "Content-Type": "application/json",
+                            },
+                            data: { delId: this.AccountdelId },
+                        }).then((res) => {
+                            this.getAccountTable({}, this.pageSizeAccount)
+                            this.handleAccountStatus = false
+                        })
+                    })
+                    .catch(() => { });
+            }
         },
         delHost() {
-            this.$confirm("即将删除数据, 是否删除?", "提示", {
-                confirmButtonText: "确定",
-                cancelButtonText: "取消",
-                type: "warning",
-            })
-                .then(() => {
-                    this.$http({
-                        url: "/market/BomcProcessHost/delBatch",
-                        method: "post",
-                        headers: {
-                            "Content-Type": "application/json",
-                        },
-                        data: { delId: this.HostdelId },
-                    }).then((res) => {
-                        this.getHostTable({}, this.pageSizeHost)
-                        this.handleHostStatus = false
-                    })
+            if (this.HostdelId.length > 0) {
+                this.$confirm("即将删除数据, 是否删除?", "提示", {
+                    confirmButtonText: "确定",
+                    cancelButtonText: "取消",
+                    type: "warning",
                 })
-                .catch(() => { });
+                    .then(() => {
+                        this.$http({
+                            url: "/market/BomcProcessHost/delBatch",
+                            method: "post",
+                            headers: {
+                                "Content-Type": "application/json",
+                            },
+                            data: { delId: this.HostdelId },
+                        }).then((res) => {
+                            this.getHostTable({}, this.pageSizeHost)
+                            this.handleHostStatus = false
+                        })
+                    })
+                    .catch(() => { });
+            }
         },
         handleSelectionChangeHost(val) {
             this.HostdelId = []
             val.map((item) => {
                 this.HostdelId.push(item.id)
             })
-            console.log(this.HostdelId);
         },
         handleSelectionChangeAccount(val) {
-            this.HostdelId = []
+            this.AccountdelId = []
             val.map((item) => {
                 this.AccountdelId.push(item.id)
             })

+ 20 - 18
src/pages/main/accountPermissions/accountdel.vue

@@ -578,25 +578,27 @@ export default {
         },
 
         delHost() {
-            this.$confirm("即将删除数据, 是否删除?", "提示", {
-                confirmButtonText: "确定",
-                cancelButtonText: "取消",
-                type: "warning",
-            })
-                .then(() => {
-                    this.$http({
-                        url: "/market/ZhscProcessHost/delBatch",
-                        method: "post",
-                        headers: {
-                            "Content-Type": "application/json",
-                        },
-                        data: { delId: this.HostdelId },
-                    }).then((res) => {
-                        this.getHostTable({}, this.pageSizeHost)
-                        this.handleHostStatus = false
-                    })
+            if (this.HostdelId.length > 0) {
+                this.$confirm("即将删除数据, 是否删除?", "提示", {
+                    confirmButtonText: "确定",
+                    cancelButtonText: "取消",
+                    type: "warning",
                 })
-                .catch(() => { });
+                    .then(() => {
+                        this.$http({
+                            url: "/market/ZhscProcessHost/delBatch",
+                            method: "post",
+                            headers: {
+                                "Content-Type": "application/json",
+                            },
+                            data: { delId: this.HostdelId },
+                        }).then((res) => {
+                            this.getHostTable({}, this.pageSizeHost)
+                            this.handleHostStatus = false
+                        })
+                    })
+                    .catch(() => { });
+            }
         },
         handleSelectionChangeHost(val) {
             this.HostdelId = []

+ 20 - 18
src/pages/main/accountPermissions/klhfsqList.vue

@@ -501,25 +501,27 @@ export default {
             this.handleSjkdbOwnerStatus = true
         },
         delAccount() {
-            this.$confirm("即将删除数据, 是否删除?", "提示", {
-                confirmButtonText: "确定",
-                cancelButtonText: "取消",
-                type: "warning",
-            })
-                .then(() => {
-                    this.$http({
-                        url: "/market/KlhfProcessAccount/delBatch",//KlhfProcessAccount
-                        method: "post",
-                        headers: {
-                            "Content-Type": "application/json",
-                        },
-                        data: { delId: this.AccountId },
-                    }).then((res) => {
-                        this.getTableAccount({}, this.pageSizeAccount)
-                        this.handleSjkdbOwnerStatus = false
-                    })
+            if (this.AccountId.length > 0) {
+                this.$confirm("即将删除数据, 是否删除?", "提示", {
+                    confirmButtonText: "确定",
+                    cancelButtonText: "取消",
+                    type: "warning",
                 })
-                .catch(() => { });
+                    .then(() => {
+                        this.$http({
+                            url: "/market/KlhfProcessAccount/delBatch",//KlhfProcessAccount
+                            method: "post",
+                            headers: {
+                                "Content-Type": "application/json",
+                            },
+                            data: { delId: this.AccountId },
+                        }).then((res) => {
+                            this.getTableAccount({}, this.pageSizeAccount)
+                            this.handleSjkdbOwnerStatus = false
+                        })
+                    })
+                    .catch(() => { });
+            }
         },
         handleSelectionChange(val) {
             this.AccountId = []

+ 41 - 38
src/pages/main/accountPermissions/sjkdbList.vue

@@ -622,56 +622,59 @@ export default {
             this.handleSjkdbTableNameStatus = true
         },
         delSjkdbTableName() {
-            this.$confirm("即将删除数据, 是否删除?", "提示", {
-                confirmButtonText: "确定",
-                cancelButtonText: "取消",
-                type: "warning",
-            })
-                .then(() => {
-                    this.$http({
-                        url: "/market/SjkdbProcessOwnerTableName/delBatch",//SjkdbProcessOwnerTableName
-                        method: "post",
-                        headers: {
-                            "Content-Type": "application/json",
-                        },
-                        data: { delId: this.SjkdbTableNamedelId },
-                    }).then((res) => {
-                        this.getSjkdbTableNameTable({}, this.pageSizSjkdbTableName)
-                        this.handleSjkdbTableNameStatus = false
-                    })
+            if (this.SjkdbTableNamedelId.length > 0) {
+                this.$confirm("即将删除数据, 是否删除?", "提示", {
+                    confirmButtonText: "确定",
+                    cancelButtonText: "取消",
+                    type: "warning",
                 })
-                .catch(() => { });
+                    .then(() => {
+                        this.$http({
+                            url: "/market/SjkdbProcessOwnerTableName/delBatch",//SjkdbProcessOwnerTableName
+                            method: "post",
+                            headers: {
+                                "Content-Type": "application/json",
+                            },
+                            data: { delId: this.SjkdbTableNamedelId },
+                        }).then((res) => {
+                            this.getSjkdbTableNameTable({}, this.pageSizSjkdbTableName)
+                            this.handleSjkdbTableNameStatus = false
+                        })
+                    })
+                    .catch(() => { });
+            }
         },
         delSjkdbOwner() {
-            this.$confirm("即将删除数据, 是否删除?", "提示", {
-                confirmButtonText: "确定",
-                cancelButtonText: "取消",
-                type: "warning",
-            })
-                .then(() => {
-                    this.$http({
-                        url: "/market/SjkdbProcessOwner/delBatch",//SjkdbProcessOwner
-                        method: "post",
-                        headers: {
-                            "Content-Type": "application/json",
-                        },
-                        data: { delId: this.SjkdbOwnerdelId },
-                    }).then((res) => {
-                        this.getSjkdbOwnerTable({}, this.pageSizeSjkdbOwner)
-                        this.handleSjkdbOwnerStatus = false
-                    })
+            if (this.SjkdbOwnerdelId.length > 0) {
+                this.$confirm("即将删除数据, 是否删除?", "提示", {
+                    confirmButtonText: "确定",
+                    cancelButtonText: "取消",
+                    type: "warning",
                 })
-                .catch(() => { });
+                    .then(() => {
+                        this.$http({
+                            url: "/market/SjkdbProcessOwner/delBatch",//SjkdbProcessOwner
+                            method: "post",
+                            headers: {
+                                "Content-Type": "application/json",
+                            },
+                            data: { delId: this.SjkdbOwnerdelId },
+                        }).then((res) => {
+                            this.getSjkdbOwnerTable({}, this.pageSizeSjkdbOwner)
+                            this.handleSjkdbOwnerStatus = false
+                        })
+                    })
+                    .catch(() => { });
+            }
         },
         handleSelectionChangeSjkdbOwner(val) {
             this.SjkdbOwnerdelId = []
             val.map((item) => {
                 this.SjkdbOwnerdelId.push(item.id)
             })
-            console.log(this.SjkdbOwnerdelId);
         },
         handleSelectionChangeSjkdbTableName(val) {
-            this.SjkdbOwnerdelId = []
+            this.SjkdbTableNamedelId = []
             val.map((item) => {
                 this.SjkdbTableNamedelId.push(item.id)
             })

+ 9 - 0
src/pages/main/internetAssessment/internetAssessment.vue

@@ -767,6 +767,12 @@ export default {
                     console.log(JSON.parse(item.value));
                     if (val == '1') {
                         this.fromList.content1 = JSON.parse(item.value)
+                        this.fromList.content1.tableData1.map((item) => {
+                            item.show = false;
+                        })
+                        this.fromList.content1.tableData2.map((item) => {
+                            item.show = false;
+                        })
                     } else {
                         let a = JSON.parse(item.value)
                         this.$set(this.fromList.content1, 'tableData1', a.tableData1)
@@ -774,6 +780,9 @@ export default {
                         this.$set(this.fromList.content1, 'tableData5', a.tableData3)
                         this.$set(this.fromList.content1, 'tableCol3', a.tableCol2)
                         this.$set(this.fromList.content1, 'tableCol5', a.tableCol3)
+                        this.fromList.content1.tableData1.map((item) => {
+                            item.show = false;
+                        })
                     }
                 }
             })