[update] tianjia
This commit is contained in:
@@ -314,14 +314,33 @@
|
|||||||
this.$confirm({
|
this.$confirm({
|
||||||
content: _this.$t('ConfirmBatchDeletion'),
|
content: _this.$t('ConfirmBatchDeletion'),
|
||||||
onOk() {
|
onOk() {
|
||||||
postAction(_this.url.deleteAll, param).then((res) => {
|
axios({
|
||||||
if (res.success) {
|
url: `/jero-boot/params/manifest/deleteBatch`,
|
||||||
_this.$message.success(_this.$t('OperationSuccessful'))
|
method: 'post',
|
||||||
_this.getlist()
|
data: param,
|
||||||
} else {
|
transformRequest: [function(data) {
|
||||||
_this.$message.warning(_this.$t('operationFailed'))
|
let ret = ''
|
||||||
|
for (let it in data) {
|
||||||
|
ret += encodeURIComponent(it) + '=' + encodeURIComponent(data[it]) + '&'
|
||||||
|
}
|
||||||
|
return ret
|
||||||
|
}],
|
||||||
|
headers: {
|
||||||
|
'Content-Type': 'application/x-www-form-urlencoded',
|
||||||
|
'X-Access-Token': _this.token
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
.then((res) => {
|
||||||
|
if (res.data.success) {
|
||||||
|
_this.$message.success(res.data.message)
|
||||||
|
_this.getlist()
|
||||||
|
} else {
|
||||||
|
_this.$message.warning(res.data.message)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.catch((error) => {
|
||||||
|
console.log(error)
|
||||||
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
@@ -332,14 +351,14 @@
|
|||||||
console.log('复制')
|
console.log('复制')
|
||||||
// this.areaVisibleCody = true
|
// this.areaVisibleCody = true
|
||||||
},
|
},
|
||||||
getPersonnelList() {
|
pageOnChange(page, pageSize) {
|
||||||
|
this.pageNo = page
|
||||||
|
this.getlist()
|
||||||
},
|
},
|
||||||
pageOnChange() {
|
SizeChange(page, pageSize) {
|
||||||
|
this.pageNo = 1
|
||||||
},
|
this.pageSize = pageSize
|
||||||
SizeChange() {
|
this.getlist()
|
||||||
|
|
||||||
},
|
},
|
||||||
getlist() {
|
getlist() {
|
||||||
let query = {
|
let query = {
|
||||||
@@ -350,6 +369,11 @@
|
|||||||
}
|
}
|
||||||
getAction(this.url.list, query).then((res) => {
|
getAction(this.url.list, query).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
|
if (res.result.current > 1 && res.result.records.length == 0) {
|
||||||
|
this.pageNo = res.result.current - 1
|
||||||
|
this.getlist()
|
||||||
|
return
|
||||||
|
}
|
||||||
this.total = res.result.total
|
this.total = res.result.total
|
||||||
this.dataSource = res.result.records || []
|
this.dataSource = res.result.records || []
|
||||||
this.loading = false
|
this.loading = false
|
||||||
|
|||||||
Reference in New Issue
Block a user