mirror of
https://gitee.com/XiaoLFeng/JSL_OrganizeInternalOA_Web.git
synced 2025-06-08 03:33:03 +08:00
测试4
This commit is contained in:
parent
644a1eb225
commit
c16270e152
@ -140,7 +140,6 @@ import modal from "view-ui-plus/src/components/modal/index.js";
|
|||||||
const currentPage = ref(1) // 当前页码
|
const currentPage = ref(1) // 当前页码
|
||||||
const pageSize = ref(10) // 每页显示的数据条数
|
const pageSize = ref(10) // 每页显示的数据条数
|
||||||
const addDialog = ref(false)
|
const addDialog = ref(false)
|
||||||
const value = ref(true)
|
|
||||||
const deleteDialog = ref(false)
|
const deleteDialog = ref(false)
|
||||||
const editDialog = ref(false)
|
const editDialog = ref(false)
|
||||||
const token = window.localStorage.getItem('token')
|
const token = window.localStorage.getItem('token')
|
||||||
@ -264,10 +263,6 @@ function getAll() {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleSelectAll(status) {
|
|
||||||
this.$refs.selection.selectAll(status);
|
|
||||||
}
|
|
||||||
|
|
||||||
function handleBeforeSwitchChange(index, row) {
|
function handleBeforeSwitchChange(index, row) {
|
||||||
return new Promise((resolve) => {
|
return new Promise((resolve) => {
|
||||||
this.$Modal.confirm({
|
this.$Modal.confirm({
|
||||||
@ -314,11 +309,12 @@ function addOk () {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
function addCancel () {
|
function addCancel () {
|
||||||
message.info('取消新增')
|
message.info('取消新增')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const deleteId = ref(0)
|
const deleteId = ref(0)
|
||||||
function showDeleteDialog(index, row){
|
function showDeleteDialog(index, row){
|
||||||
deleteDialog.value = true
|
deleteDialog.value = true
|
||||||
@ -328,6 +324,7 @@ function deleteOk(){
|
|||||||
deleteDialog.value = false;
|
deleteDialog.value = false;
|
||||||
console.log(deleteId.value)
|
console.log(deleteId.value)
|
||||||
requests.userDelete(deleteId.value, token).then((res)=>{
|
requests.userDelete(deleteId.value, token).then((res)=>{
|
||||||
|
console.log("deleteResult:",res)
|
||||||
if (res.data.code === 200) {
|
if (res.data.code === 200) {
|
||||||
message.success('删除成功')
|
message.success('删除成功')
|
||||||
}else {
|
}else {
|
||||||
|
@ -206,12 +206,12 @@ const userDelete = (id, token) => {
|
|||||||
return axios({
|
return axios({
|
||||||
url: api + "/user/delete",
|
url: api + "/user/delete",
|
||||||
method: "put",
|
method: "put",
|
||||||
data: {
|
params: {
|
||||||
id: id
|
id: id
|
||||||
},
|
},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization':'Bearer '+token,
|
'Authorization':'Bearer '+token,
|
||||||
|
'content-type':'application/json;charset=utf-8',
|
||||||
'Timestamp': getCurrentTimestamp()
|
'Timestamp': getCurrentTimestamp()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user