init admin

This commit is contained in:
2025-11-07 09:56:20 +08:00
commit d9d7ddc05d
2718 changed files with 665424 additions and 0 deletions
+44
View File
@@ -0,0 +1,44 @@
<template>
<u-picker
:show="show"
:defaultIndex="defaultIndex"
:columns="columns"
keyName="label"
@cancel="cancel"
@confirm="confirm"
/>
</template>
<script>
import { areaCode } from "./areaCode";
export default {
data() {
return {
show: false,
defaultIndex: [0],
};
},
methods: {
init() {
this.show = true;
},
confirm({ value }) {
const item = value[0];
this.$emit("chooseArea", item.value);
this.show = false;
},
cancel() {
this.show = false;
},
},
computed: {
columns() {
const list = areaCode.map((i) => {
return { label: `${i.label} +${i.value}`, value: i.value };
});
return [list];
},
},
};
</script>
<style lang="scss" scoped></style>