[update] binaji

This commit is contained in:
zhaomeijing
2022-05-27 16:06:29 +08:00
parent 02f9ddd4e3
commit 5a74bad2de
4 changed files with 164 additions and 123 deletions
@@ -226,7 +226,6 @@
},
// 历史版本
historicalVersion(historicalRow) {
console.log(historicalRow)
this.historicalVisible = true
this.historicalRow = historicalRow
},
@@ -271,33 +270,40 @@
handleAdd() {
this.areaVisible = true
},
// 变更扩展
handleModule() {
let _this = this
axios({
url: `/jero-boot/params/manifest/changeExtension?id=${this.selectedRowKeys[0]}`,
method: 'get',
transformRequest: [function(data) {
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)
} else {
_this.$message.warning(res.data.message)
if(this.selectedRowKeys.length == 0){
this.$message.warning(_this.$t('pleaseSelectData'))
}else if(this.selectedRowKeys.length > 2){
this.$message.warning(_this.$t('OnlyOneSelected'))
} else {
axios({
url: `/jero-boot/params/manifest/changeExtension?id=${this.selectedRowKeys[0]}`,
method: 'get',
transformRequest: [function(data) {
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
}
})
.catch((error) => {
console.log(error)
})
.then((res) => {
if (res.data.success) {
_this.$message.success(res.data.message)
} else {
_this.$message.warning(res.data.message)
}
})
.catch((error) => {
console.log(error)
})
}
},
handleDel() {
let param = {
@@ -323,7 +329,8 @@
}
},
handleCody() {
this.areaVisibleCody = true
console.log('复制')
// this.areaVisibleCody = true
},
getPersonnelList() {