|
@@ -28,8 +28,8 @@
|
|
<hr style="margin: 16px 0; color: #EEEEEE;">
|
|
<hr style="margin: 16px 0; color: #EEEEEE;">
|
|
<view class="flex" style="right: 10px;">
|
|
<view class="flex" style="right: 10px;">
|
|
<view @click='edit(item)' v-if='item.status!="待审核"' class='anniu'>编辑</view>
|
|
<view @click='edit(item)' v-if='item.status!="待审核"' class='anniu'>编辑</view>
|
|
- <view class='anniu' @click="switch1(item)" v-if="item.showFlag == 0">隐藏</view>
|
|
|
|
- <view class='anniu' @click="switch1(item)" v-if="item.showFlag == 1">显示</view>
|
|
|
|
|
|
+ <view class='anniu' @click="switch1(item)" v-if="item.showFlag == 0">显示</view>
|
|
|
|
+ <view class='anniu' @click="switch1(item)" v-if="item.showFlag == 1">隐藏</view>
|
|
<view class='anniu' @click="deleteRelease(item)">删除</view>
|
|
<view class='anniu' @click="deleteRelease(item)">删除</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -76,9 +76,9 @@
|
|
if (item.type == "买粮") {
|
|
if (item.type == "买粮") {
|
|
var that = this
|
|
var that = this
|
|
var tips
|
|
var tips
|
|
- if (item.showFlag == 0) {
|
|
|
|
|
|
+ if (item.showFlag == 1) {
|
|
tips = "隐藏后该信息不再展示给其他用户,是否确定隐藏?"
|
|
tips = "隐藏后该信息不再展示给其他用户,是否确定隐藏?"
|
|
- } else if (item.showFlag == 1) {
|
|
|
|
|
|
+ } else if (item.showFlag == 0) {
|
|
tips = "确定显示该信息?"
|
|
tips = "确定显示该信息?"
|
|
}
|
|
}
|
|
uni.showModal({
|
|
uni.showModal({
|
|
@@ -94,9 +94,9 @@
|
|
}).then(res => {
|
|
}).then(res => {
|
|
// this.procurementPlanInfos = res.data.data.records
|
|
// this.procurementPlanInfos = res.data.data.records
|
|
if (res.data.message == "Success") {
|
|
if (res.data.message == "Success") {
|
|
- if (item.showFlag == 0) {
|
|
|
|
|
|
+ if (item.showFlag == 1) {
|
|
that.$api.msg('隐藏成功!')
|
|
that.$api.msg('隐藏成功!')
|
|
- } else if (item.showFlag == 1) {
|
|
|
|
|
|
+ } else if (item.showFlag == 0) {
|
|
that.$api.msg('显示成功!')
|
|
that.$api.msg('显示成功!')
|
|
}
|
|
}
|
|
that.getList()
|
|
that.getList()
|
|
@@ -118,9 +118,9 @@
|
|
} else if (item.type == "卖粮") {
|
|
} else if (item.type == "卖粮") {
|
|
var that = this
|
|
var that = this
|
|
var tips
|
|
var tips
|
|
- if (item.showFlag == 0) {
|
|
|
|
|
|
+ if (item.showFlag == 1) {
|
|
tips = "隐藏后该信息不再展示给其他用户,是否确定隐藏?"
|
|
tips = "隐藏后该信息不再展示给其他用户,是否确定隐藏?"
|
|
- } else if (item.showFlag == 1) {
|
|
|
|
|
|
+ } else if (item.showFlag == 0) {
|
|
tips = "确定显示该信息?"
|
|
tips = "确定显示该信息?"
|
|
}
|
|
}
|
|
uni.showModal({
|
|
uni.showModal({
|
|
@@ -135,9 +135,9 @@
|
|
}).then(res => {
|
|
}).then(res => {
|
|
// this.procurementPlanInfos = res.data.data.records
|
|
// this.procurementPlanInfos = res.data.data.records
|
|
if (res.data.message == "Success") {
|
|
if (res.data.message == "Success") {
|
|
- if (item.showFlag == 0) {
|
|
|
|
|
|
+ if (item.showFlag == 1) {
|
|
that.$api.msg('隐藏成功!')
|
|
that.$api.msg('隐藏成功!')
|
|
- } else if (item.showFlag == 1) {
|
|
|
|
|
|
+ } else if (item.showFlag == 0) {
|
|
that.$api.msg('显示成功!')
|
|
that.$api.msg('显示成功!')
|
|
}
|
|
}
|
|
that.getList()
|
|
that.getList()
|