Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tea-resources-web
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张伯涛
tea-resources-web
Commits
07e43ca0
Commit
07e43ca0
authored
Mar 27, 2024
by
高宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
通用上传接口
parent
9d596a7e
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
150 additions
and
105 deletions
+150
-105
sysUnit.js
src/api/sysUnit.js
+25
-0
index.vue
src/views/contentManagement/centralCase/index.vue
+1
-1
index.vue
src/views/contentManagement/competitionSupport/index.vue
+1
-3
index.vue
src/views/contentManagement/developmentCourse/index.vue
+4
-4
index.vue
src/views/contentManagement/newsInformation/index.vue
+1
-1
index.vue
src/views/contentManagement/newsInformation/info/index.vue
+1
-1
index.vue
src/views/courseInformation/classManagement/index.vue
+100
-67
index.vue
src/views/courseInformation/unitManagement/index.vue
+17
-28
No files found.
src/api/sysUnit.js
View file @
07e43ca0
...
...
@@ -66,3 +66,28 @@ export function exportSysUnit(query) {
responseType
:
'blob'
})
}
// 7.查询所有用户信息
export
function
listUserAll
(
query
)
{
return
request
({
url
:
'/sysunit/querySysUsers'
,
method
:
'get'
,
params
:
query
})
}
// 8.查询所有单位信息
export
function
listUnitAll
(
query
)
{
return
request
({
url
:
'/sysunit/querySysUnits'
,
method
:
'get'
,
params
:
query
})
}
// 9.查询所有课程信息
export
function
listCourseAll
(
query
)
{
return
request
({
url
:
'/blesson/teaLess'
,
method
:
'get'
,
params
:
query
})
}
src/views/contentManagement/centralCase/index.vue
View file @
07e43ca0
...
...
@@ -247,7 +247,7 @@ export default {
_this
.
bussid
=
[]
res
.
rows
.
forEach
(
item
=>
{
item
.
srclist
=
[]
item
.
srclist
.
push
(
item
.
path
)
item
.
srclist
.
push
(
this
.
imagePath
+
item
.
path
)
})
_this
.
tableData
=
res
.
rows
_this
.
fullscreenLoading
=
false
...
...
src/views/contentManagement/competitionSupport/index.vue
View file @
07e43ca0
...
...
@@ -233,7 +233,7 @@ export default {
],
fileUpload
:
'/dev-api/common/fileUpload?file='
+
this
.
file
+
'&temp='
+
'competitionSupport'
,
// imagePath: 'http://49.232.167.247:20020/eduServer/',
imagePath
:
'http://
192.168.1.12:8888/edu
Server/'
,
imagePath
:
'http://
49.232.167.247:20020/tea
Server/'
,
imageUrl
:
''
,
// 日期范围
dateRange
:
[],
...
...
@@ -287,8 +287,6 @@ export default {
this
.
form
.
contestPicture
=
res
.
data
.
businessId
// this.imageUrl = this.imagePath + res.data.path
this
.
form
.
url
=
res
.
data
.
url
console
.
log
(
'this.form.contestPicture'
,
this
.
form
.
contestPicture
)
})
},
/** 查询列表 */
...
...
src/views/contentManagement/developmentCourse/index.vue
View file @
07e43ca0
...
...
@@ -92,8 +92,8 @@
<div
:id=
"step(scope.$index)"
>
<el-image
style=
"width:100%;height:100%;"
:src=
"scope.row.url"
:preview-src-list=
"[scope.row.url]"
:src=
"
imagePath+
scope.row.url"
:preview-src-list=
"[
imagePath+
scope.row.url]"
@
click=
"handleClickStop(scope.$index)"
@
mouseover=
"justEnter($event)"
@
mouseout=
"justOut($event)"
...
...
@@ -246,6 +246,7 @@ export default {
data
()
{
return
{
imageUrl
:
''
,
imagePath
:
'http://49.232.167.247:20020/teaServer/'
,
dialogImageUrl
:
''
,
dialogVisible
:
false
,
disabled
:
false
,
...
...
@@ -400,7 +401,6 @@ export default {
this
.
cmsDevelopmentList
=
response
.
rows
this
.
total
=
response
.
total
this
.
loading
=
false
this
.
imagUrl
=
this
.
cmsDevelopmentList
.
img
}
)
},
...
...
@@ -455,7 +455,7 @@ export default {
const
id
=
row
.
businessId
getCmsDevelopment
(
id
).
then
(
response
=>
{
this
.
form
=
response
.
data
this
.
imagUrl
=
response
.
data
.
url
form
.
url
=
this
.
imagePath
+
response
.
data
.
url
this
.
open
=
true
this
.
title
=
'修改发展历程'
})
...
...
src/views/contentManagement/newsInformation/index.vue
View file @
07e43ca0
...
...
@@ -318,7 +318,7 @@ export default {
_this
.
bussid
=
[]
res
.
rows
.
forEach
(
item
=>
{
item
.
srclist
=
[]
item
.
srclist
.
push
(
item
.
pictureId
)
item
.
srclist
.
push
(
this
.
imagePath
+
item
.
pictureId
)
})
_this
.
tableData
=
res
.
rows
_this
.
fullscreenLoading
=
false
...
...
src/views/contentManagement/newsInformation/info/index.vue
View file @
07e43ca0
...
...
@@ -231,7 +231,7 @@ export default {
formData
.
append
(
'temp'
,
'newInformation'
)
uploadPublic
(
formData
).
then
(
res
=>
{
this
.
form
.
pictureId
=
res
.
data
.
businessId
this
.
imageUrl
=
res
.
data
.
path
this
.
imageUrl
=
res
.
data
.
url
})
},
handleImageAdded
:
function
(
file
,
Editor
,
cursorLocation
,
reseter
)
{
...
...
src/views/courseInformation/classManagement/index.vue
View file @
07e43ca0
...
...
@@ -52,8 +52,8 @@
</el-form-item>
<el-form-item
label=
"结束日期"
prop=
"endTime"
>
<el-date-picker
value-format=
"yyyy-MM-dd"
v-model=
"queryParams.endDate"
value-format=
"yyyy-MM-dd"
size=
"small"
type=
"date"
placeholder=
"结束日期"
...
...
@@ -107,7 +107,7 @@
</el-table-column>
<el-table-column
label=
"适用岗位"
prop=
"roleSort"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"scope"
>
<span>
后端开发
</span>
<span>
后端开发
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"技术方向"
prop=
"value"
:show-overflow-tooltip=
"true"
>
...
...
@@ -155,7 +155,7 @@
@
pagination=
"getList"
/>
<!-- 添加或修改角色配置对话框 -->
<el-dialog
:title=
"title"
:visible
.
sync=
"open"
width=
"1100px"
append-to-body
>
<el-dialog
:title=
"title"
:visible
.
sync=
"open"
width=
"1100px"
:close-on-click-modal=
"false"
append-to-body
@
close=
"handleClose"
>
<el-form
ref=
"form"
:model=
"form"
size=
"small"
label-width=
"auto"
>
<!-- <div-->
<!-- v-for="(item, index) in form.settingList"-->
...
...
@@ -169,14 +169,17 @@
prop=
"unit"
>
<el-select
v-model=
"addForm.unit"
style=
"width: 120px"
v-model=
"addForm.unitId"
:disabled=
"unitDisplay"
filterable
style=
"width: 140px"
@
change=
"handleUnitChange"
>
<el-option
v-for=
"
items
in unitOptions"
:key=
"i
tems.value
"
:label=
"items.
label
"
:value=
"items.
value
"
v-for=
"
(items,index)
in unitOptions"
:key=
"i
ndex
"
:label=
"items.
unitName
"
:value=
"items.
businessId
"
/>
</el-select>
</el-form-item>
...
...
@@ -187,14 +190,16 @@
prop=
"class"
>
<el-select
v-model=
"addForm.class"
v-model=
"addForm.lessonId"
filterable
style=
"width: 140px"
@
change=
"handleLessonChange"
>
<el-option
v-for=
"
items
in classOptions"
:key=
"i
tems.value
"
:label=
"items.l
abel
"
:value=
"items.
value
"
v-for=
"
(items,index)
in classOptions"
:key=
"i
ndex
"
:label=
"items.l
essonName
"
:value=
"items.
businessId
"
/>
</el-select>
</el-form-item>
...
...
@@ -206,7 +211,7 @@
>
<span>
<el-date-picker
v-model=
"addForm.
createTim
e"
v-model=
"addForm.
beginDat
e"
style=
"width: 140px"
type=
"date"
placeholder=
"-"
...
...
@@ -224,7 +229,7 @@
>
<span>
<el-date-picker
v-model=
"addForm.end
Tim
e"
v-model=
"addForm.end
Dat
e"
style=
"width: 120px"
type=
"date"
placeholder=
"-"
...
...
@@ -240,7 +245,8 @@
<!-- </div>-->
</el-form>
<div
style=
"padding: 20px;text-align: center"
>
<el-button
class=
"fourWordsBtn"
icon=
"el-icon-plus"
size=
"mini"
@
click=
"handleAddShift"
>
新增
</el-button>
<el-button
class=
"fourWordsBtn"
type=
"primary"
icon=
"el-icon-plus"
size=
"mini"
@
click=
"handleAddShift"
>
新增
</el-button>
<el-button
class=
"fourWordsBtn"
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"handleClear"
>
重置
</el-button>
</div>
<el-table
class=
"DBXXClass"
border
:data=
"form.settingList"
>
<el-table-column
...
...
@@ -290,21 +296,19 @@
</template>
<
script
>
import
{
listRole
,
getRole
,
delRole
,
addRole
,
updateRole
,
exportRole
,
dataScope
,
changeRoleStatus
}
from
'@/api/system/role'
import
{
roleMenuTreeSelectMC
,
treeSelect
as
menuTreeSelect
,
roleMenuTreeSelect
}
from
'@/api/system/menu'
import
Coolbutton
from
'@/components/coolbutton'
import
{
delRole
}
from
'@/api/system/role'
import
{
getDataCache
,
setDataCache
}
from
'@/assets/js/filterData'
import
commonField
from
'@/utils/commonField'
import
{
queryDirectionsList
}
from
'@/api/courseManagement/indexApi'
import
{
listClass
}
from
'@/api/classManagement'
import
{
listCourseAll
,
listUnitAll
}
from
'@/api/sysUnit'
export
default
{
name
:
'Role'
,
components
:
{
Coolbutton
},
data
()
{
return
{
// 修改页面默认打开的树壮菜单
updateMenu
:
[],
unitDisplay
:
false
,
hasDelPerm
:
[
'sys:role:delete'
],
hasResetPerm
:
[
'sys:role:resetPwd'
],
hasUpdatePerm
:
[
'sys:role:update'
],
...
...
@@ -322,21 +326,8 @@ export default {
total
:
6
,
// 角色表格数据
dateList
:
[],
unitOptions
:
[
{
value
:
'融创软通'
,
label
:
'融创软通'
},
{
value
:
'华软创新'
,
label
:
'华软创新'
},
{
value
:
'天津工业大学'
,
label
:
'天津工业大学'
},
{
value
:
'天津师范大学'
,
label
:
'天津师范大学'
},
{
value
:
'天津大学'
,
label
:
'天津大学'
}
],
classOptions
:
[
{
value
:
'软件项目管理'
,
label
:
'软件项目管理'
},
{
value
:
'计算机网络'
,
label
:
'计算机网络'
},
{
value
:
'小程序'
,
label
:
'小程序'
},
{
value
:
'Web开发技术'
,
label
:
'Web开发技术'
},
{
value
:
'计算机网络'
,
label
:
'计算机网络'
},
{
value
:
'PHP'
,
label
:
'PHP'
}
],
unitOptions
:
[],
classOptions
:
[],
// 弹出层标题
title
:
''
,
// 是否显示弹出层
...
...
@@ -403,39 +394,16 @@ export default {
},
courseDirection
:
[],
addForm
:
{
unit
:
''
,
class
:
''
,
createTime
:
''
,
endTime
:
''
unitId
:
''
,
unitName
:
''
,
lessonId
:
''
,
lessonName
:
''
,
beginDate
:
null
,
endDate
:
null
},
// 表单参数
form
:
{
settingList
:
[
{
unit
:
'融创软通'
,
class
:
'JAVA'
,
createTime
:
'2023-11-02'
,
endTime
:
'2024-03-12'
},
{
unit
:
'融创软通'
,
class
:
'WEB'
,
createTime
:
'2024-01-02'
,
endTime
:
'2024-02-12'
},
{
unit
:
'融创软通'
,
class
:
'计算机技术'
,
createTime
:
'2023-10-22'
,
endTime
:
'2024-01-12'
},
{
unit
:
'融创软通'
,
class
:
'PHP'
,
createTime
:
'2023-07-22'
,
endTime
:
'2024-01-16'
}
]
settingList
:
[]
},
defaultProps
:
{
children
:
'children'
,
...
...
@@ -456,11 +424,74 @@ export default {
next
()
},
created
()
{
this
.
getUnitOptions
()
this
.
getClassOptions
()
this
.
queryParams
=
JSON
.
parse
(
getDataCache
(
this
.
$route
.
path
))
// 获取存储的筛选项
this
.
getList
()
// 列表查询
this
.
getCourseDirection
()
},
methods
:
{
/** 1.获取全部单位**/
getUnitOptions
()
{
const
obj
=
{
flag
:
'1'
}
listUnitAll
(
obj
).
then
(
res
=>
{
this
.
unitOptions
=
res
.
data
})
},
/** 2.获取全部课程 **/
getClassOptions
()
{
const
obj
=
{
flag
:
'1'
}
listCourseAll
(
obj
).
then
(
res
=>
{
this
.
classOptions
=
res
.
data
})
},
/** 3.当用户选中单位时将单位选择框禁用**/
handleUnitChange
(
value
)
{
if
(
value
&&
value
!==
''
&&
value
!==
undefined
)
{
this
.
unitDisplay
=
true
/**
* 根据value值查询该单位所开的课程
**/
}
else
{
this
.
unitDisplay
=
false
this
.
form
.
settingList
=
[]
}
},
/** 4.清空时将单位回复正常**/
handleClear
()
{
this
.
unitDisplay
=
false
},
/** 5.关闭时请表单想和列表数据清空**/
handleClose
()
{
},
/** 6.重置方法**/
resetAddFrom
()
{
this
.
addForm
=
{
unitId
:
''
,
unitName
:
''
,
lessonId
:
''
,
lessonName
:
''
,
beginDate
:
null
,
endDate
:
null
}
this
.
form
.
settingList
=
[]
},
/** 7.当课程有值是将课程label查询*/
handleLessonChange
(
value
)
{
if
(
value
&&
value
!==
''
&&
value
!==
undefined
)
{
if
(
this
.
classOptions
.
find
(
item
=>
item
.
businessId
===
value
))
{
this
.
addForm
.
lessonName
=
this
.
classOptions
.
find
(
item
=>
item
.
businessId
===
value
).
lessonName
}
else
{
this
.
addForm
.
lessonName
=
null
}
}
},
handleAddShift
()
{
const
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
addForm
))
this
.
form
.
settingList
.
push
(
params
)
...
...
@@ -468,6 +499,7 @@ export default {
handleDel
(
item
,
index
)
{
this
.
form
.
settingList
.
splice
(
index
,
1
)
},
// 获取课程方向
getCourseDirection
()
{
const
that
=
this
...
...
@@ -540,6 +572,7 @@ export default {
handleAdd
()
{
this
.
reset
()
this
.
open
=
true
this
.
unitDisplay
=
false
this
.
title
=
'开课新增'
},
/** 修改按钮操作 */
...
...
src/views/courseInformation/unitManagement/index.vue
View file @
07e43ca0
...
...
@@ -22,16 +22,6 @@
style=
"width: 200px"
/>
</el-form-item>
<el-form-item
prop=
"unitNumber"
label=
"管理员账号"
>
<el-input
v-model=
"queryParams.unitNumber"
placeholder=
"管理员账号"
clearable
:maxlength=
"255"
size=
"small"
style=
"width: 200px"
/>
</el-form-item>
<el-form-item>
<el-button
:class=
"commonField.queryClass"
...
...
@@ -74,12 +64,12 @@
{{
scope
.
row
.
unitName
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"
管理员账号
"
prop=
"unitNumber"
:show-overflow-tooltip=
"true"
>
<el-table-column
label=
"
单位管理员"
width=
"150
"
prop=
"unitNumber"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
unitNumber
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"出口ip"
prop=
"exitId"
:show-overflow-tooltip=
"true"
>
<el-table-column
label=
"出口ip"
width=
"200"
prop=
"exitId"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
exitId
||
'-'
}}
</
template
>
...
...
@@ -94,7 +84,7 @@
<span>
{{
scope
.
row
.
createDate
}}
</span>
</
template
>
</el-table-column>
<el-table-column
width=
"
12
0"
label=
"状态"
prop=
"flag"
>
<el-table-column
width=
"
7
0"
label=
"状态"
prop=
"flag"
>
<
template
slot-scope=
"scope"
>
<el-switch
v-model=
"scope.row.flag"
...
...
@@ -105,7 +95,7 @@
/>
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
class-name=
"small-padding fixed-width"
width=
"1
5
0px"
>
<el-table-column
label=
"操作"
class-name=
"small-padding fixed-width"
width=
"1
0
0px"
>
<
template
slot-scope=
"scope"
>
<el-button
:class=
"commonField.updateClass"
...
...
@@ -146,8 +136,8 @@
<el-form-item
label=
"单位名称"
prop=
"unitName"
>
<el-input
v-model
.
trim=
"form.unitName"
:maxlength=
"30"
placeholder=
"请输入单位名称"
/>
</el-form-item>
<el-form-item
label=
"
管理员账号
"
prop=
"unitNumber"
>
<el-select
v-model=
"form.unitNumber"
style=
"width: 100%"
clearable
placeholder=
"请选择管理员账号"
>
<el-form-item
label=
"
单位管理员
"
prop=
"unitNumber"
>
<el-select
v-model=
"form.unitNumber"
filterable
style=
"width: 100%"
clearable
placeholder=
"请选择管理员账号"
>
<el-option
v-for=
"(item,index) in userList"
:key=
"index"
...
...
@@ -157,7 +147,7 @@
</el-select>
</el-form-item>
<el-form-item
label=
"出口Ip"
prop=
"exitId"
>
<el-input
v-model
.
trim=
"form.exitId"
:maxlength=
"255"
placeholder=
"请输入出口i
d
"
/>
<el-input
v-model
.
trim=
"form.exitId"
:maxlength=
"255"
placeholder=
"请输入出口i
p
"
/>
</el-form-item>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
...
...
@@ -175,7 +165,8 @@ import {
delSysUnit
,
addSysUnit
,
updateSysUnit
,
exportSysUnit
}
from
'@/api/sysUnit'
exportSysUnit
,
listUserAll
}
from
'@/api/sysUnit'
import
commonField
from
'@/utils/commonField'
import
{
listUser
}
from
'@/api/system/user'
export
default
{
...
...
@@ -237,9 +228,13 @@ export default {
flag
:
''
},
// 表单参数
form
:
{},
form
:
{
unitType
:
'1'
},
// 表单校验
rules
:
{
unitType
:
[{
required
:
true
,
message
:
'请选择单位类型'
,
trigger
:
'blur'
}],
unitName
:
[{
required
:
true
,
message
:
'请输入单位名称'
,
trigger
:
'blur'
}]
}
}
},
...
...
@@ -254,8 +249,8 @@ export default {
},
methods
:
{
getUserList
()
{
listUser
().
then
(
res
=>
{
this
.
userList
=
res
.
rows
listUser
All
().
then
(
res
=>
{
this
.
userList
=
res
.
data
})
},
/** 根据value查label**/
...
...
@@ -293,7 +288,7 @@ export default {
createdDate
:
undefined
,
updatedBy
:
undefined
,
updatedDate
:
undefined
,
unitType
:
undefined
,
unitType
:
'1'
,
unitName
:
undefined
,
unitNumber
:
undefined
,
exitId
:
undefined
,
...
...
@@ -430,12 +425,6 @@ export default {
background-color
:
#F4F4F4
;
margin-bottom
:
10px
}
::v-deep
.el-table
th
.cell
{
justify-content
:
center
!
important
;
}
::v-deep
.el-table
td
.cell
{
text-align
:
center
!
important
;
}
}
</
style
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment