feat:部门管理员查看每日菜单
This commit is contained in:
1 parent
93a85f1929
commit
0b167a92db
4 files changed
+80
-61
No files matched your search
@@ -19,6 +19,8 @@
|
||||
import { reactive } from "vue"
|
||||
import * as mchApi from "/@/api/wallet/mch-manage"
|
||||
|
||||
const emit = defineEmits(['update:modelValue']);
|
||||
|
||||
const selectId = defineModel()
|
||||
|
||||
const props = withDefaults(
|
||||
@@ -71,6 +73,7 @@ async function getOptions() {
|
||||
state.options = data.records ?? []
|
||||
if (props.autoFirst && state.options.length != 0) {
|
||||
state.selectId = state.options[0].id
|
||||
emit("update:modelValue", state.selectId)
|
||||
}
|
||||
} finally {
|
||||
setTimeout(() => (state.loading = false), 500)
|
||||
|
||||
Reference in new issue
Block a user