master
parent
31cbdc675b
commit
c946ae5ab4
@ -0,0 +1,41 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function index (params) {
|
||||
return request({
|
||||
method: "get",
|
||||
url: "/api/admin/regulation/article-index",
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
export function show (params) {
|
||||
return request({
|
||||
method: "get",
|
||||
url: "/api/admin/regulation/article-show",
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
export function save (data) {
|
||||
return request({
|
||||
method: "post",
|
||||
url: "/api/admin/regulation/article-save",
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function store (data) {
|
||||
return request({
|
||||
method: "post",
|
||||
url: "/api/admin/regulation/article-store",
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function destroy (params) {
|
||||
return request({
|
||||
method: "get",
|
||||
url: "/api/admin/regulation/article-destroy",
|
||||
params
|
||||
})
|
||||
}
|
||||
@ -0,0 +1,41 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function index (params) {
|
||||
return request({
|
||||
method: "get",
|
||||
url: "/api/admin/regulation/index",
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
export function show (params) {
|
||||
return request({
|
||||
method: "get",
|
||||
url: "/api/admin/regulation/show",
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
export function save (data) {
|
||||
return request({
|
||||
method: "post",
|
||||
url: "/api/admin/regulation/save",
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function store (data) {
|
||||
return request({
|
||||
method: "post",
|
||||
url: "/api/admin/regulation/store",
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function destroy (params) {
|
||||
return request({
|
||||
method: "get",
|
||||
url: "/api/admin/regulation/destroy",
|
||||
params
|
||||
})
|
||||
}
|
||||
@ -0,0 +1,37 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function index (params,noloading=true) {
|
||||
return request({
|
||||
method: "get",
|
||||
url: "/api/admin/diy_menu/index",
|
||||
params,
|
||||
noloading
|
||||
})
|
||||
}
|
||||
|
||||
export function show (params,noloading=true) {
|
||||
return request({
|
||||
method: "get",
|
||||
url: "/api/admin/diy_menu/show",
|
||||
params,
|
||||
noloading
|
||||
})
|
||||
}
|
||||
|
||||
export function save (data,noloading=true) {
|
||||
return request({
|
||||
method: "post",
|
||||
url: "/api/admin/diy_menu/save",
|
||||
data,
|
||||
noloading
|
||||
})
|
||||
}
|
||||
|
||||
export function destroy(params,noloading=true) {
|
||||
return request({
|
||||
method: "get",
|
||||
url: "/api/admin/diy_menu/destroy",
|
||||
params,
|
||||
noloading
|
||||
})
|
||||
}
|
||||
@ -0,0 +1,17 @@
|
||||
<template>
|
||||
<div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {}
|
||||
},
|
||||
methods: {},
|
||||
computed: {}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
</style>
|
||||
@ -0,0 +1,210 @@
|
||||
<!--收入登记-->
|
||||
<template>
|
||||
<div style="padding: 0 20px">
|
||||
<lx-header
|
||||
icon="md-apps"
|
||||
style="margin-bottom: 10px; border: 0px; margin-top: 15px"
|
||||
text="收入登记"
|
||||
>
|
||||
<div slot="content"></div>
|
||||
<slot>
|
||||
<div class="select-bar">
|
||||
<div>
|
||||
<span style="padding: 0 6px">类型</span>
|
||||
<span>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<Button
|
||||
style="margin-left: 10px"
|
||||
type="primary"
|
||||
@click="
|
||||
$refs['add'].setType('add'),
|
||||
$refs['add'].show()
|
||||
"
|
||||
>新增</Button
|
||||
>
|
||||
<Button style="margin-left: 10px" type="primary" @click="getList"
|
||||
>查询</Button
|
||||
>
|
||||
<Button style="margin-left: 10px" type="primary" @click="init"
|
||||
>重置
|
||||
</Button>
|
||||
</div>
|
||||
</slot>
|
||||
</lx-header>
|
||||
|
||||
<xy-table
|
||||
:list="list"
|
||||
:table-item="table"
|
||||
@delete="(row) => destroy(row.id)"
|
||||
@editor="
|
||||
"
|
||||
>
|
||||
<template #btns>
|
||||
<el-table-column
|
||||
fixed="right"
|
||||
header-align="center"
|
||||
label="操作"
|
||||
width="200"
|
||||
>
|
||||
<template slot-scope="{ row }">
|
||||
<div class="slot-btns">
|
||||
<Button
|
||||
size="small"
|
||||
type="primary"
|
||||
@click="
|
||||
$refs['add'].setId(row.id),
|
||||
$refs['add'].setType('editor'),
|
||||
$refs['add'].show()
|
||||
"
|
||||
>
|
||||
编辑
|
||||
</Button>
|
||||
<Button @click="$refs['add'].setId(row.id),$refs['add'].show()" size="small" type="info">
|
||||
查看
|
||||
</Button>
|
||||
<Poptip
|
||||
:transfer="true"
|
||||
confirm
|
||||
placement="bottom"
|
||||
title="确认要删除吗"
|
||||
@on-ok="destroy(row.id)"
|
||||
>
|
||||
<Button class="slot-btns-item" size="small" type="error"
|
||||
>删除</Button
|
||||
>
|
||||
</Poptip>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</template>
|
||||
</xy-table>
|
||||
|
||||
<div style="display: flex; justify-content: flex-end; padding: 10px 0">
|
||||
<Page
|
||||
:total="total"
|
||||
@on-change="
|
||||
(e) => {
|
||||
select.page = e;
|
||||
getList();
|
||||
}
|
||||
"
|
||||
show-elevator
|
||||
show-sizer
|
||||
@on-page-size-change="
|
||||
(e) => {
|
||||
select.page_size = e;
|
||||
select.page = 1;
|
||||
getList();
|
||||
}
|
||||
"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<add ref="add" :pids="list" @refresh="getList"></add>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import add from "./component/addFile.vue"
|
||||
import { index, destroy } from "@/api/sysManage/article"
|
||||
export default {
|
||||
components: {
|
||||
add
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
total: 0,
|
||||
select: {
|
||||
show_tree: 1,
|
||||
type: ""
|
||||
},
|
||||
|
||||
list: [],
|
||||
table: [
|
||||
{
|
||||
prop: "title",
|
||||
label: "标题",
|
||||
width: 180,
|
||||
fixed: "left",
|
||||
},
|
||||
{
|
||||
prop: "type",
|
||||
label: "类型",
|
||||
width: 120
|
||||
},
|
||||
{
|
||||
prop: "content",
|
||||
label: "内容",
|
||||
minWidth: 220
|
||||
},
|
||||
{
|
||||
prop: "admin.name",
|
||||
label: "经办人",
|
||||
width: 140,
|
||||
},
|
||||
{
|
||||
prop: "created_at",
|
||||
label: "创建日期",
|
||||
width: 180,
|
||||
},
|
||||
],
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
init() {
|
||||
for (let key in this.select) {
|
||||
if (this.select[key] instanceof Array) {
|
||||
this.select[key] = [];
|
||||
} else {
|
||||
this.select[key] = "";
|
||||
}
|
||||
}
|
||||
|
||||
this.select.page = 1;
|
||||
this.select.page_size = 10;
|
||||
},
|
||||
async getList() {
|
||||
const res = await index(this.select);
|
||||
this.list = res.data;
|
||||
this.total = res.total;
|
||||
},
|
||||
destroy(id) {
|
||||
destroy({
|
||||
id,
|
||||
}).then((_) => {
|
||||
this.getList();
|
||||
});
|
||||
},
|
||||
},
|
||||
computed: {},
|
||||
created() {
|
||||
this.getList();
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.select-bar {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
|
||||
& > div {
|
||||
margin: 4px;
|
||||
}
|
||||
}
|
||||
|
||||
.slot-btns {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: flex-start;
|
||||
align-content: flex-start;
|
||||
|
||||
& > Button {
|
||||
|
||||
margin: 2px 4px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@ -0,0 +1,199 @@
|
||||
<!--收入登记-->
|
||||
<template>
|
||||
<div style="padding: 0 20px">
|
||||
<lx-header
|
||||
icon="md-apps"
|
||||
style="margin-bottom: 10px; border: 0px; margin-top: 15px"
|
||||
text="收入登记"
|
||||
>
|
||||
<div slot="content"></div>
|
||||
<slot>
|
||||
<div class="select-bar">
|
||||
<div>
|
||||
<span style="padding: 0 6px">类型</span>
|
||||
<span>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<Button
|
||||
style="margin-left: 10px"
|
||||
type="primary"
|
||||
@click="
|
||||
$refs['add'].setType('add'),
|
||||
$refs['add'].show()
|
||||
"
|
||||
>新增</Button
|
||||
>
|
||||
<Button style="margin-left: 10px" type="primary" @click="getList"
|
||||
>查询</Button
|
||||
>
|
||||
<Button style="margin-left: 10px" type="primary" @click="init"
|
||||
>重置
|
||||
</Button>
|
||||
</div>
|
||||
</slot>
|
||||
</lx-header>
|
||||
|
||||
<xy-table
|
||||
:list="list"
|
||||
:table-item="table"
|
||||
@delete="(row) => destroy(row.id)"
|
||||
@editor="
|
||||
"
|
||||
>
|
||||
<template #btns>
|
||||
<el-table-column
|
||||
fixed="right"
|
||||
header-align="center"
|
||||
label="操作"
|
||||
width="200"
|
||||
>
|
||||
<template slot-scope="{ row }">
|
||||
<div class="slot-btns">
|
||||
<Button
|
||||
size="small"
|
||||
type="primary"
|
||||
@click="
|
||||
$refs['add'].setId(row.id),
|
||||
$refs['add'].setType('editor'),
|
||||
$refs['add'].show()
|
||||
"
|
||||
>
|
||||
编辑
|
||||
</Button>
|
||||
<Button @click="$refs['add'].setId(row.id),$refs['add'].show()" size="small" type="info">
|
||||
查看
|
||||
</Button>
|
||||
<Poptip
|
||||
:transfer="true"
|
||||
confirm
|
||||
placement="bottom"
|
||||
title="确认要删除吗"
|
||||
@on-ok="destroy(row.id)"
|
||||
>
|
||||
<Button class="slot-btns-item" size="small" type="error"
|
||||
>删除</Button
|
||||
>
|
||||
</Poptip>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</template>
|
||||
</xy-table>
|
||||
|
||||
<div style="display: flex; justify-content: flex-end; padding: 10px 0">
|
||||
<Page
|
||||
:total="total"
|
||||
@on-change="
|
||||
(e) => {
|
||||
select.page = e;
|
||||
getList();
|
||||
}
|
||||
"
|
||||
show-elevator
|
||||
show-sizer
|
||||
@on-page-size-change="
|
||||
(e) => {
|
||||
select.page_size = e;
|
||||
select.page = 1;
|
||||
getList();
|
||||
}
|
||||
"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<add ref="add" :pids="list" @refresh="getList"></add>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import add from "./component/addMenu.vue"
|
||||
import { index, destroy } from "@/api/sysManage/menu"
|
||||
export default {
|
||||
components: {
|
||||
add
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
total: 0,
|
||||
select: {
|
||||
show_tree: 1,
|
||||
type: ""
|
||||
},
|
||||
|
||||
list: [],
|
||||
table: [
|
||||
{
|
||||
prop: "name",
|
||||
label: "收入项目",
|
||||
width: 180,
|
||||
fixed: "left",
|
||||
},
|
||||
{
|
||||
prop: "admin.name",
|
||||
label: "经办人",
|
||||
width: 140,
|
||||
},
|
||||
{
|
||||
prop: "created_at",
|
||||
label: "创建日期",
|
||||
width: 180,
|
||||
},
|
||||
],
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
init() {
|
||||
for (let key in this.select) {
|
||||
if (this.select[key] instanceof Array) {
|
||||
this.select[key] = [];
|
||||
} else {
|
||||
this.select[key] = "";
|
||||
}
|
||||
}
|
||||
|
||||
this.select.page = 1;
|
||||
this.select.page_size = 10;
|
||||
},
|
||||
async getList() {
|
||||
const res = await index(this.select);
|
||||
this.list = res;
|
||||
},
|
||||
destroy(id) {
|
||||
destroy({
|
||||
id,
|
||||
}).then((_) => {
|
||||
this.getList();
|
||||
});
|
||||
},
|
||||
},
|
||||
computed: {},
|
||||
created() {
|
||||
this.getList();
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.select-bar {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
|
||||
& > div {
|
||||
margin: 4px;
|
||||
}
|
||||
}
|
||||
|
||||
.slot-btns {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: flex-start;
|
||||
align-content: flex-start;
|
||||
|
||||
& > Button {
|
||||
|
||||
margin: 2px 4px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Loading…
Reference in new issue