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