Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
wangxiaolu-sfa-ui
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
sfa
wangxiaolu-sfa-ui
Commits
734977aa
提交
734977aa
authored
3月 03, 2025
作者:
lidongxu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
refactor(env): 修改积木报表前缀地址为公网地址
同上
上级
336a2eca
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
42 行增加
和
10 行删除
+42
-10
.env.production
.env.production
+2
-2
.env.staging
.env.staging
+2
-2
task.js
src/api/promotion/task.js
+10
-0
index.vue
src/views/promotion/task/index.vue
+28
-6
没有找到文件。
.env.production
浏览文件 @
734977aa
...
@@ -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
.env.staging
浏览文件 @
734977aa
...
@@ -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
src/api/promotion/task.js
浏览文件 @
734977aa
...
@@ -69,3 +69,12 @@ export function openPromotionSystemAPI(data) {
...
@@ -69,3 +69,12 @@ export function openPromotionSystemAPI(data) {
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
src/views/promotion/task/index.vue
浏览文件 @
734977aa
...
@@ -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
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论