疫情防控
This commit is contained in:
@@ -137,7 +137,7 @@
|
|||||||
this.instance.post(`/app/appintegralmerchandise/addOrUpdate`, {
|
this.instance.post(`/app/appintegralmerchandise/addOrUpdate`, {
|
||||||
...this.form,
|
...this.form,
|
||||||
imageUrl: this.form.imageUrl[0].url,
|
imageUrl: this.form.imageUrl[0].url,
|
||||||
rangeList: this.form.girdList.length ? this.form.girdList.map(v => {
|
rangeList: this.girdList.length ? this.girdList.map(v => {
|
||||||
return {
|
return {
|
||||||
rangeId: v.id,
|
rangeId: v.id,
|
||||||
rangeName: v.girdName
|
rangeName: v.girdName
|
||||||
|
|||||||
@@ -79,8 +79,8 @@
|
|||||||
<el-table-column slot="options" width="160px" fixed="right" label="操作" align="center">
|
<el-table-column slot="options" width="160px" fixed="right" label="操作" align="center">
|
||||||
<template slot-scope="{ row }">
|
<template slot-scope="{ row }">
|
||||||
<div class="table-options">
|
<div class="table-options">
|
||||||
<el-button type="text" @click="toDetail(row.id)" v-if="row.status === '0' || row.status === '2'">下架</el-button>
|
<el-button type="text" @click="operation(row.id, row.status)" v-if="row.status === '0' || row.status === '2'">下架</el-button>
|
||||||
<el-button type="text" @click="toDetail(row.id)" v-if="row.status === '1'">上架</el-button>
|
<el-button type="text" @click="operation(row.id, row.status)" v-if="row.status === '1'">上架</el-button>
|
||||||
<el-button type="text" @click="toAdd(row.id)">编辑</el-button>
|
<el-button type="text" @click="toAdd(row.id)">编辑</el-button>
|
||||||
<el-button type="text" @click="remove(row.id)">删除</el-button>
|
<el-button type="text" @click="remove(row.id)">删除</el-button>
|
||||||
</div>
|
</div>
|
||||||
@@ -181,9 +181,20 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
operation (id, status) {
|
||||||
|
this.$confirm(status === '1' ? '确定上架该商品?' : '确定下架该商品?').then(() => {
|
||||||
|
this.instance.post(`/app/appintegralmerchandise/takeOnOffById?id=${id}&opType=${status === '0' ? 0 : 1}`).then(res => {
|
||||||
|
if (res.code == 0) {
|
||||||
|
this.$message.success(status === '1' ? '上架成功' : '下架成功')
|
||||||
|
this.getList()
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
remove (id) {
|
remove (id) {
|
||||||
this.$confirm('确定删除该数据?').then(() => {
|
this.$confirm('确定删除该数据?').then(() => {
|
||||||
this.instance.post(`/app/appintegralmerchandise/delete?id=${id}`).then(res => {
|
this.instance.post(`/app/appintegralmerchandise/delete?ids=${id}`).then(res => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.$message.success('删除成功!')
|
this.$message.success('删除成功!')
|
||||||
this.getList()
|
this.getList()
|
||||||
|
|||||||
@@ -3,13 +3,20 @@
|
|||||||
<template slot="content">
|
<template slot="content">
|
||||||
<ai-search-bar class="search-bar">
|
<ai-search-bar class="search-bar">
|
||||||
<template #left>
|
<template #left>
|
||||||
<!-- <ai-select
|
<ai-select
|
||||||
v-model="search.infoType"
|
v-model="search.handleType"
|
||||||
clearable
|
clearable
|
||||||
placeholder="请选择对象类型"
|
placeholder="请选择处理意见"
|
||||||
:selectList="dict.getDict('EP_registerInfoType')"
|
:selectList="dict.getDict('EP_handleType2')"
|
||||||
@change="search.current = 1, getList()">
|
@change="search.current = 1, getList()">
|
||||||
</ai-select> -->
|
</ai-select>
|
||||||
|
<ai-select
|
||||||
|
v-model="search.queryType"
|
||||||
|
clearable
|
||||||
|
placeholder="请选择核酸状态"
|
||||||
|
:selectList="dict.getDict('EP_nucleicAcidStatus')"
|
||||||
|
@change="search.current = 1, getList()">
|
||||||
|
</ai-select>
|
||||||
<ai-select
|
<ai-select
|
||||||
v-model="search.status"
|
v-model="search.status"
|
||||||
clearable
|
clearable
|
||||||
@@ -25,6 +32,22 @@
|
|||||||
<i class="el-icon-circle-close" v-if="search.controllerUserId" @click.stop="user = [], search.controllerUserId = '', name = '', search.current = 1, getList()"></i>
|
<i class="el-icon-circle-close" v-if="search.controllerUserId" @click.stop="user = [], search.controllerUserId = '', name = '', search.current = 1, getList()"></i>
|
||||||
</div>
|
</div>
|
||||||
</ai-user-selecter>
|
</ai-user-selecter>
|
||||||
|
<el-date-picker
|
||||||
|
v-model="search.queryBeginTime"
|
||||||
|
type="date"
|
||||||
|
size="small"
|
||||||
|
value-format="yyyy-MM-dd"
|
||||||
|
placeholder="选择开始日期"
|
||||||
|
@change="search.current = 1, getList()">
|
||||||
|
</el-date-picker>
|
||||||
|
<el-date-picker
|
||||||
|
v-model="search.queryEndTime"
|
||||||
|
type="date"
|
||||||
|
size="small"
|
||||||
|
value-format="yyyy-MM-dd"
|
||||||
|
placeholder="选择结束日期"
|
||||||
|
@change="search.current = 1, getList()">
|
||||||
|
</el-date-picker>
|
||||||
</template>
|
</template>
|
||||||
<template #right>
|
<template #right>
|
||||||
<ai-download :instance="instance" url="/app/appepidemicpreventioncommunitymanagement/export" :params="search" fileName="社区管理" :disabled="tableData.length == 0">
|
<ai-download :instance="instance" url="/app/appepidemicpreventioncommunitymanagement/export" :params="search" fileName="社区管理" :disabled="tableData.length == 0">
|
||||||
@@ -78,6 +101,11 @@
|
|||||||
current: 1,
|
current: 1,
|
||||||
size: 10,
|
size: 10,
|
||||||
name: '',
|
name: '',
|
||||||
|
queryBeginTime: '',
|
||||||
|
queryEndTime: '',
|
||||||
|
handleType: '',
|
||||||
|
gatewayId: '',
|
||||||
|
queryType: '',
|
||||||
infoType: '',
|
infoType: '',
|
||||||
status: '',
|
status: '',
|
||||||
controllerUserId: ''
|
controllerUserId: ''
|
||||||
@@ -105,7 +133,7 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
created() {
|
created() {
|
||||||
this.$dict.load(['EP_CM_status', 'EP_registerInfoType', 'EP_registerInfoType', 'EP_handleType']).then(() => {
|
this.$dict.load(['EP_CM_status', 'EP_registerInfoType', 'EP_registerInfoType', 'EP_handleType', 'EP_handleType2', 'EP_nucleicAcidStatus']).then(() => {
|
||||||
this.getList()
|
this.getList()
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -114,7 +142,9 @@
|
|||||||
getList() {
|
getList() {
|
||||||
this.instance.post(`/app/appepidemicpreventioncommunitymanagement/list`, null, {
|
this.instance.post(`/app/appepidemicpreventioncommunitymanagement/list`, null, {
|
||||||
params: {
|
params: {
|
||||||
...this.search
|
...this.search,
|
||||||
|
queryBeginTime: this.search.queryBeginTime ? this.search.queryBeginTime + ' 00:00:00' : '',
|
||||||
|
queryEndTime: this.search.queryEndTime ? this.search.queryEndTime + ' 23:59:59' : ''
|
||||||
}
|
}
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user