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 pageSize = ref(10) // 每页显示的数据条数
|
||||
const addDialog = ref(false)
|
||||
const value = ref(true)
|
||||
const deleteDialog = ref(false)
|
||||
const editDialog = ref(false)
|
||||
const token = window.localStorage.getItem('token')
|
||||
@ -264,10 +263,6 @@ function getAll() {
|
||||
})
|
||||
}
|
||||
|
||||
function handleSelectAll(status) {
|
||||
this.$refs.selection.selectAll(status);
|
||||
}
|
||||
|
||||
function handleBeforeSwitchChange(index, row) {
|
||||
return new Promise((resolve) => {
|
||||
this.$Modal.confirm({
|
||||
@ -314,11 +309,12 @@ function addOk () {
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
function addCancel () {
|
||||
message.info('取消新增')
|
||||
}
|
||||
|
||||
|
||||
|
||||
const deleteId = ref(0)
|
||||
function showDeleteDialog(index, row){
|
||||
deleteDialog.value = true
|
||||
@ -328,6 +324,7 @@ function deleteOk(){
|
||||
deleteDialog.value = false;
|
||||
console.log(deleteId.value)
|
||||
requests.userDelete(deleteId.value, token).then((res)=>{
|
||||
console.log("deleteResult:",res)
|
||||
if (res.data.code === 200) {
|
||||
message.success('删除成功')
|
||||
}else {
|
||||
|
@ -206,12 +206,12 @@ const userDelete = (id, token) => {
|
||||
return axios({
|
||||
url: api + "/user/delete",
|
||||
method: "put",
|
||||
data: {
|
||||
params: {
|
||||
id: id
|
||||
},
|
||||
headers: {
|
||||
'Authorization':'Bearer '+token,
|
||||
|
||||
'content-type':'application/json;charset=utf-8',
|
||||
'Timestamp': getCurrentTimestamp()
|
||||
}
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user