Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
97f80b05
提交
97f80b05
编写于
8月 17, 2020
作者:
bo.dang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
小生态5期需求
上级
411e3754
变更
3
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
127 行增加
和
7 行删除
+127
-7
baseinfo.vue
src/components/yqrange/baseinfo.vue
+7
-3
create-live.vue
src/views/yqrange/create-live.vue
+43
-3
yq-range.vue
src/views/yqrange/yq-range.vue
+77
-1
未找到文件。
src/components/yqrange/baseinfo.vue
浏览文件 @
97f80b05
...
@@ -67,7 +67,8 @@
...
@@ -67,7 +67,8 @@
<span
class=
"word-num"
>
{{
(
formData
.
introduce
).
replace
(
/
\s
+/g
,
""
).
length
}}
/40
</span>
<span
class=
"word-num"
>
{{
(
formData
.
introduce
).
replace
(
/
\s
+/g
,
""
).
length
}}
/40
</span>
</el-col>
</el-col>
</el-form-item>
</el-form-item>
<el-form-item
label=
"内容发布权限"
prop=
"dynamicFlag"
>
<el-form-item
label=
"话题发布权限"
prop=
"dynamicFlag"
>
<el-select
<el-select
v-model=
"formData.dynamicFlag"
v-model=
"formData.dynamicFlag"
@
change=
"returnTypeData('dynamicFlag')"
@
change=
"returnTypeData('dynamicFlag')"
...
@@ -82,6 +83,9 @@
...
@@ -82,6 +83,9 @@
:value=
"item.value"
:value=
"item.value"
></el-option>
></el-option>
</el-select>
</el-select>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"Top Center 提示文字"
placement=
"top"
>
<span
class=
"glyphicon glyphicon-info-sign"
>
若选择管理员可发布,则只有管理员才能在小圈内发布话题
</span>
</el-tooltip>
</el-form-item>
</el-form-item>
<el-dialog
<el-dialog
...
@@ -245,7 +249,7 @@
...
@@ -245,7 +249,7 @@
const isPNG = file.type === "
image
/
png
";
const isPNG = file.type === "
image
/
png
";
const isLt2M = file.size / 1024 / 1024 < fileLimit.size;
const isLt2M = file.size / 1024 / 1024 < fileLimit.size;
if (!isJPG && !isPNG) {
if (!isJPG && !isPNG) {
vm.$message.error("
图片
格式不符合规范,请根据规范上传图片
");
vm.$message.error("
图片
必须是
jpeg
或
png
格式,同时长宽尺寸和图片大小需符合要求
");
// return;
// return;
}
}
// if (!isLt2M) {
// if (!isLt2M) {
...
@@ -262,7 +266,7 @@
...
@@ -262,7 +266,7 @@
let _this = this;
let _this = this;
// if (_this.width != fileLimit.width || _this.height != fileLimit.height) {
// if (_this.width != fileLimit.width || _this.height != fileLimit.height) {
if (_this.width < fileLimit.width || _this.height < fileLimit.height) {
if (_this.width < fileLimit.width || _this.height < fileLimit.height) {
vm.$message.error("
图片
尺寸不符合规范,请根据规范上传图片
");
vm.$message.error("
图片
必须是
jpeg
或
png
格式,同时长宽尺寸和图片大小需符合要求
");
return;
return;
}
}
else if(_this.width > fileLimit.width || _this.height > fileLimit.height){
else if(_this.width > fileLimit.width || _this.height > fileLimit.height){
...
...
src/views/yqrange/create-live.vue
浏览文件 @
97f80b05
...
@@ -82,6 +82,39 @@
...
@@ -82,6 +82,39 @@
</el-form-item>
</el-form-item>
<el-form-item
label=
"是否签到"
>
<el-radio-group
v-model=
"formData.streamType"
size=
"small"
@
change=
"changeStreamType"
>
<el-radio
label=
"1"
:disabled=
"styleEditFlag"
>
不签到
</el-radio>
<el-radio
label=
"2"
:disabled=
"styleEditFlag"
>
签到
</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item
label=
"签到时间"
v-if=
"pullFlag"
>
<el-col
:span=
"12"
>
<el-input
type=
"number"
size=
"small"
v-model=
"formData.name"
maxlength=
"20"
placeholder=
"开播后超过此时长无法签到"
style=
"width:70%;"
></el-input>
<span>
分
</span>
</el-col>
</el-form-item>
<el-form-item
label=
"直播开始通知"
>
<!--<el-radio-group v-model="formData.streamType" size="small" @change="changeStreamType">-->
<!--<el-radio label="1" :disabled="styleEditFlag">App通知</el-radio>-->
<!--</el-radio-group>-->
<el-checkbox
v-model=
"checked"
>
App通知
</el-checkbox>
</el-form-item>
<el-form-item
label=
"直播中人数显示规则"
prop=
"streamType"
>
<el-form-item
label=
"直播中人数显示规则"
prop=
"streamType"
>
<el-radio-group
v-model=
"formData.countRule"
size=
"small"
>
<el-radio-group
v-model=
"formData.countRule"
size=
"small"
>
...
@@ -996,7 +1029,7 @@
...
@@ -996,7 +1029,7 @@
const isPNG = file.type === "
image
/
png
";
const isPNG = file.type === "
image
/
png
";
const isLt2M = file.size / 1024 / 1024 < fileLimit.size;
const isLt2M = file.size / 1024 / 1024 < fileLimit.size;
if (!isJPG && !isPNG) {
if (!isJPG && !isPNG) {
vm.$message.error("
图片
格式不符合规范,请根据规范上传图片
");
vm.$message.error("
图片
必须是
jpeg
或
png
格式,同时长宽尺寸和图片大小需符合要求
");
return;
return;
}
}
// if (!isLt2M) {
// if (!isLt2M) {
...
@@ -1024,7 +1057,7 @@
...
@@ -1024,7 +1057,7 @@
// 图片大小不正常,则进行裁剪
// 图片大小不正常,则进行裁剪
// 直播简介,简介要求750*(高度<3000)
// 直播简介,简介要求750*(高度<3000)
if((vm.cropperIndex == 10 || vm.cropperIndex == 40) && (_this.width < fileLimit.width || _this.height > fileLimit.height)) {
if((vm.cropperIndex == 10 || vm.cropperIndex == 40) && (_this.width < fileLimit.width || _this.height > fileLimit.height)) {
vm.$message.error("
图片
尺寸不符合规范,请根据规范上传图片
");
vm.$message.error("
图片
必须是
jpeg
或
png
格式,同时长宽尺寸和图片大小需符合要求
");
return
return
}
}
// else if(vm.cropperIndex == 10 && (_this.width > fileLimit.width || _this.height > fileLimit.height)){
// else if(vm.cropperIndex == 10 && (_this.width > fileLimit.width || _this.height > fileLimit.height)){
...
@@ -1034,7 +1067,7 @@
...
@@ -1034,7 +1067,7 @@
// return;
// return;
// }
// }
if(vm.cropperIndex != 10 && vm.cropperIndex != 40 && (_this.width < fileLimit.width || _this.height < fileLimit.height)) {
if(vm.cropperIndex != 10 && vm.cropperIndex != 40 && (_this.width < fileLimit.width || _this.height < fileLimit.height)) {
vm.$message.error("
图片
尺寸不符合规范,请根据规范上传图片
");
vm.$message.error("
图片
必须是
jpeg
或
png
格式,同时长宽尺寸和图片大小需符合要求
");
return;
return;
}
}
// 图片大小不正常,则进行裁剪
// 图片大小不正常,则进行裁剪
...
@@ -1958,4 +1991,11 @@
...
@@ -1958,4 +1991,11 @@
height
:
100px
;
height
:
100px
;
float
:
left
;
float
:
left
;
}
}
.el-checkbox__input.is-checked
.el-checkbox__inner
,
.el-checkbox__input.is-indeterminate
.el-checkbox__inner
{
background-color
:
#449284
;
border-color
:
#449284
;
}
.el-checkbox__input.is-checked
+
.el-checkbox__label
{
color
:
#449284
;
}
</
style
>
</
style
>
src/views/yqrange/yq-range.vue
浏览文件 @
97f80b05
...
@@ -61,6 +61,7 @@
...
@@ -61,6 +61,7 @@
<el-button
@
click=
"roleManage(scope.row)"
type=
"text"
size=
"small"
v-if=
"scope.row.status != 0"
>
成员管理
</el-button>
<el-button
@
click=
"roleManage(scope.row)"
type=
"text"
size=
"small"
v-if=
"scope.row.status != 0"
>
成员管理
</el-button>
<el-button
@
click=
"editRange(scope.row)"
type=
"text"
size=
"small"
>
编辑
</el-button>
<el-button
@
click=
"editRange(scope.row)"
type=
"text"
size=
"small"
>
编辑
</el-button>
<el-button
@
click=
"deleteRange(scope.row)"
type=
"text"
size=
"small"
v-if=
"showAllFlag && scope.row.status != 0"
>
解散圈子
</el-button>
<el-button
@
click=
"deleteRange(scope.row)"
type=
"text"
size=
"small"
v-if=
"showAllFlag && scope.row.status != 0"
>
解散圈子
</el-button>
<el-button
@
click=
"setting(scope.row)"
type=
"text"
size=
"small"
v-if=
"scope.row.status != 0"
>
应用配置
</el-button>
</div>
</div>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
...
@@ -77,8 +78,61 @@
...
@@ -77,8 +78,61 @@
:total=
"totalRows"
:total=
"totalRows"
></el-pagination>
></el-pagination>
</div>
</div>
<el-dialog
title=
"应用配置"
:visible
.
sync=
"dialogSettingVisible"
width=
"500px"
:close-on-click-modal=
"false"
@
close=
"handleSettingClose"
center
>
<el-form
ref=
"settingForm"
:model=
"settingForm"
label-width=
"150px"
label-suffix=
":"
class=
"basic-form"
>
<el-form-item
label=
"教培"
>
<el-radio-group
size=
"small"
>
<el-radio
label=
"1"
>
开启
</el-radio>
<el-radio
label=
"2"
>
关闭
</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item
label=
"直播"
>
<el-radio-group
size=
"small"
>
<el-radio
label=
"1"
>
开启
</el-radio>
<el-radio
label=
"2"
>
关闭
</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item
label=
"继教课程"
>
<el-radio-group
size=
"small"
>
<el-radio
label=
"1"
>
开启
</el-radio>
<el-radio
label=
"2"
>
关闭
</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item
label=
"职称培训"
>
<el-radio-group
size=
"small"
>
<el-radio
label=
"1"
>
开启
</el-radio>
<el-radio
label=
"2"
>
关闭
</el-radio>
</el-radio-group>
</el-form-item>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
style=
"text-align: right;"
>
<el-button
type=
"primary"
@
click=
"save"
center
>
保存
</el-button>
</div>
</el-dialog>
</div>
</div>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
{
openLoading
,
closeLoading
}
from
"../../utils/utils"
;
import
{
openLoading
,
closeLoading
}
from
"../../utils/utils"
;
...
@@ -103,7 +157,11 @@ export default {
...
@@ -103,7 +157,11 @@ export default {
pageSize
:
10
,
pageSize
:
10
,
},
},
totalRows
:
0
,
totalRows
:
0
,
tableData
:
[]
tableData
:
[],
dialogSettingVisible
:
false
,
settingForm
:{
}
}
}
},
},
created
()
{
created
()
{
...
@@ -302,6 +360,18 @@ export default {
...
@@ -302,6 +360,18 @@ export default {
// cancel
// cancel
});
});
},
},
// 应用配置
setting
(
row
){
this
.
dialogSettingVisible
=
true
;
},
// 关闭
handleSettingClose
(){
this
.
dialogSettingVisible
=
false
;
},
handleSizeChange
(
val
)
{
handleSizeChange
(
val
)
{
this
.
searchForm
.
pageSize
=
val
;
this
.
searchForm
.
pageSize
=
val
;
this
.
search
();
this
.
search
();
...
@@ -310,6 +380,12 @@ export default {
...
@@ -310,6 +380,12 @@ export default {
this
.
searchForm
.
pageNo
=
val
;
this
.
searchForm
.
pageNo
=
val
;
this
.
searchList
();
this
.
searchList
();
},
},
// 保存
save
(){
}
},
},
}
}
</
script
>
</
script
>
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录