|
@@ -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)
|
|
|
})
|