diff --git a/src/api/xunjian.js b/src/api/xunjian.js index 263e5559a12fba2a59c3c4e13b7507e64609884a..d77b252fa19f082647aa93b0248ee5a09882755f 100644 --- a/src/api/xunjian.js +++ b/src/api/xunjian.js @@ -31,3 +31,15 @@ export function editUnitApi(data) { export function getUnitInfoApi(id) { return getReq(`/ranger/inspection/api/v1/units/${id}`); } + +export function addExemptionApi(data) { + return postReq('/ranger/inspection/api/v1/exemptions', data); +} + +export function getExemptionApi(id) { + return getReq(`ranger/inspection/api/v1/exemptions/${id}`); +} + +export function updateExemptionApi(data) { + return putReq(`/ranger/inspection/api/v1/exemptions`, data); +} diff --git a/src/components/MySelect/range_time_select.vue b/src/components/MySelect/range_time_select.vue new file mode 100644 index 0000000000000000000000000000000000000000..ce8ecbc29768c4e6189a0a7a1d5144b3afef6c30 --- /dev/null +++ b/src/components/MySelect/range_time_select.vue @@ -0,0 +1,32 @@ + + + diff --git a/src/components/table/table.vue b/src/components/table/table.vue index 10b222b030bee797269d55c0fbb8873dfdc832bf..2f78d42ef3d1d802a8030f691443725b90b4f4ea 100644 --- a/src/components/table/table.vue +++ b/src/components/table/table.vue @@ -98,6 +98,10 @@ export default { noPadding: Boolean, scroll: Object, width: { type: Number, default: 900 }, + defaultQuery: { + type: Object, + default: () => ({}), + }, }, data() { @@ -107,7 +111,7 @@ export default { ...initQuery, }, data: [], - queryForm: {}, + queryForm: { ...this.defaultQuery }, loading: false, total: 0, visible: false, @@ -206,7 +210,7 @@ export default { }, reset() { - this.queryForm = {}; + this.queryForm = { ...this.defaultQuery }; this.initQuery = { ...initQuery }; this.getData(); }, diff --git a/src/pages/ranger/basic/exemption/add_edit.vue b/src/pages/ranger/basic/exemption/add_edit.vue new file mode 100644 index 0000000000000000000000000000000000000000..15224735f497ac6799fba78a2b3fc38c26d238a5 --- /dev/null +++ b/src/pages/ranger/basic/exemption/add_edit.vue @@ -0,0 +1,98 @@ + + + diff --git a/src/pages/ranger/basic/exemption/index.js b/src/pages/ranger/basic/exemption/index.js new file mode 100644 index 0000000000000000000000000000000000000000..65e6b7ac8be7b3cdd19dfcbd0fd73f92df8aa640 --- /dev/null +++ b/src/pages/ranger/basic/exemption/index.js @@ -0,0 +1,3 @@ +import Index from './index.vue'; + +export default Index; diff --git a/src/pages/ranger/basic/exemption/index.vue b/src/pages/ranger/basic/exemption/index.vue new file mode 100644 index 0000000000000000000000000000000000000000..2136801e84e0c8cee75e3d3bf5822251d049d70f --- /dev/null +++ b/src/pages/ranger/basic/exemption/index.vue @@ -0,0 +1,101 @@ + + + diff --git a/src/router/config.js b/src/router/config.js index 6b14a1ef6018aa18c9e85a5e5bcc410b5cd6bdd8..988de4c0f2d158077c38abedaa365451eb363a67 100644 --- a/src/router/config.js +++ b/src/router/config.js @@ -72,7 +72,7 @@ const hasAuthorityRoutes = [ }, { path: 'place', - name: '地区配置', + name: '地点配置', component: () => import('@/pages/ranger/basic/place'), }, { @@ -80,6 +80,11 @@ const hasAuthorityRoutes = [ name: '单元配置', component: () => import('@/pages/ranger/basic/unit'), }, + { + path: 'exemption', + name: '免检配置', + component: () => import('@/pages/ranger/basic/exemption'), + }, ], }, {