审计日志功能上传
This commit is contained in:
parent
f89d4023ca
commit
bc2c980153
|
|
@ -14,14 +14,14 @@
|
||||||
/>
|
/>
|
||||||
<span style="margin-left: 10px;">MB</span>
|
<span style="margin-left: 10px;">MB</span>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
|
|
||||||
<el-button type="primary" size="mini" style="margin-left: 20px;" @click="submit">确定</el-button
|
<el-button type="primary" size="mini" style="margin-left: 20px;" @click="submit">确定</el-button
|
||||||
>
|
>
|
||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { getLogSize,updateLogSize } from '@/api/system/log'
|
import { getLogSize,updateLogSize } from '@/api/system/log'
|
||||||
export default {
|
export default {
|
||||||
|
|
@ -42,20 +42,22 @@
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
submit(){
|
submit(){
|
||||||
updateLogSize(Number(this.capacityForm.logCapacity)).then((response) => {
|
let params={
|
||||||
if(response.code==200){
|
capacity: this.capacityForm.logCapacity
|
||||||
this.$message({
|
}
|
||||||
showClose: true,
|
updateLogSize(params).then(response => {
|
||||||
message: response.msg,
|
if(response.code==200){
|
||||||
type: 'success',
|
this.$message({
|
||||||
duration: 2000
|
showClose: true,
|
||||||
})
|
message: response.msg,
|
||||||
}
|
type: 'success',
|
||||||
})
|
duration: 2000
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
Loading…
Reference in New Issue