From bc8d740579765bfc796e5ef6147f5612d2ca1ef0 Mon Sep 17 00:00:00 2001
From: maguoqiang <1098581467@qq.com>
Date: Sat, 22 Feb 2020 16:37:43 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=B7=AF=E7=94=B1=E8=B7=B3?=
=?UTF-8?q?=E8=BD=ACinfo=E9=A1=B5=E9=9D=A2=E5=92=8C=E8=AF=A6=E7=BB=86?=
=?UTF-8?q?=E9=A1=B5=E9=9D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/modules/case/typicalcase.vue | 47 ++++++++++----------------
1 file changed, 17 insertions(+), 30 deletions(-)
diff --git a/src/views/modules/case/typicalcase.vue b/src/views/modules/case/typicalcase.vue
index b639e63b..bb569152 100644
--- a/src/views/modules/case/typicalcase.vue
+++ b/src/views/modules/case/typicalcase.vue
@@ -6,10 +6,10 @@
-
+
-
+
@@ -19,7 +19,7 @@
- {{"新增典型案例"}}
+ {{"新增典型案例"}}
@@ -32,9 +32,9 @@
- {{"上架"}}
- {{"下架"}}
- {{"查看详细"}}
+ {{"下架"}}
+ {{"上架"}}
+ {{"查看详细"}}
@@ -61,10 +61,11 @@ import mixinViewModule from '@/mixins/view-module'
import AddOrUpdate from './typicalcase-add-or-update'
export default {
mixins: [mixinViewModule],
+ name: 'CaseInfoList',
data () {
return {
mixinViewModuleOptions: {
- getDataListURL: '/cloudAnalysis/typicalcase/export',
+ getDataListURL: '/cloudAnalysis/typicalcase/page',
getDataListIsPage: true
},
dataForm: {
@@ -78,32 +79,18 @@ export default {
AddOrUpdate
},
methods: {
- UpdateStateOn () {
- return this.$http.get('/typicalcase/UpdateStateOn').then(({ data: res }) => {
- if (res.code !== 0) {
- return this.$message.error(res.msg)
- }
- window.SITE_CONFIG['permissions'] = res.data
- }).catch(() => {})
+ UpdateStateOn (id) {
+ this.mixinViewModuleOptions.getDataListURL = '/cloudAnalysis/typicalcase/on' + '/' + id
+ this.getDataList()
},
- UpdateStateOff () {
- return this.$http.get('/typicalcase/UpdateStateOff').then(({ data: res }) => {
- if (res.code !== 0) {
- return this.$message.error(res.msg)
- }
- window.SITE_CONFIG['permissions'] = res.data
- }).catch(() => {})
+ UpdateStateOff (id) {
+ this.mixinViewModuleOptions.getDataListURL = '/cloudAnalysis/typicalcase/off' + '/' + id
+ this.getDataList()
},
- getDataOne () {
- this.$router.push({
- name: 'AddOrUpdate',
- params: {
- id: this.id,
- add: false
- }
- })
+ detailHandle (id) {
+ this.$parent.selectComponent = 'CaseInfoDetailView'
+ this.$router.push({ path: '/case-typicalcasedetail', query: { id: id } })
}
-
}
}