// 选择单一线路 Vue.component("ns-route-selector", { props: ["v-route-code"], mounted: function () { let that = this Tea.action("/ns/routes/options") .post() .success(function (resp) { that.routes = resp.data.routes }) }, data: function () { let routeCode = this.vRouteCode if (routeCode == null) { routeCode = "" } return { routeCode: routeCode, routes: [] } }, template: `