Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
thirdlucky
uml-demo
提交
455d3591
U
uml-demo
项目概览
thirdlucky
/
uml-demo
通知
7
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uml-demo
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
455d3591
编写于
12月 09, 2021
作者:
S
shenjizhe
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1
上级
4d2802e6
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
41 addition
and
4 deletion
+41
-4
pages/test/test-er/component.vue
pages/test/test-er/component.vue
+26
-1
pages/test/test-er/test-er.vue
pages/test/test-er/test-er.vue
+15
-3
未找到文件。
pages/test/test-er/component.vue
浏览文件 @
455d3591
...
...
@@ -41,7 +41,7 @@ export default {
data
()
{
return
{
componentIndex
:
-
1
,
menuContent
:
[{
text
:
'
加载
'
},
{
text
:
'
保存
'
}],
menuContent
:
[{
text
:
'
加载
'
},
{
text
:
'
保存
'
}
,
{
text
:
'
跳转
'
}
],
component
:
{
columns
:
[
{
...
...
@@ -213,6 +213,28 @@ export default {
};
},
methods
:
{
toEntitiy
()
{
if
(
this
.
componentIndex
>=
0
)
{
let
component
=
this
.
component
.
datas
[
this
.
componentIndex
];
if
(
component
.
modelId
!=
null
&&
component
.
templateId
!=
null
)
{
uni
.
navigateTo
({
url
:
'
test-er?componentId=
'
+
component
.
id
+
'
&modelId=
'
+
component
.
modelId
+
'
&templateId=
'
+
component
.
templateId
});
}
else
{
uni
.
showToast
({
title
:
'
组件信息缺失
'
,
icon
:
'
error
'
,
duration
:
2000
});
}
}
else
{
uni
.
showToast
({
title
:
'
请选择组件
'
,
icon
:
'
error
'
,
duration
:
2000
});
}
},
componentSelected
(
index
,
action
,
data
)
{
this
.
componentIndex
=
index
;
},
...
...
@@ -237,6 +259,9 @@ export default {
case
1
:
this
.
saveComponents
();
break
;
case
2
:
this
.
toEntitiy
();
break
;
}
},
loadDatas
(
data
,
name
,
func
)
{
...
...
pages/test/test-er/test-er.vue
浏览文件 @
455d3591
...
...
@@ -64,6 +64,11 @@ let passwordColumn = { name: 'password', type: 'password', info: '密码', pk: f
export
default
{
data
()
{
return
{
options
:
{
componentId
:
null
,
modelId
:
null
,
templateId
:
null
},
positionY
:
0
,
selected
:
0
,
texts
:
''
,
...
...
@@ -242,9 +247,16 @@ export default {
}
},
methods
:
{
onLoad
:
function
(
option
)
{
console
.
log
(
"
加载
"
,
option
);
this
.
options
.
componentId
=
option
.
componentId
;
this
.
options
.
modelId
=
option
.
modelId
;
this
.
options
.
templateId
=
option
.
templateId
;
return
0
;
},
appendText
(
text
)
{
console
.
log
(
text
);
let
line
=
"
\t
"
+
text
+
"
\n
"
;
let
line
=
'
\t
'
+
text
+
'
\n
'
;
this
.
texts
+=
line
;
},
confirm
()
{},
...
...
@@ -388,7 +400,7 @@ export default {
let
_this
=
this
;
uni
.
showModal
({
title
:
'
请输入数据源id
'
,
content
:
'
1
'
,
content
:
this
.
options
.
modelId
,
editable
:
true
,
success
:
function
(
res
)
{
if
(
res
.
confirm
)
{
...
...
@@ -438,7 +450,7 @@ export default {
let
_this
=
this
;
uni
.
showModal
({
title
:
'
请输入组件id
'
,
content
:
'
1
'
,
content
:
this
.
options
.
componentId
,
editable
:
true
,
success
:
function
(
res
)
{
if
(
res
.
confirm
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录