diff --git a/src/api/model/mtm.js b/src/api/model/mtm.js index 487664b2..7566d420 100644 --- a/src/api/model/mtm.js +++ b/src/api/model/mtm.js @@ -476,4 +476,32 @@ export default { }, }, }, + srule: { + list: { + name: "排班规则列表", + req: async function (data) { + return await http.get( + `${config.API_URL}/mtm/srule/`, + data + ); + }, + }, + create: { + name: "创建", + req: async function (data) { + return await http.post( + `${config.API_URL}/mtm/srule/`, + data + ); + }, + }, + delete: { + name: "删除", + req: async function (id) { + return await http.delete( + `${config.API_URL}/mtm/srule/${id}/` + ); + }, + }, + }, }; diff --git a/src/components/xtSelect/index.vue b/src/components/xtSelect/index.vue index 95fc3eb6..8e437cae 100644 --- a/src/components/xtSelect/index.vue +++ b/src/components/xtSelect/index.vue @@ -88,7 +88,7 @@ const props = defineProps({ options: { type: Array, default: null }, }); -const emit = defineEmits(["update:modelValue", "update:obj", "update:label"]); +const emit = defineEmits(["update:modelValue", "update:obj", "update:label", "change"]); // 控制 popover 显示与隐藏的状态 const showPopover = ref(false); diff --git a/src/config/route.js b/src/config/route.js index e4c30e0f..beaf7ed6 100644 --- a/src/config/route.js +++ b/src/config/route.js @@ -2899,6 +2899,15 @@ const routes = [ hidden: true, }, component: "enm_rm/logDetail", + }, + { + name: "srule", + path: "/enm_base/srule", + meta: { + title: "排班规则", + perms: ["srule"], + }, + component: "mtm/srule", }, ], }, diff --git a/src/views/mtm/srule.vue b/src/views/mtm/srule.vue new file mode 100644 index 00000000..3c665940 --- /dev/null +++ b/src/views/mtm/srule.vue @@ -0,0 +1,103 @@ + + \ No newline at end of file diff --git a/vue.config.js b/vue.config.js index 3090250b..8275c803 100644 --- a/vue.config.js +++ b/vue.config.js @@ -26,7 +26,7 @@ module.exports = defineConfig({ }, client: { overlay: { - // runtimeErrors: false, + runtimeErrors: false, }, }, },