kongdeqiang
2022-11-04 98fcbf66162fba0a097a8abcaeba5e1c1e32000e
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 @@
                    },
                  },
                },
                "删除撤回"
                "删除"
              ),
            ]);
          },