+
-
+
- {{ formatDate(scope.row.createTime) }}
+ {{ scope.row.createTime }}
@@ -211,7 +216,7 @@ import {
} from '@/api/mp/autoReply'
import { DICT_TYPE, getDictOptions } from '@/utils/dict'
-import { formatDate } from '@/utils/formatTime'
+import { dateFormatter } from '@/utils/formatTime'
import { ContentWrap } from '@/components/ContentWrap'
const message = useMessage()
@@ -226,7 +231,7 @@ const requestMessageTypes = ['text', 'image', 'voice', 'video', 'shortvideo', 'l
// 遮罩层
const loading = ref(true)
// 显示搜索条件
-const showSearch = ref(true)
+// const showSearch = ref(true)
// 总条数
const total = ref(0)
// 自动回复列表
@@ -257,14 +262,14 @@ const rules = {
const hackResetWxReplySelect = ref(false) // 重置 WxReplySelect 组件,解决无法清除的问题
// 公众号账号列表
-const accounts = ref([])
+const accountList = ref([])
onMounted(() => {
getSimpleAccountList().then((data) => {
- accounts.value = data
+ accountList.value = data
// 默认选中第一个
- if (accounts.value.length > 0) {
- queryParams.accountId = accounts.value[0].id
+ if (accountList.value.length > 0) {
+ queryParams.accountId = accountList.value[0].id
}
// 加载数据
getList()
@@ -303,8 +308,8 @@ const handleQuery = () => {
const resetQuery = () => {
queryFormRef.value?.resetFields()
// 默认选中第一个
- if (accounts.value.length > 0) {
- queryParams.accountId = accounts.value[0].id
+ if (accountList.value.length > 0) {
+ queryParams.accountId = accountList.value[0].id
}
handleQuery()
}
@@ -336,14 +341,14 @@ const handleUpdate = (row) => {
getAutoReply(row.id).then((data) => {
// 设置属性
form.value = { ...data }
- delete form.value['responseMessageType']
+ delete form.value['responsType']
delete form.value['responseContent']
delete form.value['responseMediaId']
delete form.value['responseMediaUrl']
delete form.value['responseDescription']
delete form.value['responseArticles']
objData.value = {
- type: data.responseMessageType,
+ type: data.responsType,
accountId: queryParams.accountId,
content: data.responseContent,
mediaId: data.responseMediaId,
@@ -371,7 +376,7 @@ const handleSubmit = () => {
// 处理回复消息
const form = { ...form.value }
- form.responseMessageType = objData.value.type
+ form.responsType = objData.value.type
form.responseContent = objData.value.content
form.responseMediaId = objData.value.mediaId
form.responseMediaUrl = objData.value.url
diff --git a/src/views/mp/components/wx-material-select/main.vue b/src/views/mp/components/wx-material-select/main.vue
index 87a19dad..7f565823 100644
--- a/src/views/mp/components/wx-material-select/main.vue
+++ b/src/views/mp/components/wx-material-select/main.vue
@@ -47,8 +47,8 @@
/>
-
- 选择
+ 选择
@@ -88,8 +88,8 @@
class-name="small-padding fixed-width"
>
-
- 选择
+ 选择
diff --git a/src/views/mp/menu/index.vue b/src/views/mp/menu/index.vue
index 8d979723..2d4b7c76 100644
--- a/src/views/mp/menu/index.vue
+++ b/src/views/mp/menu/index.vue
@@ -2,12 +2,7 @@
-
+