wang-hao-jie
2021-11-01 c73d38d71545cea55f5ce0f5a95cb2b3e199a6e6
默认更改列表
5个文件已修改
286 ■■■■ 已修改文件
src/views/main-components/user.vue 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/sys/message-manage/addEdit.vue 44 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/sys/message-manage/messageManage.vue 144 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/sys/oss-manage/ossManage.vue 86 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/sys/user-manage/userManage.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/main-components/user.vue
@@ -9,11 +9,11 @@
        </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-->
        <!--&gt;-->
        <DropdownItem name="changePass">
          <Icon type="md-unlock" style="margin: 0 10px 0 0" />{{
            $t("changePass")
src/views/sys/message-manage/addEdit.vue
@@ -48,28 +48,28 @@
        <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"-->
              <!--&gt;</user-choose>-->
            <!--</FormItem>-->
          <!--</div>-->
        <!--</div>-->
        <FormItem class="br">
          <Button
            type="primary"
src/views/sys/message-manage/messageManage.vue
@@ -11,10 +11,10 @@
    />
    <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">
@@ -60,11 +60,11 @@
            <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>
@@ -85,12 +85,12 @@
        >
        <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">
        已选择
@@ -147,7 +147,7 @@
      currView: "index",
      showDetail: false,
      openSearch: true,
      openTip: true,
      openTip: false,
      loading: true, // 表单加载状态
      userLoading: true,
      selectList: [], // 多选数据
@@ -183,12 +183,12 @@
          width: 60,
          align: "center",
        },
        {
          title: "消息ID",
          key: "id",
          minWidth: 160,
          sortable: true,
        },
        // {
        //   title: "消息ID",
        //   key: "id",
        //   minWidth: 160,
        //   sortable: true,
        // },
        {
          title: "消息标题",
          key: "title",
@@ -208,39 +208,39 @@
          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",
@@ -267,22 +267,22 @@
                },
                "编辑"
              ),
              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",
@@ -297,7 +297,7 @@
                    },
                  },
                },
                "删除撤回"
                "删除"
              ),
            ]);
          },
src/views/sys/oss-manage/ossManage.vue
@@ -385,12 +385,12 @@
          minWidth: 130,
          sortable: true,
        },
        {
          title: "存储文件名",
          key: "fkey",
          minWidth: 165,
          sortable: true,
        },
        // {
        //   title: "存储文件名",
        //   key: "fkey",
        //   minWidth: 165,
        //   sortable: true,
        // },
        {
          title: "缩略图(点击预览)",
          key: "url",
@@ -664,43 +664,43 @@
            );
          },
        },
        {
          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",
src/views/sys/user-manage/userManage.vue
@@ -101,7 +101,7 @@
            <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">{{