diff --git a/packages/3.0.0/AppContentInfo/AppContentInfo.vue b/packages/3.0.0/AppContentInfo/AppContentInfo.vue
index a5d16b3e..503101f9 100644
--- a/packages/3.0.0/AppContentInfo/AppContentInfo.vue
+++ b/packages/3.0.0/AppContentInfo/AppContentInfo.vue
@@ -1,15 +1,26 @@
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/packages/3.0.0/AppContentInfo/components/Detail.vue b/packages/3.0.0/AppContentInfo/components/Detail.vue
index 7f32cd7b..bea4c46c 100644
--- a/packages/3.0.0/AppContentInfo/components/Detail.vue
+++ b/packages/3.0.0/AppContentInfo/components/Detail.vue
@@ -7,6 +7,35 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -40,19 +69,19 @@
methods: {
getInfo (id) {
- this.instance.post(`/app/appeveryvillagecode/queryDetailById?id=${id}`).then(res => {
+ this.instance.post(`/app/appcontentinfo/queryDetailById?id=${id}`).then(res => {
if (res.code === 0) {
- this.form = res.data
- this.form.codeUrl = [{
- url: res.data.codeUrl
- }]
+ this.info = res.data
+ this.info.pictureUrl = res.data.pictureUrl ? [{
+ url: res.data.pictureUrl
+ }] : []
}
})
},
cancel (isRefresh) {
this.$emit('change', {
- type: 'list',
+ type: 'List',
isRefresh: !!isRefresh
})
}
diff --git a/packages/3.0.0/AppContentInfo/components/List.vue b/packages/3.0.0/AppContentInfo/components/List.vue
index 64ff159f..ffce5caf 100644
--- a/packages/3.0.0/AppContentInfo/components/List.vue
+++ b/packages/3.0.0/AppContentInfo/components/List.vue
@@ -1,8 +1,5 @@
-
-
-
-
+
@@ -36,10 +33,11 @@
-
+
编辑
+ 详情
删除
@@ -57,7 +55,8 @@
props: {
instance: Function,
dict: Object,
- moduleName: String
+ moduleName: String,
+ areaId: String
},
data() {
@@ -65,8 +64,7 @@
search: {
current: 1,
size: 10,
- title: '',
- areaId: ''
+ title: ''
},
currIndex: -1,
areaList: [],
@@ -90,7 +88,6 @@
},
created() {
- this.search.areaId = this.user.info.areaId
this.getList()
},
@@ -99,7 +96,8 @@
this.instance.post(`/app/appcontentinfo/list`, null, {
params: {
moduleId: this.$route.query.moduleId,
- ...this.search
+ ...this.search,
+ areaId: this.areaId
}
}).then(res => {
if (res.code == 0) {
@@ -127,6 +125,15 @@
id: id || ''
}
})
+ },
+
+ toDetail(id) {
+ this.$emit('change', {
+ type: 'Detail',
+ params: {
+ id: id || ''
+ }
+ })
}
}
}