|
@@ -8,14 +8,18 @@
|
|
|
@reset="onReSet"
|
|
|
>
|
|
|
<el-form-item>
|
|
|
- <el-select
|
|
|
- v-model.trim="searchForm.sendFlag"
|
|
|
- placeholder="状态"
|
|
|
- >
|
|
|
+ <el-select v-model.trim="searchForm.sendType" placeholder="消息类型" clearable>
|
|
|
+ <el-option label="即时发送" value="NOW"></el-option>
|
|
|
+ <el-option label="定时发送" value="TIMING"> </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item>
|
|
|
+ <el-select v-model.trim="searchForm.sendFlag" placeholder="状态" clearable>
|
|
|
<el-option label="已发送" :value="true"></el-option>
|
|
|
<el-option label="未发送" :value="false"> </el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
+
|
|
|
<el-form-item>
|
|
|
<el-button native-type="submit" type="primary">搜索</el-button>
|
|
|
<el-button native-type="reset" type="danger">重置</el-button>
|
|
@@ -27,15 +31,16 @@
|
|
|
:header-cell-style="{ background: '#EDEEF0', color: '#444' }"
|
|
|
:data="tableList"
|
|
|
>
|
|
|
- <el-table-column
|
|
|
- align="center"
|
|
|
- prop="sendTime"
|
|
|
- label="发送时间"
|
|
|
- >
|
|
|
- <template slot-scope="scope">
|
|
|
- {{ scope.row.sendTime | dayjsFormat }}
|
|
|
+ <el-table-column align="center" prop="sendTime" label="消息类型">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{ scope.row.sendType == "NOW" ? "即时发送" : "定时发送" }}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column align="center" prop="sendTime" label="发送时间">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{ scope.row.sendTime | dayjsFormat }}
|
|
|
{{ scope.row.sendTime | dayjsFormatMinute }}
|
|
|
- </template>
|
|
|
+ </template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
align="center"
|
|
@@ -69,13 +74,16 @@
|
|
|
</auth>
|
|
|
<auth
|
|
|
auths="imSendGroupMessage/update"
|
|
|
- v-if="!scope.row.sendFlag"
|
|
|
+ v-if="!scope.row.sendFlag"
|
|
|
>
|
|
|
<el-button type="text" @click="resetGroup(scope.row)"
|
|
|
>修改</el-button
|
|
|
>
|
|
|
</auth>
|
|
|
- <auth auths="imSendGroupMessage/delete" v-if="!scope.row.sendFlag">
|
|
|
+ <auth
|
|
|
+ auths="imSendGroupMessage/delete"
|
|
|
+ v-if="!scope.row.sendFlag"
|
|
|
+ >
|
|
|
<el-button type="text" @click="deleteGroup(scope.row)"
|
|
|
>删除</el-button
|
|
|
>
|
|
@@ -92,8 +100,8 @@
|
|
|
:page-sizes="rules.page_size"
|
|
|
@pagination="getList"
|
|
|
/>
|
|
|
- <lookGroup ref='lookGroup' />
|
|
|
- <eidtPostMsg ref='eidtPostMsg' />
|
|
|
+ <lookGroup ref="lookGroup" />
|
|
|
+ <eidtPostMsg ref="eidtPostMsg" />
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -103,15 +111,16 @@ import { getToken } from "@/utils/auth";
|
|
|
import pagination from "@/components/Pagination/index";
|
|
|
import load from "@/utils/loading";
|
|
|
import { getTimes } from "@/utils";
|
|
|
-import { getGroupMessageList,deteleGroupMessage } from "../api";
|
|
|
-import lookGroup from '../model/lookGroup.vue'
|
|
|
-import eidtPostMsg from '../model/eidtPostMsg'
|
|
|
+import { getGroupMessageList, deteleGroupMessage } from "../api";
|
|
|
+import lookGroup from "../model/lookGroup.vue";
|
|
|
+import eidtPostMsg from "../model/eidtPostMsg";
|
|
|
export default {
|
|
|
- components: { pagination ,lookGroup,eidtPostMsg},
|
|
|
+ components: { pagination, lookGroup, eidtPostMsg },
|
|
|
data() {
|
|
|
return {
|
|
|
searchForm: {
|
|
|
sendFlag: null,
|
|
|
+ sendType: "",
|
|
|
},
|
|
|
|
|
|
tableList: [],
|
|
@@ -163,15 +172,16 @@ export default {
|
|
|
},
|
|
|
onReSet() {
|
|
|
this.searchForm.sendFlag = null;
|
|
|
- this.search()
|
|
|
+ this.searchForm.sendType = "";
|
|
|
+ this.search();
|
|
|
},
|
|
|
lookGroup(row) {
|
|
|
- this.$refs.lookGroup.openDioag(row)
|
|
|
+ this.$refs.lookGroup.openDioag(row);
|
|
|
},
|
|
|
resetGroup(row) {
|
|
|
- this.$refs.eidtPostMsg.openResetDioag(row)
|
|
|
+ this.$refs.eidtPostMsg.openResetDioag(row);
|
|
|
},
|
|
|
- deleteGroup(row) {
|
|
|
+ deleteGroup(row) {
|
|
|
// deteleGroupMessage
|
|
|
this.$confirm("确定删除?", "提示", {
|
|
|
confirmButtonText: "确定",
|