| | |
| | | /> |
| | | <detail v-model="showDetail" :transferData="transferData" /> |
| | | <Card v-show="currView == 'index'"> |
| | | <Tabs v-model="tabName" @on-click="changeTab"> |
| | | <TabPane label="普通消息" name="normal"></TabPane> |
| | | <TabPane label="系统消息模版" name="system"></TabPane> |
| | | </Tabs> |
| | | <!--<Tabs v-model="tabName" @on-click="changeTab">--> |
| | | <!--<TabPane label="普通消息" name="normal"></TabPane>--> |
| | | <!--<TabPane label="系统消息模版" name="system"></TabPane>--> |
| | | <!--</Tabs>--> |
| | | <Row v-show="openSearch" @keydown.enter.native="handleSearch"> |
| | | <Form ref="searchForm" :model="searchForm" inline :label-width="70"> |
| | | <FormItem label="消息标题" prop="title"> |
| | |
| | | <Button @click="handleSearch" type="primary" icon="ios-search" |
| | | >搜索</Button |
| | | > |
| | | <Button @click="handleReset">重置</Button> |
| | | <a class="drop-down" @click="dropDown"> |
| | | {{ dropDownContent }} |
| | | <Icon :type="dropDownIcon"></Icon> |
| | | </a> |
| | | <!--<Button @click="handleReset">重置</Button>--> |
| | | <!--<a class="drop-down" @click="dropDown">--> |
| | | <!--{{ dropDownContent }}--> |
| | | <!--<Icon :type="dropDownIcon"></Icon>--> |
| | | <!--</a>--> |
| | | </FormItem> |
| | | </Form> |
| | | </Row> |
| | |
| | | > |
| | | <Button @click="delAll" icon="md-trash">批量删除</Button> |
| | | <Button @click="getDataList" icon="md-refresh">刷新</Button> |
| | | <Button type="dashed" @click="openSearch = !openSearch">{{ |
| | | openSearch ? "关闭搜索" : "开启搜索" |
| | | }}</Button> |
| | | <Button type="dashed" @click="openTip = !openTip">{{ |
| | | openTip ? "关闭提示" : "开启提示" |
| | | }}</Button> |
| | | <!--<Button type="dashed" @click="openSearch = !openSearch">{{--> |
| | | <!--openSearch ? "关闭搜索" : "开启搜索"--> |
| | | <!--}}</Button>--> |
| | | <!--<Button type="dashed" @click="openTip = !openTip">{{--> |
| | | <!--openTip ? "关闭提示" : "开启提示"--> |
| | | <!--}}</Button>--> |
| | | </Row> |
| | | <Alert show-icon v-show="openTip"> |
| | | 已选择 |
| | |
| | | currView: "index", |
| | | showDetail: false, |
| | | openSearch: true, |
| | | openTip: true, |
| | | openTip: false, |
| | | loading: true, // 表单加载状态 |
| | | userLoading: true, |
| | | selectList: [], // 多选数据 |
| | |
| | | width: 60, |
| | | align: "center", |
| | | }, |
| | | { |
| | | title: "消息ID", |
| | | key: "id", |
| | | minWidth: 160, |
| | | sortable: true, |
| | | }, |
| | | // { |
| | | // title: "消息ID", |
| | | // key: "id", |
| | | // minWidth: 160, |
| | | // sortable: true, |
| | | // }, |
| | | { |
| | | title: "消息标题", |
| | | key: "title", |
| | |
| | | width: 120, |
| | | align: "center", |
| | | }, |
| | | { |
| | | title: "新创建账号推送", |
| | | key: "createSend", |
| | | align: "center", |
| | | width: 135, |
| | | render: (h, params) => { |
| | | if (params.row.createSend) { |
| | | return h("div", [ |
| | | h( |
| | | "Tag", |
| | | { |
| | | props: { |
| | | color: "blue", |
| | | }, |
| | | }, |
| | | "开启" |
| | | ), |
| | | ]); |
| | | } else { |
| | | return h("div", [ |
| | | h( |
| | | "Tag", |
| | | { |
| | | props: { |
| | | color: "default", |
| | | }, |
| | | }, |
| | | "关闭" |
| | | ), |
| | | ]); |
| | | } |
| | | }, |
| | | }, |
| | | // { |
| | | // title: "新创建账号推送", |
| | | // key: "createSend", |
| | | // align: "center", |
| | | // width: 135, |
| | | // render: (h, params) => { |
| | | // if (params.row.createSend) { |
| | | // return h("div", [ |
| | | // h( |
| | | // "Tag", |
| | | // { |
| | | // props: { |
| | | // color: "blue", |
| | | // }, |
| | | // }, |
| | | // "开启" |
| | | // ), |
| | | // ]); |
| | | // } else { |
| | | // return h("div", [ |
| | | // h( |
| | | // "Tag", |
| | | // { |
| | | // props: { |
| | | // color: "default", |
| | | // }, |
| | | // }, |
| | | // "关闭" |
| | | // ), |
| | | // ]); |
| | | // } |
| | | // }, |
| | | // }, |
| | | { |
| | | title: "创建时间", |
| | | key: "createTime", |
| | |
| | | }, |
| | | "编辑" |
| | | ), |
| | | h("Divider", { |
| | | props: { |
| | | type: "vertical", |
| | | }, |
| | | }), |
| | | h( |
| | | "a", |
| | | { |
| | | on: { |
| | | click: () => { |
| | | this.sendDetail(params.row); |
| | | }, |
| | | }, |
| | | }, |
| | | "发送详情" |
| | | ), |
| | | // h("Divider", { |
| | | // props: { |
| | | // type: "vertical", |
| | | // }, |
| | | // }), |
| | | // h( |
| | | // "a", |
| | | // { |
| | | // on: { |
| | | // click: () => { |
| | | // this.sendDetail(params.row); |
| | | // }, |
| | | // }, |
| | | // }, |
| | | // "发送详情" |
| | | // ), |
| | | h("Divider", { |
| | | props: { |
| | | type: "vertical", |
| | |
| | | }, |
| | | }, |
| | | }, |
| | | "删除撤回" |
| | | "删除" |
| | | ), |
| | | ]); |
| | | }, |