Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
national_museum_vod
Project
Project
Details
Activity
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
qzhxx
national_museum_vod
Commits
468c8d65
Commit
468c8d65
authored
Apr 27, 2021
by
qzhxx
Browse files
Options
Browse Files
Download
Plain Diff
审核更改
parents
0f7094d0
1ae71851
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
56 additions
and
12 deletions
+56
-12
uploadDatum.vue
src/page/content/components/uploadVue/uploadDatum.vue
+1
-1
uploadFile.vue
src/page/content/components/uploadVue/uploadFile.vue
+3
-3
add.vue
src/page/system/orgDialog/add.vue
+7
-4
edit.vue
src/page/system/orgDialog/edit.vue
+7
-3
organ.vue
src/page/system/organ.vue
+38
-1
机构导入模板.xlsx
static/file/机构导入模板.xlsx
+0
-0
No files found.
src/page/content/components/uploadVue/uploadDatum.vue
View file @
468c8d65
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<div>
<div>
<el-upload
<el-upload
ref=
"upload"
ref=
"upload"
accept=
".mp4,.flv,.mpeg,.mpg,.
word,.pdf,.ppt,.jpg,.jpeg,.png
.JPG,.JPEG,.PNG"
accept=
".mp4,.flv,.mpeg,.mpg,.
mov,.doc,.docx,.pdf,.ppt,.pptx,.jpg,.jpeg,.png,.bmp,
.JPG,.JPEG,.PNG"
:multiple=
"true"
:multiple=
"true"
:http-request=
"uploadFile"
:http-request=
"uploadFile"
:file-list=
"fileList"
:file-list=
"fileList"
...
...
src/page/content/components/uploadVue/uploadFile.vue
View file @
468c8d65
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<el-upload
<el-upload
ref=
"upload"
ref=
"upload"
accept=
".mp4,.flv,.mpeg,.mpg"
accept=
".mp4,.flv,.mpeg,.mpg
,.mov
"
:multiple=
"true"
:multiple=
"true"
:http-request=
"uploadFile"
:http-request=
"uploadFile"
:file-list=
"fileList"
:file-list=
"fileList"
...
@@ -45,7 +45,7 @@ export default {
...
@@ -45,7 +45,7 @@ export default {
spinner
:
'el-icon-loading'
,
spinner
:
'el-icon-loading'
,
background
:
'rgba(0, 0, 0, 0.7)'
background
:
'rgba(0, 0, 0, 0.7)'
});
});
},
},
submitUpload
()
{
// 导入
submitUpload
()
{
// 导入
// this.openFullScreen2()
// this.openFullScreen2()
...
@@ -76,7 +76,7 @@ export default {
...
@@ -76,7 +76,7 @@ export default {
loading
.
close
();
loading
.
close
();
// this.loading = false
// this.loading = false
if
(
resData
.
resultCode
==
"200"
)
{
if
(
resData
.
resultCode
==
"200"
)
{
_this
.
$message
.
success
(
'上传成功!'
)
_this
.
$message
.
success
(
'上传成功!'
)
const
data
=
resData
.
data
.
fileList
;
const
data
=
resData
.
data
.
fileList
;
let
newArray
=
data
.
map
((
item
)
=>
item
.
id
);
let
newArray
=
data
.
map
((
item
)
=>
item
.
id
);
...
...
src/page/system/orgDialog/add.vue
View file @
468c8d65
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
custom-class=
"party-dialog"
custom-class=
"party-dialog"
title=
"新建机构"
title=
"新建机构"
:visible
.
sync=
"dialogVisible"
:visible
.
sync=
"dialogVisible"
width=
"
468
px"
width=
"
550
px"
:before-close=
"handleClose"
:before-close=
"handleClose"
>
>
<div
class=
"dialog-content"
>
<div
class=
"dialog-content"
>
...
@@ -17,8 +17,11 @@
...
@@ -17,8 +17,11 @@
class=
"party-form"
class=
"party-form"
>
>
<el-form-item
label=
"父级节点:"
>
<el-form-item
label=
"父级节点:"
>
<el-input
v-model=
"form.parentName"
></el-input>
<el-input
v-model=
"form.parentName"
readonly
></el-input>
<el-button
@
click=
"handlefocus"
round
>
修改
</el-button>
<div
style=
"float:right"
>
<el-button
@
click=
"handlefocus"
round
>
修改
</el-button>
<el-button
@
click=
"form.parentName = ''"
round
>
重置
</el-button>
</div>
</el-form-item>
</el-form-item>
<el-form-item
label=
"机构名称:"
prop=
"name"
>
<el-form-item
label=
"机构名称:"
prop=
"name"
>
<el-input
<el-input
...
@@ -62,7 +65,7 @@
...
@@ -62,7 +65,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
getAreas
}
from
"@/config/area"
;
import
{
getAreas
}
from
"@/config/area"
;
import
orgTrees
from
'./orgTree'
import
orgTrees
from
"./orgTree"
;
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
...
...
src/page/system/orgDialog/edit.vue
View file @
468c8d65
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
custom-class=
"party-dialog"
custom-class=
"party-dialog"
title=
"编辑机构"
title=
"编辑机构"
:visible
.
sync=
"dialogVisible"
:visible
.
sync=
"dialogVisible"
width=
"
468
px"
width=
"
550
px"
:before-close=
"handleClose"
:before-close=
"handleClose"
>
>
<div
class=
"dialog-content"
>
<div
class=
"dialog-content"
>
...
@@ -17,8 +17,12 @@
...
@@ -17,8 +17,12 @@
class=
"party-form"
class=
"party-form"
>
>
<el-form-item
label=
"父级节点:"
>
<el-form-item
label=
"父级节点:"
>
<el-input
v-model=
"form.parentName"
></el-input>
<el-input
v-model=
"form.parentName"
readonly
></el-input>
<el-button
@
click=
"handlefocus"
round
>
修改
</el-button>
<div
style=
"float: right"
>
<el-button
@
click=
"handlefocus"
round
>
修改
</el-button>
<el-button
@
click=
"form.parentName = ''"
round
>
重置
</el-button>
</div>
<!--
<el-button
@
click=
"handlefocus"
round
>
修改
</el-button>
-->
</el-form-item>
</el-form-item>
<el-form-item
label=
"机构名称:"
prop=
"name"
>
<el-form-item
label=
"机构名称:"
prop=
"name"
>
<el-input
<el-input
...
...
src/page/system/organ.vue
View file @
468c8d65
...
@@ -5,7 +5,10 @@
...
@@ -5,7 +5,10 @@
<div
class=
"org-tree-box-header"
>
组织结构
</div>
<div
class=
"org-tree-box-header"
>
组织结构
</div>
<div
class=
"org-tree-box-content"
>
<div
class=
"org-tree-box-content"
>
<div
class=
"tree-search party-form"
>
<div
class=
"tree-search party-form"
>
<el-input
placeholder=
"请输入组织结构名称"
v-model=
"name"
>
<el-input
placeholder=
"请输入组织结构名称"
v-model=
"name"
>
<i
<i
slot=
"suffix"
slot=
"suffix"
class=
"el-input__icon el-icon-search"
class=
"el-input__icon el-icon-search"
...
@@ -28,6 +31,12 @@
...
@@ -28,6 +31,12 @@
<i
class=
"icon-import party-icon-20"
/>
<i
class=
"icon-import party-icon-20"
/>
</el-upload>
</el-upload>
</el-tooltip>
</el-tooltip>
<el-tooltip
content=
"下载导入模版"
placement=
"top"
>
<i
class=
"icon-down el-icon-download party-icon-20"
@
click=
"downLoad"
/>
</el-tooltip>
</div>
</div>
</div>
</div>
<div
class=
"tree-content"
>
<div
class=
"tree-content"
>
...
@@ -105,6 +114,7 @@
...
@@ -105,6 +114,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
orgAdd
,
orgEdit
}
from
"./orgDialog"
;
import
{
orgAdd
,
orgEdit
}
from
"./orgDialog"
;
import
axios
from
'axios'
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
...
@@ -197,6 +207,21 @@ export default {
...
@@ -197,6 +207,21 @@ export default {
handleEdit
()
{
handleEdit
()
{
this
.
$refs
.
orgEdit
.
dialogVisible
=
true
;
this
.
$refs
.
orgEdit
.
dialogVisible
=
true
;
},
},
downLoad
()
{
axios
.
get
(
"static/file/机构导入模板.xlsx"
,
{
responseType
:
"blob"
,
//重要
})
.
then
((
response
)
=>
{
const
url
=
window
.
URL
.
createObjectURL
(
new
Blob
([
response
.
data
]));
const
link
=
document
.
createElement
(
"a"
);
let
fname
=
"机构导入模板.xlsx"
;
link
.
href
=
url
;
link
.
setAttribute
(
"download"
,
fname
);
document
.
body
.
appendChild
(
link
);
link
.
click
();
});
},
// 删除
// 删除
handleDel
()
{
handleDel
()
{
let
_this
=
this
;
let
_this
=
this
;
...
@@ -293,6 +318,15 @@ export default {
...
@@ -293,6 +318,15 @@ export default {
<
style
lang=
"less"
scoped
>
<
style
lang=
"less"
scoped
>
.oran-wrapper {
.oran-wrapper {
display: flex;
display: flex;
.icon-down {
text-align: center;
font-size: 16px;
background-color: #ad9374;
color: #fff;
border-radius: 50%;
margin-left: 10px;
cursor: pointer;
}
.org-tree-container {
.org-tree-container {
width: 420px;
width: 420px;
padding-right: 20px;
padding-right: 20px;
...
@@ -325,6 +359,9 @@ export default {
...
@@ -325,6 +359,9 @@ export default {
.icon-import {
.icon-import {
margin-left: 10px;
margin-left: 10px;
}
}
.el-input{
width: 250px;
}
}
}
.org-tree-box-content {
.org-tree-box-content {
padding: 20px;
padding: 20px;
...
...
static/file/机构导入模板.xlsx
0 → 100644
View file @
468c8d65
File added
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