Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
founder_vue
Overview
Overview
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
常超
founder_vue
Commits
4b212da1
Commit
4b212da1
authored
Sep 13, 2021
by
刘玉帅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xq
parent
aed63c00
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
182 additions
and
77 deletions
+182
-77
src/views/Home.vue
+5
-2
src/views/rwgl/rwbd.vue
+31
-22
src/views/rwgl/rwglindex.vue
+85
-31
src/views/rwgl/rympfk.vue
+0
-0
src/views/rwgl/rymplb.vue
+23
-11
src/views/rwgl/rythfk.vue
+10
-2
src/views/tjbb/tb.vue
+28
-9
No files found.
src/views/Home.vue
View file @
4b212da1
<!--
* @Author: your name
* @Date: 2021-08-27 14:14:36
* @LastEditTime: 2021-09-
01 18:59:34
* @LastEditTime: 2021-09-
13 17:31:38
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \founder_vue\src\views\Home.vue
...
...
@@ -141,7 +141,7 @@
</div>
</div>
<!-- 路由加载 -->
<keep-alive>
<keep-alive
:include=
"routes"
>
<router-view
v-if=
"$route.meta.keepAlive"
></router-view>
</keep-alive>
<router-view
v-if=
"!$route.meta.keepAlive"
></router-view>
...
...
@@ -196,10 +196,13 @@ export default {
* @return {*}
*/
closePaths
(
pathName
)
{
console
.
log
(
this
.
paths
);
debugger
;
let
res
=
this
.
paths
.
filter
(
item
=>
{
return
item
.
name
!=
pathName
})
this
.
paths
=
res
console
.
log
(
pathName
==
this
.
$route
.
meta
.
title
);
if
(
pathName
==
this
.
$route
.
meta
.
title
)
{
this
.
$router
.
push
(
'/Home/rwgl/rwglindex'
)
...
...
src/views/rwgl/rwbd.vue
View file @
4b212da1
<!--
* @Author: your name
* @Date: 2021-08-28 21:28:08
* @LastEditTime: 2021-09-
09 15:28:29
* @LastEditTime: 2021-09-
13 16:23:04
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \founder_vue\src\views\rwgl\rwglindex.vue
...
...
@@ -51,7 +51,7 @@
:on-success=
"handSuccess"
:before-upload=
"beforeUpload"
ref=
"upload"
:data
=
'upLoadText'
:data
=
"upLoadText"
>
<!--
<div
slot=
"tip"
class=
"el-upload__tip"
>
只能上传jpg/png文件,且不超过500kb
...
...
@@ -100,7 +100,7 @@
ref=
"itsmDataTable"
:data=
"tableData"
tooltip-effect=
"dark"
max-height=
"
4
00"
max-height=
"
3
00"
width=
"100%"
size=
"small"
@
selection-change=
"handleSelectionChange"
...
...
@@ -213,7 +213,7 @@ export default {
},
data
()
{
return
{
upLoadText
:{},
//文件上传携带的参数
upLoadText
:
{},
//文件上传携带的参数
FBformDiolog
:
{
rwmc
:
""
},
FBdialogFormVisible
:
false
,
fileList
:
[],
...
...
@@ -402,16 +402,16 @@ export default {
* @description: 选择文件的时候进行判断勾选的内容只能是一个
* @param {*}
* @return {*}
*/
*/
upLoadFile
()
{
console
.
log
(
this
.
selectRow
);
if
(
this
.
selectRow
.
length
==
1
)
{
this
.
toSelectFile
()
}
else
{
if
(
this
.
selectRow
.
length
==
1
)
{
this
.
toSelectFile
()
;
}
else
{
//若选择大于0
this
.
$message
({
message
:
'仅可选择一条数据'
,
type
:
'warning'
message
:
"仅可选择一条数据"
,
type
:
"warning"
,
});
}
},
...
...
@@ -419,12 +419,12 @@ export default {
* @description: 触发弹框
* @param {*}
* @return {*}
*/
toSelectFile
(){
this
.
upLoadText
=
{
rwmcid
:
'00000000'
}
this
.
$refs
[
'upload'
].
$refs
[
'upload-inner'
].
handleClick
()
*/
toSelectFile
()
{
this
.
upLoadText
=
{
rwmcid
:
this
.
selectRow
[
0
].
rwid
,
}
;
this
.
$refs
[
"upload"
].
$refs
[
"upload-inner"
].
handleClick
();
},
/**
* @description: 发布的确定按钮
...
...
@@ -461,6 +461,13 @@ export default {
*/
handSuccess
(
response
,
file
,
fileList
)
{
console
.
log
(
response
,
file
,
fileList
);
if
(
response
.
code
==
"200"
)
{
this
.
$message
({
message
:
"文件上传成功"
,
type
:
"success"
,
});
this
.
handSizePageSearch
();
}
},
/**
* @description: 文件列表移除文件时的钩子
...
...
@@ -600,7 +607,7 @@ export default {
onSubmit
(
type
)
{
console
.
log
(
type
);
if
(
type
==
"mbxz"
)
{
debugger
debugger
;
var
url
=
"http://39.99.155.173:8022/rymp/exportTemplate"
;
window
.
open
(
url
);
// get("/xqapi/selectRwForName")
...
...
@@ -734,9 +741,9 @@ export default {
vertical-align
:
top
;
}
}
.el-form-item__content
{
line-height
:
0px
;
}
.el-form-item__content
{
line-height
:
0px
;
}
.el-form-item
{
margin
:
0
;
}
...
...
@@ -798,8 +805,10 @@ export default {
}
}
.pagin
{
position
:
fixed
;
bottom
:
40px
;
//
position
:
fixed
;
//
bottom
:
40px
;
position
:
absolute
;
top
:
calc
(
100vh
-
180px
);
background
:
#fff
;
display
:
flex
;
justify-content
:
space-between
;
...
...
src/views/rwgl/rwglindex.vue
View file @
4b212da1
<!--
* @Author: your name
* @Date: 2021-08-28 21:28:08
* @LastEditTime: 2021-09-1
0 18:25:03
* @LastEditTime: 2021-09-1
3 16:22:29
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \founder_vue\src\views\rwgl\rwglindex.vue
...
...
@@ -35,22 +35,26 @@
>
模板下载
</el-button
>
<div
class=
"dr"
>
<el-button
size=
"mini"
plain
class=
"uploaddr"
@
click=
"upLoadFile"
>
导入
</el-button
>
<!--
<el-button
@
click=
"onSubmit('dr')"
size=
"mini"
>
导入
</el-button>
-->
<el-upload
class=
"upload-demo"
action=
"
http://39.99.155.173:8022
/importRymp"
action=
"
/xqapi/rymp
/importRymp"
:on-preview=
"handlePreview"
:on-remove=
"handleRemove"
multiple
:limit=
"3"
:on-exceed=
"handleExceed"
:file-list=
"fileList"
:show-file-list=
"true"
:on-success=
"handSuccess"
:before-upload=
"beforeUpload"
:before-upload=
"beforeUpload"
ref=
"upload"
:data=
"upLoadText"
>
<
el-button
size=
"mini"
plain
>
导入
</el-button
>
<
!--
<el-button
size=
"mini"
plain
>
导入
</el-button>
--
>
<!--
<div
slot=
"tip"
class=
"el-upload__tip"
>
只能上传jpg/png文件,且不超过500kb
</div>
-->
...
...
@@ -101,7 +105,7 @@
ref=
"itsmDataTable"
:data=
"tableData"
tooltip-effect=
"dark"
max-height=
"
4
00"
max-height=
"
3
00"
width=
"100%"
size=
"small"
@
selection-change=
"handleSelectionChange"
...
...
@@ -251,6 +255,7 @@ export default {
},
data
()
{
return
{
upLoadText
:
{},
//文件上传携带的参数
fileList
:
[],
input3
:
""
,
//输入框输入的值
BJformDiolog
:
{
...
...
@@ -398,21 +403,50 @@ export default {
selectPage
:
{
limit
:
"10"
,
page
:
"1"
,
rwmc
:
''
,
rwmc
:
""
,
},
searchImg
:
require
(
"../../assets/img/sea.png"
),
//垃圾桶图标
};
},
methods
:
{
/**
* @description: 选择文件的时候进行判断勾选的内容只能是一个
* @param {*}
* @return {*}
*/
upLoadFile
()
{
console
.
log
(
this
.
selectRow
);
if
(
this
.
selectRow
.
length
==
1
)
{
this
.
toSelectFile
();
}
else
{
//若选择大于0
this
.
$message
({
message
:
"仅可选择一条数据"
,
type
:
"warning"
,
});
}
},
/**
* @description: 触发弹框
* @param {*}
* @return {*}
*/
toSelectFile
()
{
console
.
log
(
this
.
selectRow
[
0
].
rwid
);
this
.
upLoadText
=
{
rwmcid
:
this
.
selectRow
[
0
].
rwid
,
};
this
.
$refs
[
"upload"
].
$refs
[
"upload-inner"
].
handleClick
();
},
/**
* @description: 判断文件上传格式
* @param {*}
* @return {*}
*/
*/
beforeUpload
(
file
)
{
var
testmsg
=
file
.
name
.
substring
(
file
.
name
.
lastIndexOf
(
"."
)
+
1
);
var
testmsg
=
file
.
name
.
substring
(
file
.
name
.
lastIndexOf
(
"."
)
+
1
);
const
extension
=
testmsg
===
"xlsx"
;
if
(
!
extension
)
{
if
(
!
extension
)
{
this
.
$message
({
message
:
"上传文件只能是.xlsx格式!"
,
type
:
"warning"
,
...
...
@@ -429,6 +463,13 @@ export default {
*/
handSuccess
(
response
,
file
,
fileList
)
{
console
.
log
(
response
,
file
,
fileList
);
if
(
response
.
code
==
"200"
)
{
this
.
$message
({
message
:
"文件上传成功"
,
type
:
"success"
,
});
this
.
handSizePageSearch
();
}
},
/**
* @description: 文件列表移除文件时的钩子
...
...
@@ -473,7 +514,13 @@ export default {
*/
clickHover
(
row
,
column
,
cell
,
event
)
{
// console.log(column);
if
(
column
.
label
==
"未匹配"
||
column
.
label
==
"退回"
||
column
.
label
==
"已匹配"
||
column
.
label
==
"已反馈"
||
column
.
label
==
"未反馈"
)
{
if
(
column
.
label
==
"未匹配"
||
column
.
label
==
"退回"
||
column
.
label
==
"已匹配"
||
column
.
label
==
"已反馈"
||
column
.
label
==
"未反馈"
)
{
// cell.className = 'tdHover'
cell
.
classList
.
add
(
"tdHover"
);
console
.
log
(
cell
);
...
...
@@ -490,17 +537,17 @@ export default {
clickrow
(
row
,
column
,
cell
,
event
)
{
if
(
column
.
label
==
"未匹配"
)
{
console
.
log
(
row
);
this
.
$router
.
push
(
'/Home/rwgl/rymplb/'
+
row
.
rwid
+
'/wpp'
)
this
.
$router
.
push
(
"/Home/rwgl/rymplb/"
+
row
.
rwid
+
"/wpp"
);
// this.$router.push({ name: "rymplb", params: { wppList: row } });
}
else
if
(
column
.
label
==
"退回"
)
{
this
.
$router
.
push
(
'/Home/rwgl/rymplb/'
+
row
.
rwid
+
'/th'
)
this
.
$router
.
push
(
"/Home/rwgl/rymplb/"
+
row
.
rwid
+
"/th"
);
// this.$router.push({ name: "rymplb", params: { thList: row} });
}
else
if
(
column
.
label
==
"已匹配"
)
{
this
.
$router
.
push
(
'/Home/rwgl/rymplb/'
+
row
.
rwid
+
'/ypp'
)
}
else
if
(
column
.
label
==
"已反馈"
)
{
this
.
$router
.
push
(
'/Home/rwgl/rymplb/'
+
row
.
rwid
+
'/yfk'
)
}
else
if
(
column
.
label
==
"未反馈"
)
{
this
.
$router
.
push
(
'/Home/rwgl/rymplb/'
+
row
.
rwid
+
'/wfk'
)
}
else
if
(
column
.
label
==
"已匹配"
)
{
this
.
$router
.
push
(
"/Home/rwgl/rymplb/"
+
row
.
rwid
+
"/ypp"
);
}
else
if
(
column
.
label
==
"已反馈"
)
{
this
.
$router
.
push
(
"/Home/rwgl/rymplb/"
+
row
.
rwid
+
"/yfk"
);
}
else
if
(
column
.
label
==
"未反馈"
)
{
this
.
$router
.
push
(
"/Home/rwgl/rymplb/"
+
row
.
rwid
+
"/wfk"
);
}
},
/**
...
...
@@ -576,7 +623,7 @@ export default {
console
.
log
(
"分页返回的数据"
,
res
);
self
.
tableData
=
res
.
data
.
mpRwList
;
self
.
tableDataLength
=
res
.
data
.
mrRwSize
;
self
.
tableLoading
=
false
;
}
});
...
...
@@ -646,7 +693,7 @@ export default {
onSubmit
(
type
)
{
console
.
log
(
type
);
if
(
type
==
"mbxz"
)
{
var
url
=
"http://39.99.155.173:8022/exportTemplate"
;
var
url
=
"http://39.99.155.173:8022/
rymp/
exportTemplate"
;
window
.
open
(
url
);
// get("/xqapi/selectRwForName")
}
else
if
(
type
==
"dr"
)
{
...
...
@@ -818,6 +865,9 @@ export default {
padding
:
9px
23px
;
margin-left
:
24px
;
}
.upload-demo
{
line-height
:
0px
;
}
}
.el-form-item
{
margin
:
0
;
...
...
@@ -881,8 +931,11 @@ export default {
}
}
.pagin
{
position
:
fixed
;
bottom
:
40px
;
position
:
absolute
;
top
:
calc
(
100vh
-
180px
);
//
bottom
:
40px
;
margin-top
:
10px
;
margin-bottom
:
10px
;
background
:
#fff
;
display
:
flex
;
justify-content
:
space-between
;
...
...
@@ -894,14 +947,14 @@ export default {
.record
{
margin-left
:
24px
;
}
.el-pagination
{
text-align
:
right
;
display
:
flex
;
justify-content
:
flex-end
;
}
.el-pagination__sizes
{
order
:
1
;
}
.el-pagination
{
text-align
:
right
;
display
:
flex
;
justify-content
:
flex-end
;
}
.el-pagination__sizes
{
order
:
1
;
}
}
}
</
style
>
\ No newline at end of file
src/views/rwgl/rympfk.vue
View file @
4b212da1
This diff is collapsed.
Click to expand it.
src/views/rwgl/rymplb.vue
View file @
4b212da1
<!--
* @Author: your name
* @Date: 2021-08-27 15:52:57
* @LastEditTime: 2021-09-1
0 18:20:26
* @LastEditTime: 2021-09-1
3 16:10:29
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \founder_vue\src\views\rymp.vue
...
...
@@ -145,12 +145,14 @@
</Table> -->
<!-- 详情 和 退回的diolog弹框 -->
<div
class=
"rymplbDialog"
>
<el-dialog
title=
"详情"
:visible
.
sync=
"rymplbdialogVisible"
width=
"30%"
>
<div>
姓名:{{ xqinfo.XM }}
</div>
<div>
身份证号:{{ xqinfo.SFZH }}
</div>
<div>
地址:{{ xqinfo.DM }}
</div>
<div>
出发地:{{ xqinfo.CFD }}
</div>
<div>
数据导入时间 :{{ xqinfo.SJDRSJ }}
</div>
<el-dialog
title=
"详情信息"
:visible
.
sync=
"rymplbdialogVisible"
width=
"30%"
>
<div
class=
"xqdiolog"
>
<div>
姓名:
<el-tag
type=
"success"
>
{{ xqinfo.xm }}
</el-tag></div>
<div>
身份证号:
<el-tag
type=
"success"
v-if=
"xqinfo.sfzh"
>
{{ xqinfo.sfzh }}
</el-tag></div>
<div>
归属地:
<el-tag
type=
"success"
v-if=
"xqinfo.gsd"
>
{{ xqinfo.gsd }}
</el-tag></div>
<div>
手机号:
<el-tag
type=
"success"
v-if=
"xqinfo.sjh"
>
{{ xqinfo.sjh }}
</el-tag></div>
<div>
反馈状态 :
<el-tag
type=
"success"
v-if=
"xqinfo.fkzt"
>
{{ xqinfo.fkzt }}
</el-tag></div>
</div>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"rymplbdialogVisible = false"
>
取 消
</el-button>
...
...
@@ -440,7 +442,7 @@ export default {
ppzt
:
"1"
,
};
this
.
getList
(
thformList
);
}
else
if
(
this
.
$route
.
params
.
type
==
"yfk"
)
{
}
else
if
(
this
.
$route
.
params
.
type
==
"yfk"
)
{
let
formList
=
{
rwid
:
this
.
$route
.
params
.
id
,
page
:
1
,
...
...
@@ -448,7 +450,7 @@ export default {
fkzt
:
"1"
,
};
this
.
getList
(
formList
);
}
else
if
(
this
.
$route
.
params
.
type
==
"wfk"
)
{
}
else
if
(
this
.
$route
.
params
.
type
==
"wfk"
)
{
let
formList
=
{
rwid
:
this
.
$route
.
params
.
id
,
page
:
1
,
...
...
@@ -472,6 +474,14 @@ export default {
.col
{
width
:
30%
;
}
.xqdiolog
{
display
:
flex
;
flex-wrap
:
wrap
;
div{
width
:
33.3%
;
margin-bottom
:
20px
;
}
}
}
//
.el-button--primary
{
//
background
:
#055fe7
;
...
...
@@ -550,8 +560,10 @@ export default {
}
}
.pagin
{
position
:
fixed
;
bottom
:
40px
;
//
position
:
fixed
;
//
bottom
:
40px
;
margin-top
:
10px
;
margin-bottom
:
10px
;
background
:
#fff
;
display
:
flex
;
justify-content
:
space-between
;
...
...
src/views/rwgl/rythfk.vue
View file @
4b212da1
<!--
* @Author: your name
* @Date: 2021-09-13 17:46:31
* @LastEditTime: 2021-09-13 17:46:32
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \西青项目\founder_vue\src\views\rwgl\rythfk.vue
-->
<!--
* @Author: your name
* @Date: 2021-09-01 09:45:29
* @LastEditTime: 2021-09-
02 17:38:56
* @LastEditTime: 2021-09-
13 17:42:14
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \founder_vue\src\views\rwgl\rympfk.vue
...
...
@@ -240,7 +248,7 @@ export default {
}
}
.col
{
margin-right
:
7.472%
;
margin-right
:
10
;
}
.ryfk
{
position
:
relative
;
...
...
src/views/tjbb/tb.vue
View file @
4b212da1
<!--
* @Author: your name
* @Date: 2021-08-31 15:24:48
* @LastEditTime: 2021-09-
03 15:22:05
* @LastEditTime: 2021-09-
13 18:41:28
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \founder_vue\src\views\tjbb\tb.vue
...
...
@@ -33,20 +33,37 @@
<
script
>
import
*
as
echarts
from
'echarts'
;
import
{
get
,
postJson
,
post
}
from
"@/utils/http.js"
;
export
default
{
data
()
{
return
{
radio
:
1
radio
:
1
,
rympfkl
:[],
}
},
mounted
()
{
this
.
searchrympfkl
()
this
.
initEcharts
();
this
.
initPieFirst
(
)
// this.initPieFirst(this.rympfkl
)
this
.
initPieSecond
()
this
.
initPieThird
()
this
.
initPieFourth
()
},
methods
:
{
searchrympfkl
(){
post
(
"/xqapi/rymptj/selectRympfkl"
).
then
(
res
=>
{
console
.
log
(
res
);
if
(
res
.
code
==
'200'
){
res
.
data
.
rows
.
map
(
item
=>
{
this
.
rympfkl
.
push
({
value
:
item
.
count
,
name
:
item
.
name
})
})
this
.
initPieFirst
(
this
.
rympfkl
)
console
.
log
(
this
.
rympfkl
);
// res.data.rows.
}
})
},
/**
* @description: 初始化柱状图
* @param {*}
...
...
@@ -136,11 +153,12 @@ export default {
* @param {*}
* @return {*}
*/
initPieFirst
()
{
initPieFirst
(
data
)
{
console
.
log
(
data
);
var
firstchartDom
=
document
.
getElementById
(
'rympfkl'
);
var
firstmyChart
=
echarts
.
init
(
firstchartDom
);
var
firstoption
;
let
self
=
this
;
firstoption
=
{
title
:
{
text
:
'人员摸排反馈率'
,
...
...
@@ -183,10 +201,11 @@ export default {
labelLine
:
{
show
:
false
},
data
:
[
{
value
:
735
,
name
:
'未反馈'
},
{
value
:
1048
,
name
:
'已反馈'
},
]
data
:
data
// data: [
// { value: 735, name: '未反馈' },
// { value: 1048, name: '已反馈' },
// ]
}
]
};
...
...
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