fix: ways filter
This commit is contained in:
+1
-1
@@ -19,4 +19,4 @@
|
|||||||
19. 支持微信测试公众号模板消息发送
|
19. 支持微信测试公众号模板消息发送
|
||||||
20. 支持设置自定义的定时消息推送
|
20. 支持设置自定义的定时消息推送
|
||||||
21. 支持sqlite部署,支持不同版本mysql
|
21. 支持sqlite部署,支持不同版本mysql
|
||||||
22. 增加托管消息,现在可以将站点作为消息的接受,登录站点查看消息
|
22. 增加托管消息,现在可以将站点作为消息的接收,登录站点查看消息
|
||||||
|
|||||||
@@ -46,7 +46,8 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="pagination-block">
|
<div class="pagination-block">
|
||||||
<el-pagination layout="prev, pager, next" :total="total" :page-size="pageSize" @current-change="handPageChange" />
|
<el-pagination layout="prev, pager, next" :total="total" :page-size="pageSize"
|
||||||
|
@current-change="handPageChange" />
|
||||||
<el-text class="total-tip" size="small">每页{{ pageSize }}条,共{{ total }}条</el-text>
|
<el-text class="total-tip" size="small">每页{{ pageSize }}条,共{{ total }}条</el-text>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -57,7 +58,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script >
|
<script>
|
||||||
import { reactive, toRefs, onMounted } from 'vue'
|
import { reactive, toRefs, onMounted } from 'vue'
|
||||||
import addWayComponent from './view/addWayPopUp.vue'
|
import addWayComponent from './view/addWayPopUp.vue'
|
||||||
import editWayComponent from './view/editWayPopUp.vue'
|
import editWayComponent from './view/editWayPopUp.vue'
|
||||||
@@ -68,6 +69,7 @@ import { copyToClipboard } from '@/util/clipboard.js';
|
|||||||
import tableDeleteButton from '@/views/common/tableDeleteButton.vue'
|
import tableDeleteButton from '@/views/common/tableDeleteButton.vue'
|
||||||
import { CONSTANT } from '@/constant'
|
import { CONSTANT } from '@/constant'
|
||||||
import { CommonUtils } from "@/util/commonUtils.js";
|
import { CommonUtils } from "@/util/commonUtils.js";
|
||||||
|
import { fr } from 'element-plus/es/locales.mjs';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
@@ -95,12 +97,19 @@ export default {
|
|||||||
{ 'col': 'type', 'label': '发信渠道' },
|
{ 'col': 'type', 'label': '发信渠道' },
|
||||||
{ 'col': 'created_on', 'label': '创建时间' },
|
{ 'col': 'created_on', 'label': '创建时间' },
|
||||||
],
|
],
|
||||||
options: [
|
options: []
|
||||||
{ label: '邮箱', value: 'Email' },
|
|
||||||
{ label: '钉钉', value: 'Dtalk' }
|
|
||||||
]
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// 解析map到筛选options
|
||||||
|
const getOptions = () => {
|
||||||
|
let result = [];
|
||||||
|
Object.keys(CONSTANT.WAYS_DATA_MAP).forEach(key => {
|
||||||
|
let val = CONSTANT.WAYS_DATA_MAP[key];
|
||||||
|
result.push({ label: val.label, value: val.type })
|
||||||
|
});
|
||||||
|
return result;
|
||||||
|
};
|
||||||
|
|
||||||
const handleEdit = (index, row) => {
|
const handleEdit = (index, row) => {
|
||||||
let name = state.editWayComponentName;
|
let name = state.editWayComponentName;
|
||||||
pageState.ShowDialogData[name] = {};
|
pageState.ShowDialogData[name] = {};
|
||||||
@@ -146,6 +155,7 @@ export default {
|
|||||||
|
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
await queryListData(1, state.pageSize);
|
await queryListData(1, state.pageSize);
|
||||||
|
state.options = getOptions();
|
||||||
});
|
});
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user