From c8e005e6998ff68429554c5f430ce24e801af032 Mon Sep 17 00:00:00 2001 From: proudlx <965752348@qq.com> Date: Mon, 12 Apr 2021 15:35:18 +0800 Subject: [PATCH] =?UTF-8?q?'=E4=BA=A7=E8=AF=B4=E4=BC=9A=E8=AF=A6=E6=83=85?= =?UTF-8?q?=E9=A1=B5'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/ebiz/productionSay.js | 9 +++ src/views/ebiz/productionSay/List.vue | 73 ++++++++++++++----- .../ebiz/productionSay/createChangeItem.vue | 47 ++++++++++++ 3 files changed, 110 insertions(+), 19 deletions(-) create mode 100644 src/views/ebiz/productionSay/createChangeItem.vue diff --git a/src/router/ebiz/productionSay.js b/src/router/ebiz/productionSay.js index 9f3a0f266..453fb8a4f 100644 --- a/src/router/ebiz/productionSay.js +++ b/src/router/ebiz/productionSay.js @@ -1,5 +1,6 @@ //产说会列表 定义相关组件 const List = () => import('@/views/ebiz/productionSay/List') +const createChangeItem = () => import('@/views/ebiz/productionSay/createChangeItem') export default [ { @@ -10,5 +11,13 @@ export default [ title: '产说会列表', index: 1 } + },{ + path: '/productionSay/createChangeItem', + name: 'createChangeItem', + component: createChangeItem, + meta: { + title: '创建产说会', + index: 2 + } }, ] diff --git a/src/views/ebiz/productionSay/List.vue b/src/views/ebiz/productionSay/List.vue index bbba28c13..e31db0ca2 100644 --- a/src/views/ebiz/productionSay/List.vue +++ b/src/views/ebiz/productionSay/List.vue @@ -50,12 +50,7 @@
— - +
@@ -93,8 +88,8 @@ export default { name: 'List', data() { return { - popupShow:false, - columns:[], + popupShow: false, + columns: [], searchName: '', //搜索内容 active: '', //当前选中tab loading: false, @@ -127,9 +122,34 @@ export default { }, } }, + mounted() { + EWebBridge.webCallAppInJs('webview_right_button', { + btns: [ + { + img: this.$assetsUrl + 'images/add.png', + }, + ], + }) + window.appCallBack = this.appCallBack //app回调 + }, methods: { + appCallBack(data) { + if (data.trigger == 'right_button_click') { + if (data.index == 0) { + this.$jump({ + flag: 'h5', + extra: { + url: location.origin + '/#/productionSay/createChangeItem?isEdit=0', + }, + routerInfo: { + path: '/productionSay/createChangeItem?isEdit=0', + }, + }) + } + } + }, // 确认选择 - onConfirm(val){}, + onConfirm(val) {}, filterDateClick(type) { if (type == 'start') { this.showDataPicker = true @@ -152,11 +172,12 @@ export default { this.filterEndDate = '' } }, - toSelect(type){ - switch (type){ + toSelect(type) { + this.popupShow = true + switch (type) { case 'first': - this.columns = []; - break; + this.columns = [] + break } }, // 筛选弹窗显示 @@ -164,15 +185,29 @@ export default { this.showSideBar = true }, // 筛选确认按钮 - submit() {}, + submit() { + this.showSideBar = false + }, // 筛选重置按钮 - reset() {}, + reset() { + this.showSideBar = false + }, // 搜索列表 searchList() {}, // 切换tab tabChange() {}, // 查看详情 - goDetail() {}, + goDetail() { + this.$jump({ + flag: 'h5', + extra: { + url: location.origin + '/#/productionSay/createChangeItem?isEdit=1', + }, + routerInfo: { + path: '/productionSay/createChangeItem?isEdit=1', + }, + }) + }, // 加载列表 loadMore() { console.log('加载表单') @@ -255,9 +290,9 @@ export default { } } } -/deep/.filterField .van-cell{ - padding-right:5px; - padding-left:5px; +/deep/.filterField .van-cell { + padding-right: 5px; + padding-left: 5px; } .bottom-area { /deep/.m-btn { diff --git a/src/views/ebiz/productionSay/createChangeItem.vue b/src/views/ebiz/productionSay/createChangeItem.vue new file mode 100644 index 000000000..2da7267f9 --- /dev/null +++ b/src/views/ebiz/productionSay/createChangeItem.vue @@ -0,0 +1,47 @@ + + + \ No newline at end of file