operations.officialAccounts.js
1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/**
* 公众号管理
*/
module.exports=function(app) {
/* 列表页面 */
app.get("/resources/officialAccounts/index","operations.officialAccounts.Index", function () {
this.$extend = {
moduleName: "运营管理",
pageName: "公众号管理"
}
});
/* 添加页面 */
app.get("/resources/officialAccounts/add","operations.officialAccounts.Edit", function () {
this.$extend = {
moduleName: "运营管理",
pageName: "公众号管理",
action: '/resources/saveSingleResource'
}
});
/* 编辑页面 */
app.get("/resources/officialAccounts/:id","operations.officialAccounts.Edit","singleResource_getSingleResource", function (response) {
// 转化成 json 页面直接获取
response.data.contentData = JSON.parse(response.data.contentData);
this.$extend = {
moduleName: "运营管理",
pageName: "公众号管理",
action: "/resources/updateSingleResource",
type: "update",
data: response.data
}
});
}