活动列表
This commit is contained in:
@@ -270,7 +270,7 @@ export default {
|
||||
},
|
||||
|
||||
getDetail() {
|
||||
this.instance.post(`/appactivityinfo/queryDetailById`,null, {
|
||||
this.instance.post(`api/appactivityinfo/queryDetailById`,null, {
|
||||
params: {id:this.id}
|
||||
}).then((res) => {
|
||||
if(res?.data) {
|
||||
@@ -300,7 +300,7 @@ export default {
|
||||
if(exitBegin <= intoEnd) {
|
||||
return this.$message.error('离场的开始时间不能小于且等于进场的结束时间')
|
||||
}
|
||||
this.instance.post(`/appactivityinfo/addOrUpdate`,{
|
||||
this.instance.post(`api/appactivityinfo/addOrUpdate`,{
|
||||
...this.form
|
||||
}).then(res => {
|
||||
if(res.code == 0) {
|
||||
|
||||
@@ -62,7 +62,7 @@ export default {
|
||||
return [
|
||||
{prop: "title", label: "活动名称", align: "left", showOverflowTooltip: true},
|
||||
{prop: "createUserName", label: "创建人", align: "center"},
|
||||
{prop: "intoBegintime", label: "开始结束时间", align: "center", render: (h, {row}) => h('p',{textAlign:'center'},
|
||||
{prop: "intoBegintime", label: "开始结束时间", align: "center", width: "400px", render: (h, {row}) => h('p',{textAlign:'center'},
|
||||
`${row.intoBegintime}至${row.exitEndtime}`)},
|
||||
{prop: "status", label: "活动状态", align: "center",dict:"activityStatus"},
|
||||
{ slot: "qrcode"},
|
||||
@@ -72,7 +72,7 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
getList() {
|
||||
this.instance.post(`/appactivityinfo/list`,null, {
|
||||
this.instance.post(`api/appactivityinfo/list`,null, {
|
||||
params: {
|
||||
...this.page,
|
||||
}
|
||||
@@ -94,7 +94,7 @@ export default {
|
||||
qrcode (qrcode, id) {
|
||||
if (!qrcode) {
|
||||
this.isLoading = true
|
||||
this.instance.post(`/appactivityinfo/generateQrCode?id=${id}&width=400&height=400`).then(res => {
|
||||
this.instance.post(`api/appactivityinfo/generateQrCode?id=${id}&width=400&height=400`).then(res => {
|
||||
if (res.code == 0) {
|
||||
this.$message.success('二维码生成成功!')
|
||||
this.getList()
|
||||
@@ -113,7 +113,7 @@ export default {
|
||||
},
|
||||
handleDelete(id) {
|
||||
this.$confirm('确定删除该活动?').then(() => {
|
||||
this.instance.post(`/appactivityinfo/delete?ids=${id}`).then(res=>{
|
||||
this.instance.post(`api/appactivityinfo/delete?ids=${id}`).then(res=>{
|
||||
if(res.code == 0) {
|
||||
this.$message.success('删除成功!')
|
||||
this.getList()
|
||||
@@ -124,7 +124,7 @@ export default {
|
||||
// 结束
|
||||
stopBtn(id) {
|
||||
this.$confirm('确定要结束该活动吗?').then(() => {
|
||||
this.instance.post(`/appactivityinfo/stop?id=${id}`).then(res=>{
|
||||
this.instance.post(`api/appactivityinfo/stop?id=${id}`).then(res=>{
|
||||
if(res.code == 0) {
|
||||
this.$message.success('结束成功!')
|
||||
this.getList()
|
||||
|
||||
Reference in New Issue
Block a user