提交 734977aa authored 作者: lidongxu's avatar lidongxu

refactor(env): 修改积木报表前缀地址为公网地址

同上
上级 336a2eca
...@@ -14,4 +14,4 @@ VITE_APP_PUBLIC_PATH = './' ...@@ -14,4 +14,4 @@ VITE_APP_PUBLIC_PATH = './'
# 第三方服务回调地址 # 第三方服务回调地址
VITE_APP_REDIRECT_URL = 'http://111.198.15.68:86/link/' VITE_APP_REDIRECT_URL = 'http://111.198.15.68:86/link/'
# 积木报表网页资源地址 # 积木报表网页资源地址
VITE_APP_REPORT_URL = 'http://192.168.100.41:8080' VITE_APP_REPORT_URL = 'http://111.198.15.68:86'
\ No newline at end of file \ No newline at end of file
...@@ -14,4 +14,4 @@ VITE_APP_PUBLIC_PATH = './' ...@@ -14,4 +14,4 @@ VITE_APP_PUBLIC_PATH = './'
# 第三方服务回调地址 # 第三方服务回调地址
VITE_APP_REDIRECT_URL = 'http://111.198.15.68:85/link/' VITE_APP_REDIRECT_URL = 'http://111.198.15.68:85/link/'
# 积木报表网页资源地址 # 积木报表网页资源地址
VITE_APP_REPORT_URL = 'http://192.168.100.39:8080' VITE_APP_REPORT_URL = 'http://111.198.15.68:85'
\ No newline at end of file \ No newline at end of file
...@@ -68,4 +68,13 @@ export function openPromotionSystemAPI(data) { ...@@ -68,4 +68,13 @@ export function openPromotionSystemAPI(data) {
method: 'POST', method: 'POST',
data data
}) })
}
// 删除促销员打卡记录
export function deletePromotionSystemAPI(id) {
return request({
baseURL: VITE_APP_PROMOTION,
url: `/activity/employee/core/delete/${id}`,
method: 'DELETE'
})
} }
\ No newline at end of file
...@@ -104,6 +104,17 @@ ...@@ -104,6 +104,17 @@
:width="item.width" :width="item.width"
:formatter="formatter" :formatter="formatter"
:fixed="item.fixed" /> :fixed="item.fixed" />
<el-table-column label="操作"
width="150"
fixed="right">
<template #default="scope">
<el-button type="danger"
@click="deleteView(scope.row)"
text>
删除
</el-button>
</template>
</el-table-column>
</el-table> </el-table>
</div> </div>
</div> </div>
...@@ -112,9 +123,10 @@ ...@@ -112,9 +123,10 @@
<script setup> <script setup>
import { reactive } from 'vue' import { reactive } from 'vue'
import { useDatePickerOptions } from '@/hooks' import { useDatePickerOptions } from '@/hooks'
import { getWarZoneListAPI, getChargeListAPI, getTaskListAPI, getProCityAPI } from '@/api' import { getWarZoneListAPI, getChargeListAPI, getTaskListAPI, getProCityAPI, deletePromotionSystemAPI } from '@/api'
import { parseTime } from '@/utils' import { parseTime } from '@/utils'
import store from '@/store' import store from '@/store'
import { ElMessage, ElMessageBox } from 'element-plus';
const { recentPickerOptions: pickerOptions, last7Date } = useDatePickerOptions(0) const { recentPickerOptions: pickerOptions, last7Date } = useDatePickerOptions(0)
const queryParams = reactive({ const queryParams = reactive({
...@@ -283,12 +295,22 @@ const columns = ref([ ...@@ -283,12 +295,22 @@ const columns = ref([
label: '城市经理', label: '城市经理',
prop: 'approveName', prop: 'approveName',
width: 120 width: 120
}, }
{
label: '操作',
prop: ''
},
]) ])
// 删除任务列表
const deleteView = async (row) => {
await ElMessageBox.confirm('确认删除吗?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
})
await deletePromotionSystemAPI(row.id)
// 提示删除成功
getTaskList()
ElMessage.success('删除成功')
}
const getTaskList = async () => { const getTaskList = async () => {
// 城市经理查自己,职能角色查所有(需要的是促销系统 id) // 城市经理查自己,职能角色查所有(需要的是促销系统 id)
if (cityManagerPrivilege.value) { if (cityManagerPrivilege.value) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论