-
-
+
+
{{ $t('query') }}
- {{ $t('add') }}
+ {{ $t('add') }}
{{ $t('deleteBatch') }}
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
-
-
-
+
+
+
- {{ $t('update') }}
- {{ $t('delete') }}
+
+ {{scope.row.bannerFlag=='0'?'下架':'上架'}}
+
+ {{ $t('update') }}
+ {{ $t('delete') }}
@@ -71,6 +96,30 @@ export default {
},
components: {
AddOrUpdate
+ },
+ methods :{
+ //上下架设置
+ handleIsUpDown (val) {
+ this.$confirm(this.$t('prompt.info', { 'handle': '上下架' }), this.$t('上下架'), {
+ confirmButtonText: this.$t('confirm'),
+ cancelButtonText: this.$t('cancel'),
+ type: 'warning'
+ }).then(() => {
+ this.$http['put']('/app-user/volunteerpioneer/handleIsUpDown', val).then(({ data: res }) => {
+ if (res.code !== 0) {
+ return this.$message.error(res.msg)
+ }
+ this.$message({
+ message: this.$t('prompt.success'),
+ type: 'success',
+ duration: 500,
+ onClose: () => {
+ this.getDataList()
+ }
+ })
+ }).catch(() => { })
+ }).catch(() => { })
+ },
}
}