Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
77ef2fcd
提交
77ef2fcd
编写于
2月 12, 2020
作者:
guangjun.yang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
环境、机构列表等
上级
0969b6e1
变更
4
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
32 行增加
和
22 行删除
+32
-22
env-config.js
src/utils/env-config.js
+2
-2
edit-entry.vue
src/views/education/edit-entry.vue
+15
-5
edit-manager.vue
src/views/education/edit-manager.vue
+10
-2
item-manager.vue
src/views/education/item-manager.vue
+5
-13
未找到文件。
src/utils/env-config.js
浏览文件 @
77ef2fcd
...
@@ -10,10 +10,10 @@ export const envConfig = {
...
@@ -10,10 +10,10 @@ export const envConfig = {
// baseUrl: 'https://uat-sc.yunqueyi.com/',
// baseUrl: 'https://uat-sc.yunqueyi.com/',
// baseUrl: 'http://10.177.15.150:10401/',
// baseUrl: 'http://10.177.15.150:10401/',
// baseUrl: 'http://10.177.15.150:11905/',
// baseUrl: 'http://10.177.15.150:11905/',
baseUrl
:
'https://dev-sc.yunqueyi.com/'
,
//
baseUrl: 'https://dev-sc.yunqueyi.com/',
// baseUrl: 'https://test1-sc.yunqueyi.com/',
// baseUrl: 'https://test1-sc.yunqueyi.com/',
// baseUrl: 'https://sc.yunqueyi.com/',
// baseUrl: 'https://sc.yunqueyi.com/',
//
baseUrl: 'https://uat-sc.yunqueyi.com/',
baseUrl
:
'https://uat-sc.yunqueyi.com/'
,
apiUrl
:
'https://uat-api.yunqueyi.com/'
,
apiUrl
:
'https://uat-api.yunqueyi.com/'
,
qiniuFileUrl
:
"https://uat-sc.yunqueyi.com/contents/admin/qiniu/token1"
,
qiniuFileUrl
:
"https://uat-sc.yunqueyi.com/contents/admin/qiniu/token1"
,
qiniuResourceUrl
:
"https://test1-videos.yunqueyi.com"
,
qiniuResourceUrl
:
"https://test1-videos.yunqueyi.com"
,
...
...
src/views/education/edit-entry.vue
浏览文件 @
77ef2fcd
...
@@ -34,6 +34,7 @@
...
@@ -34,6 +34,7 @@
v-model=
"formData.organizationNameList[index]"
v-model=
"formData.organizationNameList[index]"
placeholder=
"请输入发起机构名称"
placeholder=
"请输入发起机构名称"
style=
"width:70%;"
style=
"width:70%;"
maxlength=
16
:disabled=
"peopleLevel == 'L3'"
:disabled=
"peopleLevel == 'L3'"
@
input=
"changeOrganizationName"
@
input=
"changeOrganizationName"
@
blur=
"blurName"
@
blur=
"blurName"
...
@@ -44,7 +45,7 @@
...
@@ -44,7 +45,7 @@
<img
@
click=
"deleteOrg(index)"
v-if=
"index >= 1"
class=
"edit-img"
src=
"../../assets/image/trash.png"
/>
<img
@
click=
"deleteOrg(index)"
v-if=
"index >= 1"
class=
"edit-img"
src=
"../../assets/image/trash.png"
/>
</el-col>
</el-col>
<el-popover
<el-popover
class=
"popover-content"
class=
"popover-content"
:style=
"
{'top': orgListIndex * 41 + 'px'}"
placement="bottom"
placement="bottom"
:content="organizationContent"
:content="organizationContent"
v-model="visibleName"
v-model="visibleName"
...
@@ -306,6 +307,7 @@ export default {
...
@@ -306,6 +307,7 @@ export default {
organizationNameList: [''],
organizationNameList: [''],
project: []
project: []
},
},
orgListIndex: 0,
optionsProject: [],
optionsProject: [],
tagsProject: [],
tagsProject: [],
visibleName: false,
visibleName: false,
...
@@ -580,7 +582,7 @@ export default {
...
@@ -580,7 +582,7 @@ export default {
},
},
checkDefault() {
checkDefault() {
// vm.formData.organizationNameList[0] = vm.organizationContent;
// vm.formData.organizationNameList[0] = vm.organizationContent;
vm.formData.organizationNameList.splice(
0
, 1, vm.organizationContent);
vm.formData.organizationNameList.splice(
this.orgListIndex
, 1, vm.organizationContent);
// vm.formData.organizationNameList.push(vm.organizationContent);
// vm.formData.organizationNameList.push(vm.organizationContent);
// vm.formData.organizationName = vm.organizationContent;
// vm.formData.organizationName = vm.organizationContent;
vm.visibleName = false;
vm.visibleName = false;
...
@@ -595,6 +597,7 @@ export default {
...
@@ -595,6 +597,7 @@ export default {
focusName(index) {
focusName(index) {
let textLength = vm.formData.organizationNameList[index].length;
let textLength = vm.formData.organizationNameList[index].length;
if (textLength == 0) {
if (textLength == 0) {
this.orgListIndex = index;
vm.visibleName = true;
vm.visibleName = true;
} else {
} else {
vm.visibleName = false;
vm.visibleName = false;
...
@@ -602,7 +605,6 @@ export default {
...
@@ -602,7 +605,6 @@ export default {
},
},
changeOrganizationName() {
changeOrganizationName() {
let textLength = vm.formData.organizationName.length;
let textLength = vm.formData.organizationName.length;
// console.log("
文字长度
", textLength);
if (textLength == 0) {
if (textLength == 0) {
vm.visibleName = true;
vm.visibleName = true;
} else {
} else {
...
@@ -697,6 +699,7 @@ export default {
...
@@ -697,6 +699,7 @@ export default {
vm.formData = {
vm.formData = {
entryName: data.portalEntry.entryName,
entryName: data.portalEntry.entryName,
organizationName: data.portalEntry.organizationName,
organizationName: data.portalEntry.organizationName,
organizationNameList: data.portalEntry.organizationNameList,
entryBegintime: data.portalEntry.entryBegintime,
entryBegintime: data.portalEntry.entryBegintime,
entryEndtime: data.portalEntry.entryEndtime,
entryEndtime: data.portalEntry.entryEndtime,
entryIntro: data.portalEntry.entryIntro,
entryIntro: data.portalEntry.entryIntro,
...
@@ -762,7 +765,8 @@ export default {
...
@@ -762,7 +765,8 @@ export default {
entryEndtime: vm.formData.entryEndtime,
entryEndtime: vm.formData.entryEndtime,
entryIntro: vm.formData.entryIntro,
entryIntro: vm.formData.entryIntro,
entryName: vm.formData.entryName,
entryName: vm.formData.entryName,
organizationName: vm.formData.organizationName
organizationName: vm.formData.organizationName,
organizationNameList: vm.formData.organizationNameList
},
},
attachments: [
attachments: [
{
{
...
@@ -807,7 +811,8 @@ export default {
...
@@ -807,7 +811,8 @@ export default {
entryStatus: vm.entryOptionData.portalEntry.entryStatus,
entryStatus: vm.entryOptionData.portalEntry.entryStatus,
id: vm.entryOptionData.portalEntry.id,
id: vm.entryOptionData.portalEntry.id,
organizationId: 0,
organizationId: 0,
organizationName: vm.formData.organizationName
organizationName: vm.formData.organizationName,
organizationNameList: vm.formData.organizationNameList
},
},
attachments: [
attachments: [
{
{
...
@@ -997,4 +1002,9 @@ export default {
...
@@ -997,4 +1002,9 @@ export default {
}
}
}
}
}
}
.popover-content
{
position
:
relative
;
top
:
0
;
left
:
0
;
}
</
style
>
</
style
>
\ No newline at end of file
src/views/education/edit-manager.vue
浏览文件 @
77ef2fcd
...
@@ -47,6 +47,7 @@
...
@@ -47,6 +47,7 @@
v-model=
"formData.organizationNameList[index]"
v-model=
"formData.organizationNameList[index]"
placeholder=
"请输入发起机构名称"
placeholder=
"请输入发起机构名称"
style=
"width:70%;"
style=
"width:70%;"
maxlength=
16
:disabled=
"peopleLevel == 'L3'"
:disabled=
"peopleLevel == 'L3'"
@
input=
"changeOrganizationName"
@
input=
"changeOrganizationName"
@
blur =
"blurName"
@
blur =
"blurName"
...
@@ -57,7 +58,7 @@
...
@@ -57,7 +58,7 @@
<img
@
click=
"deleteOrg(index)"
v-if=
"index >= 1"
class=
"edit-img"
src=
"../../assets/image/trash.png"
/>
<img
@
click=
"deleteOrg(index)"
v-if=
"index >= 1"
class=
"edit-img"
src=
"../../assets/image/trash.png"
/>
</el-col>
</el-col>
<el-popover
<el-popover
class=
"popover-content"
class=
"popover-content"
:style=
"
{'top': orgListIndex * 41 + 'px'}"
placement="bottom"
placement="bottom"
:content="organizationContent"
:content="organizationContent"
v-model="visibleName"
v-model="visibleName"
...
@@ -1068,6 +1069,7 @@ export default {
...
@@ -1068,6 +1069,7 @@ export default {
authorityType: 1,
authorityType: 1,
allowLearn: 2
allowLearn: 2
},
},
orgListIndex: 0,
pickerOptions0: {
pickerOptions0: {
disabledDate: time => {
disabledDate: time => {
if (
if (
...
@@ -3809,6 +3811,7 @@ export default {
...
@@ -3809,6 +3811,7 @@ export default {
focusName
(
index
)
{
focusName
(
index
)
{
let
textLength
=
vm
.
formData
.
organizationNameList
[
index
].
length
;
let
textLength
=
vm
.
formData
.
organizationNameList
[
index
].
length
;
if
(
textLength
==
0
)
{
if
(
textLength
==
0
)
{
this
.
orgListIndex
=
index
;
vm
.
visibleName
=
true
;
vm
.
visibleName
=
true
;
}
else
{
}
else
{
vm
.
visibleName
=
false
;
vm
.
visibleName
=
false
;
...
@@ -3825,7 +3828,7 @@ export default {
...
@@ -3825,7 +3828,7 @@ export default {
},
},
checkDefault
()
{
checkDefault
()
{
// vm.formData.organizationNameList[0] = vm.organizationContent;
// vm.formData.organizationNameList[0] = vm.organizationContent;
vm
.
formData
.
organizationNameList
.
splice
(
0
,
1
,
vm
.
organizationContent
);
vm
.
formData
.
organizationNameList
.
splice
(
this
.
orgListIndex
,
1
,
vm
.
organizationContent
);
// vm.formData.organizationNameList.push(vm.organizationContent);
// vm.formData.organizationNameList.push(vm.organizationContent);
// vm.formData.organizationName = vm.organizationContent;
// vm.formData.organizationName = vm.organizationContent;
vm
.
visibleName
=
false
;
vm
.
visibleName
=
false
;
...
@@ -4517,4 +4520,9 @@ export default {
...
@@ -4517,4 +4520,9 @@ export default {
.edit-img
{
.edit-img
{
width
:
20px
;
width
:
20px
;
}
}
.popover-content
{
position
:
relative
;
top
:
0
;
left
:
0
;
}
</
style
>
</
style
>
src/views/education/item-manager.vue
浏览文件 @
77ef2fcd
...
@@ -678,20 +678,12 @@ export default {
...
@@ -678,20 +678,12 @@ export default {
// 删除项目
// 删除项目
confirmDelete
()
{
confirmDelete
()
{
let
req
=
{};
let
req
=
{};
vm
.
GET
(
'portal/portalComponent/deleteComponentById'
,{
id
:
this
.
currentRow
.
id
}).
then
((
res
)
=>
{
vm
.
DELETE
(
"portal/portalInfo/delete/"
+
this
.
currentRow
.
id
,
req
).
then
(
res
=>
{
vm
.
deleteVisible
=
false
;
vm
.
$message
.
info
(
res
.
message
);
console
.
log
(
'$$$$$$$$$$$$$$$$$'
);
if
(
res
.
code
==
"000000"
)
{
if
(
res
.
code
==
"000000"
)
{
console
.
log
(
res
);
vm
.
$message
({
vm
.
getProjectList
();
type
:
'success'
,
message
:
'删除成功!'
});
vm
.
search
()
}
else
{
vm
.
$message
.
info
(
res
.
message
)
}
}
}).
catch
(
function
(
error
)
{
vm
.
$message
.
error
(
error
);
});
});
},
},
// 重置表单
// 重置表单
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录