Commit e4c0eba1 by 米嘉伟

逻辑库 日志

parent 7d65f738
......@@ -62,6 +62,7 @@ const actions = {
params.userId = userInfo.user.id
params.userGroupIds = userInfo.groupIds
_axios.post('/api/code/caseLogic', params).then(res => {
console.log(res, '/api/code/caseLogic luojiku ')
if (res.data.code == 0 && res.data.message == "success") {
context.commit('ljkAj', res.data.ret);
}
......@@ -75,7 +76,8 @@ const actions = {
}
params.userId = userInfo.user.id
params.userGroupIds = userInfo.groupIds
_axios.get('/api/code/allLogicName', params).then(res => {
_axios.post('/api/code/allLogicName', params).then(res => {
console.log(res, '/api/code/allLogicName luojiku ')
if (res.data.code == 0 && res.data.message == "success") {
context.commit('ljkAll', res.data.ret);
}
......
......@@ -40,7 +40,7 @@
>清空</el-button>
<el-button
class="cx"
@click="getLogList"
@click="getLogList(1)"
>查询</el-button>
</el-form-item>
</div>
......@@ -154,7 +154,9 @@ export default {
this.width5 = (this.width5 * w2) / w1;
},
methods: {
getLogList () {
getLogList (page = 1) {
console.log(page, ' getLogList (page = 1)')
this.systemLogParam.currPage = page;
this.getParam()
this.$axios
.post('/api/log/logList', this.systemLogParam)
......@@ -174,8 +176,8 @@ export default {
},
// 筛选前页数为1
backNumOne () {
this.systemLogParam.currPage = 1// 当前页码
this.$forceUpdate()
// this.systemLogParam.currPage = 1// 当前页码
// this.$forceUpdate()
},
// 格式化时间参数
getParam () {
......@@ -211,9 +213,9 @@ export default {
},
// currentPage 改变时会触发
handleCurrentChange (page) {
this.systemLogParam.currPage = page;
//console.log("当前页", this.reqParam.page.currPage);
this.getLogList();
// this.systemLogParam.currPage = page;
console.log("当前页", page);
this.getLogList(page);
},
}
}
......
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