diff --git a/src/views/book/appointment.vue b/src/views/book/appointment.vue index 8a92e40..65f3a32 100644 --- a/src/views/book/appointment.vue +++ b/src/views/book/appointment.vue @@ -12,6 +12,10 @@
查询
+
+ 重置 + +
新增
@@ -145,6 +149,12 @@ this.select.page_size = e this.select.page = 1 this.getList() + }, + resetSelect(){ + + this.select.name = '' + this.select.page=1 + this.getList() }, async getList() { const res = await index({ @@ -154,7 +164,7 @@ sort_name:'sort', sort_type:'ASC', filter: [{ - key: 'name', + key: 'real_name', op: 'like', value: this.select.name }] diff --git a/src/views/book/components/addType.vue b/src/views/book/components/addType.vue index 9420c48..fbde5d1 100644 --- a/src/views/book/components/addType.vue +++ b/src/views/book/components/addType.vue @@ -102,6 +102,16 @@ + + @@ -121,7 +131,8 @@ isShow: false, type: 'add', id: '', - showTinymce: false, + showTinymce: false, + showTinymce1: false, form: { name: '', introduce: '', @@ -133,7 +144,8 @@ image_id: [], start_time: '09:00', end_time: '17:30', - content: '' + content: '', + tips:'' }, action: `${process.env.VUE_APP_UPLOAD_API}`, fileList: [], @@ -149,6 +161,9 @@ methods: { saveContent(e) { this.form.content = e + }, + saveContent1(e) { + this.form.tips = e }, changeDateRange(e) { console.log(e) @@ -201,9 +216,10 @@ this.form = this.base.requestToForm(res, this.form) this.fileList = res.image this.form.dateRange = res.start_time ? [res.start_time, res.end_time] : ['', ''], - this.form.sort = res.sort ? res.sort : 0 + this.form.sort = res.sort ? res.sort : 0 this.form.is_book = res.is_book ? res.is_book : 0 - this.showTinymce = true + this.showTinymce = true + this.showTinymce1 = true }) }, @@ -230,7 +246,8 @@