From 2a131844cd041c61990870a62f203aa79bd949bb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=A3=98=E6=B3=8A=E5=AE=A2?= <1059510186@qq.com>
Date: Tue, 11 Jul 2023 13:09:35 +0800
Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
plat2-eladmin-web.iml | 9 ++
src/api/index.js | 18 +++
src/api/sms/tbTemplate.js | 27 ++++
src/views/DMPTesting/index.vue | 13 ++
src/views/down/currentDownload.vue | 111 +++++++++------
src/views/system/sms/template/index.vue | 174 ++++++++++++++++++++++++
6 files changed, 307 insertions(+), 45 deletions(-)
create mode 100644 plat2-eladmin-web.iml
create mode 100644 src/api/sms/tbTemplate.js
create mode 100644 src/views/system/sms/template/index.vue
diff --git a/plat2-eladmin-web.iml b/plat2-eladmin-web.iml
new file mode 100644
index 00000000..8021953e
--- /dev/null
+++ b/plat2-eladmin-web.iml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/api/index.js b/src/api/index.js
index cb698675..f05fa772 100644
--- a/src/api/index.js
+++ b/src/api/index.js
@@ -42,3 +42,21 @@ export function getInfo() {
})
}
+// 投流下载-上传excel
+export function uploadFiles(data) {
+ return request({
+ url: '/api/deliveryGender/upload/files',
+ method: 'post',
+ data
+ })
+}
+
+// 投流下载-上传excel
+export function delRecord(data) {
+ return request({
+ url: '/api/deliveryGender',
+ method: 'delete',
+ data
+ })
+}
+
diff --git a/src/api/sms/tbTemplate.js b/src/api/sms/tbTemplate.js
new file mode 100644
index 00000000..b796ed6f
--- /dev/null
+++ b/src/api/sms/tbTemplate.js
@@ -0,0 +1,27 @@
+import request from '@/utils/request'
+
+export function add(data) {
+ return request({
+ url: 'api/tbTemplate',
+ method: 'post',
+ data
+ })
+}
+
+export function del(ids) {
+ return request({
+ url: 'api/tbTemplate/',
+ method: 'delete',
+ data: ids
+ })
+}
+
+export function edit(data) {
+ return request({
+ url: 'api/tbTemplate',
+ method: 'put',
+ data
+ })
+}
+
+export default { add, edit, del }
diff --git a/src/views/DMPTesting/index.vue b/src/views/DMPTesting/index.vue
index 2abcf48a..113a529e 100644
--- a/src/views/DMPTesting/index.vue
+++ b/src/views/DMPTesting/index.vue
@@ -78,6 +78,14 @@
style="width: 160px"
class="filter-item"
/>
+
+
+
搜索
@@ -254,6 +262,7 @@ export default {
]
},
chartLeft: {
+ version: 2,
uploadTime: '', // 查询时间
tags: '', // 多选tag
mail: '15158080631@163.com' // 发送邮箱
@@ -290,6 +299,10 @@ export default {
name: '广点通',
value: 5
}
+ ],
+ versionArray: [
+ { version: 1, display_name: '旧版查询' },
+ { version: 2, display_name: '新版查询' }
]
}
},
diff --git a/src/views/down/currentDownload.vue b/src/views/down/currentDownload.vue
index a6b09c0c..a0a4ab0c 100644
--- a/src/views/down/currentDownload.vue
+++ b/src/views/down/currentDownload.vue
@@ -12,38 +12,51 @@
-
-
+
-
-
+
+
{{ parseTime(scope.row.createTime) }}
-
+
+
- 发送邮件
- 下载邮件
- 下载excel
+ 删除
+ 下载邮件
@@ -96,7 +109,8 @@
:loading="uploading"
type="primary"
@click="submitUpload"
- >上传资源
+ >上传资源
+
@@ -107,15 +121,16 @@ import CRUD, { presenter, header, form, crud } from '@crud/crud'
import rrOperation from '@crud/RR.operation'
import pagination from '@crud/Pagination'
import DateRangePicker from '@/components/DateRangePicker'
-import { uploadFiles, sendEmail } from '@/api/index'
+import { uploadFiles, delRecord } from '@/api/index'
import { mapGetters } from 'vuex'
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
-const defaultForm = { }
+
+const defaultForm = {}
export default {
name: 'CurrentDownload',
components: { rrOperation, pagination, DateRangePicker },
cruds() {
- return CRUD({ title: '性别筛选', url: 'api-management/api/down/record' })
+ return CRUD({ title: '性别筛选', url: '/api/deliveryGender' })
},
mixins: [presenter(), header(), form(defaultForm), crud()],
data() {
@@ -138,7 +153,8 @@ export default {
'user'
])
},
- created() {},
+ created() {
+ },
mounted: function() {
const that = this
window.onresize = function temp() {
@@ -146,22 +162,26 @@ export default {
}
},
methods: {
- downloadUrl(type, data) {
+ downloadUrl(data) {
const a = document.createElement('a')
a.style.display = 'none'
- if (type === 'email') {
- a.href = data.emailFilePath
- }
- if (type === 'excel') {
- a.href = data.filePath
- }
+ a.href = data.downUrl
document.body.appendChild(a)
a.click()
document.body.removeChild(a)
},
- sendEmail(id) {
- sendEmail({ id: id }).then(res => {
- this.$message.success('发送成功')
+ toDelete(data) {
+ this.$confirm(`确认删除选中的数据?`, '提示', {
+ confirmButtonText: '确定',
+ cancelButtonText: '取消',
+ type: 'warning'
+ }).then(() => {
+ this.crud.delAllLoading = true
+ const arrayIds = Array.of(data.id)
+ delRecord(arrayIds).then((res) => {
+ this.crud.toQuery()
+ })
+ }).catch(() => {
})
},
colseFileDialog() {
@@ -219,20 +239,21 @@ export default {
diff --git a/src/views/system/sms/template/index.vue b/src/views/system/sms/template/index.vue
new file mode 100644
index 00000000..3910a42e
--- /dev/null
+++ b/src/views/system/sms/template/index.vue
@@ -0,0 +1,174 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ scope.row.templateStatus | templateStatusFilter }}
+
+
+
+
+
+
+ {{ parseTime(scope.row.gmtCreate) }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+