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
d903aecf
Commit
d903aecf
authored
Sep 01, 2021
by
张超军
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vvv
parent
b9894794
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
93 additions
and
48 deletions
+93
-48
src/components/table.vue
+5
-5
src/router/modules/index.js
+2
-2
src/views/rwgl/rwthcl.vue
+86
-41
No files found.
src/components/table.vue
View file @
d903aecf
<!--
* @Author: your name
* @Date: 2021-08-27 15:51:38
* @LastEditTime: 2021-09-01 19:
27:41
* @LastEditTime: 2021-09-01 19:
59:12
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \founder_vue\src\components\table.vue
...
...
@@ -39,7 +39,7 @@
size=
"small"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"selection"
width=
"55"
v-if=
"btnShow"
>
<el-table-column
type=
"selection"
width=
"55"
v-if=
"btnShow
&& btnShow!='rwthcl'
"
>
</el-table-column>
<el-table-column
v-for=
"columnTitle in propdefaultFormThead"
...
...
@@ -55,21 +55,21 @@
<el-button
type=
"text"
size=
"small"
v-if=
"btnShow == 'rymplb'"
v-if=
"btnShow == 'rymplb'
|| btnShow == 'rwthcl'
"
@
click=
"handleClick(scope.row, 'xq')"
>
详情
</el-button
>
<el-button
type=
"text"
size=
"small"
v-if=
"btnShow == 'rymplb'"
v-if=
"btnShow == 'rymplb'
|| btnShow == 'rwthcl'
"
@
click=
"handleClick(scope.row, 'fk')"
>
反馈
</el-button
>
<el-button
type=
"text"
size=
"small"
v-if=
"btnShow == 'rymplb'"
v-if=
"btnShow == 'rymplb'
|| btnShow == 'rwthcl'
"
@
click=
"handleClick(scope.row, 'th')"
>
退回
</el-button
>
...
...
src/router/modules/index.js
View file @
d903aecf
/*
* @Author: your name
* @Date: 2021-08-27 14:14:36
* @LastEditTime: 2021-09-01
18:58:54
* @LastEditTime: 2021-09-01
20:01:53
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \founder_vue\src\router\modules\index.js
...
...
@@ -106,7 +106,7 @@ export default [
name
:
"rwthcl"
,
hidden
:
false
,
meta
:
{
title
:
"
任务
退回处理"
,
title
:
"
人员
退回处理"
,
auth
:
"5"
},
component
:
()
=>
import
(
"@/views/rwgl/rwthcl.vue"
),
...
...
src/views/rwgl/rwthcl.vue
View file @
d903aecf
<!--
* @Author: your name
* @Date: 2021-08-28 19:36:38
* @LastEditTime: 2021-09-01
19:47:58
* @LastEditTime: 2021-09-01
20:35:57
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \founder_vue\src\views\rwgl\rwthcl.vue
...
...
@@ -10,11 +10,44 @@
<div
class=
"rwthcl"
>
<div
class=
"batch"
>
<el-input
placeholder=
"请输入内容"
v-model=
"searchVal"
class=
"input-with-select"
>
<el-button
slot=
"append"
icon=
"el-icon-search"
></el-button>
</el-input>
<el-button
slot=
"append"
icon=
"el-icon-search"
></el-button>
</el-input>
</div>
<Table
:cxDefaultFormThead=
"cxDefaultFormThead"
:tableData=
"tableData"
:btnShow=
"btnShow"
@
init=
"handInit(arguments)"
>
</Table>
<div
class=
"xqDialog"
>
<el-dialog
title=
"详情"
:visible
.
sync=
"xqdialogVisible"
width=
"30%"
>
<div>
ID:
{{
xqID
}}
</div>
<div>
真实地址:
{{
xqZSDZ
}}
</div>
备注:
<el-input
disabled
type=
"textarea"
:rows=
"2"
placeholder=
"请输入内容"
v-model=
"xqBZ"
>
</el-input>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"xqdialogVisible = false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"xqdialogVisible = false"
>
确 定
</el-button>
</span>
</el-dialog>
</div>
<div
class=
"fkDialog"
>
<el-dialog
title=
"反馈"
:visible
.
sync=
"fkdialogVisible"
width=
"30%"
>
反馈:
<el-input
type=
"textarea"
:rows=
"2"
placeholder=
"请输入反馈信息"
v-model=
"fk"
>
</el-input>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"fkdialogVisible = false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"fkBtn"
>
确 定
</el-button>
</span>
</el-dialog>
</div>
<div
class=
"thDialog"
>
<el-dialog
title=
"退回"
:visible
.
sync=
"thdialogVisible"
width=
"30%"
>
<div>
是否要退回原地址天津市西湖区
</div>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"thdialogVisible = false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"thBtn"
>
确 定
</el-button>
</span>
</el-dialog>
</div>
</div>
</
template
>
...
...
@@ -26,65 +59,72 @@ export default {
},
data
()
{
return
{
searchVal
:
''
,
thdialogVisible
:
false
,
fkdialogVisible
:
false
,
fk
:
''
,
xqID
:
''
,
xqZSDZ
:
''
,
xqBZ
:
''
,
xqdialogVisible
:
false
,
searchVal
:
''
,
form
:
{
name
:
""
,
userId
:
""
,
},
cxDefaultFormThead
:
[
{
label
:
"
姓名
"
,
prop
:
"
xm
"
,
label
:
"
ID
"
,
prop
:
"
ID
"
,
width
:
"auto"
,
},
{
label
:
"
身份证号
"
,
prop
:
"
sfzh
"
,
label
:
"
真实地址
"
,
prop
:
"
ZSDZ
"
,
width
:
"auto"
,
},
{
label
:
"
来源地
"
,
prop
:
"
lyd
"
,
label
:
"
备注
"
,
prop
:
"
BZ
"
,
width
:
"auto"
,
},
],
tableData
:
[
{
label
:
"现住址
"
,
prop
:
"xzz
"
,
width
:
"auto
"
,
ID
:
"1519198198189
"
,
ZSDZ
:
"北京市西湖村
"
,
BZ
:
"放回原处
"
,
},
{
label
:
"退回地址"
,
prop
:
"thdz"
,
width
:
"auto"
,
},
{
label
:
"到站时间"
,
prop
:
"dzsj"
,
width
:
"auto"
,
ID
:
"8898922892828"
,
ZSDZ
:
"西安市灞桥区"
,
BZ
:
"危险物品"
,
},
],
tableData
:
[
{
xm
:
"鸿星尔克"
,
lyd
:
"A口西侧"
,
sfzh
:
"1100908078996"
,
dzsj
:
"2021-07-09 10:07:26"
,
xzz
:
'北京'
,
thdz
:
'天津'
ID
:
"2343248484843"
,
ZSDZ
:
"南京市创业园"
,
BZ
:
"文件类"
,
},
{
xm
:
"鸿星尔克"
,
lyd
:
"A口西侧"
,
sfzh
:
"1100908078996"
,
dzsj
:
"2021-07-09 10:07:26"
,
xzz
:
'北京'
,
thdz
:
'天津'
ID
:
"3333665562623"
,
ZSDZ
:
"杭州市西湖区"
,
BZ
:
"植物"
,
},
],
btnShow
:
"r
ymplb
"
,
btnShow
:
"r
wthcl
"
,
};
},
methods
:
{
thBtn
()
{
this
.
$confirm
(
'确认退回?'
)
.
then
(
_
=>
{
this
.
thdialogVisible
=
false
})
.
catch
(
_
=>
{
});
},
fkBtn
()
{
this
.
fkdialogVisible
=
false
this
.
$message
.
success
(
'反馈已发送!'
)
},
resetForm
(
formName
)
{
this
.
$refs
[
formName
].
resetFields
();
console
.
log
(
"重置按钮"
);
...
...
@@ -97,13 +137,18 @@ export default {
* @return {*}
*/
handInit
(
msg
)
{
console
.
log
(
"父组件"
,
msg
[
0
],
msg
[
1
]);
if
(
msg
[
1
]
==
"xq"
)
{
//临时跳转的页面
this
.
$router
.
push
({
path
:
"rymplb"
,
query
:
{
plan
:
"123"
}
});
if
(
msg
[
1
]
==
'xq'
)
{
this
.
xqID
=
msg
[
0
].
ID
this
.
xqZSDZ
=
msg
[
0
].
ZSDZ
this
.
xqBZ
=
msg
[
0
].
BZ
this
.
xqdialogVisible
=
true
}
else
if
(
msg
[
1
]
==
'fk'
)
{
this
.
$router
.
push
({
path
:
"rympfk"
,
query
:
{
plan
:
"123"
}
});
this
.
fkdialogVisible
=
true
}
else
if
(
msg
[
1
]
==
'th'
)
{
this
.
thdialogVisible
=
true
}
console
.
log
(
"父组件"
,
msg
[
0
],
msg
[
1
]);
},
},
}
...
...
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