style:待办箱
Showing
3 changed files
with
6 additions
and
7 deletions
| 1 | 弹窗封装 | 1 | 弹窗封装 | 
| 2 | 1.在main.js中引入 import Popup from './components/tanchuang/index' | ||
| 3 | Vue.prototype.$popup = Popup.install | ||
| 4 | 2.用法以及参数: | 2 | 2.用法以及参数: | 
| 5 | this.$popup('提示','ywbl/dbx/aa',{ | 3 | this.$popup('提示','ywbl/dbx/aa',{ | 
| 6 | formData:this.formData, //父组件传给子组件的参数 | 4 | formData:this.formData, //父组件传给子组件的参数 | 
| 7 | cancel: function () {}, //取消事件的回调 | 5 | cancel: function () {}, //取消事件的回调 | 
| 8 | confirm: function () {}, //确认事件的回调 | 6 | confirm: function () {}, //确认事件的回调 | 
| 9 | iconClass:"",//标题前面icon图标名称 | ||
| 10 | }) | 7 | }) | 
| 11 | 3.子组件的方法名字必须统一为 childFn() | 8 | 3.子组件的方法名字必须统一为 childFn() | 
| 12 | 4.子组件切记props接收 父组件传参formData | 9 | 4.子组件切记props接收 父组件传参formData | ... | ... | 
| ... | @@ -25,7 +25,7 @@ router.beforeEach(async (to, from, next) => { | ... | @@ -25,7 +25,7 @@ router.beforeEach(async (to, from, next) => { | 
| 25 | router.addRoutes([...accessRoutes, { path: '*', redirect: '/404', hidden: true }]) | 25 | router.addRoutes([...accessRoutes, { path: '*', redirect: '/404', hidden: true }]) | 
| 26 | const routeTo = Cookies.get('routerTo') | 26 | const routeTo = Cookies.get('routerTo') | 
| 27 | if (routeTo) { | 27 | if (routeTo) { | 
| 28 | next(routeTo) | 28 | next({ ...to, replace: true }) | 
| 29 | } else { | 29 | } else { | 
| 30 | next('/home') | 30 | next('/home') | 
| 31 | } | 31 | } | ... | ... | 
| ... | @@ -25,7 +25,7 @@ | ... | @@ -25,7 +25,7 @@ | 
| 25 | 25 | ||
| 26 | <!-- 循环幢单元下的层户 --> | 26 | <!-- 循环幢单元下的层户 --> | 
| 27 | <!-- <div class="chTable-wrap"> --> | 27 | <!-- <div class="chTable-wrap"> --> | 
| 28 | <table class="chTable psr" border="1" cellspacing="0" cellpadding="0" v-show="zdys.cs.length > 0"> | 28 | <table class="chTable psr" border="0" cellspacing="0" cellpadding="0" v-show="zdys.cs.length > 0"> | 
| 29 | <tr v-for="(cs, csIndex) in zdys.cs" :key="csIndex"> | 29 | <tr v-for="(cs, csIndex) in zdys.cs" :key="csIndex"> | 
| 30 | <!-- 显示层数 --> | 30 | <!-- 显示层数 --> | 
| 31 | <td class="floor" ref="cBsm" @contextmenu.prevent="openMenu($event, cs, 'c')" | 31 | <td class="floor" ref="cBsm" @contextmenu.prevent="openMenu($event, cs, 'c')" | 
| ... | @@ -1136,6 +1136,7 @@ export default { | ... | @@ -1136,6 +1136,7 @@ export default { | 
| 1136 | 1136 | ||
| 1137 | // 公共部分样式 start | 1137 | // 公共部分样式 start | 
| 1138 | .chTable { | 1138 | .chTable { | 
| 1139 | margin-left: -1px; | ||
| 1139 | 1140 | ||
| 1140 | // position: relative; | 1141 | // position: relative; | 
| 1141 | tr { | 1142 | tr { | 
| ... | @@ -1150,6 +1151,7 @@ export default { | ... | @@ -1150,6 +1151,7 @@ export default { | 
| 1150 | text-align: center; | 1151 | text-align: center; | 
| 1151 | cursor: pointer; | 1152 | cursor: pointer; | 
| 1152 | position: relative; | 1153 | position: relative; | 
| 1154 | border: 1px solid #d5d6da; | ||
| 1153 | 1155 | ||
| 1154 | .hqszt { | 1156 | .hqszt { | 
| 1155 | display: inline-block; | 1157 | display: inline-block; | 
| ... | @@ -1225,7 +1227,7 @@ export default { | ... | @@ -1225,7 +1227,7 @@ export default { | 
| 1225 | p { | 1227 | p { | 
| 1226 | width: calc(100% - 2px); | 1228 | width: calc(100% - 2px); | 
| 1227 | height: 100%; | 1229 | height: 100%; | 
| 1228 | border: 1px solid #E6E6E6; | 1230 | // border: 1px solid #E6E6E6; | 
| 1229 | } | 1231 | } | 
| 1230 | } | 1232 | } | 
| 1231 | 1233 | ... | ... | 
- 
Please register or sign in to post a comment