Commit 6c4a0db1 authored by 王's avatar

来源码管理

parent 1306e0ba
......@@ -373,7 +373,7 @@
label="手机号">
</el-table-column>
</el-table>
<page :total="userDialog.total" :limit="userDialog.limit" @pageChange="onUserPageChange" @sizeChange="onSizeChange"/>
<page :total="userDialog.total" :limit="userDialog.limit" @pageChange="onUserPageChange" @sizeChange="onUserSizeChange"/>
<span slot="footer" class="dialog-footer">
<el-button @click="userDialog.show = false">取 消</el-button>
<el-button type="primary" @click="onConfirm">确 定</el-button>
......@@ -739,6 +739,11 @@
this.userDialog.nowPage = val
this.getUser()
},
onUserSizeChange(val){
this.userDialog.nowPage = 1
this.userDialog.limit = val
this.getUser()
},
handleSelectionChange(val) {
this.multipleSelection = val;
},
......
This diff is collapsed.
......@@ -684,3 +684,23 @@ export const exportExcelApi = function (url, params) {
url += urlEncode(params)
window.open(url)
};
// 来源码列表
const getSourceListUrl = 'api/admin/code/rule';
export const getSourceListApi = function (json) {
return Vue.prototype.$fetch(getSourceListUrl,json)
};
// 添加来源码
const addSourceUrl = 'api/admin/code/rule';
export const addSourceApi = function (json) {
return Vue.prototype.$post(addSourceUrl,json)
};
// 修改来源码
const updateSourceUrl = 'api/admin/code/rule';
export const updateSourceApi = function (id,json) {
return Vue.prototype.$put(`${updateSourceUrl}/${id}`,json)
};
// 删除来源码
const delSourceUrl = `api/admin/code/rule/`;
export const delSourceApi = function (id) {
return Vue.prototype.$del(`${delSourceUrl}${id}`)
};
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