审计日志功能上传
This commit is contained in:
parent
f89d4023ca
commit
bc2c980153
|
|
@ -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>
|
||||
|
||||
Loading…
Reference in New Issue