Files
EdgeAdmin/web/public/js/components/plans/plan-user-selector.js

14 lines
311 B
JavaScript
Raw Normal View History

2021-10-29 14:02:01 +08:00
Vue.component("plan-user-selector", {
props: ["v-user-id"],
data: function () {
2022-08-03 12:20:24 +08:00
return {}
2021-10-29 14:02:01 +08:00
},
2022-08-03 12:20:24 +08:00
methods: {
change: function (userId) {
this.$emit("change", userId)
}
},
2021-10-29 14:02:01 +08:00
template: `<div>
2022-08-03 12:20:24 +08:00
<user-selector :v-user-id="vUserId" data-url="/plans/users/options" @change="change"></user-selector>
2021-10-29 14:02:01 +08:00
</div>`
})