Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
70070ec3
提交
70070ec3
编写于
6月 17, 2020
作者:
kai.wang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
表单绑定
上级
441fbe18
变更
3
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
89 行增加
和
81 行删除
+89
-81
baseinfo.vue
src/components/yqrange/baseinfo.vue
+75
-72
create-range.vue
src/views/yqrange/create-range.vue
+5
-3
yq-range.vue
src/views/yqrange/yq-range.vue
+9
-6
未找到文件。
src/components/yqrange/baseinfo.vue
浏览文件 @
70070ec3
...
...
@@ -2,7 +2,7 @@
<el-form
ref=
"formData"
:model=
"formData"
:rules=
"rules"
label-width=
"150px"
label-suffix=
":"
class=
"basic-form"
>
<el-form-item
label=
"圈子名称"
prop=
"projectName"
>
<el-col
:span=
"13"
>
<el-input
size=
"small"
v-model=
"formData.projectName"
placeholder=
"请输入圈子名称"
style=
"width:70%;
"
></el-input>
<el-input
size=
"small"
v-model=
"formData.projectName"
placeholder=
"请输入圈子名称"
style=
"width:70%;"
@
change=
"returnTypeData('projectName')
"
></el-input>
<span
class=
"word-num"
>
{{
(
formData
.
projectName
).
replace
(
/
\s
+/g
,
""
).
length
}}
/24
</span>
</el-col>
</el-form-item>
...
...
@@ -27,7 +27,7 @@
</div>
<div
class=
"basic-item-icon"
>
<el-form-item
label=
"圈子封面"
class=
"required-label"
>
<el-upload
v-model=
"formData.imgUrl2"
class=
"bg-uploader"
action=
"#"
:show-file-list=
"false"
<el-upload
v-model=
"formData.imgUrl2"
class=
"bg-uploader"
@
change=
"returnTypeData('imgUrl2')"
action=
"#"
:show-file-list=
"false"
:before-upload=
"beforeUploadPic2"
>
<img
v-if=
"formData.imgUrl2"
:src=
"formData.imgUrl2"
@
mouseover
.
stop=
"imgMouseOver2=true"
class=
"bg-img"
/>
<img
v-if=
"!formData.imgUrl2"
class=
"bg-img"
src=
"../../assets/image/small.png"
/>
...
...
@@ -46,12 +46,14 @@
</div>
<el-form-item
label=
"圈子介绍"
prop=
"introduce"
>
<el-col
:span=
"13"
>
<el-input
size=
"small"
v-model=
"formData.introduce"
placeholder=
"请输入圈子介绍"
@
change=
"returnTypeData('introduce')"
style=
"width:70%;"
></el-input>
<el-input
size=
"small"
v-model=
"formData.introduce"
placeholder=
"请输入圈子介绍"
@
change=
"returnTypeData('introduce')"
style=
"width:70%;"
></el-input>
<span
class=
"word-num"
>
{{
(
formData
.
introduce
).
replace
(
/
\s
+/g
,
""
).
length
}}
/24
</span>
</el-col>
</el-form-item>
<el-form-item
label=
"内容发布权限"
prop=
"contentRole"
>
<el-select
v-model=
"formData.contentRole"
@
change=
"returnTypeData('contentRole')"
placeholder=
"请选择发布权限"
size=
"small"
clearable
>
<el-select
v-model=
"formData.contentRole"
@
change=
"returnTypeData('contentRole')"
placeholder=
"请选择发布权限"
size=
"small"
clearable
>
<el-option
v-for=
"item in contentList"
:key=
"item.value"
:label=
"item.label"
:value=
"item.label"
>
</el-option>
</el-select>
...
...
@@ -130,7 +132,8 @@
name: name,
val: this.formData[name]
})}
})
}
,
//上传圈子头像
beforeUploadPic1(file) {
...
...
src/views/yqrange/create-range.vue
浏览文件 @
70070ec3
...
...
@@ -5,9 +5,9 @@
<el-row
class=
"step-content"
>
<el-col
:span=
"14"
>
<el-steps
:active=
"active"
simple
class
>
<span
class=
"step-num"
:class=
"
{ 'on-step': stepData[0] }">1
</span>
<span
class=
"step-num"
v-bind
:class=
"
{ 'on-step': stepData[0] }">1
</span>
<el-step
title=
"基础信息"
></el-step>
<span
class=
"step-num"
:class=
"
{ 'on-step': stepData[1] }">2
</span>
<span
class=
"step-num"
v-bind
:class=
"
{ 'on-step': stepData[1] }">2
</span>
<el-step
title=
"选择成员"
>
2
</el-step>
</el-steps>
</el-col>
...
...
@@ -43,7 +43,7 @@
curmbSecond
:
'新建小圈'
,
active
:
0
,
//页面展示位置
stepData
:
[
true
,
false
,
false
],
stepData
:
[
true
,
false
],
showStorage
:
true
,
formData
:
{
projectName
:
''
,
...
...
@@ -67,6 +67,7 @@
console
.
log
(
"add"
);
}
else
{
console
.
log
(
"edit"
);
this
.
stepData
=
[
false
,
true
,
false
];
}
},
...
...
@@ -81,6 +82,7 @@
console
.
log
(
"add"
);
}
else
{
console
.
log
(
"edit"
);
this
.
stepData
=
[
false
,
true
];
}
},
//完成
...
...
src/views/yqrange/yq-range.vue
浏览文件 @
70070ec3
...
...
@@ -153,13 +153,16 @@ export default {
},
//编辑
editRange
(
row
)
{
let
enterType
=
2
;
//1:add 2 edit
// let enterType = 2;//1:add 2 edit
// this.$router.push({
// path: `/create-range?enterType`,
// query:{
// id:row.id,
// enterType:enterType
// }
// })
this
.
$router
.
push
({
path
:
`/create-range?enterType`
,
query
:{
id
:
row
.
id
,
enterType
:
enterType
}
path
:
'/edit-range'
})
},
//解散圈子
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录