Commit cd0c2a66 authored by 张毅辰's avatar 张毅辰

操作日志

parent 1a16cc22
......@@ -24,7 +24,7 @@ export function getDictTypePage(
});
}
/** 查询字典数据列表*/
export function listData(query) {
export function listData(query: any) {
return request({
url: "/system/dict/data/list",
method: "get",
......@@ -32,7 +32,7 @@ export function listData(query) {
});
}
export function listType(query) {
export function listType(query: any) {
return request({
url: "/system/dict/type/list",
method: "get",
......@@ -40,7 +40,7 @@ export function listType(query) {
});
}
/** 获取字典选择框列表*/
export function selectDictType(dictType) {
export function selectDictType(dictType: any) {
return request({
url: "/system/dict/data/type/" + dictType,
method: "get",
......@@ -57,7 +57,7 @@ export function exportType(queryParams: DictTypeQuery) {
}
/** 修改字典类型*/
export function updateType(data) {
export function updateType(data: any) {
const businessId = data.businessId;
return request({
url: "/system/dict/type/update/" + businessId,
......@@ -67,7 +67,7 @@ export function updateType(data) {
});
}
/** 新增字典类型*/
export function addType(data) {
export function addType(data: any) {
return request({
url: "/system/dict/type/add",
method: "post",
......
......@@ -35,12 +35,12 @@ const queryParams = reactive({
username: "",
loginTime: "",
});
const clearFrom = reactive({});
const clearForm = reactive({});
const exportRule = reactive({
month: [{ required: true, message: "请选择月份", trigger: "change" }],
});
const clearFromRef = ref(ElForm);
const clearFormRef = ref(ElForm);
const exportFromRef = ref(ElForm);
onMounted(() => {
......@@ -109,7 +109,6 @@ function handleDelete(data) {
type: "warning",
})
.then(() => {
// const id = this.ids.join(',')
const id = data;
const query = {
deleteIds: id,
......@@ -117,7 +116,7 @@ function handleDelete(data) {
return delLogininfo(query);
})
.then(() => {
this.getList();
getList();
ElMessage.success("删除成功");
ids.value = [];
multiple.value = true;
......@@ -126,11 +125,11 @@ function handleDelete(data) {
}
function clear() {
clearFromRef.value.validate((valid) => {
clearFormRef.value.validate((valid) => {
if (valid) {
const query = {
beginTime: clearFrom.month[0],
endTime: clearFrom.month[1],
beginTime: clearForm.month[0],
endTime: clearForm.month[1],
};
cleanLogininfo(query).then((res) => {
if (res.code === 200) {
......@@ -148,7 +147,7 @@ function clear() {
/** 清空按钮操作 */
function handleClean() {
clearVisible.value = true;
Object.assign(clearFrom, {});
Object.assign(clearForm, {});
}
function exportSubmit() {
......@@ -169,7 +168,6 @@ function exportSubmit() {
document.body.removeChild(downloadElement); // 下载完成移除元素
window.URL.revokeObjectURL(href); // 释放掉blob对象
exportVisible.value = false;
// this.download(response.msg)
});
}
});
......@@ -311,14 +309,14 @@ function handleExport() {
<!-- 清空弹窗-->
<el-dialog
title="选择清空月份"
v-model:visible="clearVisible"
v-model="clearVisible"
width="30%"
:before-close="handleClose"
>
<el-form ref="clearFromRef" :model="clearFrom" :rules="clearRule">
<el-form ref="clearFormRef" :model="clearForm" :rules="clearRule">
<el-form-item label="月份" prop="month">
<el-date-picker
v-model="clearFrom.month"
v-model="clearForm.month"
type="monthrange"
range-separator="至"
start-placeholder="开始月份"
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment