摘要: 先使用正则判断输入的是数字还是中文,然后发送请求 <el-select v-model="model.cinemaIds" multiple filterable remote reserve-keyword placeholder="请输入影院名称" :remote-method="remoteM 阅读全文
posted @ 2022-02-15 09:35 喜欢Tb 阅读(82) 评论(0) 推荐(0)
摘要: 生成二维码 npm安装:npm install vue-qr --save <template> <el-table :data="objList" style="width: 100%;margin-top:10px;" row-key="id" border > <el-table-column 阅读全文
posted @ 2022-02-11 10:28 喜欢Tb 阅读(20) 评论(0) 推荐(0)
摘要: main.js new Vue({ el:'#app', render: h => h(App), beforeCreate() { Vue.prototype.$bus = this //安装全局事件总线 }, }) 子组件 <button @click="sendStudentName">把学生 阅读全文
posted @ 2022-02-09 10:56 喜欢Tb 阅读(10) 评论(0) 推荐(0)
摘要: mixin.js export const hunhe = { methods: { showName(){ alert(this.name) } }, mounted() { console.log('你好啊!') }, } export const hunhe2 = { data() { ret 阅读全文
posted @ 2022-02-09 10:20 喜欢Tb 阅读(7) 评论(0) 推荐(0)
摘要: <template> <div class="ele-body"> <el-table :data="list" :span-method="objectSpanMethod" border style="width: 100%; margin-top: 20px" > <el-table-colu 阅读全文
posted @ 2021-12-22 20:05 喜欢Tb 阅读(186) 评论(0) 推荐(0)
摘要: <template> <div class="ele-body"> <el-card shadow="never"> <el-tabs v-model="where.type" @tab-click="handleClick(where.type)"> <el-tab-pane v-for="ite 阅读全文
posted @ 2021-12-16 13:56 喜欢Tb 阅读(24) 评论(0) 推荐(0)
摘要: <template> <div> <!-- 省 --> <el-form-item label-width="60px"> <el-select v-model="province_id" placeholder="请选择省份" clearable> <el-option :label="'全部'" 阅读全文
posted @ 2021-12-14 10:50 喜欢Tb 阅读(10) 评论(0) 推荐(0)
摘要: data() { var checkAge = (rule, value, callback) => { // console.log(value, "输入的"); // console.log(this.da, "最大的"); // console.log(this.xiao, "最小的"); l 阅读全文
posted @ 2021-12-14 09:43 喜欢Tb 阅读(22) 评论(0) 推荐(0)
摘要: /* 保存编辑 */ save() { const url = this.isUpdate == false ? "admin-api/sessions-config/add" : "admin-api/sessions-config/update"; this.$http .post(url, t 阅读全文
posted @ 2021-12-03 14:35 喜欢Tb 阅读(16) 评论(0) 推荐(0)
摘要: <template> <div class="tab-container"> <el-tag>mounted times :{{ createdTimes }}</el-tag> <el-alert :closable="false" style="width:200px;display:inlin 阅读全文
posted @ 2021-12-03 14:25 喜欢Tb 阅读(73) 评论(0) 推荐(0)