diff --git a/acs/nladmin-ui/src/main.js b/acs/nladmin-ui/src/main.js index e61282b..debc19c 100644 --- a/acs/nladmin-ui/src/main.js +++ b/acs/nladmin-ui/src/main.js @@ -57,7 +57,7 @@ import VueBus from 'vue-bus' // 引入i18 import i18n from './i18n' -import './style.css' +// import './style.css' LogicFlow.use(Menu) diff --git a/acs/nladmin-ui/src/style.css b/acs/nladmin-ui/src/style.css index ca4b571..c97f20a 100644 --- a/acs/nladmin-ui/src/style.css +++ b/acs/nladmin-ui/src/style.css @@ -57,6 +57,9 @@ body { -ms-flex: 1; flex: 1; } +.right { + width: 10%; +} .flex-2 { -ms-flex: 2; flex: 2; diff --git a/acs/nladmin-ui/src/views/acs/order/template.vue b/acs/nladmin-ui/src/views/acs/order/template.vue index 1440c8c..d11f4bb 100644 --- a/acs/nladmin-ui/src/views/acs/order/template.vue +++ b/acs/nladmin-ui/src/views/acs/order/template.vue @@ -163,7 +163,187 @@ export default { } </script> -<style> +<style scoped> +/* 字体样式 */ +@import "../../../assets/css/iconfont.css"; + +/* 定义全局样式 */ +/* 在 main.js 入库文件引入 */ +body { + margin: 0; +} + +/* scrollbar */ +::-webkit-scrollbar { + height: 4px; + width: 4px; +} +::-webkit-scrollbar-corner { + height: 4px; + width: 4px; +} +::-webkit-scrollbar-thumb { + background: purple; + border-radius: 2px; + background-image: -webkit-linear-gradient( + 45deg, + rgba(255, 255, 255, 0.2) 25%, + transparent 25%, + transparent 50%, + rgba(255, 255, 255, 0.2) 50%, + rgba(255, 255, 255, 0.2) 75%, + transparent 75%, + transparent + ); +} +::-webkit-scrollbar-thumb:hover { + background: purple; +} + +/* flex */ +.flex-row { + display: flex; +} +.flex-col { + display: flex; + -ms-flex-direction: column; /* 旧版 IE */ + flex-direction: column; +} +.flex-wrap { + flex-wrap: wrap; +} +.align-center { + align-items: center; +} +.justify-center { + justify-content: center; +} + +.flex-1 { + -ms-flex: 1; + flex: 1; +} +.flex-2 { + -ms-flex: 2; + flex: 2; +} +.flex-3 { + -ms-flex: 3; + flex: 3; +} +.flex-4 { + -ms-flex: 4; + flex: 4; +} +.flex-5 { + -ms-flex: 5; + flex: 5; +} + +.ml-10 { + margin-left: 10px; +} +.mr-10 { + margin-right: 10px; +} +.mt-10 { + margin-top: 10px; +} +.mb-10 { + margin-bottom: 10px; +} + +/* button 样式 为了好看点 */ +button { + padding: 10px; + min-width: 40px; + color: white; + opacity: 0.9; + cursor: pointer; + border-width: 0; + border: 1px solid #d9d9d9; +} +button:hover { + opacity: 1; +} +button i { + font-size: 16px !important; +} +.circle, +.circle-4 { + border-radius: 4px !important; +} +.circle-10 { + border-radius: 10px !important; +} +/* 按钮颜色 */ +.primary { + background: purple; +} +.info { + color: #000; + background: none; +} +.info:hover { + color: purple; + border-color: purple; +} +.secondary { + background: #1976d2; +} +.warning { + background: #d32f2f; +} + +/* modal */ +.modal { + padding: 0; + margin: 0; +} +.modal .mask { + position: fixed; + top: 0; + right: 0; + bottom: 0; + left: 0; + z-index: 1000; + height: 100%; + background-color: #00000073; +} +.modal .wrap { + position: fixed; + top: 0; + right: 0; + bottom: 0; + left: 0; + z-index: 1000; + overflow: auto; + background-color: #00000073; + outline: 0; +} +.modal .wrap .box { + position: relative; + margin: 10% auto; + width: 40%; + background: #fff; + border-radius: 4px; + z-index: 1001; + box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); + transition: all 0.3s ease; +} +.modal-box__header { + padding: 10px 14px; + border-bottom: 1px solid #e9e9e9; +} +.modal-box__footer { + text-align: end; +} +.modal-box__footer button { + min-width: 100px; +} +.modal-box__footer button:not(:last-child) { + margin-right: 10px; +} /* 重写全局 hiprint 样式 */ .hiprint-headerLine, .hiprint-footerLine { @@ -194,15 +374,13 @@ export default { top: -14px; font-size: 12px; } -</style> -<style scoped> /* 区域 */ .left { background: white; border-radius: 4px; border: 1px solid #d9d9d9; padding: 10px 0; - box-shadow: 2px 2px 2px 0px rgb(128 0 128 / 20%); + box-shadow: 2px 2px 2px 0px rgba(181, 16, 181, 0.2); overflow: auto; } .center {