Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
a9e3aa98
提交
a9e3aa98
编写于
4月 09, 2021
作者:
bo.dang
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'dev-20210330' into 'release'
Dev 20210330,code review:bo.dang See merge request !260
上级
eca5afe4
28aaa836
变更
13
隐藏空白字符变更
内嵌
并排
正在显示
13 个修改的文件
包含
229 行增加
和
35 行删除
+229
-35
filter.js
src/utils/filter.js
+1
-1
yqrangeApi.js
src/utils/yqrange/yqrangeApi.js
+22
-0
slidebar.vue
src/views/layout/slidebar.vue
+4
-4
plaza-list.vue
src/views/plaza/plaza-list.vue
+3
-6
admin-manage.vue
src/views/yqrange/admin-manage.vue
+3
-3
blacklist-manage.vue
src/views/yqrange/blacklist-manage.vue
+2
-2
create-live.vue
src/views/yqrange/create-live.vue
+2
-2
create-range.vue
src/views/yqrange/create-range.vue
+1
-1
live-manage.vue
src/views/yqrange/live-manage.vue
+1
-1
range-manage.vue
src/views/yqrange/range-manage.vue
+3
-3
range-setting.vue
src/views/yqrange/range-setting.vue
+184
-9
role-manage.vue
src/views/yqrange/role-manage.vue
+1
-1
yq-range.vue
src/views/yqrange/yq-range.vue
+2
-2
未找到文件。
src/utils/filter.js
浏览文件 @
a9e3aa98
...
@@ -473,7 +473,7 @@ const vueFilter = {
...
@@ -473,7 +473,7 @@ const vueFilter = {
return
value
return
value
}
}
},
},
// 云鹊
小圈
内容发布权限
// 云鹊
专区
内容发布权限
dynamicFlagStatus
:
(
value
)
=>
{
dynamicFlagStatus
:
(
value
)
=>
{
if
(
value
==
1
)
{
if
(
value
==
1
)
{
return
'所有人可发布'
return
'所有人可发布'
...
...
src/utils/yqrange/yqrangeApi.js
浏览文件 @
a9e3aa98
...
@@ -325,3 +325,25 @@ export const doctorsByIdOrMobile = (params) => {
...
@@ -325,3 +325,25 @@ export const doctorsByIdOrMobile = (params) => {
description
:
'批量导入人员'
,
description
:
'批量导入人员'
,
})
})
};
};
// https://dev-sc.yunqueyi.com/contents/admin/template/queryTemplate?id=&title=&publishFlag=&createdTime=&pageNo=1&pageSize=15
export
const
getActivityList
=
(
params
)
=>
{
return
fetch
({
headers
,
url
:
getBaseUrl
(
`contents/admin/template/queryTemplate?id=
${
params
.
id
}
&title=
${
params
.
title
}
&publishFlag=
${
params
.
publishFlag
}
&createdTime=
${
params
.
createdTime
}
&pageNo=
${
params
.
pageNo
}
&pageSize=
${
params
.
pageSize
}
`
),
method
:
'get'
,
data
:
params
,
description
:
'活动列表'
,
})
};
export
const
delActivity
=
(
params
)
=>
{
return
fetch
({
headers
,
url
:
getBaseUrl
(
`circle/v1/app/delete?circleId=
${
params
.
circleId
}
&id=
${
params
.
id
}
`
),
method
:
'get'
,
data
:
params
,
description
:
'活动列表'
,
})
};
src/views/layout/slidebar.vue
浏览文件 @
a9e3aa98
...
@@ -373,9 +373,9 @@ export default {
...
@@ -373,9 +373,9 @@ export default {
});
});
},
},
setCircleSize
()
{
setCircleSize
()
{
console
.
log
(
"设置云鹊
小圈
"
);
console
.
log
(
"设置云鹊
专区
"
);
const
yqRange
=
{
const
yqRange
=
{
title
:
"云鹊
小圈
"
,
title
:
"云鹊
专区
"
,
icon
:
"el-icon-setting"
,
icon
:
"el-icon-setting"
,
index
:
"yq-range"
,
index
:
"yq-range"
,
};
};
...
@@ -442,7 +442,7 @@ export default {
...
@@ -442,7 +442,7 @@ export default {
};
};
const
yqRange
=
{
const
yqRange
=
{
title
:
"云鹊
小圈
"
,
title
:
"云鹊
专区
"
,
icon
:
"el-icon-setting"
,
icon
:
"el-icon-setting"
,
index
:
"yq-range"
,
index
:
"yq-range"
,
};
};
...
@@ -534,7 +534,7 @@ export default {
...
@@ -534,7 +534,7 @@ export default {
};
};
const
yqRange
=
{
const
yqRange
=
{
title
:
"云鹊
小圈
"
,
title
:
"云鹊
专区
"
,
icon
:
"el-icon-setting"
,
icon
:
"el-icon-setting"
,
index
:
"yq-range"
,
index
:
"yq-range"
,
};
};
...
...
src/views/plaza/plaza-list.vue
浏览文件 @
a9e3aa98
...
@@ -177,7 +177,7 @@
...
@@ -177,7 +177,7 @@
placeholder=
"请选择疾病标签"
placeholder=
"请选择疾病标签"
filterable
filterable
clearable
clearable
style=
"margin-left:20px;
height: 32px;line-height: 32px;
width: 450px;"
style=
"margin-left:20px;width: 450px;"
>
>
<el-option
<el-option
v-for=
"item in diseaseList"
v-for=
"item in diseaseList"
...
@@ -199,7 +199,7 @@
...
@@ -199,7 +199,7 @@
placeholder=
"请选择科室标签"
placeholder=
"请选择科室标签"
filterable
filterable
clearable
clearable
style=
"margin-left:20px;
height: 32px;line-height: 32px;
width: 450px;"
style=
"margin-left:20px;width: 450px;"
>
>
<el-option
<el-option
v-for=
"item in deptList"
v-for=
"item in deptList"
...
@@ -220,7 +220,7 @@
...
@@ -220,7 +220,7 @@
placeholder=
"请选择学科标签"
placeholder=
"请选择学科标签"
filterable
filterable
clearable
clearable
style=
"margin-left:20px;
height: 32px;line-height: 32px;
width: 450px;"
style=
"margin-left:20px;width: 450px;"
>
>
<el-option
<el-option
v-for=
"item in subjectList"
v-for=
"item in subjectList"
...
@@ -939,9 +939,6 @@
...
@@ -939,9 +939,6 @@
height
:
32px
;
height
:
32px
;
line-height
:
32px
;
line-height
:
32px
;
}
}
/*.el-select__tags {*/
/*margin-top: 15px;*/
/*}*/
.
required-label
.
el-form-item__label
:
:
before
{
.
required-label
.
el-form-item__label
:
:
before
{
content
:
'*'
;
content
:
'*'
;
color
:
#F56C6C
;
color
:
#F56C6C
;
...
...
src/views/yqrange/admin-manage.vue
浏览文件 @
a9e3aa98
...
@@ -85,7 +85,7 @@ export default {
...
@@ -85,7 +85,7 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
curmbFirst
:
"云鹊
小圈
"
,
curmbFirst
:
"云鹊
专区
"
,
curmbThird
:
"设置管理员"
,
curmbThird
:
"设置管理员"
,
jumPathThird
:
'/yq-range'
,
jumPathThird
:
'/yq-range'
,
circleId
:
""
,
circleId
:
""
,
...
@@ -153,7 +153,7 @@ export default {
...
@@ -153,7 +153,7 @@ export default {
vm
=
this
;
vm
=
this
;
this
.
circleId
=
this
.
$route
.
query
.
circleId
;
this
.
circleId
=
this
.
$route
.
query
.
circleId
;
this
.
circleName
=
this
.
$route
.
query
.
circleName
;
this
.
circleName
=
this
.
$route
.
query
.
circleName
;
this
.
curmbSecond
=
"
圈子
管理-"
+
this
.
circleName
;
this
.
curmbSecond
=
"
专区
管理-"
+
this
.
circleName
;
this
.
jumPathFouth
=
"/range-manage?id="
+
this
.
circleId
+
"&name="
+
this
.
circleName
+
"&activeName=first"
;
this
.
jumPathFouth
=
"/range-manage?id="
+
this
.
circleId
+
"&name="
+
this
.
circleName
+
"&activeName=first"
;
vm
.
circleId
=
vm
.
getUrlSearch
(
window
.
location
.
href
,
"circleId"
);
vm
.
circleId
=
vm
.
getUrlSearch
(
window
.
location
.
href
,
"circleId"
);
vm
.
formInline
.
blackStatus
=
0
;
vm
.
formInline
.
blackStatus
=
0
;
...
@@ -280,7 +280,7 @@ export default {
...
@@ -280,7 +280,7 @@ export default {
vm
.
search
();
vm
.
search
();
}
else
{
}
else
{
vm
.
$message
(
res
.
message
);
vm
.
$message
(
res
.
message
);
}
}
});
});
},
},
complete
()
{
complete
()
{
...
...
src/views/yqrange/blacklist-manage.vue
浏览文件 @
a9e3aa98
...
@@ -93,7 +93,7 @@ export default {
...
@@ -93,7 +93,7 @@ export default {
return
{
return
{
circleId
:
0
,
circleId
:
0
,
curmbFirst
:
"云鹊
小圈
"
,
curmbFirst
:
"云鹊
专区
"
,
curmbSecond
:
""
,
curmbSecond
:
""
,
curmbThird
:
"黑名单"
,
curmbThird
:
"黑名单"
,
jumPathThird
:
"/yq-range"
,
jumPathThird
:
"/yq-range"
,
...
@@ -116,7 +116,7 @@ export default {
...
@@ -116,7 +116,7 @@ export default {
this
.
circleId
=
this
.
$route
.
query
.
circleId
;
this
.
circleId
=
this
.
$route
.
query
.
circleId
;
this
.
idType
=
localStorage
.
getItem
(
"storageIdType"
);
this
.
idType
=
localStorage
.
getItem
(
"storageIdType"
);
this
.
circleName
=
this
.
$route
.
query
.
circleName
;
this
.
circleName
=
this
.
$route
.
query
.
circleName
;
this
.
curmbSecond
=
"
圈子
管理-"
+
this
.
circleName
;
this
.
curmbSecond
=
"
专区
管理-"
+
this
.
circleName
;
this
.
jumPathFouth
=
this
.
jumPathFouth
=
"/range-manage?id="
+
"/range-manage?id="
+
this
.
circleId
+
this
.
circleId
+
...
...
src/views/yqrange/create-live.vue
浏览文件 @
a9e3aa98
...
@@ -619,7 +619,7 @@
...
@@ -619,7 +619,7 @@
rtcId: '',
rtcId: '',
circleId: '',
circleId: '',
circleName: "",
circleName: "",
curmbFirst: '云鹊
小圈
',
curmbFirst: '云鹊
专区
',
// curmbSecond: '直播管理',
// curmbSecond: '直播管理',
curmbThird: '新建直播',// /live-manage?id=
curmbThird: '新建直播',// /live-manage?id=
jumPathThird: '/yq-range',
jumPathThird: '/yq-range',
...
@@ -836,7 +836,7 @@
...
@@ -836,7 +836,7 @@
// this.idType = 1; // TODO
// this.idType = 1; // TODO
this.circleId = this.$route.query.circleId;
this.circleId = this.$route.query.circleId;
this.circleName = this.$route.query.circleName;
this.circleName = this.$route.query.circleName;
this.curmbSecond = "
圈子
管理
-
" + this.circleName;
this.curmbSecond = "
专区
管理
-
" + this.circleName;
this.jumPathFouth = "
/
range
-
manage
?
id
=
" + this.circleId + "
&
name
=
" + this.circleName + "
&
activeName
=
third
";
this.jumPathFouth = "
/
range
-
manage
?
id
=
" + this.circleId + "
&
name
=
" + this.circleName + "
&
activeName
=
third
";
this.formData.circleId = this.circleId;
this.formData.circleId = this.circleId;
console.log("
create
-
live
:
jumPathFouth
:
" + this.jumPathFouth);
console.log("
create
-
live
:
jumPathFouth
:
" + this.jumPathFouth);
...
...
src/views/yqrange/create-range.vue
浏览文件 @
a9e3aa98
...
@@ -63,7 +63,7 @@
...
@@ -63,7 +63,7 @@
return
{
return
{
id
:
null
,
id
:
null
,
enterType
:
1
,
//1.creat 2.edit
enterType
:
1
,
//1.creat 2.edit
curmbFirst
:
'云鹊
小圈
'
,
curmbFirst
:
'云鹊
专区
'
,
curmbSecond
:
'新建小圈'
,
curmbSecond
:
'新建小圈'
,
active
:
0
,
active
:
0
,
//页面展示位置
//页面展示位置
...
...
src/views/yqrange/live-manage.vue
浏览文件 @
a9e3aa98
...
@@ -300,7 +300,7 @@ export default {
...
@@ -300,7 +300,7 @@ export default {
data
()
{
data
()
{
return
{
return
{
rtcId
:
null
,
rtcId
:
null
,
curmbFirst
:
"云鹊
小圈
"
,
curmbFirst
:
"云鹊
专区
"
,
curmbSecond
:
"直播管理"
,
curmbSecond
:
"直播管理"
,
dialogStatisticsVisible
:
false
,
dialogStatisticsVisible
:
false
,
dialogLivelinkVisible
:
false
,
dialogLivelinkVisible
:
false
,
...
...
src/views/yqrange/range-manage.vue
浏览文件 @
a9e3aa98
...
@@ -64,8 +64,8 @@ export default {
...
@@ -64,8 +64,8 @@ export default {
data
(){
data
(){
return
{
return
{
curmbFirst
:
'云鹊
小圈
'
,
curmbFirst
:
'云鹊
专区
'
,
curmbSecond
:
'
圈子
管理'
,
curmbSecond
:
'
专区
管理'
,
curmbThird
:
''
,
curmbThird
:
''
,
jumPathFouth
:
""
,
jumPathFouth
:
""
,
jumPathThird
:
'/yq-range'
,
jumPathThird
:
'/yq-range'
,
...
@@ -99,7 +99,7 @@ export default {
...
@@ -99,7 +99,7 @@ export default {
this
.
name
=
name
;
this
.
name
=
name
;
this
.
activeName
=
activeName
;
this
.
activeName
=
activeName
;
this
.
roleType
=
roleType
;
this
.
roleType
=
roleType
;
this
.
curmbSecond
=
"
圈子
管理-"
+
name
;
this
.
curmbSecond
=
"
专区
管理-"
+
name
;
this
.
curmbThird
=
this
.
curmbSecond
;
this
.
curmbThird
=
this
.
curmbSecond
;
this
.
active
=
0
;
this
.
active
=
0
;
this
.
jumPathFouth
=
"/range-manage?id="
+
this
.
circleId
+
"&name="
+
this
.
name
;
this
.
jumPathFouth
=
"/range-manage?id="
+
this
.
circleId
+
"&name="
+
this
.
name
;
...
...
src/views/yqrange/range-setting.vue
浏览文件 @
a9e3aa98
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<div
class=
"yqrange-index-wrapper"
>
<div
class=
"yqrange-index-wrapper"
>
<!--
<bread-crumb
:curmbFirst=
"curmbFirst"
></bread-crumb>
-->
<!--
<bread-crumb
:curmbFirst=
"curmbFirst"
></bread-crumb>
-->
<div
class=
"yqrange-index-content"
id=
"screenSet"
>
<div
class=
"yqrange-index-content"
id=
"screenSet"
>
<!--
<div
class=
"header-title"
>
云鹊
小圈
</div>
-->
<!--
<div
class=
"header-title"
>
云鹊
专区
</div>
-->
<!--
<el-form
ref=
"settingForm"
:model=
"settingForm"
<!--
<el-form
ref=
"settingForm"
:model=
"settingForm"
label-width=
"150px"
label-width=
"150px"
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
<el-table
:data=
"settingForm.settingData"
class=
"customer-table"
style=
"margin-left:70px;"
<el-table
:data=
"settingForm.settingData"
class=
"customer-table"
style=
"margin-left:70px;"
:header-cell-style=
"
{background:'#ffffff'}">
:header-cell-style=
"
{background:'#ffffff'}">
<el-table-column
label=
""
prop=
"appType"
width=
"1
2
0"
></el-table-column>
<el-table-column
label=
""
prop=
"appType"
width=
"1
5
0"
></el-table-column>
<el-table-column
label=
""
width=
"180"
>
<el-table-column
label=
""
width=
"180"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<el-radio-group
size=
"small"
v-model=
"scope.row.showOff"
>
<el-radio-group
size=
"small"
v-model=
"scope.row.showOff"
>
...
@@ -39,13 +39,39 @@
...
@@ -39,13 +39,39 @@
<el-input
v-model=
"scope.row.appName"
style=
"width:120px;"
:maxlength=
"6"
size=
"small"
placeholder=
"重命名"
/>
<el-input
v-model=
"scope.row.appName"
style=
"width:120px;"
:maxlength=
"6"
size=
"small"
placeholder=
"重命名"
/>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"序号"
width=
"
2
00"
>
<el-table-column
label=
"序号"
width=
"
1
00"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-input
v-model=
"scope.row.seqNo"
style=
"width:60px;"
size=
"small"
@
blur=
"BlurText($event)"
@
placeholder=
"序号"
/>
<el-input
v-model=
"scope.row.seqNo"
style=
"width:60px;"
size=
"small"
@
blur=
"BlurText($event)"
@
placeholder=
"序号"
/>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"选择积木页(仅支持图片搭建的积木页和跳转)"
width=
"320"
>
<
template
slot-scope=
"scope"
>
<el-select
filterable
v-if=
"scope.row.appTag == 10"
v-model=
"scope.row.appUrl"
placeholder=
"请选择积木页"
style=
"position: relative;width:75%;"
>
<el-option
style=
"position: relative;"
v-for=
"item2 in settingForm.activityList"
:key=
"item2.id"
:label=
"item2.title"
:value=
"item2.id"
>
</el-option>
</el-select>
<!--
<img
v-if=
"scope.row.appTag == 10"
--
>
<!-- @click="add(scope.$index)"-->
<!-- class="edit-img"-->
<!-- src="../../assets/image/plus.png"-->
<!-- />-->
<!--
<img
v-if=
"scope.row.appTag == 10 && count > 0"
--
>
<!-- @click="del(scope.$index, scope.row)"-->
<!-- class="edit-img"-->
<!-- src="../../assets/image/trash.png"-->
<!-- />-->
</
template
>
</el-table-column>
</el-table>
</el-table>
<div
style=
"margin-top: 60px;margin-left: 150px;"
>
<div
style=
"margin-top: 60px;margin-left: 150px;"
>
<el-button
type=
"primary"
@
click=
"checkSubmitData()"
center
>
保存
</el-button>
<el-button
type=
"primary"
@
click=
"checkSubmitData()"
center
>
保存
</el-button>
<!--<el-button @click="cancle()">取 消</el-button>-->
<!--<el-button @click="cancle()">取 消</el-button>-->
...
@@ -56,9 +82,10 @@
...
@@ -56,9 +82,10 @@
</template>
</template>
<
script
>
<
script
>
let
vm
=
null
;
import
{
openLoading
,
closeLoading
}
from
"../../utils/utils"
;
import
{
openLoading
,
closeLoading
}
from
"../../utils/utils"
;
import
BreadCrumb
from
"@/components/breadcrumb.vue"
;
import
BreadCrumb
from
"@/components/breadcrumb.vue"
;
import
{
getRangeList
,
updateRangeStatus
,
getCircleSettingList
,
saveCircleSetting
}
from
"../../utils/yqrange/yqrangeApi"
;
import
{
getRangeList
,
updateRangeStatus
,
getCircleSettingList
,
saveCircleSetting
,
getActivityList
,
delActivity
}
from
"../../utils/yqrange/yqrangeApi"
;
import
{
isEmptyUtils
}
from
"../../utils/index"
;
import
{
isEmptyUtils
}
from
"../../utils/index"
;
export
default
{
export
default
{
...
@@ -67,7 +94,7 @@ export default {
...
@@ -67,7 +94,7 @@ export default {
},
},
data
(){
data
(){
return
{
return
{
curmbFirst
:
'云鹊
小圈
'
,
curmbFirst
:
'云鹊
专区
'
,
showAllFlag
:
false
,
showAllFlag
:
false
,
showNewFlag
:
false
,
showNewFlag
:
false
,
searchForm
:
{
searchForm
:
{
...
@@ -84,13 +111,18 @@ export default {
...
@@ -84,13 +111,18 @@ export default {
dialogSettingVisible
:
false
,
dialogSettingVisible
:
false
,
settingForm
:{
settingForm
:{
circleId
:
null
,
circleId
:
null
,
settingData
:
[]
settingData
:
[],
}
activityList
:[]
},
tempList
:
[],
count
:
0
,
}
}
},
},
created
()
{
created
()
{
vm
=
this
;
this
.
circleId
=
this
.
$route
.
query
.
id
;
this
.
circleId
=
this
.
$route
.
query
.
id
;
this
.
setting
();
this
.
setting
();
this
.
initActivityList
();
},
},
methods
:
{
methods
:
{
...
@@ -98,13 +130,42 @@ export default {
...
@@ -98,13 +130,42 @@ export default {
setting
(){
setting
(){
let
params
=
{
let
params
=
{
circleId
:
this
.
circleId
circleId
:
this
.
circleId
// circleId:
22
// circleId:
194
}
}
getCircleSettingList
(
params
).
then
((
res
)
=>
{
getCircleSettingList
(
params
).
then
((
res
)
=>
{
closeLoading
(
this
);
closeLoading
(
this
);
if
(
res
.
code
==
"000000"
)
{
if
(
res
.
code
==
"000000"
)
{
this
.
settingForm
.
settingData
=
res
.
data
;
this
.
settingForm
.
settingData
=
res
.
data
;
if
(
this
.
settingForm
.
settingData
!=
null
&&
this
.
settingForm
.
settingData
.
length
>
0
){
for
(
let
i
=
0
;
i
<
this
.
settingForm
.
settingData
.
length
;
i
++
){
// 自定义积木
if
(
this
.
settingForm
.
settingData
[
i
].
appTag
==
10
){
this
.
count
++
;
if
(
this
.
settingForm
.
settingData
[
i
].
appUrl
!=
""
){
this
.
settingForm
.
settingData
[
i
].
appUrl
=
parseInt
(
this
.
settingForm
.
settingData
[
i
].
appUrl
);
}
}
}
this
.
count
--
;
let
tempList
=
this
.
settingForm
.
settingData
.
filter
(
function
(
item
)
{
return
item
.
appTag
==
10
;
});
if
(
tempList
.
length
==
0
){
let
row
=
{
appName
:
""
,
appTag
:
10
,
appType
:
"自定义H5积木页"
,
appUrl
:
""
,
ecoAppParams
:
[],
id
:
""
,
seqNo
:
this
.
settingForm
.
settingData
.
length
+
1
,
showOff
:
0
,
}
this
.
settingForm
.
settingData
.
push
(
row
);
}
}
}
else
{
}
else
{
this
.
settingForm
.
settingData
=
[];
this
.
settingForm
.
settingData
=
[];
}
}
...
@@ -116,7 +177,7 @@ export default {
...
@@ -116,7 +177,7 @@ export default {
checkSubmitData
()
{
checkSubmitData
()
{
for
(
let
i
=
0
;
i
<
this
.
settingForm
.
settingData
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
this
.
settingForm
.
settingData
.
length
;
i
++
)
{
if
(
isEmptyUtils
(
this
.
settingForm
.
settingData
[
i
].
appName
))
{
if
(
this
.
settingForm
.
settingData
[
i
].
showOff
==
1
&&
isEmptyUtils
(
this
.
settingForm
.
settingData
[
i
].
appName
))
{
this
.
$message
.
error
(
"重命名输入框中的值不可为空,请检查"
);
this
.
$message
.
error
(
"重命名输入框中的值不可为空,请检查"
);
return
;
return
;
}
}
...
@@ -124,12 +185,20 @@ export default {
...
@@ -124,12 +185,20 @@ export default {
this
.
$message
.
error
(
"序号不可为空,请检查"
);
this
.
$message
.
error
(
"序号不可为空,请检查"
);
return
;
return
;
}
}
if
(
this
.
settingForm
.
settingData
[
i
].
showOff
==
1
&&
this
.
settingForm
.
settingData
[
i
].
appTag
==
10
&&
isEmptyUtils
(
this
.
settingForm
.
settingData
[
i
].
appUrl
))
{
this
.
$message
.
error
(
"请选择积木页"
);
return
;
}
const
r
=
/^
\+?[
1-9
][
0-9
]
*$/
;
// 正整数
const
r
=
/^
\+?[
1-9
][
0-9
]
*$/
;
// 正整数
// 如果判断不符合正则,则不是正整数不能提交
// 如果判断不符合正则,则不是正整数不能提交
if
(
!
r
.
test
(
this
.
settingForm
.
settingData
[
i
].
seqNo
))
{
if
(
!
r
.
test
(
this
.
settingForm
.
settingData
[
i
].
seqNo
))
{
this
.
$message
.
error
(
"序号应为正整数,请检查"
);
return
;
return
;
}
}
if
(
this
.
settingForm
.
settingData
[
i
].
seqNo
<
1
||
this
.
settingForm
.
settingData
[
i
].
seqNo
>
10
)
{
if
(
this
.
settingForm
.
settingData
[
i
].
seqNo
<
1
||
this
.
settingForm
.
settingData
[
i
].
seqNo
>
10
)
{
this
.
$message
.
error
(
'请输入 1~10 的正整数'
);
return
;
return
;
}
}
if
(
this
.
settingForm
.
settingData
[
i
].
seqNo
>
this
.
settingForm
.
settingData
.
length
)
{
if
(
this
.
settingForm
.
settingData
[
i
].
seqNo
>
this
.
settingForm
.
settingData
.
length
)
{
...
@@ -182,7 +251,107 @@ export default {
...
@@ -182,7 +251,107 @@ export default {
this
.
$message
.
warning
(
'请输入 1~10 的正整数'
)
this
.
$message
.
warning
(
'请输入 1~10 的正整数'
)
e
.
target
.
value
=
''
e
.
target
.
value
=
''
}
}
},
// 应用配置
initActivityList
(){
let
params
=
{
// circleId: this.circleId
id
:
""
,
title
:
""
,
publishFlag
:
5
,
createdTime
:
""
,
pageNo
:
1
,
pageSize
:
20000
}
getActivityList
(
params
).
then
((
res
)
=>
{
closeLoading
(
this
);
if
(
res
.
code
==
"000000"
)
{
this
.
settingForm
.
activityList
=
res
.
data
.
templateList
;
}
else
{
this
.
settingForm
.
activityList
=
[];
}
}).
catch
((
error
)
=>
{
this
.
$message
.
error
(
"请重试"
);
})
},
indexMethod
(
index
){
this
.
index
=
index
;
},
add
(
index
){
if
(
this
.
settingForm
.
settingData
!=
null
&&
this
.
settingForm
.
settingData
.
length
>
0
){
this
.
tempList
=
this
.
settingForm
.
settingData
.
filter
(
function
(
item
)
{
return
item
.
appTag
==
10
;
});
if
(
this
.
tempList
.
length
>
0
){
this
.
row
=
{
appName
:
""
,
appTag
:
10
,
appType
:
this
.
tempList
[
0
].
appType
,
appUrl
:
""
,
ecoAppParams
:
[],
id
:
""
,
seqNo
:
index
+
2
,
showOff
:
0
,
}
this
.
count
++
;
this
.
settingForm
.
settingData
.
push
(
this
.
row
);
}
}
},
del
(
index
,
row
){
let
params
=
{
circleId
:
this
.
circleId
,
id
:
row
.
id
}
vm
.
$confirm
(
`确定删除“
${
row
.
appName
}
”吗?`
,
""
,
{
confirmButtonText
:
"删除"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
// customClass: 'range-make-box',
})
.
then
(()
=>
{
if
(
params
.
id
==
""
)
{
vm
.
$message
({
type
:
"success"
,
message
:
"删除成功"
});
vm
.
count
--
;
vm
.
settingForm
.
settingData
.
splice
(
index
,
1
);
}
else
{
// confirm
delActivity
(
params
).
then
(
res
=>
{
if
(
res
.
code
==
"000000"
)
{
vm
.
$message
({
type
:
"success"
,
message
:
"删除成功"
});
vm
.
count
--
;
vm
.
settingForm
.
settingData
.
splice
(
index
,
1
);
}
else
{
vm
.
$message
({
type
:
"warning"
,
message
:
res
.
message
});
}
});
}
})
.
catch
(()
=>
{});
},
activityColor
({
row
,
column
,
rowIndex
,
columnIndex
}){
return
"activity-color"
;
}
}
},
},
}
}
</
script
>
</
script
>
...
@@ -257,4 +426,10 @@ export default {
...
@@ -257,4 +426,10 @@ export default {
.el-table--border
th
.gutter
:last-of-type
{
.el-table--border
th
.gutter
:last-of-type
{
width
:
0
;
width
:
0
;
}
}
.el-select-dropdown
{
width
:
300px
;
}
.el-table
.activity-color
{
color
:
#EC808D
;
}
</
style
>
</
style
>
src/views/yqrange/role-manage.vue
浏览文件 @
a9e3aa98
...
@@ -120,7 +120,7 @@ export default {
...
@@ -120,7 +120,7 @@ export default {
vm
=
this
;
vm
=
this
;
return
{
return
{
curmbFirst
:
"云鹊
小圈
"
,
curmbFirst
:
"云鹊
专区
"
,
curmbSecond
:
"成员管理"
,
curmbSecond
:
"成员管理"
,
searchForm
:
{
searchForm
:
{
searchName
:
""
,
searchName
:
""
,
...
...
src/views/yqrange/yq-range.vue
浏览文件 @
a9e3aa98
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<bread-crumb
:curmbFirst=
"curmbFirst"
></bread-crumb>
<bread-crumb
:curmbFirst=
"curmbFirst"
></bread-crumb>
<div
class=
"yqrange-index-content screenSet"
>
<div
class=
"yqrange-index-content screenSet"
>
<el-tabs
v-model=
"activeName"
@
tab-click=
"tabChangeHandler"
>
<el-tabs
v-model=
"activeName"
@
tab-click=
"tabChangeHandler"
>
<el-tab-pane
label=
"云鹊
小圈
"
name=
"first"
>
<el-tab-pane
label=
"云鹊
专区
"
name=
"first"
>
<el-form
ref=
"searchForm"
:model=
"searchForm"
label-width=
"75px"
label-suffix=
":"
:inline=
"true"
>
<el-form
ref=
"searchForm"
:model=
"searchForm"
label-width=
"75px"
label-suffix=
":"
:inline=
"true"
>
<el-row
:gutter=
"30"
type=
"flex"
style=
"margin-top: 10px"
>
<el-row
:gutter=
"30"
type=
"flex"
style=
"margin-top: 10px"
>
<el-col
:span=
"8"
>
<el-col
:span=
"8"
>
...
@@ -163,7 +163,7 @@ export default {
...
@@ -163,7 +163,7 @@ export default {
},
},
data
(){
data
(){
return
{
return
{
curmbFirst
:
'云鹊
小圈
'
,
curmbFirst
:
'云鹊
专区
'
,
activeName
:
'first'
,
activeName
:
'first'
,
showAllFlag
:
false
,
showAllFlag
:
false
,
showNewFlag
:
false
,
showNewFlag
:
false
,
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录