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
dbb861a5
authored
2022-11-08 09:41:28 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:待办箱
1 parent
9c222fd6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
7 deletions
src/components/tanchuang/redeme.md
src/permission.js
src/views/components/bjlp/lpbContent/index.vue
src/components/tanchuang/redeme.md
View file @
dbb861a
弹窗封装
1.
在main.js中引入 import Popup from './components/tanchuang/index'
Vue.prototype.$popup = Popup.install
2.
用法以及参数:
this.$popup('提示','ywbl/dbx/aa',{
formData:this.formData, //父组件传给子组件的参数
cancel: function () {}, //取消事件的回调
cancel: function () {}, //取消事件的回调
confirm: function () {}, //确认事件的回调
iconClass:"",//标题前面icon图标名称
})
3.
子组件的方法名字必须统一为 childFn()
4.
子组件切记props接收 父组件传参formData
...
...
src/permission.js
View file @
dbb861a
...
...
@@ -25,7 +25,7 @@ router.beforeEach(async (to, from, next) => {
router
.
addRoutes
([...
accessRoutes
,
{
path
:
'*'
,
redirect
:
'/404'
,
hidden
:
true
}])
const
routeTo
=
Cookies
.
get
(
'routerTo'
)
if
(
routeTo
)
{
next
(
routeTo
)
next
(
{
...
to
,
replace
:
true
}
)
}
else
{
next
(
'/home'
)
}
...
...
src/views/components/bjlp/lpbContent/index.vue
View file @
dbb861a
...
...
@@ -25,7 +25,7 @@
<!-- 循环幢单元下的层户 -->
<!--
<div
class=
"chTable-wrap"
>
-->
<table
class=
"chTable psr"
border=
"
1
"
cellspacing=
"0"
cellpadding=
"0"
v-show=
"zdys.cs.length > 0"
>
<table
class=
"chTable psr"
border=
"
0
"
cellspacing=
"0"
cellpadding=
"0"
v-show=
"zdys.cs.length > 0"
>
<tr
v-for=
"(cs, csIndex) in zdys.cs"
:key=
"csIndex"
>
<!-- 显示层数 -->
<td
class=
"floor"
ref=
"cBsm"
@
contextmenu
.
prevent=
"openMenu($event, cs, 'c')"
...
...
@@ -1136,6 +1136,7 @@ export default {
//
公共部分样式
start
.chTable
{
margin-left
:
-1px
;
//
position
:
relative
;
tr
{
...
...
@@ -1150,6 +1151,7 @@ export default {
text-align
:
center
;
cursor
:
pointer
;
position
:
relative
;
border
:
1px
solid
#d5d6da
;
.hqszt
{
display
:
inline-block
;
...
...
@@ -1225,7 +1227,7 @@ export default {
p
{
width
:
calc
(
100%
-
2px
);
height
:
100%
;
border
:
1px
solid
#E6E6E6
;
//
border
:
1px
solid
#E6E6E6
;
}
}
...
...
Please
register
or
sign in
to post a comment