Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
course_creation
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
蔡芬
course_creation
Commits
a4ddcf76
提交
a4ddcf76
authored
11月 23, 2021
作者:
蔡芬
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1
上级
44e735fe
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
11 行增加
和
5 行删除
+11
-5
fullpage.vue
src/components/scaffold/fullpage.vue
+5
-3
tophead.vue
src/components/scaffold/tophead.vue
+6
-2
没有找到文件。
src/components/scaffold/fullpage.vue
浏览文件 @
a4ddcf76
...
...
@@ -3,7 +3,7 @@
<div>
是否显示弹窗
{{
showPop
}}
</div>
<TopHead
:detail=
"detail"
></TopHead>
<TopHead
:detail=
"detail"
:ruleForm=
"ruleForm"
></TopHead>
<TopBody
:list=
"articleList"
@
addArticle=
"addArticle"
></TopBody>
<el-drawer
:title=
"drawerSet.title"
...
...
@@ -18,7 +18,8 @@
<div
v-if=
"sitem.properties"
>
<h4
>
{{
sitem
.
title
}}
</h4>
<div
v-for=
"ritem in sitem.properties"
:key=
"ritem.id"
>
<SimpleInput
v-if=
"ritem.display == 1 && ritem['form_type'] == 'simpleInput'"
:detail=
"ritem"
:name=
"ritem.properties_name"
></SimpleInput>
<el-input
type=
"text"
v-if=
"ritem.display == 1 && ritem['form_type'] == 'simpleInput'"
v-model=
"ruleForm[ritem.properties_name]"
:name=
"ritem.properties_name"
id=
""
></el-input>
<!--
<SimpleInput
:detail=
"ritem"
:name=
"ritem.properties_name"
></SimpleInput>
-->
<RichEditor
v-else-if=
"ritem.display == 1 && ritem['form_type'] == 'richText'"
></RichEditor>
<NumberInput
v-else-if=
"ritem.display == 1 && ritem['form_type'] == 'number'"
:label=
"ritem.title"
v-model=
"ruleForm[ritem.properties_name]"
@
input=
"changeVal"
></NumberInput>
<!--
<SelectField
v-else-if=
"ritem.display == 1 && ritem['form_type'] == 'Select'"
:label=
"ritem.title"
v-model=
"ruleForm[ritem.properties_name]"
></SelectField>
-->
...
...
@@ -34,7 +35,8 @@
<ImageUpload
v-else-if=
"ritem.display == 1 && ritem['form_type'] == 'Asset'"
></ImageUpload>
</div>
</div>
<SimpleInput
v-else-if=
"sitem['form_type'] == 'simpleInput'"
:detail=
"sitem"
:name=
"sitem.properties_name"
></SimpleInput>
<!--
<SimpleInput
v-else-if=
"sitem['form_type'] == 'simpleInput'"
:detail=
"sitem"
:name=
"sitem.properties_name"
></SimpleInput>
-->
<el-input
type=
"text"
v-else-if=
"sitem['form_type'] == 'simpleInput'"
v-model=
"ruleForm[sitem.properties_name]"
:name=
"sitem.properties_name"
id=
""
></el-input>
<RichEditor
v-else-if=
"sitem['form_type'] == 'richText'"
:detail=
"sitem"
:name=
"sitem.properties_name"
></RichEditor>
</div>
...
...
src/components/scaffold/tophead.vue
浏览文件 @
a4ddcf76
...
...
@@ -3,11 +3,10 @@
<p
class=
"color_red"
>
头部
</p>
<el-button
@
click=
"showEidt"
><i
class=
"el-icon-edit"
></i></el-button>
<!--
<el-input
type=
"text"
placeholder=
"请输入内容"
></el-input>
-->
<div
v-for=
"item in list"
:key=
"item.id"
>
<div
v-if=
"item.display === 1"
>
<label
:for=
"item.key_name"
>
{{
item
.
title
}}
</label>
<el-input
:value=
"item.default"
></el-input>
<el-input
:value=
"item.default"
v-model=
"ruleForm[item.properties_name]"
></el-input>
</div>
</div>
</div>
...
...
@@ -17,6 +16,7 @@
import
{
mapMutations
}
from
'vuex'
;
export
default
{
props
:{
ruleForm
:
Object
,
detail
:
{
type
:
Object
,
default
:
function
()
{
...
...
@@ -24,6 +24,10 @@ export default {
}
}
},
data
()
{
return
{
};
},
computed
:
{
list
()
{
return
this
.
detail
[
'tabgroup_list'
]
&&
this
.
detail
[
'tabgroup_list'
][
0
].
setting_list
||
[];
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论