Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcdj-web
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
2159a36b
authored
2023-05-26 15:40:45 +0800
by
renchao@pashanhoo.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:上报系统数据推送
1 parent
df9b1518
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
132 additions
and
127 deletions
src/styles/sidebar.scss
src/styles/variables.scss
src/views/sjgx/sbxtsjts/dialog/detail.vue
src/views/sjgx/sbxtsjts/sbxtsjts.vue
src/views/system/sqywgz/sqywDetail.js
src/views/system/sqywgz/sqywDetail.vue
vue.config.js
src/styles/sidebar.scss
View file @
2159a36
...
...
@@ -179,7 +179,7 @@
// margin: 0 10px;
// border-radius: 6px;
span
{
margin-left
:
10
px
;
margin-left
:
5
px
;
}
}
}
...
...
src/styles/variables.scss
View file @
2159a36
...
...
@@ -22,7 +22,7 @@ $menuHover:#249af4;
$subMenuBg
:
#202B3D
;
$subMenuHover
:
#0e6fba
;
$sideBarWidth
:
1
7
0px
;
$sideBarWidth
:
1
8
0px
;
$sideBarFontSize
:
15px
;
// border颜色
...
...
src/views/sjgx/sbxtsjts/dialog/detail.vue
0 → 100644
View file @
2159a36
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-05-26 15:40:23
-->
<
template
>
<div
class=
"loadingtext"
>
<el-input
type=
"textarea"
:rows=
"8"
v-model=
"formData.json"
>
</el-input>
<div
class=
"text-center pt-10"
>
<el-button
type=
"primary"
@
click=
"pushRecord"
>
推送
</el-button>
</div>
</div>
</
template
>
<
script
>
import
{
pushSjsbRecord
}
from
"@/api/zhcx.js"
;
export
default
{
props
:
{
formData
:
{
type
:
Object
,
default
:
()
=>
{
return
{}
}
}
},
methods
:
{
pushRecord
()
{
this
.
$startLoading
()
pushSjsbRecord
(
this
.
formData
).
then
((
res
)
=>
{
this
.
$endLoading
()
if
(
res
.
code
===
200
)
{
this
.
$message
.
success
(
"推送成功"
);
}
else
{
this
.
$message
.
warning
(
res
.
message
);
}
this
.
$popupCacel
()
})
}
}
}
</
script
>
src/views/sjgx/sbxtsjts/sbxtsjts.vue
View file @
2159a36
...
...
@@ -21,97 +21,63 @@
</div>
<!-- 表格 -->
<div
class=
"from-clues-content"
>
<lb-table
:page-size=
"pageData.size"
class=
"loadingtext"
@
sort-change=
"handleSort"
<lb-table
:page-size=
"pageData.size"
class=
"loadingtext"
:current-page
.
sync=
"pageData.current"
:total=
"tableData.total"
@
size-change=
"handleSizeChange"
@
p-current-change=
"handleCurrentChange"
:column=
"tableData.columns"
:data=
"tableData.data"
>
</lb-table>
</div>
<el-dialog
title=
"详情"
:visible
.
sync=
"detailVisible"
>
<div>
{{
dialogData
.
json
}}
</div>
<div>
<button
@
click=
"pushRecord"
>
推送
</button>
</div>
</el-dialog>
</div>
</
template
>
<
script
>
import
{
mapGetters
}
from
"vuex"
;
import
table
from
"@/utils/mixin/table"
;
import
{
datas
,
sendThis
}
from
"./djbcxdata"
;
import
{
getSjsbPushList
,
pushSjsbRecord
,
detail
}
from
"@/api/zhcx.js"
;
import
{
mapGetters
}
from
"vuex"
;
import
table
from
"@/utils/mixin/table"
;
import
{
datas
,
sendThis
}
from
"./djbcxdata"
;
import
{
getSjsbPushList
,
detail
}
from
"@/api/zhcx.js"
;
export
default
{
name
:
"djbcx"
,
mixins
:
[
table
],
mounted
()
{
sendThis
(
this
);
this
.
queryClick
()
},
data
()
{
return
{
queryForm
:
{
qllx
:
""
,
bdcdyh
:
""
,
bdcqzh
:
""
,
ywh
:
""
,
},
detailVisible
:
false
,
pageData
:
{
current
:
1
,
size
:
10
,
total
:
0
,
},
tableData
:
{
columns
:
datas
.
columns
(),
data
:
[],
},
qllxs
:
[],
isDialog
:
false
,
dialogData
:
{},
djbxxData
:
{},
};
},
computed
:
{
...
mapGetters
([
"dictData"
]),
},
methods
:
{
// 初始化数据
queryClick
()
{
this
.
$startLoading
()
getSjsbPushList
({
...
this
.
queryForm
,
...
this
.
pageData
}).
then
((
res
)
=>
{
this
.
$endLoading
()
if
(
res
.
code
===
200
)
{
let
{
total
,
records
}
=
res
.
result
;
this
.
tableData
.
data
=
records
;
this
.
tableData
.
total
=
total
;
}
});
},
handleSort
(
name
,
sort
)
{
console
.
log
(
name
,
sort
);
export
default
{
name
:
"djbcx"
,
mixins
:
[
table
],
mounted
()
{
sendThis
(
this
);
this
.
queryClick
()
},
pushRecord
()
{
this
.
$startLoading
()
pushSjsbRecord
(
this
.
dialogData
).
then
((
res
)
=>
{
this
.
$endLoading
()
if
(
res
.
code
===
200
)
{
this
.
$message
.
success
(
"推送成功"
);
this
.
queryClick
();
done
();
}
else
{
this
.
$message
.
warning
(
res
.
message
);
data
()
{
return
{
queryForm
:
{
qllx
:
""
,
bdcdyh
:
""
,
bdcqzh
:
""
,
ywh
:
""
,
},
pageData
:
{
current
:
1
,
size
:
10
,
total
:
0
,
},
tableData
:
{
columns
:
datas
.
columns
(),
data
:
[],
}
}
);
}
},
// 高级查询
moreQueryClick
()
{
},
openDialog
(
scroll
)
{
const
h
=
this
.
$createElement
;
computed
:
{
...
mapGetters
([
"dictData"
])
},
methods
:
{
// 初始化数据
queryClick
()
{
this
.
$startLoading
()
getSjsbPushList
({
...
this
.
queryForm
,
...
this
.
pageData
}).
then
((
res
)
=>
{
this
.
$endLoading
()
if
(
res
.
code
===
200
)
{
let
{
total
,
records
}
=
res
.
result
;
this
.
tableData
.
data
=
records
;
this
.
tableData
.
total
=
total
;
}
});
},
openDialog
(
scroll
)
{
const
h
=
this
.
$createElement
;
this
.
$msgbox
({
title
:
'推送'
,
message
:
h
(
'p'
,
null
,
[
...
...
@@ -129,38 +95,35 @@ export default {
done
();
}
}
}).
then
(
action
=>
{});
},
detail
(
row
)
{
this
.
detailVisible
=
true
detail
(
row
.
bsm
).
then
((
res
)
=>
{
this
.
$endLoading
()
if
(
res
.
code
===
200
)
{
this
.
dialogData
=
res
.
result
;
}
else
{
this
.
$message
.
warning
(
res
.
message
);
}
});
}).
then
(
action
=>
{
});
},
detail
(
row
)
{
detail
(
row
.
bsm
).
then
((
res
)
=>
{
this
.
$endLoading
()
if
(
res
.
code
===
200
)
{
this
.
$popupDialog
(
"详情"
,
"sjgx/sbxtsjts/dialog/detail"
,
res
.
result
,
"60%"
)
}
else
{
this
.
$message
.
warning
(
res
.
message
);
}
})
}
}
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
@import
"~@/styles/public.scss"
;
@import
"~@/styles/public.scss"
;
.icon-circle
{
position
:
relative
;
}
.icon-circle
{
position
:
relative
;
}
.icon-circle
::before
{
content
:
""
;
width
:
4px
;
height
:
4px
;
border-radius
:
50%
;
background
:
#000
;
top
:
0px
;
left
:
0px
;
}
.icon-circle
::before
{
content
:
""
;
width
:
4px
;
height
:
4px
;
border-radius
:
50%
;
background
:
#000
;
top
:
0px
;
left
:
0px
;
}
</
style
>
...
...
src/views/system/sqywgz/sqywDetail.js
View file @
2159a36
...
...
@@ -46,8 +46,8 @@ class data extends filter {
label
:
'登记情形编码'
,
render
:
(
h
,
scope
)
=>
{
return
(
<
el
-
input
placeholder
=
"登记情形编码"
class
=
{{
repeat
:
scope
.
row
.
repeat
}}
value
=
{
scope
.
row
[
scope
.
column
.
property
]}
onInput
=
{(
val
)
=>
{
scope
.
row
[
scope
.
column
.
property
]
=
val
;
orderNoChange
()
}}
maxlength
=
"8"
>
<
el
-
input
placeholder
=
"登记情形编码"
value
=
{
scope
.
row
[
scope
.
column
.
property
]}
onInput
=
{(
val
)
=>
{
scope
.
row
[
scope
.
column
.
property
]
=
val
;
vm
.
orderNoChange
()
}}
maxlength
=
"8"
>
<
/el-input
>
)
}
...
...
@@ -58,7 +58,7 @@ class data extends filter {
render
:
(
h
,
scope
)
=>
{
return
(
<
el
-
input
placeholder
=
"登记情形名称"
value
=
{
scope
.
row
[
scope
.
column
.
property
]}
onInput
=
{(
val
)
=>
{
scope
.
row
[
scope
.
column
.
property
]
=
val
;
orderNoChange
()
}}
>
onInput
=
{(
val
)
=>
{
scope
.
row
[
scope
.
column
.
property
]
=
val
;
vm
.
orderNoChange
()
}}
>
<
/el-input
>
)
}
...
...
src/views/system/sqywgz/sqywDetail.vue
View file @
2159a36
...
...
@@ -153,7 +153,9 @@
activeName
:
"1"
,
form
:
{
bsmSqyw
:
''
,
ywDetail
:
{}
ywDetail
:
{},
djqx
:
[],
clxx
:
[]
},
djqxCol
:
datas
.
djqxCol
(),
clxxCol
:
datas
.
clxxCol
(),
...
...
@@ -205,15 +207,16 @@
},
//获取业务具体明细内容
getDetail
(
bsmSqyw
)
{
let
_this
=
this
getSqdjywDetail
(
bsmSqyw
).
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
//
this.form.bsmSqyw = res.result.bsmSqyw
//
this.form.ywDetail = res.result.ywDetail
this
.
$set
(
this
.
form
,
'djqx'
,
res
.
result
.
djqx
)
// this.$set(
this.form, 'sxql', res.result.sxql)
this
.
$set
(
this
.
form
,
'clxx'
,
res
.
result
.
clxx
)
// this.$set(
this.form, 'sxzt', res.result.sxzt)
// this.$set(
this.form, 'ywDetail', res.result.ywDetail)
_
this
.
form
.
bsmSqyw
=
res
.
result
.
bsmSqyw
_
this
.
form
.
ywDetail
=
res
.
result
.
ywDetail
_this
.
$set
(
_
this
.
form
,
'djqx'
,
res
.
result
.
djqx
)
_this
.
$set
(
_
this
.
form
,
'sxql'
,
res
.
result
.
sxql
)
_this
.
$set
(
_
this
.
form
,
'clxx'
,
res
.
result
.
clxx
)
_this
.
$set
(
_
this
.
form
,
'sxzt'
,
res
.
result
.
sxzt
)
_this
.
$set
(
_
this
.
form
,
'ywDetail'
,
res
.
result
.
ywDetail
)
}
else
{
this
.
$alert
(
res
.
message
)
}
...
...
@@ -289,7 +292,6 @@
.el-radio-group
{
white-space
:
nowrap
;
}
.form
{
background
:
#eee
;
padding
:
0
10px
;
...
...
vue.config.js
View file @
2159a36
...
...
@@ -48,7 +48,7 @@ module.exports = {
}
},
css
:
{
extract
:
tru
e
,
// 是否使用css分离插件 ExtractTextPlugin
extract
:
fals
e
,
// 是否使用css分离插件 ExtractTextPlugin
sourceMap
:
false
,
// 开启 CSS source maps?
loaderOptions
:
{
sass
:
{
...
...
@@ -59,10 +59,6 @@ module.exports = {
},
// configureWebpack通过操作对象的形式,来修改默认的webpack配置
configureWebpack
:
{
optimization
:
{
usedExports
:
true
,
minimize
:
true
},
entry
:
{
app
:
'./src/main.js'
},
...
...
Please
register
or
sign in
to post a comment