|
@@ -52,7 +52,7 @@ import byTable from '@/components/byTable/index'
|
|
|
import byForm from '@/components/byForm/index'
|
|
|
import { computed, ref } from 'vue'
|
|
|
import Editor from '@/components/Editor/index.vue'
|
|
|
-
|
|
|
+import { formatDate } from '@/utils/index.js'
|
|
|
const { proxy } = getCurrentInstance()
|
|
|
const loading = ref(false)
|
|
|
const companyList = ref({})
|
|
@@ -164,16 +164,18 @@ const config = computed(() => {
|
|
|
}
|
|
|
).then(() => {
|
|
|
proxy
|
|
|
- .post('/sendMeg/edit', {
|
|
|
+ .post('/pushAnnouncement/edit', {
|
|
|
...row,
|
|
|
- status:1,
|
|
|
+ sendTime:formatDate(new Date()),
|
|
|
})
|
|
|
.then(() => {
|
|
|
ElMessage({
|
|
|
- message: '发送成功',
|
|
|
+ message: '已提交发送申请,请稍后刷新页面查看',
|
|
|
type: 'success',
|
|
|
})
|
|
|
- getList()
|
|
|
+ setTimeout(() => {
|
|
|
+ getList()
|
|
|
+ }, 500);
|
|
|
})
|
|
|
})
|
|
|
},
|