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