Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
bad63d05
提交
bad63d05
编写于
3月 22, 2019
作者:
zhentian.jia
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
文件传值大小 类型 介绍页修改
上级
c2521dd5
变更
4
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
66 行增加
和
27 行删除
+66
-27
add-manager.vue
src/views/education/add-manager.vue
+54
-22
item-manager.vue
src/views/education/item-manager.vue
+3
-4
item-role.vue
src/views/system/item-role.vue
+4
-0
role.vue
src/views/system/role.vue
+5
-1
未找到文件。
src/views/education/add-manager.vue
浏览文件 @
bad63d05
...
@@ -495,7 +495,9 @@ export default {
...
@@ -495,7 +495,9 @@ export default {
type
:
1
,
type
:
1
,
attachmentUrl1
:
""
,
attachmentUrl1
:
""
,
attachmentUrl2
:
""
,
attachmentUrl2
:
""
,
attachmentUrl3
:
""
attachmentUrl3
:
""
,
attachmentMore1
:
{},
attachmentMore2
:
{},
},
},
pickerOptions0
:
{
pickerOptions0
:
{
disabledDate
:
time
=>
{
disabledDate
:
time
=>
{
...
@@ -722,13 +724,25 @@ export default {
...
@@ -722,13 +724,25 @@ export default {
type
:
editData
.
attachmentData
[
1
].
attachmentType
,
type
:
editData
.
attachmentData
[
1
].
attachmentType
,
attachmentUrl1
:
editData
.
attachmentData
[
0
].
attachmentUrl
,
attachmentUrl1
:
editData
.
attachmentData
[
0
].
attachmentUrl
,
attachmentUrl2
:
editData
.
attachmentData
[
1
].
attachmentUrl
,
attachmentUrl2
:
editData
.
attachmentData
[
1
].
attachmentUrl
,
attachmentUrl3
:
""
attachmentUrl3
:
""
,
attachmentMore1
:
{
attachmentName
:
editData
.
attachmentData
[
0
].
attachmentName
,
attachmentExt
:
editData
.
attachmentData
[
0
].
attachmentExt
,
attachmentSize
:
editData
.
attachmentData
[
0
].
attachmentSize
,
},
attachmentMore2
:
{
attachmentName
:
editData
.
attachmentData
[
1
].
attachmentName
,
attachmentExt
:
editData
.
attachmentData
[
1
].
attachmentExt
,
attachmentSize
:
editData
.
attachmentData
[
1
].
attachmentSize
,
}
};
};
if
(
editData
.
attachmentData
.
length
>
2
)
{
if
(
editData
.
attachmentData
.
length
>
2
)
{
for
(
let
i
=
2
;
i
<
editData
.
attachmentData
.
length
;
i
++
)
{
for
(
let
i
=
2
;
i
<
editData
.
attachmentData
.
length
;
i
++
)
{
let
pdfItem
=
{
let
pdfItem
=
{
name
:
editData
.
attachmentData
[
i
].
attachmentName
,
name
:
editData
.
attachmentData
[
i
].
attachmentName
,
url
:
editData
.
attachmentData
[
i
].
attachmentUrl
url
:
editData
.
attachmentData
[
i
].
attachmentUrl
,
attachmentExt
:
editData
.
attachmentData
[
i
].
attachmentExt
,
attachmentSize
:
editData
.
attachmentData
[
i
].
attachmentSize
,
};
};
vm
.
fileList
.
push
(
pdfItem
);
vm
.
fileList
.
push
(
pdfItem
);
}
}
...
@@ -776,12 +790,18 @@ export default {
...
@@ -776,12 +790,18 @@ export default {
{
{
attachmentType
:
1
,
attachmentType
:
1
,
attachmentUrl
:
this
.
formData
.
attachmentUrl1
,
attachmentUrl
:
this
.
formData
.
attachmentUrl1
,
attachmentName
:
this
.
formData
.
attachmentMore1
.
attachmentName
,
attachmentExt
:
this
.
formData
.
attachmentMore1
.
attachmentExt
,
attachmentSize
:
this
.
formData
.
attachmentMore1
.
attachmentSize
,
kind
:
1
,
kind
:
1
,
seqNo
:
1
seqNo
:
1
},
},
{
{
attachmentType
:
this
.
formData
.
type
,
attachmentType
:
this
.
formData
.
type
,
attachmentUrl
:
this
.
formData
.
attachmentUrl2
,
attachmentUrl
:
this
.
formData
.
attachmentUrl2
,
attachmentName
:
this
.
formData
.
attachmentMore2
.
attachmentName
,
attachmentExt
:
this
.
formData
.
attachmentMore2
.
attachmentExt
,
attachmentSize
:
this
.
formData
.
attachmentMore2
.
attachmentSize
,
kind
:
2
,
kind
:
2
,
seqNo
:
1
seqNo
:
1
}
}
...
@@ -793,6 +813,8 @@ export default {
...
@@ -793,6 +813,8 @@ export default {
attachmentType
:
3
,
attachmentType
:
3
,
attachmentName
:
vm
.
fileList
[
i
].
name
,
attachmentName
:
vm
.
fileList
[
i
].
name
,
attachmentUrl
:
vm
.
fileList
[
i
].
url
,
attachmentUrl
:
vm
.
fileList
[
i
].
url
,
attachmentExt
:
vm
.
fileList
[
i
].
attachmentExt
,
attachmentSize
:
vm
.
fileList
[
i
].
attachmentSize
,
kind
:
3
kind
:
3
};
};
attachmentPDFModel
.
push
(
PDFModel
);
attachmentPDFModel
.
push
(
PDFModel
);
...
@@ -867,15 +889,16 @@ export default {
...
@@ -867,15 +889,16 @@ export default {
vm
.
POST
(
"portalInfo/componentDraft"
,
param
).
then
(
res
=>
{
vm
.
POST
(
"portalInfo/componentDraft"
,
param
).
then
(
res
=>
{
console
.
log
(
res
);
console
.
log
(
res
);
if
(
res
.
code
==
"000000"
)
{
if
(
res
.
code
==
"000000"
)
{
this
.
$notify
({
//notify
title
:
"成功"
,
vm
.
$message
({
message
:
"项目创建成功"
type
:
'success'
,
message
:
'操作成功!'
});
});
this
.
$router
.
push
(
"item-manager"
);
this
.
$router
.
push
(
"item-manager"
);
}
else
{
}
else
{
this
.
$notify
({
vm
.
$message
({
title
:
""
,
message
:
res
.
message
,
message
:
res
.
message
type
:
'warning'
});
});
}
}
});
});
...
@@ -933,10 +956,10 @@ export default {
...
@@ -933,10 +956,10 @@ export default {
req
.
scopeOfPeople
=
this
.
getScopePeople
(
req
.
setKindOfPeople
);
req
.
scopeOfPeople
=
this
.
getScopePeople
(
req
.
setKindOfPeople
);
}
}
vm
.
POST
(
"scope"
,
req
).
then
(
res
=>
{
vm
.
POST
(
"scope"
,
req
).
then
(
res
=>
{
//
移动到选择项目组件
//
暂存范围
console
.
log
(
res
);
console
.
log
(
res
);
this
.
$notify
({
vm
.
$message
({
title
:
""
,
type
:
'info'
,
message
:
res
.
message
message
:
res
.
message
});
});
});
});
...
@@ -1032,8 +1055,8 @@ export default {
...
@@ -1032,8 +1055,8 @@ export default {
this
.
active
++
;
this
.
active
++
;
this
.
stepData
=
[
false
,
false
,
true
];
this
.
stepData
=
[
false
,
false
,
true
];
}
else
{
}
else
{
this
.
$notify
({
vm
.
$message
({
title
:
""
,
type
:
'info'
,
message
:
res
.
message
message
:
res
.
message
});
});
}
}
...
@@ -1076,8 +1099,8 @@ export default {
...
@@ -1076,8 +1099,8 @@ export default {
this
.
active
++
;
this
.
active
++
;
this
.
stepData
=
[
false
,
false
,
true
];
this
.
stepData
=
[
false
,
false
,
true
];
}
else
{
}
else
{
this
.
$notify
({
vm
.
$message
({
title
:
""
,
type
:
'info'
,
message
:
res
.
message
message
:
res
.
message
});
});
}
}
...
@@ -1096,7 +1119,8 @@ export default {
...
@@ -1096,7 +1119,8 @@ export default {
height
:
86
,
height
:
86
,
size
:
0.5
,
size
:
0.5
,
sizeText
:
"500K"
,
sizeText
:
"500K"
,
key
:
"attachmentUrl1"
key
:
"attachmentUrl1"
,
more
:
"attachmentMore1"
,
};
};
this
.
beforeAvatarUpload
(
file
,
fileLimit
);
this
.
beforeAvatarUpload
(
file
,
fileLimit
);
},
},
...
@@ -1107,7 +1131,8 @@ export default {
...
@@ -1107,7 +1131,8 @@ export default {
height
:
210
,
height
:
210
,
size
:
2
,
size
:
2
,
sizeText
:
"2.0M"
,
sizeText
:
"2.0M"
,
key
:
"attachmentUrl2"
key
:
"attachmentUrl2"
,
more
:
"attachmentMore2"
,
};
};
if
(
this
.
formData
.
type
==
1
)
{
if
(
this
.
formData
.
type
==
1
)
{
this
.
beforeAvatarUpload
(
file
,
fileLimit
);
this
.
beforeAvatarUpload
(
file
,
fileLimit
);
...
@@ -1136,7 +1161,9 @@ export default {
...
@@ -1136,7 +1161,9 @@ export default {
console
.
log
(
path
);
console
.
log
(
path
);
let
fileItem
=
{
let
fileItem
=
{
name
:
path
.
name
,
name
:
path
.
name
,
url
:
path
.
fullPath
url
:
path
.
fullPath
,
attachmentExt
:
path
.
ext
,
attachmentSize
:
path
.
size
,
};
};
vm
.
fileList
.
push
(
fileItem
);
vm
.
fileList
.
push
(
fileItem
);
vm
.
$message
.
success
(
"上传成功"
);
vm
.
$message
.
success
(
"上传成功"
);
...
@@ -1214,6 +1241,11 @@ export default {
...
@@ -1214,6 +1241,11 @@ export default {
closeLoading
(
vm
);
closeLoading
(
vm
);
console
.
log
(
path
);
console
.
log
(
path
);
vm
.
formData
[
fileLimit
.
key
]
=
path
.
fullPath
;
vm
.
formData
[
fileLimit
.
key
]
=
path
.
fullPath
;
vm
.
formData
[
fileLimit
.
more
]
=
{
attachmentName
:
path
.
name
,
attachmentExt
:
path
.
ext
,
attachmentSize
:
path
.
size
,
};
vm
.
$message
.
success
(
"上传成功"
);
vm
.
$message
.
success
(
"上传成功"
);
});
});
}
}
...
...
src/views/education/item-manager.vue
浏览文件 @
bad63d05
...
@@ -371,11 +371,10 @@ export default {
...
@@ -371,11 +371,10 @@ export default {
vm
.
DELETE
(
"portalInfo/delete/"
+
row
.
id
,
req
).
then
(
res
=>
{
vm
.
DELETE
(
"portalInfo/delete/"
+
row
.
id
,
req
).
then
(
res
=>
{
if
(
res
.
code
==
"000000"
)
{
if
(
res
.
code
==
"000000"
)
{
console
.
log
(
res
);
console
.
log
(
res
);
this
.
$notify
({
vm
.
$message
({
title
:
"删除项目"
,
type
:
'success'
,
message
:
"ID为:"
+
row
.
id
+
"的项目删除成功"
message
:
'删除成功!'
});
});
this
.
loading
=
true
;
vm
.
getProjectList
();
vm
.
getProjectList
();
}
}
});
});
...
...
src/views/system/item-role.vue
浏览文件 @
bad63d05
...
@@ -249,6 +249,10 @@ export default {
...
@@ -249,6 +249,10 @@ export default {
console
.
log
(
res
);
console
.
log
(
res
);
this
.
queryRoleList
();
this
.
queryRoleList
();
}
}
vm
.
$message
({
type
:
'info'
,
message
:
res
.
message
,
})
});
});
},
},
handleSizeChange
(
val
)
{
handleSizeChange
(
val
)
{
...
...
src/views/system/role.vue
浏览文件 @
bad63d05
...
@@ -45,7 +45,7 @@
...
@@ -45,7 +45,7 @@
<el-table-column
prop=
"id"
label=
"ID编号"
min-width=
"100"
align=
"center"
></el-table-column>
<el-table-column
prop=
"id"
label=
"ID编号"
min-width=
"100"
align=
"center"
></el-table-column>
<el-table-column
prop=
"projectName"
label=
"项目名称"
min-width=
"100"
align=
"center"
></el-table-column>
<el-table-column
prop=
"projectName"
label=
"项目名称"
min-width=
"100"
align=
"center"
></el-table-column>
<el-table-column
prop=
"createdName"
label=
"创建人"
align=
"center"
></el-table-column>
<el-table-column
prop=
"createdName"
label=
"创建人"
align=
"center"
></el-table-column>
<el-table-column
prop=
"projectIntro"
label=
"项目简介"
align=
"center"
></el-table-column>
<el-table-column
prop=
"projectIntro"
label=
"项目简介"
align=
"center"
min-width=
"100"
show-overflow-tooltip
></el-table-column>
<el-table-column
prop=
"projectBegintime"
label=
"项目开始时间"
align=
"center"
></el-table-column>
<el-table-column
prop=
"projectBegintime"
label=
"项目开始时间"
align=
"center"
></el-table-column>
<el-table-column
prop=
"projectEndtime"
label=
"项目结束时间"
align=
"center"
></el-table-column>
<el-table-column
prop=
"projectEndtime"
label=
"项目结束时间"
align=
"center"
></el-table-column>
<el-table-column
prop=
"projectStatus"
label=
"状态"
align=
"center"
>
<el-table-column
prop=
"projectStatus"
label=
"状态"
align=
"center"
>
...
@@ -168,9 +168,13 @@ export default {
...
@@ -168,9 +168,13 @@ export default {
this
.
$router
.
push
(
"item-role?portalProjectId="
+
row
.
id
);
this
.
$router
.
push
(
"item-role?portalProjectId="
+
row
.
id
);
},
},
handleSizeChange
(
val
)
{
handleSizeChange
(
val
)
{
this
.
formInline
.
pageSize
=
val
;
this
.
search
();
console
.
log
(
`每页
${
val
}
条`
);
console
.
log
(
`每页
${
val
}
条`
);
},
},
handleCurrentChange
(
val
)
{
handleCurrentChange
(
val
)
{
this
.
formInline
.
pageNo
=
val
;
this
.
search
();
console
.
log
(
`当前页:
${
val
}
`
);
console
.
log
(
`当前页:
${
val
}
`
);
}
}
}
}
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录