审计日志功能上传

This commit is contained in:
lizhenhua 2024-07-28 13:19:11 +08:00
parent f89d4023ca
commit bc2c980153
1 changed files with 18 additions and 16 deletions

View File

@ -14,14 +14,14 @@
/>
<span style="margin-left: 10px;">MB</span>
</el-form-item>
<el-button type="primary" size="mini" style="margin-left: 20px;" @click="submit">确定</el-button
>
</el-form>
</div>
</template>
<script>
import { getLogSize,updateLogSize } from '@/api/system/log'
export default {
@ -42,20 +42,22 @@
})
},
submit(){
updateLogSize(Number(this.capacityForm.logCapacity)).then((response) => {
if(response.code==200){
this.$message({
showClose: true,
message: response.msg,
type: 'success',
duration: 2000
})
}
})
let params={
capacity: this.capacityForm.logCapacity
}
updateLogSize(params).then(response => {
if(response.code==200){
this.$message({
showClose: true,
message: response.msg,
type: 'success',
duration: 2000
})
}
})
},
}
}
</script>