article默认展开修改
This commit is contained in:
parent
a7aa99e9f8
commit
b3063e2c66
|
|
@ -1,5 +1,6 @@
|
|||
/// <reference types="wechat-miniprogram" />
|
||||
/// <reference types="react" />
|
||||
import { EntityDict } from '../../../general-app-domain';
|
||||
declare const _default: (props: import("oak-frontend-base").ReactComponentProps<EntityDict, "articleMenu", true, WechatMiniprogram.Component.DataOption>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
||||
declare const _default: (props: import("oak-frontend-base").ReactComponentProps<EntityDict, "articleMenu", true, {
|
||||
articleMenuId: string;
|
||||
}>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
||||
export default _default;
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ exports.default = OakComponent({
|
|||
name: 1,
|
||||
content: 1,
|
||||
articleMenuId: 1,
|
||||
}
|
||||
},
|
||||
},
|
||||
extraFile$entity: {
|
||||
$entity: 'extraFile',
|
||||
|
|
@ -54,8 +54,8 @@ exports.default = OakComponent({
|
|||
isList: true,
|
||||
formData: function (_a) {
|
||||
var _this = this;
|
||||
var rows = _a.data;
|
||||
var articleMenus = this.getArticleMenus();
|
||||
var rows = _a.data, props = _a.props;
|
||||
var articleMenus = this.getArticleMenus(props.articleMenuId);
|
||||
var treeData = articleMenus === null || articleMenus === void 0 ? void 0 : articleMenus.map(function (articleMenu) {
|
||||
var _a, _b;
|
||||
return {
|
||||
|
|
@ -73,18 +73,15 @@ exports.default = OakComponent({
|
|||
},
|
||||
filters: [],
|
||||
lifetimes: {},
|
||||
properties: {
|
||||
articleMenuId: '',
|
||||
},
|
||||
data: {
|
||||
selectedArticleId: '',
|
||||
openKeys: [],
|
||||
selectedKeys: [],
|
||||
treeData: [],
|
||||
parentId: '',
|
||||
articleMenuId: '',
|
||||
id: '',
|
||||
name: '',
|
||||
isArticle: false,
|
||||
isChildren: false,
|
||||
logo: '',
|
||||
breadcrumbItems: [],
|
||||
},
|
||||
methods: {
|
||||
|
|
@ -108,7 +105,7 @@ exports.default = OakComponent({
|
|||
name: 1,
|
||||
content: 1,
|
||||
articleMenuId: 1,
|
||||
}
|
||||
},
|
||||
},
|
||||
extraFile$entity: {
|
||||
$entity: 'extraFile',
|
||||
|
|
@ -133,9 +130,11 @@ exports.default = OakComponent({
|
|||
},
|
||||
},
|
||||
filter: {
|
||||
parentId: parentId ? parentId : {
|
||||
$exists: false
|
||||
}
|
||||
parentId: parentId
|
||||
? parentId
|
||||
: {
|
||||
$exists: false,
|
||||
},
|
||||
},
|
||||
sorter: [
|
||||
{
|
||||
|
|
@ -172,7 +171,7 @@ exports.default = OakComponent({
|
|||
name: 1,
|
||||
content: 1,
|
||||
articleMenuId: 1,
|
||||
}
|
||||
},
|
||||
},
|
||||
extraFile$entity: {
|
||||
$entity: 'extraFile',
|
||||
|
|
@ -197,9 +196,11 @@ exports.default = OakComponent({
|
|||
},
|
||||
},
|
||||
filter: {
|
||||
parentId: parentId ? parentId : {
|
||||
$exists: false
|
||||
}
|
||||
parentId: parentId
|
||||
? parentId
|
||||
: {
|
||||
$exists: false,
|
||||
},
|
||||
},
|
||||
sorter: [
|
||||
{
|
||||
|
|
@ -226,7 +227,7 @@ exports.default = OakComponent({
|
|||
articleMenuId: 1,
|
||||
},
|
||||
filter: {
|
||||
articleMenuId: articleMenuId
|
||||
articleMenuId: articleMenuId,
|
||||
},
|
||||
sorter: [
|
||||
{
|
||||
|
|
@ -252,7 +253,7 @@ exports.default = OakComponent({
|
|||
articleMenuId: 1,
|
||||
},
|
||||
filter: {
|
||||
articleMenuId: articleMenuId
|
||||
articleMenuId: articleMenuId,
|
||||
},
|
||||
sorter: [
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue