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

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

同上
上级 336a2eca
......@@ -14,4 +14,4 @@ VITE_APP_PUBLIC_PATH = './'
# 第三方服务回调地址
VITE_APP_REDIRECT_URL = 'http://111.198.15.68:86/link/'
# 积木报表网页资源地址
VITE_APP_REPORT_URL = 'http://192.168.100.41:8080'
\ No newline at end of file
VITE_APP_REPORT_URL = 'http://111.198.15.68:86'
\ No newline at end of file
......@@ -14,4 +14,4 @@ VITE_APP_PUBLIC_PATH = './'
# 第三方服务回调地址
VITE_APP_REDIRECT_URL = 'http://111.198.15.68:85/link/'
# 积木报表网页资源地址
VITE_APP_REPORT_URL = 'http://192.168.100.39:8080'
\ No newline at end of file
VITE_APP_REPORT_URL = 'http://111.198.15.68:85'
\ No newline at end of file
......@@ -69,3 +69,12 @@ export function openPromotionSystemAPI(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 @@
:width="item.width"
:formatter="formatter"
: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>
</div>
</div>
......@@ -112,9 +123,10 @@
<script setup>
import { reactive } from 'vue'
import { useDatePickerOptions } from '@/hooks'
import { getWarZoneListAPI, getChargeListAPI, getTaskListAPI, getProCityAPI } from '@/api'
import { getWarZoneListAPI, getChargeListAPI, getTaskListAPI, getProCityAPI, deletePromotionSystemAPI } from '@/api'
import { parseTime } from '@/utils'
import store from '@/store'
import { ElMessage, ElMessageBox } from 'element-plus';
const { recentPickerOptions: pickerOptions, last7Date } = useDatePickerOptions(0)
const queryParams = reactive({
......@@ -283,12 +295,22 @@ const columns = ref([
label: '城市经理',
prop: 'approveName',
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 () => {
// 城市经理查自己,职能角色查所有(需要的是促销系统 id)
if (cityManagerPrivilege.value) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论