| | |
| | | </div> |
| | | </div> |
| | | <DropdownMenu slot="list"> |
| | | <DropdownItem name="ownSpace"> |
| | | <Icon type="md-person" style="margin: 0 10px 0 0" />{{ |
| | | $t("userCenter") |
| | | }}</DropdownItem |
| | | > |
| | | <!--<DropdownItem name="ownSpace">--> |
| | | <!--<Icon type="md-person" style="margin: 0 10px 0 0" />{{--> |
| | | <!--$t("userCenter")--> |
| | | <!--}}</DropdownItem--> |
| | | <!-->--> |
| | | <DropdownItem name="changePass"> |
| | | <Icon type="md-unlock" style="margin: 0 10px 0 0" />{{ |
| | | $t("changePass") |
| | |
| | | <FormItem label="内容" prop="content"> |
| | | <editor v-model="form.content" height="250"></editor> |
| | | </FormItem> |
| | | <FormItem label="新创建的账号也推送" prop="createSend"> |
| | | <i-switch size="large" v-model="form.createSend"> |
| | | <span slot="open">开启</span> |
| | | <span slot="close">关闭</span> |
| | | </i-switch> |
| | | </FormItem> |
| | | <div v-if="type == 0"> |
| | | <FormItem label="发送范围"> |
| | | <RadioGroup v-model="form.range"> |
| | | <Radio :label="0" border>全体用户</Radio> |
| | | <Radio :label="1" border>指定用户成员</Radio> |
| | | </RadioGroup> |
| | | </FormItem> |
| | | <div> |
| | | <FormItem label="选择用户" v-if="form.range == 1"> |
| | | <user-choose |
| | | text="选择发送用户" |
| | | v-model="selectUsers" |
| | | ></user-choose> |
| | | </FormItem> |
| | | </div> |
| | | </div> |
| | | <!--<FormItem label="新创建的账号也推送" prop="createSend">--> |
| | | <!--<i-switch size="large" v-model="form.createSend">--> |
| | | <!--<span slot="open">开启</span>--> |
| | | <!--<span slot="close">关闭</span>--> |
| | | <!--</i-switch>--> |
| | | <!--</FormItem>--> |
| | | <!--<div v-if="type == 0">--> |
| | | <!--<FormItem label="发送范围">--> |
| | | <!--<RadioGroup v-model="form.range">--> |
| | | <!--<Radio :label="0" border>全体用户</Radio>--> |
| | | <!--<Radio :label="1" border>指定用户成员</Radio>--> |
| | | <!--</RadioGroup>--> |
| | | <!--</FormItem>--> |
| | | <!--<div>--> |
| | | <!--<FormItem label="选择用户" v-if="form.range == 1">--> |
| | | <!--<user-choose--> |
| | | <!--text="选择发送用户"--> |
| | | <!--v-model="selectUsers"--> |
| | | <!--></user-choose>--> |
| | | <!--</FormItem>--> |
| | | <!--</div>--> |
| | | <!--</div>--> |
| | | <FormItem class="br"> |
| | | <Button |
| | | type="primary" |
| | |
| | | /> |
| | | <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", |
| | |
| | | }, |
| | | }, |
| | | }, |
| | | "删除撤回" |
| | | "删除" |
| | | ), |
| | | ]); |
| | | }, |
| | |
| | | minWidth: 130, |
| | | sortable: true, |
| | | }, |
| | | { |
| | | title: "存储文件名", |
| | | key: "fkey", |
| | | minWidth: 165, |
| | | sortable: true, |
| | | }, |
| | | // { |
| | | // title: "存储文件名", |
| | | // key: "fkey", |
| | | // minWidth: 165, |
| | | // sortable: true, |
| | | // }, |
| | | { |
| | | title: "缩略图(点击预览)", |
| | | key: "url", |
| | |
| | | ); |
| | | }, |
| | | }, |
| | | { |
| | | title: "存储位置", |
| | | key: "location", |
| | | align: "center", |
| | | width: 110, |
| | | render: (h, params) => { |
| | | let location = "", |
| | | color = ""; |
| | | if (params.row.location == 0) { |
| | | location = "本地服务器"; |
| | | color = "green"; |
| | | } else if (params.row.location == 1) { |
| | | location = "七牛云"; |
| | | color = "blue"; |
| | | } else if (params.row.location == 2) { |
| | | location = "阿里云"; |
| | | color = "orange"; |
| | | } else if (params.row.location == 3) { |
| | | location = "腾讯云"; |
| | | color = "geekblue"; |
| | | } else if (params.row.location == 4) { |
| | | location = "MinIO"; |
| | | color = "magenta"; |
| | | } |
| | | return h("div", [ |
| | | h( |
| | | "Tag", |
| | | { |
| | | props: { |
| | | color: color, |
| | | }, |
| | | }, |
| | | location |
| | | ), |
| | | ]); |
| | | }, |
| | | }, |
| | | // { |
| | | // title: "存储位置", |
| | | // key: "location", |
| | | // align: "center", |
| | | // width: 110, |
| | | // render: (h, params) => { |
| | | // let location = "", |
| | | // color = ""; |
| | | // if (params.row.location == 0) { |
| | | // location = "本地服务器"; |
| | | // color = "green"; |
| | | // } else if (params.row.location == 1) { |
| | | // location = "七牛云"; |
| | | // color = "blue"; |
| | | // } else if (params.row.location == 2) { |
| | | // location = "阿里云"; |
| | | // color = "orange"; |
| | | // } else if (params.row.location == 3) { |
| | | // location = "腾讯云"; |
| | | // color = "geekblue"; |
| | | // } else if (params.row.location == 4) { |
| | | // location = "MinIO"; |
| | | // color = "magenta"; |
| | | // } |
| | | // return h("div", [ |
| | | // h( |
| | | // "Tag", |
| | | // { |
| | | // props: { |
| | | // color: color, |
| | | // }, |
| | | // }, |
| | | // location |
| | | // ), |
| | | // ]); |
| | | // }, |
| | | // }, |
| | | { |
| | | title: "创建时间", |
| | | key: "createTime", |
| | |
| | | <DropdownItem name="reset">重置用户密码</DropdownItem> |
| | | <DropdownItem name="exportData">导出所选数据</DropdownItem> |
| | | <DropdownItem name="exportAll">导出全部数据</DropdownItem> |
| | | <DropdownItem name="importData">导入数据(付费)</DropdownItem> |
| | | <!--<DropdownItem name="importData">导入数据(付费)</DropdownItem>--> |
| | | </DropdownMenu> |
| | | </Dropdown> |
| | | <Button type="dashed" @click="openSearch = !openSearch">{{ |
| | | <Button typ e="dashed" @click="openSearch = !openSearch">{{ |
| | | openSearch ? "关闭搜索" : "开启搜索" |
| | | }}</Button> |
| | | <Button type="dashed" @click="openTip = !openTip">{{ |