diff --git a/src/api/ranger.js b/src/api/ranger.js
index 26a2ca258c7d6e968ab99af40391d0e30aa60e87..ad0c6f65edcba0fe23231fdb9260b393e80f11ae 100644
--- a/src/api/ranger.js
+++ b/src/api/ranger.js
@@ -35,3 +35,15 @@ export function editPlaceApi(data) {
export function getExemptionsListApi(data) {
return getReq(`/ranger/inspection/api/v1/exemptions/valid`, data);
}
+
+export function addUnitApi(data) {
+ return postReq('/ranger/inspection/api/v1/units', data);
+}
+
+export function editUnitApi(data) {
+ return putReq('/ranger/inspection/api/v1/units', data);
+}
+
+export function getUnitInfoApi(id) {
+ return getReq(`/ranger/inspection/api/v1/units/${id}`);
+}
diff --git a/src/components/MySelect/search_select.vue b/src/components/MySelect/search_select.vue
index a2fb3ff241ac813162a6d5f33305ce102c7dadfd..c732dcc0d76dfef8fe5386ede30f7175a7ecfd2c 100644
--- a/src/components/MySelect/search_select.vue
+++ b/src/components/MySelect/search_select.vue
@@ -11,6 +11,7 @@
:options="options"
:mode="mode"
v-on="$listeners"
+ v-bind="$attrs"
/>
diff --git a/src/config/setting.config.js b/src/config/setting.config.js
index e5ec754b1323aca5a46d71d111e997c440d777d4..3fd2cc0fd2de5f882f88f1739477d4c14096a4d3 100644
--- a/src/config/setting.config.js
+++ b/src/config/setting.config.js
@@ -1,41 +1,34 @@
//ts 此配置为系统默认设置。
const settingConfig = {
- lang: "zh_CN", //语言,可选 CN(简体)、HK(繁体)、US(英语),也可扩展其它语言
- fallbackLang: "en_US",
+ lang: 'zh_CN', //语言,可选 CN(简体)、HK(繁体)、US(英语),也可扩展其它语言
+ fallbackLang: 'en_US',
theme: {
//主题
- color: "#3eaf7c", //主题色
- mode: "dark", //主题模式 可选 dark、 light 和 night
- success: "#52c41a", //成功色
- warning: "#faad14", //警告色
- error: "#f5222f", //错误色
+ color: '#3eaf7c', //主题色
+ mode: 'dark', //主题模式 可选 dark、 light 和 night
+ success: '#52c41a', //成功色
+ warning: '#faad14', //警告色
+ error: '#f5222f', //错误色
},
- layout: "side", //导航布局,可选 side 和 head,分别为侧边导航和顶部导航
+ layout: 'side', //导航布局,可选 side 和 head,分别为侧边导航和顶部导航
fixedHeader: false, //固定头部状态栏,true:固定,false:不固定
fixedSideBar: true, //固定侧边栏,true:固定,false:不固定
fixedTabs: false, //固定页签头,true:固定,false:不固定
- pageWidth: "fixed", //内容区域宽度,fixed:固定宽度,fluid:流式宽度
+ pageWidth: 'fixed', //内容区域宽度,fixed:固定宽度,fluid:流式宽度
multiPage: true, //多页签模式,true:开启,false:不开启
cachePage: true, //是否缓存页面数据,仅多页签模式下生效,true 缓存, false 不缓存
hideSetting: false, //隐藏设置抽屉,true:隐藏,false:不隐藏
- systemCode: "Karot", //系统编码
- systemName: "Karot文档管理系统", //系统名称
- copyright: "2021~ C.T 工作室出品", //copyright
+ systemCode: 'Karot', //系统编码
+ systemName: 'Karot文档管理系统', //系统名称
asyncRoutes: false, //异步加载路由,true:开启,false:不开启
showPageTitle: true, //是否显示页面标题(PageLayout 布局中的页面标题),true:显示,false:不显示
filterMenu: true, //根据权限过滤菜单,true:过滤,false:不过滤
animate: {
//动画设置
disabled: false, //禁用动画,true:禁用,false:启用
- name: "lightSpeed", //动画效果,支持的动画效果可参考 ./animate.config.js
- direction: "Left", //动画方向,切换页面时动画的方向,参考 ./animate.config.js
+ name: 'lightSpeed', //动画效果,支持的动画效果可参考 ./animate.config.js
+ direction: 'Left', //动画方向,切换页面时动画的方向,参考 ./animate.config.js
},
- footerLinks: [
- //页面底部链接,{link: '链接地址', name: '名称/显示文字', icon: '图标,支持 ant design vue 图标库'}
- { link: "https://www.antdv.com/", name: "AntD Vue" },
- { link: "http://platform.kuopu.net:9999/gitlab/product/akina-antd-vue-pro", icon: "gitlab" },
- { link: "https://vuejs.org/", name: "Vue" },
- ],
};
module.exports = settingConfig;
diff --git a/src/pages/frame/layouts/AdminLayout.vue b/src/pages/frame/layouts/AdminLayout.vue
index 1ace72a298df84c578a1bda13e302955a1d8462c..72e004cee74251c700f87b29cf8e4c7e5b154895 100644
--- a/src/pages/frame/layouts/AdminLayout.vue
+++ b/src/pages/frame/layouts/AdminLayout.vue
@@ -83,8 +83,6 @@ export default {
...mapState('settingModule', [
'theme',
'layout',
- 'footerLinks',
- 'copyright',
'fixedHeader',
'fixedSideBar',
'fixedTabs',
diff --git a/src/pages/ranger/basic/unit/add_edit.vue b/src/pages/ranger/basic/unit/add_edit.vue
new file mode 100644
index 0000000000000000000000000000000000000000..1c56b15089d5ff52a12b525f2f2ba310682c037c
--- /dev/null
+++ b/src/pages/ranger/basic/unit/add_edit.vue
@@ -0,0 +1,91 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/ranger/basic/unit/index.js b/src/pages/ranger/basic/unit/index.js
new file mode 100644
index 0000000000000000000000000000000000000000..65e6b7ac8be7b3cdd19dfcbd0fd73f92df8aa640
--- /dev/null
+++ b/src/pages/ranger/basic/unit/index.js
@@ -0,0 +1,3 @@
+import Index from './index.vue';
+
+export default Index;
diff --git a/src/pages/ranger/basic/unit/index.vue b/src/pages/ranger/basic/unit/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..a9e84ffc39cfd88ff0865617bfae7b372ddaf682
--- /dev/null
+++ b/src/pages/ranger/basic/unit/index.vue
@@ -0,0 +1,74 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/router/config.js b/src/router/config.js
index 2f45f2c406d3da930cd9862a9117756c5144c683..6b14a1ef6018aa18c9e85a5e5bcc410b5cd6bdd8 100644
--- a/src/router/config.js
+++ b/src/router/config.js
@@ -75,6 +75,11 @@ const hasAuthorityRoutes = [
name: '地区配置',
component: () => import('@/pages/ranger/basic/place'),
},
+ {
+ path: 'unit',
+ name: '单元配置',
+ component: () => import('@/pages/ranger/basic/unit'),
+ },
],
},
{