src/components/ImportPicker/index.vue
@@ -14,13 +14,13 @@ <el-step title="宿" /> </el-steps> <div v-if="div1" class="mb40"> <div v-if="div1" style="margin-left: 85px;margin-top: 35px" class="mb40"> <h3>å¯¼å ¥æç¤º</h3> <p>1. å¯¼å ¥æä»¶æ¯æç±»åï¼.xlsx,æå¤§ä¸è½è¶ 10M</p> <p>2. 请å¿è°æ´å¯¼å ¥æ¨¡çä¸å段çå·¦å³é¡ºåºææ°å¢sheet页</p> </div> <div v-if="div2 && div2_state === '301'"> <div v-if="div2 && div2_state === '301'" style="margin-left: 85px;margin-right: 85px"> <p><span class="gth_icon">!</span>æä»¶ä¸æ<span style="color:red">{{ error_list.length }}</span>æ¡éè¯¯æ°æ®ï¼è¯·ä¿®æ¹åéæ°å¯¼å ¥</p> <el-table class="table" :data="error_list" :header-cell-style="{background:'#f5f5f5'}"> <el-table-column label="åºå·" prop="Seq" width="50" /> @@ -29,13 +29,13 @@ <el-table-column label="é误详æ " prop="ErrorCont" min-width="300" /> </el-table> </div> <div v-if="div2 && div2_state === '200'" style="position:relative;margin-top:100px;"> <div v-if="div2 && div2_state === '200'" style="position:relative;margin:100px 85px;"> <div class="progress_bar bar-color-a" /> <div :class="{'progress_bar':true, 'bar-color-b':true,'position_div':true,'cg':cg4,}" /> <div class="mt"><img src="@/assets/images/succ.png" class="img_position"> æ ¡éªæ°æ® (æå)</div> <div class="mt">å³å°å¯¼å ¥{{ total_num }}æ¡æ°æ®</div> </div> <div v-if="div1" class="mb40"> <div v-if="div1" style="margin-left:85px" class="mb40"> <h3>ä¸ä¼ æä»¶</h3> <el-upload style="display: inline-block;" @@ -51,8 +51,8 @@ <el-button type="text" style="font-size: 14px;cursor: pointer" icon="el-icon-download" @click="clickDown(code)">ä¸è½½æ°æ®æ¨¡ç</el-button> , å¹¶æç §æ¨¡çç¼è¾å¯¼å ¥æ°æ® </div> <p v-if="div1">{{ file_name }}</p> <div v-show="div1 && getDataing" class="yz"> <p v-if="div1" style="margin:0 85px 5px">{{ file_name }}</p> <div v-show="div1 && getDataing" style="margin: 0 85px" class="yz"> <ul> <li> <div class="progress_bar bar-color-a" /> @@ -364,7 +364,8 @@ // console.log(process.env.VUE_APP_BASE_API, 8989899) // console.log(process.env.VUE_APP_BASE_API_FILE) // console.log(window.location.origin + res.data) window.location.href = process.env.VUE_APP_BASE_API_FILE + res.data // window.location.href = process.env.VUE_APP_BASE_API_FILE + res.data window.location.href = res.data }) } } src/components/Pagination/index.vue
@@ -93,8 +93,8 @@ <style scoped> .pagination-container { background: #fff; padding: 32px 16px; background: #f8f8fa; padding: 10px 0; } .pagination-container.hidden { display: none; @@ -128,4 +128,8 @@ // color: #fff; //} } .el-pagination button, .el-pagination span:not([class*=suffix]){ font-size: 14px; } </style> src/layout/components/Navbar.vue
@@ -172,6 +172,8 @@ background: #fff; box-shadow: 0 1px 4px rgba(0, 21, 41, .08); //background-color: #f8f8fa; .hamburger-container { line-height: 46px; height: 100%; src/main.js
@@ -57,6 +57,9 @@ import watermark from './utils/watermark.js' Vue.prototype.$watermark = watermark import clearTabIndex from './utils/clearTabIndex.js' // å é¤el-tooltip tabindex clearTabIndex.install(Vue) new Vue({ el: '#app', router, src/styles/global.css
@@ -18,9 +18,25 @@ display: flex; flex-direction: column; height: 100%; /*background-color: #eee;*/ background-color: #eaecef; margin: 0; padding: 0 10px; } /*头鍿é®ç»æ ·å¼*/ .bodyTopButtonGroup{ /*padding-left: 10px;*/ display: flex; background-color: #f8f8fa; margin-top: 10px; padding: 5px 10px; border-bottom: 3px solid #eee; } /*头é¨è¡¨åç»æ ·å¼*/ .bodyTopFormGroup{ background-color: #f8f8fa; padding: 10px; } .elForm { @@ -33,10 +49,28 @@ .elTableDiv { display: flex; border: 1px solid #eee; width: 99%; margin: 0 auto; /*width: 99%;*/ width: 100%; margin: 10px auto; /*margin-top: 20px;*/ } .operationClass { height: 23px; display: flex; justify-content: space-between; align-items: center; } /*å¯¹è¯æ¡æé®åºé¨*/ .footerButton { display: flex; justify-content: end; } /* å®ä¹æ»å¨æ¡é«å®½åèæ¯ é«å®½åå«å¯¹åºæ¨ªç«æ»å¨æ¡ç尺寸 src/styles/global_back.css
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,73 @@ /*å ¨å±æ ·å¼è¡¨*/ html, body, #app { height: 100%; margin: 0; padding: 0; /*min-width: 1800px;*/ /*overflow-y: hidden;*/ /*overflow-x: hidden;*/ -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif; } .body { display: flex; flex-direction: column; height: 100%; /*background-color: #eee;*/ margin: 0; padding: 0 10px; } .elForm { display: flex; justify-content: flex-start; width: 100%; flex-wrap: wrap; } .elTableDiv { display: flex; border: 1px solid #eee; width: 99%; margin: 0 auto; } /* å®ä¹æ»å¨æ¡é«å®½åèæ¯ é«å®½åå«å¯¹åºæ¨ªç«æ»å¨æ¡ç尺寸 */ ::-webkit-scrollbar { width: 7px; height: 7px; background-color: white; } ::-webkit-scrollbar-thumb { box-shadow: inset 0 0 0px white; -webkit-box-shadow: inset 0 0 0px white; background-color: rgb(193, 193, 193); /*æ»å¨æ¡çèæ¯é¢è²*/ border-radius: 20px; } /*è§£å³è¡¨æ ¼åºå®åæ¶çåæ ·å¼é®é¢*/ .el-table__fixed { height: calc(100% - 7px) !important; } .el-table__fixed-right { height: calc(100% - 12px) !important; } .el-table__fixed-right::before, .el-table__fixed::before { background-color: unset !important; } /*scrollbar END*/ src/utils/clearTabIndex.js
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,20 @@ const vueClearIndex = {} /* * è§£å³tooltipsï¼å¨å¼¹æ¡ä¹å忬¡åºç°çé®é¢ï¼åå æ¯ç±äºtabindexå¯¼è´ */ vueClearIndex.install = Vue => { Vue.directive('delTabIndex', { bind(el, binding) { // el为ç»å®çå ç´ ï¼binding为ç»å®ç»æä»¤ç对象 el.__vueSetTimeoutIndex__ = setTimeout(() => { // æ¸ é¤å½åtabIndex el.removeAttribute('tabindex') clearTimeout(el.__vueSetTimeoutIndex__) }, 0) }, unbind(el) { clearTimeout(el.__vueSetTimeoutIndex__) } }) } export default vueClearIndex src/utils/global.js
@@ -8,7 +8,8 @@ // å¤ç表头åå æ ¼æ ·å¼ export function headerCellStyle() { const option = { background: '#eee', padding: '0' // background: '#eee', padding: '0' background: '#f8f8fa', padding: '0', color: '#a7a7a7' } return option } @@ -16,7 +17,9 @@ // å¤çè¡¨æ ¼åå æ ¼æ ·å¼ export function cellStyle() { const option = { // padding: '5px 0' padding: '5px 0' } return option } src/utils/global_back.js
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,58 @@ import { NewEncodingRules } from '@/api/xtsz' // å ¨å±ä¸»è¦é¢è² export function getGlobalColor() { return { globalColor: `#42b983` } } // å¤ç表头åå æ ¼æ ·å¼ export function headerCellStyle() { const option = { background: '#eee', padding: '0' } return option } // å¤çè¡¨æ ¼åå æ ¼æ ·å¼ export function cellStyle() { const option = { padding: '5px 0' } return option } // æ¶é´å¤ç彿° export function handleDatetime(value) { const data = new Date(value) const month = data.getMonth() < 9 ? '0' + (data.getMonth() + 1) : data.getMonth() + 1 const date = data.getDate() <= 9 ? '0' + data.getDate() : data.getDate() return data.getFullYear() + '-' + month + '-' + date } // è·åè§åçæçç¼ç export async function getNewEncodingRules(encode) { const res = await NewEncodingRules({ rightcode: encode }) if (res.code === '200') { return { RightCode: res.data[0], numvalue: res.data[1] } } } // é彿¸ 餿°ç»æ¯ä¸ªå ç´ ä¸çchildrenä¸ºç©ºçæ°ç» const clearAllChildren = (items, childrenName = 'children') => { for (let i = 0; i < items.length; i++) { const item = items[i] // å½å对象åå¨children if (item && item[childrenName]) { // children为空æ°ç»æ¶å é¤ if (item[childrenName].length === 0) { delete item[childrenName] } else { // éå½å½åchildrenæ°ç» clearAllChildren(item[childrenName], childrenName) } } } return items } export default clearAllChildren src/views/jcsz/jsqd.vue
@@ -1,7 +1,14 @@ <template> <div> <div class="body" :style="{height:mainHeight+'px'}"> <div style="padding: 10px 5px 0 0"> <div class="bodyTopButtonGroup"> <el-button type="primary" icon="el-icon-circle-plus-outline" @click="add('add')">æ°å¢</el-button> <el-button icon="el-icon-setting" @click="settingButton">设置</el-button> <el-button icon="el-icon-download" @click="upload">å¯¼å ¥</el-button> </div> <div class="bodyTopFormGroup"> <el-form ref="form" :model="form" @@ -43,18 +50,12 @@ </div> </el-form> </div> <el-divider /> <div style="margin-left: 10px;display: flex"> <el-button type="primary" icon="el-icon-circle-plus-outline" @click="add('add')">æ°å¢</el-button> <el-button type="primary" icon="el-icon-setting" @click="settingButton">设置</el-button> <el-button type="primary" icon="el-icon-upload2" @click="upload">å¯¼å ¥</el-button> </div> <el-divider /> <div class="elTableDiv"> <el-table :data="tableData" border stripe :row-class-name="tableRowClassName" :height="tableHeight+'px'" :style="{width: 100+'%',height: tableHeight+'px'}" highlight-current-row @@ -121,8 +122,8 @@ sortable="custom" > <template slot-scope="{row}"> <i v-if="row.is_user==='Y'" class="el-icon-user-solid" @click="userClick(row)" /> <i v-if="row.is_user==='N'" class="el-icon-user-solid" style="color: rgb(180 ,181, 185)" @click="userClick(row)" /> <i v-if="row.is_user==='Y'" class="el-icon-user-solid" style="color:#42b983;cursor: pointer" @click="userClick(row)" /> <i v-if="row.is_user==='N'" class="el-icon-user-solid" style="color: rgb(180 ,181, 185);cursor: pointer" @click="userClick(row)" /> </template> </el-table-column> <el-table-column @@ -143,8 +144,12 @@ > <template slot-scope="{row}"> <div class="operationClass"> <el-button type="text" @click="edit('edit',row)">ç¼è¾</el-button> <el-button type="text" @click="del(row)">å é¤</el-button> <el-tooltip class="item" effect="dark" content="ç¼è¾" placement="top"> <i class="el-icon-edit-outline" @click="edit('edit',row)" /> </el-tooltip> <el-tooltip v-del-tab-index class="item" effect="dark" content="å é¤" placement="top"> <i class="el-icon-delete" @click="del(row)" /> </el-tooltip> </div> </template> </el-table-column> @@ -157,7 +162,7 @@ :page.sync="form.page" :limit.sync="form.rows" align="right" layout="prev, pager, next,sizes" layout="total ,prev, pager, next,sizes" popper-class="select_bottom" @pagination="getRoleSearch" /> @@ -222,12 +227,14 @@ <!-- <el-button type="primary" icon="el-icon-delete" @click="delSetting">å é¤</el-button>--> </div> <el-table ref="RoleTypeCodeArr" :data="RoleTypeCodeArr" border height="300" highlight-current-row :header-cell-style="this.$headerCellStyle" :cell-style="this.$cellStyle" :row-class-name="tableRowClassName" @sort-change="sortChangeOfSetting" > <!-- :style="{width: 100+'%',height:tableHeight-300+'px'}"--> @@ -278,7 +285,8 @@ :page.sync="formSetting.page" :limit.sync="formSetting.rows" align="right" layout="prev, pager, next,sizes" style="margin-top: 10px" layout="total ,prev, pager, next,sizes" popper-class="select_bottom" @pagination="getRoleTypeSearch" /> @@ -308,7 +316,7 @@ <div style="margin-bottom: 10px"> <i class="el-icon-s-operation" style="color:#42b983;" /> ç¨æ·å表 </div> <div style="display: flex;min-height: 50px"> <div style="display: flex;min-height: 50px;margin-bottom: 10px"> <el-form ref="dialogFormUser" inline :model="dialogFormUser" label-width="80px"> <el-form-item label="ç¨æ·ç¼ç "> <el-input @@ -374,10 +382,11 @@ :data="dialogFormUserTable" border highlight-current-row height="370" :height="isIpad?400:365" :header-cell-style="this.$headerCellStyle" :cell-style="this.$cellStyle" :row-key="getRowKey" :row-class-name="tableRowClassName" @sort-change="sortChangeOfUser" @selection-change="handleSelectionChange" > @@ -427,7 +436,8 @@ :page.sync="dialogFormUser.page" :limit.sync="dialogFormUser.rows" align="right" layout="prev, pager, next,sizes" style="margin-top: 10px" layout="total ,prev, pager, next,sizes" popper-class="select_bottom" @pagination="getRoleAssociationUser" /> @@ -483,7 +493,7 @@ <div style="margin-bottom: 10px"> <i class="el-icon-s-operation" style="color:#42b983;" /> åè½æé </div> <div style="height: 400px;overflow-y: scroll"> <div style="height: 393px;overflow-y: scroll"> <el-tree v-if="dialogFormRight.rightCurrentCode==='PC'" ref="rightPCRef" @@ -518,7 +528,7 @@ </el-dialog> <!--å¯¼å ¥ç»ä»¶--> <import-picker ref="importPickerFunc" :shows.sync="shows" :title="title_value" :colos="colos" :code="code" /> <import-picker ref="importPickerFunc" class="importPickerClass" :shows.sync="shows" :title="title_value" :colos="colos" :code="code" /> </div> </template> @@ -705,6 +715,9 @@ settingButton() { this.settingDialogVisible = true this.getRoleTypeSearch() this.$nextTick(() => { this.$refs.RoleTypeCodeArr.doLayout() }) }, // è·åæå±ç»ç» async getUserOrganization() { @@ -825,14 +838,16 @@ // è·å页é¢é«åº¦ getHeight() { this.$nextTick(() => { this.mainHeight = window.innerHeight - 250 this.tableHeight = this.mainHeight - 50 this.mainHeight = window.innerHeight - 85 this.tableHeight = this.mainHeight - 200 if (window.innerHeight < 769) { this.tableHeight = this.tableHeight - 50 this.tableHeight = this.tableHeight - 40 } this.isIpad = window.innerHeight < 769 && window.innerWidth < 1367 }) }, tableRowClassName({ row, rowIndex }) { return 'custom-row' }, /* 设置模å*/ // è®¾ç½®å¯¹è¯æ¡å ³éäºä»¶ @@ -908,6 +923,9 @@ this.userForm.roleName = row.role_name this.dialogFormUser.rolecode = row.role_code this.getRoleAssociationUser() this.$nextTick(() => { this.$refs.multipleTable.doLayout() }) }, // è·åè§è²æ¸ åå ³èç¨æ· async getRoleAssociationUser() { @@ -1114,9 +1132,11 @@ } } // ç®å䏿è¯å®æ¯è¿ä¸ª if (this.PCTrue && !this.APPTrue) { pcIsSelected1 = true if (rightPCArrFlag === 'Y') { pcIsSelected1 = true // pcIsSelected1 = true pcIsSelected2 = true const interval = setInterval(() => { @@ -1131,8 +1151,9 @@ } }, 100) this.dialogFormRight.rightCurrentCode = this.dialogFormRight.rightPCArr[0].code // this.dialogFormRight.rightCurrentCode = this.dialogFormRight.rightPCArr[0].code } this.dialogFormRight.rightCurrentCode = this.dialogFormRight.rightPCArr[0].code } if (!this.PCTrue && this.APPTrue) { @@ -1472,58 +1493,10 @@ <style lang="scss" scoped> $main_color: #42b983; ::v-deep .el-button--primary { background-color: $main_color !important; height: 30px; display: flex; align-items: center; //border: 1px solid $main_color; border: none; padding: 0 20px; } ::v-deep .el-button--primary:hover { border: none; } ::v-deep .el-button--info { //background-color: $main_color !important; height: 30px; display: flex; align-items: center; padding: 0 20px; } ::v-deep .el-pagination.is-background .el-pager li:not(.disabled).active { background-color: $main_color !important; } ::v-deep .el-dialog__footer { display: flex; justify-content: flex-end; } .footerButton { display: flex; justify-content: end; } ::v-deep .el-button--default { background-color: #ffffff !important; height: 30px; display: flex; align-items: center; padding: 0 20px; } ::v-deep .el-button--default:hover { color: #606266; } ::v-deep .el-dialog__body { padding: 20px 100px !important; } .settingDialogVisible, .userDialogVisible, .dialogVisibleRight { ::v-deep .el-dialog__body { padding: 10px 20px !important; @@ -1590,86 +1563,82 @@ } } ::v-deep .el-radio__input.is-checked .el-radio__inner { background-color: $main_color; border-color: $main_color; </style> <!--å ¬å ±é¡µé¢æ ·å¼--> <style lang="scss" scoped> $main_color: #42b983; .el-icon-share ,.el-icon-delete,.el-icon-edit-outline{ color: $main_color; cursor: pointer; } .el-icon-edit-outline{ margin-right: 15px; } ::v-deep .el-radio__input.is-checked + .el-radio__label { color: $main_color !important; ::v-deep .el-button--primary, .el-button--default, .el-button--info { height: 34px; display: flex; align-items: center; padding: 0 15px; } ::v-deep .el-checkbox__input.is-checked .el-checkbox__inner { border-color: $main_color; background-color: $main_color; ::v-deep .el-button--primary { //background-color: $main_color !important; } ::v-deep .el-button--default { background-color: #f8f8fa; border: none; } ::v-deep .el-input__inner { height: 30px; line-height: 30px; height: 34px; line-height: 34px; //color: #a7a7a7; } ::v-deep .el-input__inner:focus { border-color: $main_color; ::v-deep .el-dialog__body { padding: 20px 100px !important; } ::v-deep .dialogVisibleRoles .el-dialog__body { padding: 20px 20px !important; } ::v-deep .importPickerClass .el-dialog__body { padding: 20px 20px !important; } ::v-deep .el-dialog__footer { display: flex; justify-content: flex-end; } ::v-deep .el-table .caret-wrapper { //float: right; transform: scale(0.8); } ::v-deep .cell { display: flex !important; align-items: center !important; justify-content: space-between !important; } ::v-deep .el-button--text { color: $main_color; font-size: 14px; cursor: pointer; } .operationClass { height: 23px; display: flex; justify-content: space-between; align-items: center; justify-content: space-between; } .el-icon-share, .el-icon-user-solid { color: $main_color; cursor: pointer; ::v-deep .el-table::before { height: 0; } .el-checkbox.is-bordered.is-checked { border-color: $main_color; ::v-deep .el-table__body-wrapper { background-color: #f8f8fa; } ::v-deep .el-radio__input.is-checked .el-radio__inner { border-color: $main_color; background: $main_color; ::v-deep .el-table__body .el-table__row.hover-row td{ background-color: #eaecef ; } ::v-deep .el-checkbox__input.is-indeterminate .el-checkbox__inner { border-color: $main_color; background: $main_color; } ::v-deep .el-checkbox__input.is-checked + .el-checkbox__label { color: $main_color !important; } ::v-deep .el-checkbox.is-bordered + .el-checkbox.is-bordered { margin: 10px 30px 0px 0; } ::v-deep .el-radio__input.is-checked + .el-radio__label { color: $main_color; } ::v-deep .el-radio.is-bordered + .el-radio.is-bordered { margin: 10px 30px 0px 0; ::v-deep .el-form--inline .el-form-item__label { color: #a7a7a7; } .body ::v-deep .el-divider { @@ -1681,45 +1650,14 @@ .body ::v-deep .el-form-item { margin-bottom: 0; } ::v-deep .el-input__inner:focus { border-color: $main_color; } ::v-deep .el-select .el-input__inner:focus { border-color: $main_color; } ::v-deep .el-select-dropdown__item.selected { color: $main_color; } ::v-deep .el-textarea__inner:focus { border-color: $main_color; .userDialogVisible ::v-deep .el-form-item { margin-bottom: 0; } </style> <style lang="scss"> .elCascader { //.el-cascader-node.in-active-path, .el-cascader-node.is-active, .el-cascader-node.is-selectable.in-checked-path { // color: #42b983 ; //} .el-cascader-node.is-selectable.in-checked-path { color: #42b983; } <style> .el-radio__input.is-checked .el-radio__inner { background-color: #42b983; border-color: #42b983; } .el-radio__input.is-checked .el-radio__inner:hover { border-color: #42b983; } .el-input__inner { border-color: #42b983 !important; } .el-table .custom-row { background: #f8f8fa; } </style> src/views/jcsz/wldw.vue
@@ -1,7 +1,18 @@ <template> <div> <div class="body" :style="{height:mainHeight+'px'}"> <div style="padding: 10px 5px 0 0"> <div class="bodyTopButtonGroup"> <el-button type="primary" icon="el-icon-circle-plus-outline" @click="add('add')">æ°å¢</el-button> <el-button icon="el-icon-refresh-right" @click="syncSeaveSearchPartner" >忥徿¥åä½ </el-button> <el-button icon="el-icon-download" @click="upload">å¯¼å ¥</el-button> </div> <div class="bodyTopFormGroup"> <el-form ref="form" :model="form" @@ -42,24 +53,13 @@ </div> </el-form> </div> <el-divider /> <div style="margin-left: 10px;display: flex"> <el-button type="primary" icon="el-icon-circle-plus-outline" @click="add('add')">æ°å¢</el-button> <el-button type="primary" icon="el-icon-refresh-right" @click="syncSeaveSearchPartner" >忥徿¥åä½ </el-button> <el-button type="primary" icon="el-icon-upload2" @click="upload">å¯¼å ¥</el-button> </div> <el-divider /> <div class="elTableDiv"> <el-table :data="tableData" border :height="tableHeight+'px'" stripe :row-class-name="tableRowClassName" highlight-current-row :header-cell-style="this.$headerCellStyle" :cell-style="this.$cellStyle" @@ -159,8 +159,12 @@ > <template slot-scope="{row}"> <div class="operationClass"> <el-button type="text" @click="edit('edit',row)">ç¼è¾</el-button> <el-button type="text" @click="del(row)">å é¤</el-button> <el-tooltip class="item" effect="dark" content="ç¼è¾" placement="top"> <i class="el-icon-edit-outline" @click="edit('edit',row)" /> </el-tooltip> <el-tooltip v-del-tab-index class="item" effect="dark" content="å é¤" placement="top"> <i class="el-icon-delete" @click="del(row)" /> </el-tooltip> </div> </template> </el-table-column> @@ -221,7 +225,7 @@ </el-dialog> <!--å¯¼å ¥ç»ä»¶--> <import-picker ref="importPickerFunc" :shows.sync="shows" :title="title_value" :colos="colos" :code="code" /> <import-picker ref="importPickerFunc" class="importPickerClass" :shows.sync="shows" :title="title_value" :colos="colos" :code="code" /> </div> </template> @@ -522,13 +526,18 @@ // è·å页é¢é«åº¦ getHeight() { this.$nextTick(() => { this.mainHeight = window.innerHeight - 250 this.tableHeight = this.mainHeight - 50 this.mainHeight = window.innerHeight - 85 this.tableHeight = this.mainHeight - 200 if (window.innerHeight < 769) { this.tableHeight = this.tableHeight - 50 this.tableHeight = this.tableHeight - 40 } }) }, tableRowClassName({ row, rowIndex }) { return 'custom-row' }, // å¯¼å ¥æé® upload() { this.shows = true @@ -541,36 +550,49 @@ } </script> <!--å ¬å ±é¡µé¢æ ·å¼--> <style lang="scss" scoped> $main_color: #42b983; .el-icon-share ,.el-icon-delete,.el-icon-edit-outline{ color: $main_color; cursor: pointer; } .el-icon-edit-outline{ margin-right: 15px; } ::v-deep .el-button--primary, .el-button--default, .el-button--info { height: 34px; display: flex; align-items: center; padding: 0 15px; } ::v-deep .el-button--primary { background-color: $main_color !important; height: 30px; display: flex; align-items: center; //border: 1px solid $main_color; border: none; padding: 0 20px; } ::v-deep .el-button--primary:hover { border: none; } ::v-deep .el-button--info { //background-color: $main_color !important; height: 30px; display: flex; align-items: center; padding: 0 20px; } ::v-deep .el-input__inner:focus { border-color: $main_color; ::v-deep .el-button--default { background-color: #f8f8fa; border: none; } ::v-deep .el-pagination.is-background .el-pager li:not(.disabled).active { background-color: $main_color !important; ::v-deep .el-input__inner { height: 34px; line-height: 34px; //color: #a7a7a7; } ::v-deep .el-dialog__body { padding: 20px 100px !important; } ::v-deep .dialogVisibleRoles .el-dialog__body { padding: 20px 20px !important; } ::v-deep .importPickerClass .el-dialog__body { padding: 20px 20px !important; } ::v-deep .el-dialog__footer { @@ -578,104 +600,30 @@ justify-content: flex-end; } .footerButton { display: flex; justify-content: end; } ::v-deep .el-button--default { background-color: #ffffff !important; height: 30px; display: flex; align-items: center; padding: 0 20px; } ::v-deep .el-button--default:hover { color: #606266; } ::v-deep .el-dialog__body { padding: 20px 100px !important; } ::v-deep .el-radio__input.is-checked .el-radio__inner { background-color: $main_color; border-color: $main_color; } ::v-deep .el-radio__input.is-checked + .el-radio__label { color: $main_color !important; } ::v-deep .el-checkbox__input.is-checked .el-checkbox__inner { border-color: $main_color; background-color: $main_color; } ::v-deep .el-input__inner { height: 30px; line-height: 30px; } ::v-deep .el-table .caret-wrapper { //float: right; transform: scale(0.8); } ::v-deep .cell { display: flex !important; align-items: center !important; justify-content: space-between !important; } ::v-deep .el-button--text { color: $main_color; font-size: 14px; cursor: pointer; } .operationClass { height: 23px; display: flex; justify-content: space-between; align-items: center; justify-content: space-between; } .el-icon-share { color: $main_color; cursor: pointer; ::v-deep .el-table::before { height: 0; } .el-checkbox.is-bordered.is-checked { border-color: $main_color; ::v-deep .el-table__body-wrapper { background-color: #f8f8fa; } ::v-deep .el-radio__input.is-checked .el-radio__inner { border-color: $main_color; background: $main_color; ::v-deep .el-table__body .el-table__row.hover-row td{ background-color: #eaecef ; } ::v-deep .el-checkbox__input.is-indeterminate .el-checkbox__inner { border-color: $main_color; background: $main_color; } ::v-deep .el-checkbox__input.is-checked + .el-checkbox__label { color: $main_color !important; } ::v-deep .el-checkbox.is-bordered + .el-checkbox.is-bordered { margin: 10px 30px 0px 0; } ::v-deep .el-radio__input.is-checked + .el-radio__label { color: $main_color; } ::v-deep .el-radio.is-bordered + .el-radio.is-bordered { margin: 10px 30px 0px 0; ::v-deep .el-form--inline .el-form-item__label { color: #a7a7a7; } .body ::v-deep .el-divider { @@ -687,25 +635,14 @@ .body ::v-deep .el-form-item { margin-bottom: 0; } ::v-deep .el-input__inner:focus { border-color: $main_color; .userDialogVisible ::v-deep .el-form-item { margin-bottom: 0; } ::v-deep .el-select .el-input__inner:focus { border-color: $main_color; } </style> <style> ::v-deep .el-select-dropdown__item.selected { color: $main_color; .el-table .custom-row { background: #f8f8fa; } ::v-deep .el-checkbox__inner:hover { border-color: $main_color; } ::v-deep .el-textarea__inner:focus { border-color: $main_color; } </style> src/views/jcsz/yhqd.vue
@@ -1,7 +1,13 @@ <template> <div> <div class="body" :style="{height:mainHeight+'px'}"> <div style="padding: 10px 5px 0 0"> <div class="bodyTopButtonGroup"> <el-button type="primary" icon="el-icon-circle-plus-outline" @click="add('add')">æ°å¢</el-button> <el-button icon="el-icon-menu" @click="workingTramClick">ç产çç»</el-button> <el-button icon="el-icon-download" @click="upload">å¯¼å ¥</el-button> </div> <div class="bodyTopFormGroup"> <el-form ref="form" :model="form" @@ -61,29 +67,23 @@ </el-select> </el-form-item> </div> <div style="display: flex;align-items: start;margin-top: 5px;"> <div style="display: flex;align-items: flex-start;margin-top: 3px"> <el-button type="primary" icon="el-icon-search" @click="search">æ¥è¯¢</el-button> <el-button type="info" icon="el-icon-refresh" @click="reset">éç½®</el-button> </div> </el-form> </div> <el-divider /> <div style="margin-left: 10px;display: flex"> <el-button type="primary" icon="el-icon-circle-plus-outline" @click="add('add')">æ°å¢</el-button> <el-button type="primary" icon="el-icon-menu" @click="workingTramClick">ç产çç»</el-button> <el-button type="primary" icon="el-icon-upload2" @click="upload">å¯¼å ¥</el-button> </div> <el-divider /> <div class="elTableDiv"> <el-table :data="tableData" border stripe :height="tableHeight+'px'" highlight-current-row :style="{width: 100+'%',height:tableHeight+'px'}" :header-cell-style="this.$headerCellStyle" :row-class-name="tableRowClassName" :cell-style="this.$cellStyle" border @sort-change="sortChange" > <!-- <el-table-column--> @@ -166,8 +166,14 @@ sortable="custom" > <template slot-scope="{row}"> <div v-if="row.enable==='Y'"><svg-icon icon-class="circleYes" style="margin-right: 2px" />å¨è</div> <div v-if="row.enable==='N'"><svg-icon icon-class="circleNo" style="margin-right: 2px" />离è</div> <div v-if="row.enable==='Y'"> <svg-icon icon-class="circleYes" style="margin-right: 2px" /> å¨è </div> <div v-if="row.enable==='N'"> <svg-icon icon-class="circleNo" style="margin-right: 2px" /> 离è </div> </template> </el-table-column> <el-table-column @@ -189,7 +195,12 @@ > <template slot-scope="{row}"> <i v-if="row.is_role==='Y'" class="el-icon-share" @click="roleClick({row})" /> <i v-if="row.is_role==='N'" class="el-icon-share" style="color: rgb(180 ,181, 185)" @click="roleClick({row})" /> <i v-if="row.is_role==='N'" class="el-icon-share" style="color: rgb(180 ,181, 185)" @click="roleClick({row})" /> </template> </el-table-column> <el-table-column @@ -199,8 +210,12 @@ > <template slot-scope="{row}"> <div class="operationClass"> <el-button type="text" @click="edit('edit',row)">ç¼è¾</el-button> <el-button type="text" @click="del(row.id)">å é¤</el-button> <el-tooltip class="item" effect="dark" content="ç¼è¾" placement="top"> <i class="el-icon-edit-outline" @click="edit('edit',row)" /> </el-tooltip> <el-tooltip v-del-tab-index class="item" effect="dark" content="å é¤" placement="top"> <i class="el-icon-delete" @click="del(row.id)" /> </el-tooltip> </div> </template> </el-table-column> @@ -213,7 +228,7 @@ :page.sync="form.page" :limit.sync="form.rows" align="right" layout="prev, pager, next,sizes" layout="total ,prev, pager, next,sizes" popper-class="select_bottom" @pagination="getUserSearch" /> @@ -393,17 +408,24 @@ class="workingDialogVisible" @close="handleCloseWorking" > <!-- <div style="margin-bottom: 10px; padding: 10px 0; background-color: #f8f8fa; display: flex">--> <!-- <el-button style="margin-left: 10px;" type="primary" icon="el-icon-circle-plus-outline" @click="addWorking">æ°å¢</el-button>--> <!-- <!– <el-button type="primary" icon="el-icon-delete" @click="delSetting">å é¤</el-button>–>--> <!-- </div>--> <div style="margin-bottom: 20px;display: flex"> <el-button type="primary" icon="el-icon-circle-plus-outline" @click="addWorking">æ°å¢</el-button> <!-- <el-button type="primary" icon="el-icon-delete" @click="delSetting">å é¤</el-button>--> </div> <el-table ref="workingTableData" :data="workingTableData" border height="300" height="377" highlight-current-row :header-cell-style="this.$headerCellStyle" :cell-style="this.$cellStyle" :row-class-name="tableRowClassName" @sort-change="sortChangeOfWorking" > <!-- :style="{width: 100+'%',height:tableHeight-300+'px'}"--> @@ -464,7 +486,8 @@ :page.sync="formWorking.page" :limit.sync="formWorking.rows" align="right" layout="prev, pager, next,sizes" style="margin-top: 10px" layout="total,prev, pager, next,sizes" popper-class="select_bottom" @pagination="getUserGroupSearch" /> @@ -477,7 +500,7 @@ </el-dialog> <!--å¯¼å ¥ç»ä»¶--> <import-picker ref="importPickerFunc" :shows.sync="shows" :title="title_value" :colos="colos" :code="code" /> <import-picker ref="importPickerFunc" class="importPickerClass" :shows.sync="shows" :title="title_value" :colos="colos" :code="code" /> </div> </template> @@ -847,10 +870,11 @@ // è·å页é¢é«åº¦ getHeight() { this.$nextTick(() => { this.mainHeight = window.innerHeight - 250 this.tableHeight = this.mainHeight - 50 // this.mainHeight = window.innerHeight - 250 this.mainHeight = window.innerHeight - 85 this.tableHeight = this.mainHeight - 200 if (window.innerHeight < 769) { this.tableHeight = this.tableHeight - 50 this.tableHeight = this.tableHeight - 40 } this.isIpad = window.innerHeight < 769 && window.innerWidth < 1367 }) @@ -1145,6 +1169,10 @@ workingTramClick() { this.workingDialogVisible = true this.getUserGroupSearch() // 页é¢å è½½å®åéæ°æ¸²æè¡¨æ ¼ this.$nextTick(() => { this.$refs.workingTableData.doLayout() }) }, // ç产çç»å¯¹è¯æ¡å ³éäºä»¶ handleCloseWorking() { @@ -1234,145 +1262,23 @@ // ç产çç»è¿åæé® WorkingDialogVisibleCancel() { this.workingDialogVisible = false }, tableRowClassName({ row, rowIndex }) { // console.log(row, rowIndex, 12) // if (rowIndex === 1) { // return 'warning-row' // } else if (rowIndex === 3) { // return 'success-row' // } return 'custom-row' } } } </script> <style lang="scss" scoped> $main_color: #42b983; ::v-deep .el-button--primary { background-color: $main_color !important; height: 30px; display: flex; align-items: center; //border: 1px solid $main_color; border: none; padding: 0 20px; } ::v-deep .el-button--primary:hover { border: none; } ::v-deep .el-button--info { //background-color: $main_color !important; height: 30px; display: flex; align-items: center; padding: 0 20px; } ::v-deep .el-pagination.is-background .el-pager li:not(.disabled).active { background-color: $main_color !important; } ::v-deep .el-dialog__footer { display: flex; justify-content: flex-end; } .footerButton { display: flex; justify-content: end; } ::v-deep .el-button--default { background-color: #ffffff !important; height: 30px; display: flex; align-items: center; padding: 0 20px; } ::v-deep .el-button--default:hover { color: #606266; } ::v-deep .el-dialog__body { padding: 20px 100px !important; } .workingDialogVisible ::v-deep .el-dialog__body { padding: 20px 20px !important; } ::v-deep .el-radio__input.is-checked .el-radio__inner { background-color: $main_color; border-color: $main_color; } ::v-deep .el-radio__input.is-checked + .el-radio__label { color: $main_color !important; } ::v-deep .el-checkbox__input.is-checked .el-checkbox__inner { border-color: $main_color; background-color: $main_color; } ::v-deep .el-input__inner { height: 30px; line-height: 30px; } ::v-deep .el-table .caret-wrapper { transform: scale(0.8); } ::v-deep .cell { display: flex !important; align-items: center !important; justify-content: space-between !important; } ::v-deep .el-button--text { color: $main_color; font-size: 14px; cursor: pointer; } .operationClass { height: 23px; display: flex; justify-content: space-between; align-items: center; } .el-icon-share { color: $main_color; cursor: pointer; } .el-checkbox.is-bordered.is-checked { border-color: $main_color; } ::v-deep .el-radio__input.is-checked .el-radio__inner { border-color: $main_color; background: $main_color; } ::v-deep .el-checkbox__input.is-indeterminate .el-checkbox__inner { border-color: $main_color; background: $main_color; } ::v-deep .el-checkbox__input.is-checked + .el-checkbox__label { color: $main_color !important; } ::v-deep .el-checkbox.is-bordered + .el-checkbox.is-bordered { margin: 10px 30px 0px 0; } ::v-deep .el-radio__input.is-checked + .el-radio__label { color: $main_color; } ::v-deep .el-radio.is-bordered + .el-radio.is-bordered { margin: 10px 30px 0px 0; } .dialogVisibleRoles { .myCheckboxGroup { @@ -1428,6 +1334,87 @@ } } .workingDialogVisible ::v-deep .el-dialog__body { padding: 20px 20px !important; } </style> <!--å ¬å ±é¡µé¢æ ·å¼--> <style lang="scss" scoped> $main_color: #42b983; .el-icon-share ,.el-icon-delete,.el-icon-edit-outline{ color: $main_color; cursor: pointer; } .el-icon-edit-outline{ margin-right: 15px; } ::v-deep .el-button--primary, .el-button--default, .el-button--info { height: 34px; display: flex; align-items: center; padding: 0 15px; } ::v-deep .el-button--primary { //background-color: $main_color !important; } ::v-deep .el-button--default { background-color: #f8f8fa; border: none; } ::v-deep .el-input__inner { height: 34px; line-height: 34px; //color: #a7a7a7; } ::v-deep .el-dialog__body { padding: 20px 100px !important; } ::v-deep .dialogVisibleRoles .el-dialog__body { padding: 20px 20px !important; } ::v-deep .importPickerClass .el-dialog__body { padding: 20px 20px !important; } ::v-deep .el-dialog__footer { display: flex; justify-content: flex-end; } ::v-deep .el-table .caret-wrapper { transform: scale(0.8); } ::v-deep .cell { display: flex; align-items: center; justify-content: space-between; } ::v-deep .el-table::before { height: 0; } ::v-deep .el-table__body-wrapper { background-color: #f8f8fa; } ::v-deep .el-table__body .el-table__row.hover-row td{ background-color: #eaecef ; } ::v-deep .el-form--inline .el-form-item__label { color: #a7a7a7; } .body ::v-deep .el-divider { border: 1px solid #eee; width: 99%; @@ -1438,47 +1425,10 @@ margin-bottom: 0; } ::v-deep .el-input__inner:focus { border-color: $main_color; } ::v-deep .el-select .el-input__inner:focus { border-color: $main_color; } ::v-deep .el-select-dropdown__item.selected { color: $main_color; } ::v-deep .el-input__inner:focus { border-color: #42b983 !important; } //::v-deep .el-cascader:not(.is-disabled):hover .el-input__inner:focus { // border-color: #42b983 !important; //} </style> <style lang="scss"> .elCascader { //.el-cascader-node.in-active-path, .el-cascader-node.is-active, .el-cascader-node.is-selectable.in-checked-path { // color: #42b983 ; //} .el-cascader-node.is-selectable.in-checked-path { color: #42b983; } <style> .el-radio__input.is-checked .el-radio__inner { background-color: #42b983; border-color: #42b983; } .el-radio__input.is-checked .el-radio__inner:hover { border-color: #42b983; } .el-input__inner { border-color: #42b983 !important; } .el-table .custom-row { background: #f8f8fa; } </style> src/views/jcsz/yhqd_back.vue
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,1484 @@ <template> <div> <div class="body" :style="{height:mainHeight+'px'}"> <div style="padding: 10px 5px 0 0"> <el-form ref="form" :model="form" label-width="80px" inline style="display: flex;justify-content: space-between" > <div class="elForm"> <el-form-item label="ç¨æ·ç¼ç " style=" display: flex;"> <el-input v-model="form.UserCode" placeholder="请è¾å ¥" style="width: 200px" /> </el-form-item> <el-form-item label="ç¨æ·åç§°" style=" display: flex;"> <el-input v-model="form.UserName" placeholder="请è¾å ¥" style="width: 200px" /> </el-form-item> <el-form-item label="æå±ç»ç»" style=" display: flex;"> <el-cascader ref="cascader" filterable popper-class="elCascader" :options="StuOrgArr" :props="defaultProps" @change="cascaderChange" /> <!-- @focus="getUserOrganization"--> </el-form-item> <el-form-item label="å·¥èµç±»å" style=" display: flex;"> <el-select v-model="form.wagetype" :popper-append-to-body="false" filterable style="width: 200px" placeholder="è¯·éæ©" > <el-option v-for="item in wagetypeArr" :key="item.value" :label="item.label" :value="item.value" /> </el-select> </el-form-item> <el-form-item label="å¨èç¶æ" style=" display: flex;"> <el-select v-model="form.Enable" :popper-append-to-body="false" filterable style="width: 200px" placeholder="è¯·éæ©" > <el-option v-for="item in EnableArr" :key="item.value" :label="item.label" :value="item.value" /> </el-select> </el-form-item> </div> <div style="display: flex;align-items: start;margin-top: 5px;"> <el-button type="primary" icon="el-icon-search" @click="search">æ¥è¯¢</el-button> <el-button type="info" icon="el-icon-refresh" @click="reset">éç½®</el-button> </div> </el-form> </div> <el-divider /> <div style="margin-left: 10px;display: flex"> <el-button type="primary" icon="el-icon-circle-plus-outline" @click="add('add')">æ°å¢</el-button> <el-button type="primary" icon="el-icon-menu" @click="workingTramClick">ç产çç»</el-button> <el-button type="primary" icon="el-icon-upload2" @click="upload">å¯¼å ¥</el-button> </div> <el-divider /> <div class="elTableDiv"> <el-table :data="tableData" border stripe :height="tableHeight+'px'" highlight-current-row :style="{width: 100+'%',height:tableHeight+'px'}" :header-cell-style="this.$headerCellStyle" :cell-style="this.$cellStyle" @sort-change="sortChange" > <!-- <el-table-column--> <!-- type="selection"--> <!-- width="50"--> <!-- />--> <el-table-column prop="RowNum" width="50" label="åºå·" fixed /> <el-table-column prop="usercode" label="ç¨æ·ç¼ç " min-width="110" sortable="custom" /> <el-table-column prop="username" label="ç¨æ·åç§°" min-width="110" sortable="custom" /> <el-table-column prop="password" label="ç¨æ·å¯ç " min-width="110" sortable="custom" /> <el-table-column prop="org_name" label="æå±ç»ç»" min-width="110" sortable="custom" /> <el-table-column prop="group_name" label="ç产çç»" min-width="110" sortable="custom" /> <el-table-column prop="wagetype" label="å·¥èµç±»å" sortable="custom" width="110" > <template slot-scope="{row}"> <div v-if="row.wagetype==='1'">计æ¶å¶</div> <div v-if="row.wagetype==='2'">计件å¶</div> </template> </el-table-column> <el-table-column prop="mobile" label="èç³»æ¹å¼" min-width="110" sortable="custom" > <template slot-scope="{row}"> <div v-if="row.mobile===''">/</div> <div v-else>{{ row.mobile }}</div> </template> </el-table-column> <el-table-column prop="email" label="çµåé®ç®±" sortable="custom" min-width="110" > <template slot-scope="{row}"> <div v-if="row.email===''">/</div> <div v-else>{{ row.email }}</div> </template> </el-table-column> <el-table-column prop="enable" label="å¨èç¶æ" width="110" sortable="custom" > <template slot-scope="{row}"> <div v-if="row.enable==='Y'"><svg-icon icon-class="circleYes" style="margin-right: 2px" />å¨è</div> <div v-if="row.enable==='N'"><svg-icon icon-class="circleNo" style="margin-right: 2px" />离è</div> </template> </el-table-column> <el-table-column prop="lm_user" label="å建人å" width="110" sortable="custom" /> <el-table-column prop="lm_date" label="å建æ¶é´" width="160" sortable="custom" /> <el-table-column prop="is_role" label="å ³èè§è²" width="110" > <template slot-scope="{row}"> <i v-if="row.is_role==='Y'" class="el-icon-share" @click="roleClick({row})" /> <i v-if="row.is_role==='N'" class="el-icon-share" style="color: rgb(180 ,181, 185)" @click="roleClick({row})" /> </template> </el-table-column> <el-table-column label="æä½" fixed="right" width="120" > <template slot-scope="{row}"> <div class="operationClass"> <el-button type="text" @click="edit('edit',row)">ç¼è¾</el-button> <el-button type="text" @click="del(row.id)">å é¤</el-button> </div> </template> </el-table-column> </el-table> </div> <!--å页--> <pagination v-show="total>0" :total="total" :page.sync="form.page" :limit.sync="form.rows" align="right" layout="prev, pager, next,sizes" popper-class="select_bottom" @pagination="getUserSearch" /> </div> <!-- ç¨æ·æ¸ åæ°å¢ãç¼è¾--> <el-dialog :title="operation==='add'?'æ°å¢':'ç¼è¾'" :visible.sync="dialogVisible" width="800px" :close-on-click-modal="false" top="15vh" @closed="handleClose" @close="handleClose" > <el-form ref="dialogForm" :rules="dialogFormRules" inline :model="dialogForm" label-width="80px"> <el-form-item label="ç¨æ·ç¼ç " prop="UserCode"> <el-input v-model="dialogForm.UserCode" :disabled="operation!=='add'" style="width: 200px" /> </el-form-item> <el-form-item label="ç¨æ·åç§°" prop="UserName"> <el-input v-model="dialogForm.UserName" style="width: 200px" /> </el-form-item> <el-form-item label="ç¨æ·å¯ç " prop="Password"> <el-input v-model="dialogForm.Password" style="width: 200px" /> </el-form-item> <el-form-item label="å¨èç¶æ" prop="Enable"> <el-select v-model="dialogForm.Enable" :popper-append-to-body="false" filterable style="width: 200px" placeholder="è¯·éæ©" > <el-option v-for="item in EnableArr" :key="item.value" :label="item.label" :value="item.value" /> </el-select> </el-form-item> <el-form-item label="æå±ç»ç»" prop="StuOrg" style="display: flex;float: left"> <el-cascader ref="dialogCascader" key="cascaderKey" filterable popper-class="elCascader" :options="StuOrgArr2" :props="defaultProps" style="width: 200px;" @change="dialogCascaderChange" /> </el-form-item> <el-form-item label="æå±çç»" prop="groupcode"> <el-select v-model="dialogForm.groupcode" :popper-append-to-body="false" filterable style="width: 200px" placeholder="è¯·éæ©" > <el-option v-for="item in usergroupArr" :key="item.group_code" :label="item.group_name" :value="item.group_code" /> </el-select> </el-form-item> <el-form-item label="å·¥èµç±»å" prop="wagetype"> <el-select v-model="dialogForm.wagetype" :popper-append-to-body="false" filterable style="width: 200px" placeholder="è¯·éæ©" > <el-option v-for="item in wagetypeArr" :key="item.value" :label="item.label" :value="item.value" /> </el-select> </el-form-item> <el-form-item label="èç³»æ¹å¼" prop="Mobile"> <el-input v-model="dialogForm.Mobile" style="width: 200px" /> </el-form-item> <el-form-item label="çµåé®ç®±" prop="Email"> <el-input v-model="dialogForm.Email" style="width: 200px" /> </el-form-item> </el-form> <span slot="footer" class="dialog-footer"> <div class="footerButton"> <el-button @click="dialogVisibleCancel">å æ¶</el-button> <el-button type="primary" @click="dialogVisibleConfirm">ç¡® å®</el-button> </div> </span> </el-dialog> <!-- å ³èè§è²--> <el-dialog title="å ³èè§è²" :visible.sync="dialogVisibleRoles" width="800px" :top="isIpad?'3vh':'15vh'" :fullscreen="isIpad" :close-on-click-modal="false" class="dialogVisibleRoles" @closed="handleCloseRoles" @close="handleCloseRoles" > <!-- @opened="handleOpenedRoles"--> <div> <i class="el-icon-s-comment" style="color:#42b983;" /> ç¨æ·åç§°ï¼{{ dialogFormRoles.username }} </div> <el-divider /> <div> <div style="margin-bottom:20px"> <i class="el-icon-s-operation" style="color:#42b983;" /> è§è²ç±»åéåï¼ </div> <div class="myCheckboxGroup"> <div v-for="item in dialogFormRoles.rolesArr" :key="item.code" :style="{border:item.isSelected1?'1px solid #42b983':'1px solid #eee'}" class="myCheckbox" @click="myCheckboxClick(item)" > <input class="myCheckboxInput" type="checkbox" :value="item.code" :name="item.name" :style="{color:item.isSelected2?'#42b983':'#fff'}" @click="myCheckboxInputClick(item)" >{{ item.name }} <!-- ç¶åç¹å»äºä»¶ä¸å½±å--> <!-- onClick="event.cancelBubble = true"--> </div> </div> </div> <el-divider /> <div> <div style="margin-bottom:20px"> <i class="el-icon-s-operation" style="color:#42b983;" /> è§è²ï¼ </div> <el-tree ref="roleTree" :data="dialogFormRoles.roleTree" show-checkbox node-key="code" default-expand-all style="height: 300px" :props="defaultPropsOfRoleTree" @check="checkBoxClick" /> <!-- @check-change="checkChange"--> </div> <span slot="footer" class="dialog-footer"> <div class="footerButton"> <el-button @click="rolesDialogVisibleCancel">å æ¶</el-button> <el-button type="primary" @click="rolesDialogVisibleConfirm">ç¡® å®</el-button> </div> </span> </el-dialog> <!-- äº§ç»æé®å¯¹è¯æ¡--> <el-dialog title="ç产çç»" :visible.sync="workingDialogVisible" width="800px" top="15vh" :close-on-click-modal="false" class="workingDialogVisible" @close="handleCloseWorking" > <div style="margin-bottom: 20px;display: flex"> <el-button type="primary" icon="el-icon-circle-plus-outline" @click="addWorking">æ°å¢</el-button> <!-- <el-button type="primary" icon="el-icon-delete" @click="delSetting">å é¤</el-button>--> </div> <el-table :data="workingTableData" border height="300" highlight-current-row :header-cell-style="this.$headerCellStyle" :cell-style="this.$cellStyle" @sort-change="sortChangeOfWorking" > <!-- :style="{width: 100+'%',height:tableHeight-300+'px'}"--> <!-- <el-table-column--> <!-- type="selection"--> <!-- width="50"--> <!-- />--> <el-table-column width="50" label="åºå·" prop="RowNum" /> <el-table-column prop="group_code" label="çç»ç¼ç " sortable="custom" > <template slot-scope="{row}"> <el-input v-if="row.isVisible===1" v-model="row.group_code" placeholder="请è¾å ¥" /> <div v-else> {{ row.group_code }}</div> </template> </el-table-column> <el-table-column prop="group_name" label="çç»åç§°" sortable="custom" > <template slot-scope="{row}"> <el-input v-if="row.isVisible===1" v-model="row.group_name" placeholder="请è¾å ¥" /> <div v-else> {{ row.group_name }}</div> </template> </el-table-column> <el-table-column prop="description" label="çç»æè¿°" sortable="custom" > <template slot-scope="{row}"> <el-input v-if="row.isVisible===1" v-model="row.description" placeholder="请è¾å ¥" /> <div v-else> {{ row.description }}</div> </template> </el-table-column> <el-table-column label="æä½"> <template slot-scope="{row}"> <div class="operationClass"> <el-button v-if="row.isVisible===0" type="text" @click="delWorking(row)">å é¤</el-button> <el-button v-if="row.isVisible===1" type="text" @click="saveWorking(row)">ä¿å</el-button> <el-button v-if="row.isVisible===1" type="text" @click="cancelWorking(row)">åæ¶</el-button> </div> </template> </el-table-column> </el-table> <!--å页--> <pagination v-show="workingTableDataLength>0" :total="workingTableDataLength" :page.sync="formWorking.page" :limit.sync="formWorking.rows" align="right" layout="prev, pager, next,sizes" popper-class="select_bottom" @pagination="getUserGroupSearch" /> <span slot="footer" class="dialog-footer"> <div class="footerButton"> <el-button @click="WorkingDialogVisibleCancel">è¿å</el-button> <!-- <el-button type="primary" @click="settingDialogVisibleConfirm">ç¡® å®</el-button>--> </div> </span> </el-dialog> <!--å¯¼å ¥ç»ä»¶--> <import-picker ref="importPickerFunc" :shows.sync="shows" :title="title_value" :colos="colos" :code="code" /> </div> </template> <script> import Pagination from '@/components/Pagination' import ImportPicker from '@/components/ImportPicker' import { AddUpdateUser, DeleteUser, SaveUserAssoctRole, UserAssociationRole, UserGroupAdd, UserGroupDelete, UserGroupSearch, UserOrganization, UserSearch } from '@/api/jcsz' import { getCookie } from '@/utils/auth' import $ from 'jquery' import clearAllChildren from '@/utils/global' import { MesOrderStepReportSelectUserGroup } from '@/api/scgl' const SER_HZ = /^[\u4e00-\u9fa5]+$/ export default { name: 'YYQD', components: { Pagination, ImportPicker }, data() { const validateName = (rule, value, callback) => { if (!value) { return callback(new Error('请è¾å ¥ç¼ç ')) } else { if (SER_HZ.test(value)) { return callback(new Error('ç¼ç ä¸è½ä¸ºä¸æ')) } else { callback() } } } const validateMobile = (rule, value, callback) => { if (!value) { callback() // return callback(new Error('请è¾å ¥çµè¯å·ç ')) } else { const mobile = /^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/ // é¿å· const mobile2 = /^[0-9]{6}$/ // çå· if (mobile.test(value) || mobile2.test(value)) { callback() // return callback(new Error('çµè¯å·ç ä¸ç¬¦åè§å')) } else { return callback(new Error('çµè¯å·ç ä¸ç¬¦åè§å')) // callback() } } } const validateEmail = (rule, value, callback) => { if (!value) { callback() // return callback(new Error('请è¾å ¥çµåé®ç®±')) } else { const email = /^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(.[a-zA-Z0-9_-]+)+$/ if (email.test(value)) { callback() } else { return callback(new Error('çµåé®ç®±ä¸ç¬¦åè§å')) } } } return { isIpad: false, mainHeight: 0, tableHeight: 0, form: { UserCode: '', // ç¨æ·ç¼ç UserName: '', // ç¨æ·åç§° StuOrg: '', // æå±ç»ç» wagetype: '', // å·¥èµç±»å Enable: '', // å¨èç¶æ prop: 'lm_date', // æåºå段 order: 'desc', // æåºå段 page: 1, // 第å 页 rows: 20 // æ¯é¡µå¤å°æ¡ }, StuOrgArr: [], // æå±ç»ç»æ°ç» StuOrgArr2: [], // æå±ç»ç»æ°ç» å¯¹è¯æ¡ defaultProps: { checkStrictly: true, value: 'code', label: 'name', children: 'children' }, EnableArr: [ { value: 'Y', label: 'å¨è' }, { value: 'N', label: '离è' } ], // å¨èç¶æ total: 10, tableData: [], dialogVisible: false, dialogForm: { id: '', UserCode: '', UserName: '', Password: '', Enable: 'Y', StuOrg: '', Mobile: '', Email: '', groupcode: '', Operator: '', OperType: '', wagetype: '' }, usergroupArr: [], // ç产çç»æ°ç» wagetypeArr: [ { value: '2', label: '计件å¶' }, { value: '1', label: '计æ¶å¶' } ], operation: '', dialogFormRules: { UserCode: [ { required: true, validator: validateName, trigger: ['blur', 'change'] } ], UserName: [ { required: true, message: '请è¾å ¥ç¨æ·åç§°', trigger: ['blur', 'change'] } ], Password: [ { required: true, message: '请è¾å ¥ç¨æ·å¯ç ', trigger: ['blur', 'change'] } ], Enable: [ { required: true, message: 'è¯·éæ©å¨èç¶æ', trigger: ['blur', 'change'] } ], StuOrg: [ { required: true, message: 'è¯·éæ©æå±ç»ç»', trigger: ['blur', 'change'] } ], wagetype: [ { required: true, message: 'è¯·éæ©å·¥èµç±»å', trigger: ['blur', 'change'] } ], groupcode: [ { required: true, message: 'è¯·éæ©æå±çç»', trigger: ['blur', 'change'] } ], Mobile: [ { required: false, validator: validateMobile, trigger: ['blur', 'change'] } ], Email: [ { required: false, validator: validateEmail, trigger: ['blur', 'change'] } ] }, dialogVisibleRoles: false, dialogFormRoles: { username: '', // ç¨æ·åç§° usercode: '', // ç¨æ·ç¼ç rolesArr: [], // è§è²ç±»åéå rolesArrSelectedArr: [], // è§è²ç±»åéåéä¸ roleTree: [], // è§è²æ roleTreeSelectedArr: [] // è§è²æ éä¸ }, rolesAll: [], // è§è²ææ defaultPropsOfRoleTree: { value: 'code', label: 'name', children: 'children' }, workingDialogVisible: false, workingTableData: [], workingTableDataLength: 0, formWorking: { rows: 10, page: 1, prop: 'group_code', order: 'desc' }, title_value: 'æ°æ®å¯¼å ¥ / ç¨æ·æ¸ å', code: '2', shows: false } }, watch: { shows() { if (!this.shows) { this.getUserSearch() } } }, created() { this.handleRequest() }, mounted() { window.addEventListener('resize', this.getHeight) this.getHeight() }, methods: { handleRequest() { this.getUserSearch().then(res => { if (res.code === '200') { this.getUserOrganization() } }) }, // è·åç¨æ·æ¸ å async getUserSearch() { const res = await UserSearch(this.form) this.tableData = res.data this.total = res.count return { code: res.code } }, // è·åæå±ç»ç» async getUserOrganization() { const { data: res } = await UserOrganization() this.StuOrgArr = clearAllChildren(res) }, // è·åæå±ç»ç»å¯¹è¯æ¡ async getUserOrganization2() { const { data: res } = await UserOrganization() this.StuOrgArr2 = clearAllChildren(res) }, // å¯¼å ¥æé® upload() { this.shows = true this.$refs.importPickerFunc.newDataFunc() }, colos() { this.shows = false }, // æåºæ¹åæ¶ sortChange({ column, prop, order }) { if (order === 'descending') { order = 'desc' } else if (order === 'ascending') { order = 'asc' } else { order = 'desc' } this.form.order = order this.form.prop = prop this.getUserSearch() }, // æ¥è¯¢ search() { this.getUserSearch() }, // éç½® reset() { this.form.UserCode = '' this.form.UserName = '' this.form.StuOrg = '' this.form.Enable = 'Y' this.form.wagetype = '' this.$refs.cascader.checkedValue = ''// 级èéæ©å¨çæ¸ ç©º this.getUserSearch() }, // 级è鿩卿¹åäºä»¶ cascaderChange(val) { this.form.StuOrg = val[val.length - 1] }, dialogCascaderChange(val) { this.dialogForm.StuOrg = val[val.length - 1] }, // è·å䏿ç产çç» async getMesOrderStepReportSelectUserGroup() { const { data: res } = await MesOrderStepReportSelectUserGroup() this.usergroupArr = res }, // æ°å¢æé® add(operation) { this.operation = operation this.dialogVisible = true this.getUserOrganization2() this.getMesOrderStepReportSelectUserGroup() }, // ä¿®æ¹æé® edit(operation, row) { this.operation = operation this.dialogVisible = true console.log(row) this.$nextTick(() => { this.dialogForm.id = row.id this.dialogForm.UserCode = row.usercode this.dialogForm.UserName = row.username this.dialogForm.Password = row.password this.dialogForm.groupcode = row.group_code this.dialogForm.Enable = row.enable this.dialogForm.StuOrg = row.stu_torgcode this.$refs.dialogCascader.checkedValue = row.stu_torgcode this.dialogForm.Mobile = row.mobile this.dialogForm.Email = row.email this.dialogForm.wagetype = row.wagetype }) this.getMesOrderStepReportSelectUserGroup() this.getUserOrganization2() }, // å é¤æé® async del(id) { this.$confirm('æ¯å¦ç¡®è®¤å é¤?', 'æç¤º', { confirmButtonText: 'ç¡®å®', cancelButtonText: 'åæ¶', type: 'warning' }).then(() => { DeleteUser({ Userid: id }).then(res => { if (res.code === '200') { this.$message.success('å 餿å!') this.getUserSearch() } }) }).catch(() => { this.$message.info('已忶å é¤') }) }, // å¯¹è¯æ¡å ³éäºä»¶ handleClose() { this.dialogForm.UserCode = '' this.dialogForm.UserCode = '' this.dialogForm.UserName = '' this.dialogForm.Password = '' this.dialogForm.Enable = 'Y' this.$refs.dialogCascader.checkedValue = '' this.dialogForm.StuOrg = '' this.dialogForm.Mobile = '' this.dialogForm.Email = '' this.dialogForm.groupcode = '' this.dialogForm.wagetype = '' this.$refs.dialogForm.clearValidate() }, // å¯¹è¯æ¡åæ¶ dialogVisibleCancel() { this.dialogVisible = false }, // å¯¹è¯æ¡ç¡®è®¤ dialogVisibleConfirm() { this.$refs.dialogForm.validate(valid => { if (valid) { const data = { id: this.dialogForm.id, UserCode: this.dialogForm.UserCode, UserName: this.dialogForm.UserName, Password: this.dialogForm.Password, Enable: this.dialogForm.Enable, // StuOrg: this.dialogForm.StuOrg, StuOrg: Array.isArray(this.$refs.dialogCascader.checkedValue) ? this.$refs.dialogCascader.checkedValue[this.$refs.dialogCascader.checkedValue.length - 1] : this.$refs.dialogCascader.checkedValue, Mobile: this.dialogForm.Mobile, Email: this.dialogForm.Email, groupcode: this.dialogForm.groupcode, wagetype: this.dialogForm.wagetype, OperType: this.operation === 'add' ? 'Add' : 'Update', Operator: getCookie('admin') } AddUpdateUser(data).then(res => { if (res.code === '200') { this.$message.success(this.operation === 'add' ? 'æ·»å æåï¼' : 'ä¿®æ¹æåï¼') this.dialogVisible = false this.getUserSearch() } else { this.$message.error(this.operation === 'add' ? 'æ·»å 失败ï¼' : 'ä¿®æ¹å¤±è´¥ï¼') } }) } }) }, // è·å页é¢é«åº¦ getHeight() { this.$nextTick(() => { this.mainHeight = window.innerHeight - 250 this.tableHeight = this.mainHeight - 50 if (window.innerHeight < 769) { this.tableHeight = this.tableHeight - 50 } this.isIpad = window.innerHeight < 769 && window.innerWidth < 1367 }) }, // å ³èè§è²ç¹å»äºä»¶ async roleClick({ row }) { this.dialogFormRoles.rolesArrSelectedArr = [] this.dialogFormRoles.rolesArr = [] this.dialogFormRoles.roleTreeSelectedArr = [] this.dialogVisibleRoles = true this.dialogFormRoles.username = row.username this.dialogFormRoles.usercode = row.usercode const { data: res } = await UserAssociationRole({ usercode: row.usercode }) this.rolesAll = res const nodeKey = []// æ 形忾key res.forEach((item, index) => { this.dialogFormRoles.rolesArr.push({ code: item.code, name: item.name, flag: item.flag, isSelected1: false, isSelected2: false }) if (item.flag === 'Y') { this.dialogFormRoles.rolesArr[index].isSelected2 = true this.$nextTick(() => { // $('input:checkbox').eq(index).attr('checked', true)// èªå®ä¹å鿡忾 $('input:checkbox').eq(index).prop('checked', true)// èªå®ä¹å鿡忾 }) this.dialogFormRoles.rolesArrSelectedArr.push(item.name) if (item.children && item.children.length > 0) { const Data = [] item.children.forEach(it => { if (it.flag === 'Y') { nodeKey.push(it.code) Data.push(it.code) } }) this.dialogFormRoles.roleTreeSelectedArr.push({ Code: item.code, Name: item.name, Data: Data }) } } }) console.log(this.dialogFormRoles.roleTreeSelectedArr, 11) console.log(this.dialogFormRoles.rolesArr, 888) this.dialogFormRoles.rolesArr[0].isSelected1 = true// é»è®¤éä¸ç¬¬ä¸ä¸ª // this.dialogFormRoles.rolesArr[0].name = 'å ¨é¨' this.dialogFormRoles.roleTree = this.rolesAll.filter(item => item.code === this.dialogFormRoles.rolesArr[0].code) this.dialogFormRoles.roleTree[0].name = 'å ¨é¨' // this.dialogFormRoles.rolesArr console.log(nodeKey, 1) this.$refs.roleTree.setCheckedKeys(nodeKey) }, // å¤çç¨æ·å ³èå¯¹è¯æ¡å ³éäºä»¶ handleCloseRoles() { this.$refs.roleTree.setCheckedKeys([]) this.dialogFormRoles.rolesArrSelectedArr = [] }, // ç¨æ·å ³èå¯¹è¯æ¡åæ¶äºä»¶ rolesDialogVisibleCancel() { this.dialogVisibleRoles = false }, // ç¨æ·å ³èå¯¹è¯æ¡ç¡®è®¤äºä»¶ async rolesDialogVisibleConfirm() { console.log(this.dialogFormRoles.roleTreeSelectedArr, 333337) const res = await SaveUserAssoctRole(this.dialogFormRoles.roleTreeSelectedArr, this.dialogFormRoles.usercode) if (res.code === '200') { this.$message.success('ä¿åæåï¼') await this.getUserSearch() this.dialogVisibleRoles = false } }, // æ å½¢å¤éæ¡ç¹å»äºä»¶ checkBoxClick(obj, { checkedNodes, checkedKeys, halfCheckedNodes, halfCheckedKeys }) { // console.log(obj, checkedNodes, checkedKeys, halfCheckedNodes, halfCheckedKeys, 78787878) // æ¾å° checkedFatherCode ç¶codeå¼ // å½halfCheckedKeysä¸ççé¶çæ¶å // let checkedFatherCode = halfCheckedKeys.length !== 0 ? halfCheckedKeys[0] : checkedKeys[0] let checkedFatherCode = '' // æ¾å° checkedFatherCode ç¶codeå¼ // if (checkedFatherCode === undefined) { // console.log(this.rolesAll, 66666) this.rolesAll.forEach((item, index) => { if (item.code === obj.code) { checkedFatherCode = item.code } if (item.children && item.children.length > 0) { item.children.forEach((it, ind) => { if (it.code === obj.code) { checkedFatherCode = item.code } }) } }) // } console.log(checkedFatherCode, 8) // 1.第ä¸ç§æ åµå½æ å½¢ åå¶ ä¸ä¸ºé¶ å ¨å¶ ä¸ä¸ºé¶ if (halfCheckedKeys.length !== 0 && checkedKeys.length !== 0) { this.dialogFormRoles.rolesArr.forEach((item, index) => { if (item.code === checkedFatherCode) { console.log('1.第ä¸ç§æ åµå½æ å½¢ åå¶ ä¸ä¸ºé¶ å ¨å¶ ä¸ä¸ºé¶') this.dialogFormRoles.rolesArr[index].isSelected2 = true this.$nextTick(() => { // $('input:checkbox').eq(index).attr('checked', true)// èªå®ä¹å鿡忾 $('input:checkbox').eq(index).prop('checked', true)// èªå®ä¹å鿡忾 }) const temp = this.rolesAll.filter(it => it.code === checkedFatherCode)// è¿æ»¤åºæ¯æ¬¡éä¸ç大项 temp.forEach(it => { const a = [] it.children.forEach(it => { if (it.code === obj.code) { a.push(it.code) } }) // console.log(!this.dialogFormRoles.roleTreeSelectedArr.some(i => i.Code === checkedFatherCode)) if (!this.dialogFormRoles.roleTreeSelectedArr.some(i => i.Code === checkedFatherCode)) { // å½ç´æ¥éç¶codeæ¶æ§è¡ this.dialogFormRoles.roleTreeSelectedArr.push({ Code: it.code, Name: it.name, Data: a }) } else { this.dialogFormRoles.roleTreeSelectedArr.forEach((i, ind) => { // å½éåcodeæ¶æ§è¡ if (i.Code === checkedFatherCode) { this.dialogFormRoles.roleTreeSelectedArr[ind].Data.forEach((i1, ind2) => { if (i1 === a[0]) { // this.dialogFormRoles.roleTreeSelectedArr[ind].Data.splice(ind2, 1)// å½åcodeä¸ç°å¨çcodeç¸åæ¶æ§è¡ this.dialogFormRoles.roleTreeSelectedArr[ind].Data = this.dialogFormRoles.roleTreeSelectedArr[ind].Data.filter(i2 => i2 !== a[0]) } else { this.dialogFormRoles.roleTreeSelectedArr[ind].Data.push(a[0])// //å½åcodeä¸ç°å¨çcodeä¸ç¸åæ¶æ§è¡ } }) // this.dialogFormRoles.roleTreeSelectedArr[ind].Data.filter((i1, ind2) => i1 !== a[0])// è¿æ»¤æéä¸ç¸åç } }) } }) } }) } console.log(this.dialogFormRoles.roleTreeSelectedArr, 11) // 2.第äºç§æ åµå½æ å½¢ åå¶ ä¸ºé¶ å ¨å¶ ä¸ºé¶ if (halfCheckedKeys.length === 0 && checkedKeys.length === 0) { this.dialogFormRoles.rolesArr.forEach((item, index) => { if (item.code === checkedFatherCode) { console.log('2.第äºç§æ åµå½æ å½¢ åå¶ ä¸ºé¶ å ¨å¶ ä¸ºé¶') this.dialogFormRoles.rolesArr[index].isSelected2 = false this.$nextTick(() => { // console.log($('input:checkbox').eq(1).attr('checked', false), 88888) $('input:checkbox').eq(index).prop('checked', false)// èªå®ä¹å鿡忾 }) this.dialogFormRoles.roleTreeSelectedArr.forEach((it, ind) => { if (it.Code === checkedFatherCode) { console.log(it.Code, 9) this.dialogFormRoles.roleTreeSelectedArr.splice(ind, 1) } }) this.dialogFormRoles.rolesArrSelectedArr.forEach((i, i1) => { if (i === checkedFatherCode) { this.dialogFormRoles.rolesArrSelectedArr.splice(i1, 1) } }) } }) } console.log(this.dialogFormRoles.roleTreeSelectedArr, 22) // 3.第ä¸ç§ç§æ åµå½æ å½¢ åå¶ ä¸ºé¶ å ¨å¶ ä¸ä¸ºé¶ if (halfCheckedKeys.length === 0 && checkedKeys.length !== 0) { // this.dialogFormRoles.roleTreeSelectedArr = [] this.dialogFormRoles.rolesArr.forEach((item, index) => { if (item.code === checkedFatherCode) { console.log(' 3.第ä¸ç§ç§æ åµå½æ å½¢ åå¶ ä¸ºé¶ å ¨å¶ ä¸ä¸ºé¶') this.dialogFormRoles.rolesArr[index].isSelected2 = true this.$nextTick(() => { // $('input:checkbox').eq(index).attr('checked', true)// èªå®ä¹å鿡忾 $('input:checkbox').eq(index).prop('checked', true)// èªå®ä¹å鿡忾 }) } }) const temp = this.rolesAll.filter(it => it.code === checkedFatherCode)// è¿æ»¤åºæ¯æ¬¡éä¸ç大项 // console.log(!this.dialogFormRoles.roleTreeSelectedArr.some(i => i.Code === checkedFatherCode)) if (!this.dialogFormRoles.roleTreeSelectedArr.some(i => i.Code === checkedFatherCode)) { // å½ç¶ç±»ä¸ºå ¨å¶æ¶ temp.forEach(it => { this.dialogFormRoles.roleTreeSelectedArr.push({ Code: it.code, Name: it.name, Data: it.children.map(i => i.code) }) }) } else { // å½ç¶ç±»ç±åå¶åä¸ºå ¨å¶æ¶ this.dialogFormRoles.roleTreeSelectedArr.forEach((i1, ind) => { if (i1.Code === checkedFatherCode) { // i1没æ¾å¯¹ this.dialogFormRoles.roleTreeSelectedArr.splice(ind, 1) temp.forEach(it => { this.dialogFormRoles.roleTreeSelectedArr.push({ Code: it.code, Name: it.name, Data: it.children.map(i => i.code) }) }) } }) } } }, // myCheckBoxç¹å»äºä»¶ 大çåç¹å» myCheckboxClick(item) { console.log(this.dialogFormRoles.rolesArr, 7) this.dialogFormRoles.rolesArr.forEach(it => { it.isSelected1 = it.code === item.code }) this.dialogFormRoles.roleTree = this.rolesAll.filter(it => it.code === item.code) this.dialogFormRoles.roleTree[0].name = 'å ¨é¨' if (this.dialogFormRoles.roleTree[0].children.length < 1) { this.dialogFormRoles.roleTree = '' } const temp = this.dialogFormRoles.roleTreeSelectedArr.filter(it => it.Code === item.code) console.log(temp, 33) if (temp.length > 0) { this.$refs.roleTree.setCheckedKeys(temp[0].Data)// æ å½¢éä¸åæ¾ } else { this.$refs.roleTree.setCheckedKeys([])// å½é¿åº¦ä¸ºé¶æ¶ç½®ç©º } }, // myCheckBoxInputç¹å»äºä»¶ å°çåç¹å»(input) myCheckboxInputClick(item) { item.isSelected2 = !item.isSelected2 this.dialogFormRoles.rolesArrSelectedArr = [...new Set(this.dialogFormRoles.rolesArrSelectedArr)]// æ°ç»å»é if (item.isSelected2) { // 仿²¡éä¸å°éä¸ console.log('仿²¡éä¸å°éä¸') this.dialogFormRoles.rolesArr.forEach(it => { if (it.code === item.code && item.isSelected2) { this.dialogFormRoles.rolesArrSelectedArr.push(it.code) } }) const temp = this.rolesAll.filter(it => it.code === item.code)// è¿æ»¤åºæ¯æ¬¡éä¸ç大项 temp.forEach(it => { this.dialogFormRoles.roleTreeSelectedArr.push({ Code: it.code, Name: it.name, Data: it.children.map(i => i.code) }) }) } if (!item.isSelected2) { // ä»éä¸å°æ²¡éä¸ console.log('ä»éä¸å°æ²¡éä¸') this.dialogFormRoles.rolesArr.forEach((it, ind) => { if (it.code === item.code && !item.isSelected2) { console.log('è¿æ¥äº') console.log(this.dialogFormRoles.rolesArrSelectedArr, 78) this.dialogFormRoles.rolesArrSelectedArr.forEach((i, i1) => { if (i === it.code) { this.dialogFormRoles.rolesArrSelectedArr.splice(i1, 1) } }) this.dialogFormRoles.roleTreeSelectedArr.forEach((i, i1) => { if (i.Code === it.code) { this.dialogFormRoles.roleTreeSelectedArr.splice(i1, 1) } }) } }) } this.$refs.roleTree.setCheckedKeys(this.dialogFormRoles.rolesArrSelectedArr) // this.$refs.roleTree.getCheckedKeys()//åªè½è·åå°ç¬¬ä¸ä¸ªæ å½¢ this.dialogFormRoles.rolesArrSelectedArr = [...new Set(this.dialogFormRoles.rolesArrSelectedArr)]// æ°ç»å»é // æ°ç»ä¸å¯¹è±¡ç¸åçå»é // this.dialogFormRoles.roleTreeSelectedArr = this.dialogFormRoles.roleTreeSelectedArr.filter((currentValue, currentIndex, selfArr) => { // return selfArr.findIndex(item => item.code === currentValue.Code) === currentIndex // }) console.log(this.dialogFormRoles.rolesArrSelectedArr, 6666) console.log(this.dialogFormRoles.roleTreeSelectedArr, 6777) }, /* ç产çç»æ¨¡å */ // ç产çç»æé®ç¹å» workingTramClick() { this.workingDialogVisible = true this.getUserGroupSearch() }, // ç产çç»å¯¹è¯æ¡å ³éäºä»¶ handleCloseWorking() { this.workingTableData.forEach((item, index) => { if (item.isVisible === 1) { this.workingTableData.splice(index, 1) } }) this.getMesOrderStepReportSelectUserGroup() }, // ç产çç»æåº sortChangeOfWorking({ column, prop, order }) { if (order === 'descending') { order = 'desc' } else if (order === 'ascending') { order = 'asc' } else { order = 'desc' } this.form.order = order this.form.prop = prop this.getUserGroupSearch() }, // è·åç产çç»å表 async getUserGroupSearch() { const res = await UserGroupSearch(this.formWorking) this.workingTableData = res.data this.workingTableDataLength = res.count this.workingTableData.forEach(item => { item.isVisible = 0 }) }, // æ°å¢ addWorking() { let number = Math.random() * Math.random()// ä½ä¸ºå 餿¶çæ è¯ç¬¦ number = number === 0 ? (10 + Math.random()) : number const data = { group_code: '', group_name: '', description: '', isVisible: 1, number: number } this.workingTableData.unshift(data) }, // å é¤ delWorking(row) { this.$confirm('æ¯å¦ç¡®è®¤å é¤?', 'æç¤º', { confirmButtonText: 'ç¡®å®', cancelButtonText: 'åæ¶', type: 'warning' }).then(() => { UserGroupDelete({ UserGrupCode: row.group_code }).then(res => { if (res.code === '200') { this.$message.success('å 餿å!') this.getUserGroupSearch() } }) }).catch(() => { this.$message.info('已忶å é¤') }) }, // ä¿å async saveWorking(row) { if (row.group_code.trim().length < 1) { return this.$message.info('çç»ç¼ç ä¸è½ä¸ºç©ºï¼') } if (row.group_name.trim().length < 1) { return this.$message.info('çç»åç§°ä¸è½ä¸ºç©ºï¼') } // if (row.description.trim().length < 1) { // return this.$message.info('çç»æè¿°ä¸è½ä¸ºç©ºï¼') // } const data = { code: row.group_code, name: row.group_name, flag: row.description } const res = await UserGroupAdd([data]) if (res.code === '200') { this.$message.success('ä¿åæåï¼') await this.getUserGroupSearch() } }, // åæ¶ cancelWorking(row) { this.workingTableData.forEach((item, index) => { if (item.isVisible === 1 && item.number === row.number) { this.workingTableData.splice(index, 1) } }) }, // ç产çç»è¿åæé® WorkingDialogVisibleCancel() { this.workingDialogVisible = false } } } </script> <style lang="scss" scoped> $main_color: #42b983; ::v-deep .el-button--primary { background-color: $main_color !important; height: 30px; display: flex; align-items: center; //border: 1px solid $main_color; border: none; padding: 0 20px; } ::v-deep .el-button--primary:hover { border: none; } ::v-deep .el-button--info { //background-color: $main_color !important; height: 30px; display: flex; align-items: center; padding: 0 20px; } ::v-deep .el-pagination.is-background .el-pager li:not(.disabled).active { background-color: $main_color !important; } ::v-deep .el-dialog__footer { display: flex; justify-content: flex-end; } .footerButton { display: flex; justify-content: end; } ::v-deep .el-button--default { background-color: #ffffff !important; height: 30px; display: flex; align-items: center; padding: 0 20px; } ::v-deep .el-button--default:hover { color: #606266; } ::v-deep .el-dialog__body { padding: 20px 100px !important; } .workingDialogVisible ::v-deep .el-dialog__body { padding: 20px 20px !important; } ::v-deep .el-radio__input.is-checked .el-radio__inner { background-color: $main_color; border-color: $main_color; } ::v-deep .el-radio__input.is-checked + .el-radio__label { color: $main_color !important; } ::v-deep .el-checkbox__input.is-checked .el-checkbox__inner { border-color: $main_color; background-color: $main_color; } ::v-deep .el-input__inner { height: 30px; line-height: 30px; } ::v-deep .el-table .caret-wrapper { transform: scale(0.8); } ::v-deep .cell { display: flex !important; align-items: center !important; justify-content: space-between !important; } ::v-deep .el-button--text { color: $main_color; font-size: 14px; cursor: pointer; } .operationClass { height: 23px; display: flex; justify-content: space-between; align-items: center; } .el-icon-share { color: $main_color; cursor: pointer; } .el-checkbox.is-bordered.is-checked { border-color: $main_color; } ::v-deep .el-radio__input.is-checked .el-radio__inner { border-color: $main_color; background: $main_color; } ::v-deep .el-checkbox__input.is-indeterminate .el-checkbox__inner { border-color: $main_color; background: $main_color; } ::v-deep .el-checkbox__input.is-checked + .el-checkbox__label { color: $main_color !important; } ::v-deep .el-checkbox.is-bordered + .el-checkbox.is-bordered { margin: 10px 30px 0px 0; } ::v-deep .el-radio__input.is-checked + .el-radio__label { color: $main_color; } ::v-deep .el-radio.is-bordered + .el-radio.is-bordered { margin: 10px 30px 0px 0; } .dialogVisibleRoles { .myCheckboxGroup { display: flex; flex-wrap: wrap; .myCheckbox { border: 1px solid #eee; display: flex; min-width: 100px; padding: 10px; margin: 10px 30px 0 0; border-radius: 5px; cursor: default; .myCheckboxInput { margin: 1px 5px 0 0; cursor: pointer; } } input[type=checkbox] { cursor: pointer; position: relative; width: 14px; height: 14px; font-size: 14px; } input[type=checkbox]::after { position: absolute; top: 0; color: $main_color; width: 14px; height: 14px; display: inline-block; visibility: visible; padding-left: 0; text-align: center; content: ' '; border-radius: 3px } input[type=checkbox]:checked::after { content: "â"; //content: "â"; color: #fff; font-size: 12px; font-weight: bold; background-color: $main_color; } } } .body ::v-deep .el-divider { border: 1px solid #eee; width: 99%; margin: 10px auto; } .body ::v-deep .el-form-item { margin-bottom: 0; } ::v-deep .el-input__inner:focus { border-color: $main_color; } ::v-deep .el-select .el-input__inner:focus { border-color: $main_color; } ::v-deep .el-select-dropdown__item.selected { color: $main_color; } ::v-deep .el-input__inner:focus { border-color: #42b983 !important; } //::v-deep .el-cascader:not(.is-disabled):hover .el-input__inner:focus { // border-color: #42b983 !important; //} </style> <style lang="scss"> .elCascader { //.el-cascader-node.in-active-path, .el-cascader-node.is-active, .el-cascader-node.is-selectable.in-checked-path { // color: #42b983 ; //} .el-cascader-node.is-selectable.in-checked-path { color: #42b983; } .el-radio__input.is-checked .el-radio__inner { background-color: #42b983; border-color: #42b983; } .el-radio__input.is-checked .el-radio__inner:hover { border-color: #42b983; } .el-input__inner { border-color: #42b983 !important; } } </style> src/views/jcsz/zzjg.vue
@@ -1,7 +1,12 @@ <template> <div> <div class="body" :style="{height:mainHeight+'px'}"> <div style="padding: 10px 5px 0 0"> <div class="bodyTopButtonGroup"> <el-button type="primary" icon="el-icon-circle-plus-outline" @click="add('add')">æ°å¢</el-button> </div> <div class="bodyTopFormGroup"> <el-form ref="form" :model="form" @@ -36,16 +41,11 @@ </div> </el-form> </div> <el-divider /> <div style="margin-left: 10px;display: flex"> <el-button type="primary" icon="el-icon-circle-plus-outline" @click="add('add')">æ°å¢</el-button> </div> <el-divider /> <div class="elTableDiv"> <el-table :data="tableData" border stripe :row-class-name="tableRowClassName" :style="{width: 100+'%',height:tableHeight+'px'}" highlight-current-row :height="tableHeight+'px'" @@ -120,8 +120,12 @@ > <template slot-scope="{row}"> <div class="operationClass"> <el-button type="text" @click="edit('edit',row)">ç¼è¾</el-button> <el-button type="text" @click="del(row.id)">å é¤</el-button> <el-tooltip class="item" effect="dark" content="ç¼è¾" placement="top"> <i class="el-icon-edit-outline" @click="edit('edit',row)" /> </el-tooltip> <el-tooltip v-del-tab-index class="item" effect="dark" content="å é¤" placement="top"> <i class="el-icon-delete" @click="del(row.id)" /> </el-tooltip> </div> </template> </el-table-column> @@ -134,7 +138,7 @@ :page.sync="form.page" :limit.sync="form.rows" align="right" layout="prev, pager, next,sizes" layout="total ,prev, pager, next,sizes" popper-class="select_bottom" @pagination="getOrganizationSearch" /> @@ -445,41 +449,63 @@ // è·å页é¢é«åº¦ getHeight() { this.$nextTick(() => { this.mainHeight = window.innerHeight - 250 this.tableHeight = this.mainHeight - 50 this.mainHeight = window.innerHeight - 85 this.tableHeight = this.mainHeight - 200 if (window.innerHeight < 769) { this.tableHeight = this.tableHeight - 50 this.tableHeight = this.tableHeight - 40 } this.isIpad = window.innerHeight < 769 && window.innerWidth < 1367 }) }, tableRowClassName({ row, rowIndex }) { return 'custom-row' } } } </script> <!--å ¬å ±é¡µé¢æ ·å¼--> <style lang="scss" scoped> $main_color: #42b983; .el-icon-share ,.el-icon-delete,.el-icon-edit-outline{ color: $main_color; cursor: pointer; } .el-icon-edit-outline{ margin-right: 15px; } ::v-deep .el-button--primary, .el-button--default, .el-button--info { height: 34px; display: flex; align-items: center; padding: 0 15px; } ::v-deep .el-button--primary { background-color: $main_color !important; height: 30px; display: flex; align-items: center; //border: 1px solid $main_color; border: none; padding: 0 20px; //background-color: $main_color !important; } ::v-deep .el-button--primary:hover { ::v-deep .el-button--default { background-color: #f8f8fa; border: none; } ::v-deep .el-button--info{ height: 30px; display: flex; align-items: center; padding: 0 20px; ::v-deep .el-input__inner { height: 34px; line-height: 34px; //color: #a7a7a7; } ::v-deep .el-pagination.is-background .el-pager li:not(.disabled).active { background-color: $main_color !important; ::v-deep .el-dialog__body { padding: 20px 100px !important; } ::v-deep .dialogVisibleRoles .el-dialog__body { padding: 20px 20px !important; } ::v-deep .importPickerClass .el-dialog__body { padding: 20px 20px !important; } ::v-deep .el-dialog__footer { @@ -487,87 +513,46 @@ justify-content: flex-end; } .footerButton { display: flex; justify-content: end; } ::v-deep .el-button--default { background-color: #ffffff !important; height: 30px; display: flex; align-items: center; padding: 0 20px; } ::v-deep .el-button--default:hover { color: #606266; } ::v-deep .el-dialog__body { padding: 20px 100px !important; } ::v-deep .el-radio__input.is-checked .el-radio__inner { background-color: $main_color; border-color: $main_color; } ::v-deep .el-radio__input.is-checked + .el-radio__label { color: $main_color !important; } ::v-deep .el-checkbox__input.is-checked .el-checkbox__inner { border-color: $main_color; background-color: $main_color; } ::v-deep .el-input__inner { height: 30px; line-height:30px; } ::v-deep .el-table .caret-wrapper { transform: scale(0.8); } ::v-deep .cell { display: flex !important; align-items: center !important; justify-content: space-between !important; } ::v-deep .el-button--text { color: $main_color; font-size: 14px; cursor: pointer; } .operationClass { height: 23px; display: flex; justify-content: space-between; align-items: center; justify-content: space-between; } .body ::v-deep .el-divider{ ::v-deep .el-table::before { height: 0; } ::v-deep .el-table__body-wrapper { background-color: #f8f8fa; } ::v-deep .el-table__body .el-table__row.hover-row td{ background-color: #eaecef ; } ::v-deep .el-form--inline .el-form-item__label { color: #a7a7a7; } .body ::v-deep .el-divider { border: 1px solid #eee; width: 99%; margin: 10px auto; } .body ::v-deep .el-form-item{ .body ::v-deep .el-form-item { margin-bottom: 0; } ::v-deep .el-input__inner:focus { border-color: $main_color; } </style> <style> ::v-deep .el-select .el-input__inner:focus{ border-color: $main_color; } ::v-deep .el-select-dropdown__item.selected{ color: $main_color; .el-table .custom-row { background: #f8f8fa; } </style> src/views/sbgl/sbqd.vue
@@ -1,7 +1,15 @@ <template> <div> <div class="body" :style="{height:mainHeight+'px'}"> <div style="padding: 10px 5px 0 0"> <div class="bodyTopButtonGroup"> <el-button type="primary" icon="el-icon-circle-plus-outline" @click="add('add')">æ°å¢</el-button> <el-button icon="el-icon-c-scale-to-original" @click="deviceTypeButton">设å¤ç±»å</el-button> <el-button icon="el-icon-document-copy" @click="deviceGroupButton">设å¤ç»</el-button> <!-- <el-button type="primary" icon="el-icon-upload2" @click="upload">å¯¼å ¥</el-button>--> </div> <div class="bodyTopFormGroup"> <el-form ref="form" :model="form" @@ -92,21 +100,14 @@ </div> </el-form> </div> <el-divider /> <div style="margin-left: 10px;display: flex"> <el-button type="primary" icon="el-icon-circle-plus-outline" @click="add('add')">æ°å¢</el-button> <el-button type="primary" icon="el-icon-c-scale-to-original" @click="deviceTypeButton">设å¤ç±»å</el-button> <el-button type="primary" icon="el-icon-document-copy" @click="deviceGroupButton">设å¤ç»</el-button> <!-- <el-button type="primary" icon="el-icon-upload2" @click="upload">å¯¼å ¥</el-button>--> </div> <el-divider /> <div class="elTableDiv"> <el-table :data="tableData" border :height="tableHeight+'px'" stripe highlight-current-row :row-class-name="tableRowClassName" :style="{width: 100+'%',height:(tableHeight-50)+'px'}" :header-cell-style="this.$headerCellStyle" :cell-style="this.$cellStyle" @@ -207,8 +208,12 @@ > <template slot-scope="{row}"> <div class="operationClass"> <el-button type="text" @click="edit('edit',row)">ç¼è¾</el-button> <el-button type="text" @click="del(row)">å é¤</el-button> <el-tooltip class="item" effect="dark" content="ç¼è¾" placement="top"> <i class="el-icon-edit-outline" @click="edit('edit',row)" /> </el-tooltip> <el-tooltip v-del-tab-index class="item" effect="dark" content="å é¤" placement="top"> <i class="el-icon-delete" @click="del(row)" /> </el-tooltip> </div> </template> </el-table-column> @@ -221,7 +226,7 @@ :page.sync="form.page" :limit.sync="form.rows" align="right" layout="prev, pager, next,sizes" layout="total,prev, pager, next,sizes" popper-class="select_bottom" @pagination="getDeviceMangerSearch" /> @@ -367,10 +372,12 @@ <!-- <el-button type="primary" icon="el-icon-delete" @click="delSetting">å é¤</el-button>--> </div> <el-table ref="DeviceTypeArray" :data="DeviceTypeArray" border height="300" highlight-current-row :row-class-name="tableRowClassName" :header-cell-style="this.$headerCellStyle" :cell-style="this.$cellStyle" @sort-change="sortChangeOfDeviceType" @@ -427,7 +434,8 @@ :page.sync="formDeviceType.page" :limit.sync="formDeviceType.rows" align="right" layout="prev, pager, next,sizes" style="margin-top: 10px" layout="total,prev, pager, next,sizes" popper-class="select_bottom" @pagination="getDeviceTypeSearchDialog" /> @@ -446,6 +454,7 @@ width="800px" :close-on-click-modal="false" top="15vh" class="DeviceTypeDialogVisible" @close="handleCloseDeviceGroup" > @@ -453,10 +462,12 @@ <el-button type="primary" icon="el-icon-circle-plus-outline" @click="addDeviceGroup">æ°å¢</el-button> </div> <el-table ref="DeviceGroupArray" :data="DeviceGroupArray" border highlight-current-row height="300" :row-class-name="tableRowClassName" :header-cell-style="this.$headerCellStyle" :cell-style="this.$cellStyle" @sort-change="sortChangeOfDeviceGroup" @@ -536,7 +547,8 @@ :page.sync="formDeviceGroup.page" :limit.sync="formDeviceGroup.rows" align="right" layout="prev, pager, next,sizes" style="margin-top: 10px" layout="total, prev, pager, next,sizes" popper-class="select_bottom" @pagination="getDeviceGroupSearchDialog" /> @@ -851,8 +863,11 @@ // è·å页é¢é«åº¦ getHeight() { this.$nextTick(() => { this.mainHeight = window.innerHeight - 250 this.tableHeight = this.mainHeight - 100 this.mainHeight = window.innerHeight - 85 this.tableHeight = this.mainHeight - 240 // if (window.innerHeight < 769) { // this.tableHeight = this.tableHeight - 50 // } }) }, @@ -861,6 +876,9 @@ deviceTypeButton() { this.DeviceTypeDialogVisible = true this.getDeviceTypeSearchDialog() this.$nextTick(() => { this.$refs.DeviceTypeArray.doLayout() }) }, async getDeviceTypeSearchDialog() { const res = await DeviceTypeSearch(this.formDeviceType) @@ -956,6 +974,9 @@ deviceGroupButton() { this.DeviceGroupDialogVisible = true this.getDeviceGroupSearchDialog() this.$nextTick(() => { this.$refs.DeviceGroupArray.doLayout() }) }, // 设å¤ç»å¯¹è¯æ¡å ³éäºä»¶ handleCloseDeviceGroup() { @@ -1059,37 +1080,62 @@ this.DeviceGroupArray.splice(index, 1) } }) }, tableRowClassName({ row, rowIndex }) { return 'custom-row' } } } </script> <style lang="scss" scoped> ::v-deep .DeviceTypeDialogVisible .el-dialog__body { padding: 20px 20px !important; } </style> <!--å ¬å ±é¡µé¢æ ·å¼--> <style lang="scss" scoped> $main_color: #42b983; .el-icon-share ,.el-icon-delete,.el-icon-edit-outline{ color: $main_color; cursor: pointer; } .el-icon-edit-outline{ margin-right: 15px; } ::v-deep .el-button--primary, .el-button--default, .el-button--info { height: 34px; display: flex; align-items: center; padding: 0 15px; } ::v-deep .el-button--primary { background-color: $main_color !important; height: 30px; display: flex; align-items: center; //border: 1px solid $main_color; border: none; padding: 0 20px; } ::v-deep .el-button--primary:hover { border: none; } ::v-deep .el-button--info { //background-color: $main_color !important; height: 30px; display: flex; align-items: center; padding: 0 20px; } ::v-deep .el-pagination.is-background .el-pager li:not(.disabled).active { background-color: $main_color !important; ::v-deep .el-button--default { background-color: #f8f8fa; border: none; } ::v-deep .el-input__inner { height: 34px; line-height: 34px; //color: #a7a7a7; } ::v-deep .el-dialog__body { padding: 20px 100px !important; } ::v-deep .dialogVisibleRoles .el-dialog__body { padding: 20px 20px !important; } ::v-deep .importPickerClass .el-dialog__body { padding: 20px 20px !important; } ::v-deep .el-dialog__footer { @@ -1097,116 +1143,30 @@ justify-content: flex-end; } .footerButton { display: flex; justify-content: end; } ::v-deep .el-button--default { background-color: #ffffff !important; height: 30px; display: flex; align-items: center; padding: 0 20px; } ::v-deep .el-button--default:hover { color: #606266; } ::v-deep .el-dialog__body { padding: 20px 100px !important; } .DeviceTypeDialogVisible { ::v-deep .el-dialog__body { padding: 20px 20px !important; } ::v-deep .el-select .el-input .el-select__caret { display: flex; align-items: center; justify-content: center; } } ::v-deep .el-radio__input.is-checked .el-radio__inner { background-color: $main_color; border-color: $main_color; } ::v-deep .el-radio__input.is-checked + .el-radio__label { color: $main_color !important; } ::v-deep .el-checkbox__input.is-checked .el-checkbox__inner { border-color: $main_color; background-color: $main_color; } ::v-deep .el-input__inner { height: 30px; line-height: 30px; } ::v-deep .el-table .caret-wrapper { //float: right; transform: scale(0.8); } ::v-deep .cell { display: flex !important; align-items: center !important; justify-content: space-between !important; } ::v-deep .el-button--text { color: $main_color; font-size: 14px; cursor: pointer; } .operationClass { height: 23px; display: flex; justify-content: space-between; align-items: center; justify-content: space-between; } .el-icon-share { color: $main_color; cursor: pointer; ::v-deep .el-table::before { height: 0; } .el-checkbox.is-bordered.is-checked { border-color: $main_color; ::v-deep .el-table__body-wrapper { background-color: #f8f8fa; } ::v-deep .el-radio__input.is-checked .el-radio__inner { border-color: $main_color; background: $main_color; ::v-deep .el-table__body .el-table__row.hover-row td{ background-color: #eaecef ; } ::v-deep .el-checkbox__input.is-indeterminate .el-checkbox__inner { border-color: $main_color; background: $main_color; } ::v-deep .el-checkbox__input.is-checked + .el-checkbox__label { color: $main_color !important; } ::v-deep .el-checkbox.is-bordered + .el-checkbox.is-bordered { margin: 10px 30px 0px 0; } ::v-deep .el-radio__input.is-checked + .el-radio__label { color: $main_color; } ::v-deep .el-radio.is-bordered + .el-radio.is-bordered { margin: 10px 30px 0px 0; ::v-deep .el-form--inline .el-form-item__label { color: #a7a7a7; } .body ::v-deep .el-divider { @@ -1218,23 +1178,14 @@ .body ::v-deep .el-form-item { margin-bottom: 0; } ::v-deep .el-input__inner:focus { border-color: $main_color; .userDialogVisible ::v-deep .el-form-item { margin-bottom: 0; } ::v-deep .el-select .el-input__inner:focus { border-color: $main_color; } ::v-deep .el-select-dropdown__item.selected { color: $main_color; } </style> <style lang="scss"> .dateStyle { .el-date-table td.today span { color: #42b983; } <style> .el-table .custom-row { background: #f8f8fa; } </style> src/views/scgl/scdd.vue
@@ -1,11 +1,25 @@ <template> <div> <div class="body" :style="{height:mainHeight+'px'}"> <div style="padding: 10px 5px 0 0"> <div class="bodyTopButtonGroup"> <el-button icon="el-icon-refresh-right" @click="syncERP" >忥ERP </el-button> <el-button icon="el-icon-switch-button" @click="orderClose" >å ³é订å </el-button> </div> <div class="bodyTopFormGroup"> <el-form ref="form" :model="form" label-width="80px" label-width="100px" inline style="display: flex;justify-content: space-between" > @@ -42,13 +56,14 @@ <el-form-item label="å建人å" style=" display: flex;"> <el-input v-model="form.creatuser" style="width: 200px" placeholder="请è¾å ¥" /> </el-form-item> <el-form-item label="é¢è®¡å¼å·¥æ¶é´" label-width="100px" style=" display: flex;"> <el-form-item label="é¢è®¡å¼å·¥æ¶é´" label-width="100px" style=" display: flex;font-size: 14px"> <el-date-picker v-model="form.paystartdate" type="daterange" range-separator="~" class="timeMini" size="mini" style="width: 240px" style="width: 225px;display: flex" :clearable="false" start-placeholder="å¼å§æ¥æ" end-placeholder="ç»ææ¥æ" @@ -56,14 +71,15 @@ <!-- :picker-options="expireTimeOption"--> </el-form-item> <el-form-item label="é¢è®¡å®å·¥æ¶é´" label-width="100px" style=" display: flex;"> <el-form-item label="é¢è®¡å®å·¥æ¶é´" label-width="100px" style=" display: flex;font-size: 14px"> <el-date-picker v-model="form.payenddate" type="daterange" :clearable="false" class="timeMini" range-separator="~" start-placeholder="å¼å§æ¥æ" style="width: 240px" style="width: 225px;display: flex" end-placeholder="ç»ææ¥æ" size="mini" /> @@ -116,28 +132,12 @@ </div> </el-form> </div> <el-divider /> <div style="margin-left: 10px;display: flex"> <el-button type="primary" icon="el-icon-refresh-right" @click="syncERP" >忥ERP </el-button> <el-button type="primary" icon="el-icon-switch-button" @click="orderClose" >å ³é订å </el-button> </div> <el-divider /> <div class="elTableDiv"> <el-table :data="tableData" :height="tableHeight+'px'" border stripe :row-class-name="tableRowClassName" :style="{width: 100+'%',height:tableHeight+'px',}" highlight-current-row :header-cell-style="this.$headerCellStyle" @@ -680,43 +680,74 @@ // è·å页é¢é«åº¦ getHeight() { this.$nextTick(() => { this.mainHeight = window.innerHeight - 250 this.tableHeight = this.mainHeight - 110 this.isIpad = window.innerHeight < 769 this.mainHeight = window.innerHeight - 85 this.tableHeight = this.mainHeight - 260 this.isIpad = window.innerHeight < 769 && window.innerWidth < 1367 if (this.isIpad) { this.tableHeight = this.tableHeight - 30 this.tableHeight = this.tableHeight - 20 } }) }, tableRowClassName({ row, rowIndex }) { return 'custom-row' } } } </script> <!--å ¬å ±é¡µé¢æ ·å¼--> <style lang="scss" scoped> $main_color: #42b983; ::v-deep .el-range-input{ font-size: 14px ; } ::v-deep .el-range-separator{ display: flex; justify-content: center; align-items: center; } .el-icon-share ,.el-icon-delete,.el-icon-edit-outline{ color: $main_color; cursor: pointer; } .el-icon-edit-outline{ margin-right: 15px; } ::v-deep .el-button--primary, .el-button--default, .el-button--info { height: 34px; display: flex; align-items: center; padding: 0 15px; } ::v-deep .el-button--primary { background-color: $main_color !important; height: 30px; display: flex; align-items: center; //border: 1px solid $main_color; border: none; padding: 0 20px; //background-color: $main_color !important; } ::v-deep .el-button--primary:hover { ::v-deep .el-button--default { background-color: #f8f8fa; border: none; } ::v-deep .el-button--info { height: 30px; display: flex; align-items: center; padding: 0 20px; ::v-deep .el-input__inner { height: 34px; line-height: 34px; //color: #a7a7a7; } ::v-deep .el-pagination.is-background .el-pager li:not(.disabled).active { background-color: $main_color !important; ::v-deep .el-dialog__body { padding: 20px 100px !important; } ::v-deep .dialogVisibleRoles .el-dialog__body { padding: 20px 20px !important; } ::v-deep .importPickerClass .el-dialog__body { padding: 20px 20px !important; } ::v-deep .el-dialog__footer { @@ -724,106 +755,30 @@ justify-content: flex-end; } .footerButton { display: flex; justify-content: end; } ::v-deep .el-button--default { background-color: #ffffff !important; height: 30px; display: flex; align-items: center; padding: 0 20px; } ::v-deep .el-button--default:hover { color: #606266; } ::v-deep .el-dialog__body { padding: 20px 100px !important; } ::v-deep .el-radio__input.is-checked .el-radio__inner { background-color: $main_color; border-color: $main_color; } ::v-deep .el-radio__input.is-checked + .el-radio__label { color: $main_color !important; } ::v-deep .el-checkbox__input.is-checked .el-checkbox__inner { border-color: $main_color; background-color: $main_color; } ::v-deep .el-input__inner { height: 30px; line-height: 30px; } ::v-deep .el-input__inner:focus { border-color: $main_color; } ::v-deep .el-table .caret-wrapper { transform: scale(0.8); } ::v-deep .cell { display: flex !important; align-items: center !important; justify-content: space-between !important; } ::v-deep .el-button--text { color: $main_color; font-size: 14px; cursor: pointer; } .operationClass { height: 23px; display: flex; justify-content: space-between; align-items: center; justify-content: space-between; } .el-icon-share { color: $main_color; cursor: pointer; ::v-deep .el-table::before { height: 0; } .el-checkbox.is-bordered.is-checked { border-color: $main_color; ::v-deep .el-table__body-wrapper { background-color: #f8f8fa; } ::v-deep .el-radio__input.is-checked .el-radio__inner { border-color: $main_color; background: $main_color; ::v-deep .el-table__body .el-table__row.hover-row td{ background-color: #eaecef ; } ::v-deep .el-checkbox__input.is-indeterminate .el-checkbox__inner { border-color: $main_color; background: $main_color; } ::v-deep .el-checkbox__input.is-checked + .el-checkbox__label { color: $main_color !important; } ::v-deep .el-checkbox.is-bordered + .el-checkbox.is-bordered { margin: 10px 30px 0px 0; } ::v-deep .el-radio__input.is-checked + .el-radio__label { color: $main_color; } ::v-deep .el-radio.is-bordered + .el-radio.is-bordered { margin: 10px 30px 0px 0; ::v-deep .el-form--inline .el-form-item__label { color: #a7a7a7; } .body ::v-deep .el-divider { @@ -835,36 +790,19 @@ .body ::v-deep .el-form-item { margin-bottom: 0; } ::v-deep .el-input__inner:focus { border-color: $main_color; .userDialogVisible ::v-deep .el-form-item { margin-bottom: 0; } ::v-deep .el-select .el-input__inner:focus { border-color: $main_color; </style> <style> .el-table .custom-row { background: #f8f8fa; } ::v-deep .el-select-dropdown__item.selected { color: $main_color; } ::v-deep .el-checkbox__inner:hover { border-color: $main_color; } ::v-deep .el-textarea__inner:focus { border-color: $main_color; } .elTableDiv { ::v-deep .el-radio__label { display: none; } } </style> <style> .osloading{ font-size: 40px; } </style> src/views/template2.vue
ÎļþÒÑɾ³ý src/views/wlgl/ckdy.vue
@@ -1,7 +1,18 @@ <template> <div> <div class="body" :style="{height:mainHeight+'px'}"> <div style="padding: 10px 5px 0 0"> <div class="bodyTopButtonGroup"> <el-button type="primary" icon="el-icon-circle-plus-outline" @click="add('add')">æ°å¢</el-button> <el-button icon="el-icon-refresh-right" @click="syncSeaveSearchWhareHouseLocation" >忥ä»åº/åºä½ </el-button> <el-button icon="el-icon-download" @click="upload">å¯¼å ¥</el-button> </div> <div class="bodyTopFormGroup"> <el-form ref="form" :model="form" @@ -29,25 +40,13 @@ </div> </el-form> </div> <el-divider /> <div style="margin-left: 10px;display: flex"> <el-button type="primary" icon="el-icon-circle-plus-outline" @click="add('add')">æ°å¢</el-button> <el-button type="primary" icon="el-icon-refresh-right" @click="syncSeaveSearchWhareHouseLocation" >忥ä»åº/åºä½ </el-button> <el-button type="primary" icon="el-icon-upload2" @click="upload">å¯¼å ¥</el-button> </div> <el-divider /> <div class="elTableDiv"> <el-table :data="tableData" border stripe :height="tableHeight+'px'" :style="{width: 100+'%',height:tableHeight+'px',}" :row-class-name="tableRowClassName" :style="{width: 100+'%',height:tableHeight+'px'}" highlight-current-row :header-cell-style="this.$headerCellStyle" :cell-style="this.$cellStyle" @@ -61,6 +60,7 @@ prop="RowNum" width="50" label="åºå·" fixed /> <el-table-column prop="code" @@ -91,11 +91,16 @@ <el-table-column label="æä½" width="120" fixed="right" > <template slot-scope="{row}"> <div class="operationClass"> <el-button type="text" @click="edit('edit',row)">ç¼è¾</el-button> <el-button type="text" @click="del(row)">å é¤</el-button> <el-tooltip class="item" effect="dark" content="ç¼è¾" placement="top"> <i class="el-icon-edit-outline" @click="edit('edit',row)" /> </el-tooltip> <el-tooltip class="item" effect="dark" content="å é¤" placement="top"> <i class="el-icon-delete" @click="del(row)" /> </el-tooltip> </div> </template> </el-table-column> @@ -108,7 +113,7 @@ :page.sync="form.page" :limit.sync="form.rows" align="right" layout="prev, pager, next,sizes" layout="total,prev, pager, next,sizes" popper-class="select_bottom" @pagination="getWareHouseDefSearch" /> @@ -143,7 +148,7 @@ </el-dialog> <!--å¯¼å ¥ç»ä»¶--> <import-picker ref="importPickerFunc" :shows.sync="shows" :title="title_value" :colos="colos" :code="code" /> <import-picker ref="importPickerFunc" class="importPickerClass" :shows.sync="shows" :title="title_value" :colos="colos" :code="code" /> </div> </template> @@ -357,41 +362,63 @@ // è·å页é¢é«åº¦ getHeight() { this.$nextTick(() => { this.mainHeight = window.innerHeight - 250 this.tableHeight = this.mainHeight - 50 this.mainHeight = window.innerHeight - 85 this.tableHeight = this.mainHeight - 200 if (window.innerHeight < 769) { this.tableHeight = this.tableHeight - 50 this.tableHeight = this.tableHeight - 40 } }) }, tableRowClassName({ row, rowIndex }) { return 'custom-row' } } } </script> <!--å ¬å ±é¡µé¢æ ·å¼--> <style lang="scss" scoped> $main_color: #42b983; .el-icon-share ,.el-icon-delete,.el-icon-edit-outline{ color: $main_color; cursor: pointer; } .el-icon-edit-outline{ margin-right: 15px; } ::v-deep .el-button--primary, .el-button--default, .el-button--info { height: 34px; display: flex; align-items: center; padding: 0 15px; } ::v-deep .el-button--primary { background-color: $main_color !important; height: 30px; display: flex; align-items: center; //border: 1px solid $main_color; border: none; padding: 0 20px; //background-color: $main_color !important; } ::v-deep .el-button--primary:hover { ::v-deep .el-button--default { background-color: #f8f8fa; border: none; } ::v-deep .el-button--info { height: 30px; display: flex; align-items: center; padding: 0 20px; ::v-deep .el-input__inner { height: 34px; line-height: 34px; //color: #a7a7a7; } ::v-deep .el-pagination.is-background .el-pager li:not(.disabled).active { background-color: $main_color !important; ::v-deep .el-dialog__body { padding: 20px 100px !important; } ::v-deep .dialogVisibleRoles .el-dialog__body { padding: 20px 20px !important; } ::v-deep .importPickerClass .el-dialog__body { padding: 20px 20px !important; } ::v-deep .el-dialog__footer { @@ -399,102 +426,30 @@ justify-content: flex-end; } .footerButton { display: flex; justify-content: end; } ::v-deep .el-button--default { background-color: #ffffff !important; height: 30px; display: flex; align-items: center; padding: 0 20px; } ::v-deep .el-button--default:hover { color: #606266; } ::v-deep .el-dialog__body { padding: 20px 100px !important; } ::v-deep .el-radio__input.is-checked .el-radio__inner { background-color: $main_color; border-color: $main_color; } ::v-deep .el-radio__input.is-checked + .el-radio__label { color: $main_color !important; } ::v-deep .el-checkbox__input.is-checked .el-checkbox__inner { border-color: $main_color; background-color: $main_color; } ::v-deep .el-input__inner { height: 30px; line-height: 30px; } ::v-deep .el-table .caret-wrapper { transform: scale(0.8); } ::v-deep .cell { display: flex !important; align-items: center !important; justify-content: space-between !important; } ::v-deep .el-button--text { color: $main_color; font-size: 14px; cursor: pointer; } .operationClass { height: 23px; display: flex; justify-content: space-between; align-items: center; justify-content: space-between; } .el-icon-share { color: $main_color; cursor: pointer; ::v-deep .el-table::before { height: 0; } .el-checkbox.is-bordered.is-checked { border-color: $main_color; ::v-deep .el-table__body-wrapper { background-color: #f8f8fa; } ::v-deep .el-radio__input.is-checked .el-radio__inner { border-color: $main_color; background: $main_color; ::v-deep .el-table__body .el-table__row.hover-row td{ background-color: #eaecef ; } ::v-deep .el-checkbox__input.is-indeterminate .el-checkbox__inner { border-color: $main_color; background: $main_color; } ::v-deep .el-checkbox__input.is-checked + .el-checkbox__label { color: $main_color !important; } ::v-deep .el-checkbox.is-bordered + .el-checkbox.is-bordered { margin: 10px 30px 0px 0; } ::v-deep .el-radio__input.is-checked + .el-radio__label { color: $main_color; } ::v-deep .el-radio.is-bordered + .el-radio.is-bordered { margin: 10px 30px 0px 0; ::v-deep .el-form--inline .el-form-item__label { color: #a7a7a7; } .body ::v-deep .el-divider { @@ -507,11 +462,14 @@ margin-bottom: 0; } ::v-deep .el-input__inner:focus { border-color: $main_color; } ::v-deep .el-textarea__inner:focus{ border-color: $main_color; .userDialogVisible ::v-deep .el-form-item { margin-bottom: 0; } </style> <style> .el-table .custom-row { background: #f8f8fa; } </style> src/views/wlgl/kwdy.vue
@@ -1,7 +1,13 @@ <template> <div> <div class="body" :style="{height:mainHeight+'px'}"> <div style="padding: 10px 5px 0 0"> <div class="bodyTopButtonGroup"> <el-button type="primary" icon="el-icon-circle-plus-outline" @click="add('add')">æ°å¢</el-button> <!-- <el-button type="primary" icon="el-icon-upload2" @click="upload">å¯¼å ¥</el-button>--> </div> <div class="bodyTopFormGroup"> <el-form ref="form" :model="form" @@ -45,17 +51,12 @@ </div> </el-form> </div> <el-divider /> <div style="margin-left: 10px;display: flex"> <el-button type="primary" icon="el-icon-circle-plus-outline" @click="add('add')">æ°å¢</el-button> <!-- <el-button type="primary" icon="el-icon-upload2" @click="upload">å¯¼å ¥</el-button>--> </div> <el-divider /> <div class="elTableDiv"> <el-table :data="tableData" border stripe :row-class-name="tableRowClassName" :height="tableHeight+'px'" :style="{width: 100+'%',height:tableHeight+'px',}" highlight-current-row @@ -71,6 +72,7 @@ prop="RowNum" width="50" label="åºå·" fixed /> <el-table-column prop="code" @@ -106,11 +108,16 @@ <el-table-column label="æä½" width="120" fixed="right" > <template slot-scope="{row}"> <div class="operationClass"> <el-button type="text" @click="edit('edit',row)">ç¼è¾</el-button> <el-button type="text" @click="del(row)">å é¤</el-button> <el-tooltip class="item" effect="dark" content="ç¼è¾" placement="top"> <i class="el-icon-edit-outline" @click="edit('edit',row)" /> </el-tooltip> <el-tooltip class="item" effect="dark" content="å é¤" placement="top"> <i class="el-icon-delete" @click="del(row)" /> </el-tooltip> </div> </template> </el-table-column> @@ -123,7 +130,7 @@ :page.sync="form.page" :limit.sync="form.rows" align="right" layout="prev, pager, next,sizes" layout="total,prev, pager, next,sizes" popper-class="select_bottom" @pagination="getStorageDefSearch" /> @@ -372,43 +379,64 @@ // è·å页é¢é«åº¦ getHeight() { this.$nextTick(() => { this.mainHeight = window.innerHeight - 250 this.tableHeight = this.mainHeight - 50 this.mainHeight = window.innerHeight - 85 this.tableHeight = this.mainHeight - 200 if (window.innerHeight < 769) { this.tableHeight = this.tableHeight - 50 } }) }, tableRowClassName({ row, rowIndex }) { return 'custom-row' } } } </script> <!--å ¬å ±é¡µé¢æ ·å¼--> <style lang="scss" scoped> $main_color: #42b983; .el-icon-share ,.el-icon-delete,.el-icon-edit-outline{ color: $main_color; cursor: pointer; } .el-icon-edit-outline{ margin-right: 15px; } ::v-deep .el-button--primary, .el-button--default, .el-button--info { height: 34px; display: flex; align-items: center; padding: 0 15px; } ::v-deep .el-button--primary { background-color: $main_color !important; height: 30px; display: flex; align-items: center; //border: 1px solid $main_color; border: none; padding: 0 20px; //background-color: $main_color !important; } ::v-deep .el-button--primary:hover { ::v-deep .el-button--default { background-color: #f8f8fa; border: none; } ::v-deep .el-button--info { height: 30px; display: flex; align-items: center; padding: 0 20px; ::v-deep .el-input__inner { height: 34px; line-height: 34px; //color: #a7a7a7; } ::v-deep .el-pagination.is-background .el-pager li:not(.disabled).active { background-color: $main_color !important; ::v-deep .el-dialog__body { padding: 20px 100px !important; } ::v-deep .dialogVisibleRoles .el-dialog__body { padding: 20px 20px !important; } ::v-deep .importPickerClass .el-dialog__body { padding: 20px 20px !important; } ::v-deep .el-dialog__footer { @@ -416,102 +444,30 @@ justify-content: flex-end; } .footerButton { display: flex; justify-content: end; } ::v-deep .el-button--default { background-color: #ffffff !important; height: 30px; display: flex; align-items: center; padding: 0 20px; } ::v-deep .el-button--default:hover { color: #606266; } ::v-deep .el-dialog__body { padding: 20px 100px !important; } ::v-deep .el-radio__input.is-checked .el-radio__inner { background-color: $main_color; border-color: $main_color; } ::v-deep .el-radio__input.is-checked + .el-radio__label { color: $main_color !important; } ::v-deep .el-checkbox__input.is-checked .el-checkbox__inner { border-color: $main_color; background-color: $main_color; } ::v-deep .el-input__inner { height: 30px; line-height: 30px; } ::v-deep .el-table .caret-wrapper { transform: scale(0.8); } ::v-deep .cell { display: flex !important; align-items: center !important; justify-content: space-between !important; } ::v-deep .el-button--text { color: $main_color; font-size: 14px; cursor: pointer; } .operationClass { height: 23px; display: flex; justify-content: space-between; align-items: center; justify-content: space-between; } .el-icon-share { color: $main_color; cursor: pointer; ::v-deep .el-table::before { height: 0; } .el-checkbox.is-bordered.is-checked { border-color: $main_color; ::v-deep .el-table__body-wrapper { background-color: #f8f8fa; } ::v-deep .el-radio__input.is-checked .el-radio__inner { border-color: $main_color; background: $main_color; ::v-deep .el-table__body .el-table__row.hover-row td{ background-color: #eaecef ; } ::v-deep .el-checkbox__input.is-indeterminate .el-checkbox__inner { border-color: $main_color; background: $main_color; } ::v-deep .el-checkbox__input.is-checked + .el-checkbox__label { color: $main_color !important; } ::v-deep .el-checkbox.is-bordered + .el-checkbox.is-bordered { margin: 10px 30px 0px 0; } ::v-deep .el-radio__input.is-checked + .el-radio__label { color: $main_color; } ::v-deep .el-radio.is-bordered + .el-radio.is-bordered { margin: 10px 30px 0px 0; ::v-deep .el-form--inline .el-form-item__label { color: #a7a7a7; } .body ::v-deep .el-divider { @@ -523,21 +479,14 @@ .body ::v-deep .el-form-item { margin-bottom: 0; } ::v-deep .el-input__inner:focus { border-color: $main_color; .userDialogVisible ::v-deep .el-form-item { margin-bottom: 0; } ::v-deep .el-textarea__inner:focus { border-color: $main_color; } </style> <style> ::v-deep .el-select .el-input__inner:focus { border-color: $main_color; .el-table .custom-row { background: #f8f8fa; } ::v-deep .el-select-dropdown__item.selected { color: $main_color; } </style> src/views/zzmx/chda.vue
@@ -1,7 +1,29 @@ <template> <div> <div class="body" :style="{height:mainHeight+'px'}"> <div style="padding: 10px 5px 0 0"> <div class="bodyTopButtonGroup"> <el-button type="primary" icon="el-icon-circle-plus-outline" @click="add('add')">æ°å¢</el-button> <!-- <el-button type="primary" icon="el-icon-office-building" @click="office">åä½</el-button>--> <el-button icon="el-icon-refresh-right" @click="syncSeaveSearchUnit" >åæ¥è®¡éåä½ </el-button> <el-button icon="el-icon-refresh-right" @click="syncInventoryFileSelect" >忥åè´§æ¡£æ¡ </el-button> <el-button icon="el-icon-refresh-right" @click="syncStockTypeSelect" >忥åè´§ç±»å </el-button> <!-- <el-button type="primary" icon="el-icon-upload2" @click="upload">å¯¼å ¥</el-button>--> </div> <div class="bodyTopFormGroup"> <el-form ref="form" :model="form" @@ -77,38 +99,14 @@ </div> </el-form> </div> <el-divider /> <div style="margin-left: 10px;display: flex"> <el-button type="primary" icon="el-icon-circle-plus-outline" @click="add('add')">æ°å¢</el-button> <!-- <el-button type="primary" icon="el-icon-office-building" @click="office">åä½</el-button>--> <el-button type="primary" icon="el-icon-refresh-right" @click="syncSeaveSearchUnit" >åæ¥è®¡éåä½ </el-button> <el-button type="primary" icon="el-icon-refresh-right" @click="syncInventoryFileSelect" >忥åè´§æ¡£æ¡ </el-button> <el-button type="primary" icon="el-icon-refresh-right" @click="syncStockTypeSelect" >忥åè´§ç±»å </el-button> <!-- <el-button type="primary" icon="el-icon-upload2" @click="upload">å¯¼å ¥</el-button>--> </div> <el-divider /> <div class="elTableDiv"> <el-table :data="tableData" border stripe :height="tableHeight" width="100%" :row-class-name="tableRowClassName" highlight-current-row :header-cell-style="this.$headerCellStyle" :cell-style="this.$cellStyle" @@ -208,8 +206,12 @@ > <template slot-scope="{row}"> <div class="operationClass"> <el-button type="text" @click="edit('edit',row)">ç¼è¾</el-button> <el-button type="text" @click="del(row)">å é¤</el-button> <el-tooltip class="item" effect="dark" content="ç¼è¾" placement="top"> <i class="el-icon-edit-outline" @click="edit('edit',row)" /> </el-tooltip> <el-tooltip v-del-tab-index class="item" effect="dark" content="å é¤" placement="top"> <i class="el-icon-delete" @click="del(row)" /> </el-tooltip> </div> </template> </el-table-column> @@ -463,7 +465,7 @@ title="å ³èå·¥èºè·¯çº¿" :visible.sync="dialogVisibleRoute" width="800px" top="15vh" top="10vh" :fullscreen="isIpad" class="dialogVisibleRoute" @closed="handleCloseRoute" @@ -523,9 +525,11 @@ </div> <div style="overflow-y: scroll"> <el-table ref="projectTableData" :data="projectTableData" border height="280" :row-class-name="tableRowClassName" highlight-current-row :header-cell-style="this.$headerCellStyle" :cell-style="this.$cellStyle" @@ -534,6 +538,7 @@ prop="seq" width="100" label="å·¥åºåºå·" fixed /> <el-table-column prop="stepcode" @@ -546,10 +551,11 @@ <el-table-column prop="enable" label="å¯ç¨ç¶æ" fixed="right" > <template slot-scope="{row}"> <div v-if="row.enable==='Y'">æ¯</div> <div v-if="row.enable==='N'">å¦</div> <div v-if="row.enable==='Y'"><svg-icon icon-class="circleYes" style="margin-right: 2px" />æ¯</div> <div v-if="row.enable==='N'"><svg-icon icon-class="circleNo" style="margin-right: 2px" />å¦</div> </template> </el-table-column> </el-table> @@ -938,10 +944,10 @@ // è·å页é¢é«åº¦ getHeight() { this.$nextTick(() => { this.mainHeight = window.innerHeight - 250 this.tableHeight = this.mainHeight - 50 this.mainHeight = window.innerHeight - 85 this.tableHeight = this.mainHeight - 200 if (window.innerHeight < 769) { this.tableHeight = this.tableHeight - 50 this.tableHeight = this.tableHeight - 40 } this.isIpad = window.innerHeight < 769 && window.innerWidth < 1367 }) @@ -1141,6 +1147,10 @@ // è¿å officeDialogVisibleCancel() { this.officeDialogVisible = false }, tableRowClassName({ row, rowIndex }) { return 'custom-row' } } } @@ -1148,57 +1158,6 @@ <style lang="scss" scoped> $main_color: #42b983; ::v-deep .el-button--primary { background-color: $main_color !important; height: 30px; display: flex; align-items: center; //border: 1px solid $main_color; border: none; padding: 0 20px; } ::v-deep .el-button--primary:hover { border: none; } ::v-deep .el-button--info { height: 30px; display: flex; align-items: center; padding: 0 20px; } ::v-deep .el-pagination.is-background .el-pager li:not(.disabled).active { background-color: $main_color !important; } ::v-deep .el-dialog__footer { display: flex; justify-content: flex-end; } .footerButton { display: flex; justify-content: end; } ::v-deep .el-button--default { background-color: #ffffff !important; height: 30px; display: flex; align-items: center; padding: 0 20px; } ::v-deep .el-button--default:hover { color: #606266; } ::v-deep .el-dialog__body { padding: 20px 100px !important; } .dialogVisibleRoute { ::v-deep .el-dialog__body { padding: 20px 20px !important; @@ -1209,115 +1168,6 @@ ::v-deep .el-dialog__body { padding: 20px 20px !important; } } ::v-deep .el-radio__input.is-checked .el-radio__inner { background-color: $main_color; border-color: $main_color; } ::v-deep .el-radio__input.is-checked + .el-radio__label { color: $main_color !important; } ::v-deep .el-checkbox__input.is-checked .el-checkbox__inner { border-color: $main_color; background-color: $main_color; } ::v-deep .el-input__inner { height: 30px; line-height: 30px; } ::v-deep .el-table .caret-wrapper { transform: scale(0.8); } ::v-deep .cell { display: flex !important; align-items: center !important; justify-content: space-between !important; } ::v-deep .el-button--text { color: $main_color; font-size: 14px; cursor: pointer; } .operationClass { height: 23px; display: flex; justify-content: space-between; align-items: center; } .el-icon-share { color: $main_color; cursor: pointer; } .el-checkbox.is-bordered.is-checked { border-color: $main_color; } ::v-deep .el-radio__input.is-checked .el-radio__inner { border-color: $main_color; background: $main_color; } ::v-deep .el-checkbox__input.is-indeterminate .el-checkbox__inner { border-color: $main_color; background: $main_color; } ::v-deep .el-checkbox__input.is-checked + .el-checkbox__label { color: $main_color !important; } ::v-deep .el-checkbox.is-bordered + .el-checkbox.is-bordered { margin: 10px 30px 0px 0; } ::v-deep .el-radio__input.is-checked + .el-radio__label { color: $main_color; } ::v-deep .el-radio.is-bordered + .el-radio.is-bordered { margin: 10px 30px 0px 0; } .body ::v-deep .el-divider { border: 1px solid #eee; width: 99%; margin: 10px auto; } .body ::v-deep .el-form-item { margin-bottom: 0; } ::v-deep .el-input__inner:focus { border-color: $main_color; } ::v-deep .el-textarea__inner:focus { border-color: $main_color; } ::v-deep .el-select .el-input__inner:focus { border-color: $main_color; } ::v-deep .el-select-dropdown__item.selected { color: $main_color; } ::v-deep .el-select .el-input .el-select__caret { display: flex; align-items: center; justify-content: center; } .dialogVisibleRoute { @@ -1380,3 +1230,100 @@ } } </style> <!--å ¬å ±é¡µé¢æ ·å¼--> <style lang="scss" scoped> $main_color: #42b983; .el-icon-share ,.el-icon-delete,.el-icon-edit-outline{ color: $main_color; cursor: pointer; } .el-icon-edit-outline{ margin-right: 15px; } ::v-deep .el-button--primary, .el-button--default, .el-button--info { height: 34px; display: flex; align-items: center; padding: 0 15px; } ::v-deep .el-button--primary { //background-color: $main_color !important; } ::v-deep .el-button--default { background-color: #f8f8fa; border: none; } ::v-deep .el-input__inner { height: 34px; line-height: 34px; //color: #a7a7a7; } ::v-deep .el-dialog__body { padding: 20px 100px !important; } ::v-deep .dialogVisibleRoles .el-dialog__body { padding: 20px 20px !important; } ::v-deep .importPickerClass .el-dialog__body { padding: 20px 20px !important; } ::v-deep .el-dialog__footer { display: flex; justify-content: flex-end; } ::v-deep .el-table .caret-wrapper { transform: scale(0.8); } ::v-deep .cell { display: flex; align-items: center; justify-content: space-between; } ::v-deep .el-table::before { height: 0; } ::v-deep .el-table__body-wrapper { background-color: #f8f8fa; } ::v-deep .el-table__body .el-table__row.hover-row td{ background-color: #eaecef ; } ::v-deep .el-form--inline .el-form-item__label { color: #a7a7a7; } .body ::v-deep .el-divider { border: 1px solid #eee; width: 99%; margin: 10px auto; } .body ::v-deep .el-form-item { margin-bottom: 0; } .userDialogVisible ::v-deep .el-form-item { margin-bottom: 0; } </style> <style> .el-table .custom-row { background: #f8f8fa; } </style> src/views/zzmx/gxdy.vue
@@ -1,7 +1,13 @@ <template> <div> <div class="body" :style="{height:mainHeight+'px'}"> <div style="padding: 10px 5px 0 0"> <div class="bodyTopButtonGroup"> <el-button type="primary" icon="el-icon-circle-plus-outline" @click="add('add')">æ°å¢</el-button> <!-- <el-button type="primary" icon="el-icon-upload2" @click="upload">å¯¼å ¥</el-button>--> </div> <div class="bodyTopFormGroup"> <el-form ref="form" :model="form" @@ -58,19 +64,14 @@ </div> </el-form> </div> <el-divider /> <div style="margin-left: 10px;display: flex"> <el-button type="primary" icon="el-icon-circle-plus-outline" @click="add('add')">æ°å¢</el-button> <!-- <el-button type="primary" icon="el-icon-upload2" @click="upload">å¯¼å ¥</el-button>--> </div> <el-divider /> <div class="elTableDiv"> <el-table :data="tableData" :height="tableHeight" border stripe :style="{width: 100+'%',height:tableHeight+'px',}" :row-class-name="tableRowClassName" :style="{width: 100+'%',height:tableHeight+'px'}" highlight-current-row :header-cell-style="this.$headerCellStyle" :cell-style="this.$cellStyle" @@ -180,8 +181,12 @@ > <template slot-scope="{row}"> <div class="operationClass"> <el-button type="text" @click="edit('edit',row)">ç¼è¾</el-button> <el-button type="text" @click="del(row)">å é¤</el-button> <el-tooltip class="item" effect="dark" content="ç¼è¾" placement="top"> <i class="el-icon-edit-outline" @click="edit('edit',row)" /> </el-tooltip> <el-tooltip v-del-tab-index class="item" effect="dark" content="å é¤" placement="top"> <i class="el-icon-delete" @click="del(row)" /> </el-tooltip> </div> </template> </el-table-column> @@ -497,6 +502,9 @@ this.getHeight() }, methods: { tableRowClassName({ row, rowIndex }) { return 'custom-row' }, async getStepSearch() { const res = await StepSearch(this.form) this.tableData = res.data @@ -609,12 +617,13 @@ // è·å页é¢é«åº¦ getHeight() { this.$nextTick(() => { this.mainHeight = window.innerHeight - 250 this.tableHeight = this.mainHeight - 50 // this.mainHeight = window.innerHeight - 250 this.mainHeight = window.innerHeight - 85 this.tableHeight = this.mainHeight - 200 if (window.innerHeight < 769) { this.tableHeight = this.tableHeight - 50 this.tableHeight = this.tableHeight - 40 } this.isIpad = window.innerHeight < 769 this.isIpad = window.innerHeight < 769 && window.innerWidth < 1367 }) }, /* å ³èå·¥ä½ç«æ¨¡å*/ @@ -956,71 +965,10 @@ } } </script> <style lang="scss" scoped> $main_color: #42b983; ::v-deep .el-button--primary { background-color: $main_color !important; height: 30px; display: flex; align-items: center; //border: 1px solid $main_color; border: none; padding: 0 20px; } ::v-deep .el-button--primary:hover { border: none; } ::v-deep .el-button--info { height: 30px; display: flex; align-items: center; padding: 0 20px; } ::v-deep .el-pagination.is-background .el-pager li:not(.disabled).active { background-color: $main_color !important; } ::v-deep .el-dialog__footer { display: flex; justify-content: flex-end; } .footerButton { display: flex; justify-content: end; } ::v-deep .el-button--default { background-color: #ffffff !important; height: 30px; display: flex; align-items: center; padding: 0 20px; } ::v-deep .el-button--default:hover { color: #606266; } ::v-deep .el-dialog__body { padding: 20px 100px !important; } .defectDialogVisible { ::v-deep .el-dialog__body { padding: 20px 20px !important; } } .workDialogVisible { ::v-deep .el-dialog__body { padding: 20px 20px !important; } .myCheckboxGroup { display: flex; flex-wrap: wrap; @@ -1074,27 +1022,60 @@ } } ::v-deep .el-radio__input.is-checked .el-radio__inner { background-color: $main_color; border-color: $main_color; </style> <!--å ¬å ±é¡µé¢æ ·å¼--> <style lang="scss" scoped> $main_color: #42b983; .el-icon-share, .el-icon-delete, .el-icon-edit-outline { color: $main_color; cursor: pointer; } ::v-deep .el-radio__input.is-checked + .el-radio__label { color: $main_color !important; .el-icon-edit-outline { margin-right: 15px; } ::v-deep .el-checkbox__input.is-checked .el-checkbox__inner { border-color: $main_color; background-color: $main_color; ::v-deep .el-button--primary, .el-button--default, .el-button--info { height: 34px; display: flex; align-items: center; padding: 0 15px; } ::v-deep .el-button--primary { //background-color: $main_color !important; } ::v-deep .el-button--default { background-color: #f8f8fa; border: none; } ::v-deep .el-input__inner { height: 30px; line-height: 30px; height: 34px; line-height: 34px; //color: #a7a7a7; } ::v-deep .el-input__inner:focus { border-color: $main_color; ::v-deep .el-dialog__body { padding: 20px 100px !important; } ::v-deep .workDialogVisible .el-dialog__body { padding: 20px 20px !important; } ::v-deep .defectDialogVisible .el-dialog__body { padding: 20px 20px !important; } ::v-deep .importPickerClass .el-dialog__body { padding: 20px 20px !important; } ::v-deep .el-dialog__footer { display: flex; justify-content: flex-end; } ::v-deep .el-table .caret-wrapper { @@ -1102,57 +1083,25 @@ } ::v-deep .cell { display: flex !important; align-items: center !important; justify-content: space-between !important; } ::v-deep .el-button--text { color: $main_color; font-size: 14px; cursor: pointer; } .operationClass { height: 23px; display: flex; justify-content: space-between; align-items: center; justify-content: space-between; } .el-icon-share { color: $main_color; cursor: pointer; ::v-deep .el-table::before { height: 0; } .el-checkbox.is-bordered.is-checked { border-color: $main_color; ::v-deep .el-table__body-wrapper { background-color: #f8f8fa; } ::v-deep .el-radio__input.is-checked .el-radio__inner { border-color: $main_color; background: $main_color; ::v-deep .el-table__body .el-table__row.hover-row td { background-color: #eaecef; } ::v-deep .el-checkbox__input.is-indeterminate .el-checkbox__inner { border-color: $main_color; background: $main_color; } ::v-deep .el-checkbox__input.is-checked + .el-checkbox__label { color: $main_color !important; } ::v-deep .el-checkbox.is-bordered + .el-checkbox.is-bordered { margin: 10px 30px 0px 0; } ::v-deep .el-radio__input.is-checked + .el-radio__label { color: $main_color; } ::v-deep .el-radio.is-bordered + .el-radio.is-bordered { margin: 10px 30px 0px 0; ::v-deep .el-form--inline .el-form-item__label { color: #a7a7a7; } .body ::v-deep .el-divider { @@ -1165,24 +1114,14 @@ margin-bottom: 0; } ::v-deep .el-input__inner:focus { border-color: $main_color; .userDialogVisible ::v-deep .el-form-item { margin-bottom: 0; } ::v-deep .el-select .el-input__inner:focus { border-color: $main_color; } </style> <style> ::v-deep .el-select-dropdown__item.selected { color: $main_color; .el-table .custom-row { background: #f8f8fa; } ::v-deep .el-checkbox__inner:hover { border-color: $main_color; } ::v-deep .el-textarea__inner:focus { border-color: $main_color; } </style> src/views/zzmx/gylx.vue
@@ -1,7 +1,13 @@ <template> <div> <div class="body" :style="{height:mainHeight+'px'}"> <div style="padding: 10px 5px 0 0"> <div class="bodyTopButtonGroup"> <el-button type="primary" icon="el-icon-circle-plus-outline" @click="add('add')">æ°å¢</el-button> <!-- <el-button type="primary" icon="el-icon-upload2" @click="upload">å¯¼å ¥</el-button>--> </div> <div class="bodyTopFormGroup"> <el-form ref="form" :model="form" @@ -29,18 +35,13 @@ </div> </el-form> </div> <el-divider /> <div style="margin-left: 10px;display: flex"> <el-button type="primary" icon="el-icon-circle-plus-outline" @click="add('add')">æ°å¢</el-button> <!-- <el-button type="primary" icon="el-icon-upload2" @click="upload">å¯¼å ¥</el-button>--> </div> <el-divider /> <div class="elTableDiv"> <el-table :data="tableData" :height="tableHeight" border stripe :row-class-name="tableRowClassName" :style="{width: 100+'%',height:tableHeight+'px',}" highlight-current-row :header-cell-style="this.$headerCellStyle" @@ -55,6 +56,7 @@ prop="RowNum" width="50" label="åºå·" fixed /> <el-table-column prop="code" @@ -95,12 +97,16 @@ <el-table-column label="æä½" width="120" fixed="right" > <template slot-scope="{row}"> <div class="operationClass"> <!-- <el-button type="text" @click="edit('edit',row)">ç¼è¾</el-button>--> <el-button type="text" @click="edit('edit',row)">é¢è§</el-button> <el-button type="text" @click="del(row)">å é¤</el-button> <el-tooltip class="item" effect="dark" content="é¢è§" placement="top"> <i class="el-icon-view" style="margin-right:15px;cursor: pointer;color:#42b983 " @click="edit('edit',row)" /> </el-tooltip> <el-tooltip v-del-tab-index class="item" effect="dark" content="å é¤" placement="top"> <i class="el-icon-delete" @click="del(row)" /> </el-tooltip> </div> </template> </el-table-column> @@ -113,7 +119,7 @@ :page.sync="form.page" :limit.sync="form.rows" align="right" layout="prev, pager, next,sizes" layout="total,prev, pager, next,sizes" popper-class="select_bottom" @pagination="getRouteSearch" /> @@ -656,13 +662,16 @@ // è·å页é¢é«åº¦ getHeight() { this.$nextTick(() => { this.mainHeight = window.innerHeight - 250 this.tableHeight = this.mainHeight - 50 this.mainHeight = window.innerHeight - 85 this.tableHeight = this.mainHeight - 200 if (window.innerHeight < 769) { this.tableHeight = this.tableHeight - 50 this.tableHeight = this.tableHeight - 40 } this.isIpad = window.innerHeight < 769 && window.innerWidth < 1367 }) }, tableRowClassName({ row, rowIndex }) { return 'custom-row' } } } @@ -670,165 +679,6 @@ <style lang="scss" scoped> $main_color: #42b983; ::v-deep .el-button--primary { background-color: $main_color !important; height: 30px; display: flex; align-items: center; border: 1px solid $main_color; padding: 0 20px; } ::v-deep .el-button--info { height: 30px; display: flex; align-items: center; padding: 0 20px; } ::v-deep .el-pagination.is-background .el-pager li:not(.disabled).active { background-color: $main_color !important; } ::v-deep .el-dialog__footer { display: flex; justify-content: flex-end; } .footerButton { display: flex; justify-content: end; } ::v-deep .el-button--default { background-color: #ffffff !important; height: 30px; display: flex; align-items: center; padding: 0 20px; } ::v-deep .el-button--default:hover { color: #606266; } //::v-deep .el-dialog__body { // padding: 20px 100px !important; //} ::v-deep .el-dialog__body { padding: 20px 60px !important; } ::v-deep .el-radio__input.is-checked .el-radio__inner { background-color: $main_color; border-color: $main_color; } ::v-deep .el-radio__input.is-checked + .el-radio__label { color: $main_color !important; } ::v-deep .el-checkbox__input.is-checked .el-checkbox__inner { border-color: $main_color; background-color: $main_color; } ::v-deep .el-input__inner { height: 30px; line-height: 30px; } ::v-deep .el-input__inner:focus { border-color: $main_color; } ::v-deep .el-table .caret-wrapper { transform: scale(0.8); } ::v-deep .cell { display: flex !important; align-items: center !important; justify-content: space-between !important; } ::v-deep .el-button--text { color: $main_color; font-size: 14px; cursor: pointer; } .operationClass { height: 23px; display: flex; justify-content: space-between; align-items: center; } .el-icon-share { color: $main_color; cursor: pointer; } .el-checkbox.is-bordered.is-checked { border-color: $main_color; } ::v-deep .el-radio__input.is-checked .el-radio__inner { border-color: $main_color; background: $main_color; } ::v-deep .el-checkbox__input.is-indeterminate .el-checkbox__inner { border-color: $main_color; background: $main_color; } ::v-deep .el-checkbox__input.is-checked + .el-checkbox__label { color: $main_color !important; } ::v-deep .el-checkbox.is-bordered + .el-checkbox.is-bordered { margin: 10px 30px 0px 0; } ::v-deep .el-radio__input.is-checked + .el-radio__label { color: $main_color; } ::v-deep .el-radio.is-bordered + .el-radio.is-bordered { margin: 10px 30px 0px 0; } .body ::v-deep .el-divider { border: 1px solid #eee; width: 99%; margin: 10px auto; } .body ::v-deep .el-form-item { margin-bottom: 0; } ::v-deep .el-input__inner:focus { border-color: $main_color; } ::v-deep .el-select .el-input__inner:focus { border-color: $main_color; } ::v-deep .el-select-dropdown__item.selected { color: $main_color; } ::v-deep .el-checkbox__inner:hover { border-color: $main_color; } ::v-deep .el-textarea__inner:focus { border-color: $main_color; } /* å®ç°å·¥èºè®¾ç½®å¨ææ·»å æ ·å¼ @@ -943,3 +793,100 @@ } } </style> <!--å ¬å ±é¡µé¢æ ·å¼--> <style lang="scss" scoped> $main_color: #42b983; .el-icon-share ,.el-icon-delete,.el-icon-edit-outline{ color: $main_color; cursor: pointer; } .el-icon-edit-outline{ margin-right: 15px; } ::v-deep .el-button--primary, .el-button--default, .el-button--info { height: 34px; display: flex; align-items: center; padding: 0 15px; } ::v-deep .el-button--primary { //background-color: $main_color !important; } ::v-deep .el-button--default { background-color: #f8f8fa; border: none; } ::v-deep .el-input__inner { height: 34px; line-height: 34px; //color: #a7a7a7; } ::v-deep .el-dialog__body { padding: 20px 20px !important; } ::v-deep .dialogVisibleRoles .el-dialog__body { padding: 20px 20px !important; } ::v-deep .importPickerClass .el-dialog__body { padding: 20px 20px !important; } ::v-deep .el-dialog__footer { display: flex; justify-content: flex-end; } ::v-deep .el-table .caret-wrapper { transform: scale(0.8); } ::v-deep .cell { display: flex; align-items: center; justify-content: space-between; } ::v-deep .el-table::before { height: 0; } ::v-deep .el-table__body-wrapper { background-color: #f8f8fa; } ::v-deep .el-table__body .el-table__row.hover-row td{ background-color: #eaecef ; } ::v-deep .el-form--inline .el-form-item__label { color: #a7a7a7; } .body ::v-deep .el-divider { border: 1px solid #eee; width: 99%; margin: 10px auto; } .body ::v-deep .el-form-item { margin-bottom: 0; } .userDialogVisible ::v-deep .el-form-item { margin-bottom: 0; } </style> <style> .el-table .custom-row { background: #f8f8fa; } </style> src/views/zzmx/jpgj.vue
@@ -1,7 +1,13 @@ <template> <div> <div class="body" :style="{height:mainHeight+'px'}"> <div style="padding: 10px 5px 0 0"> <div class="bodyTopButtonGroup"> <el-button type="primary" icon="el-icon-circle-plus-outline" @click="add('add')">æ°å¢</el-button> <!-- <el-button type="primary" icon="el-icon-upload2" @click="upload">å¯¼å ¥</el-button>--> </div> <div class="bodyTopFormGroup"> <el-form ref="form" :model="form" @@ -88,18 +94,13 @@ </div> </el-form> </div> <el-divider /> <div style="margin-left: 10px;display: flex"> <el-button type="primary" icon="el-icon-circle-plus-outline" @click="add('add')">æ°å¢</el-button> <!-- <el-button type="primary" icon="el-icon-upload2" @click="upload">å¯¼å ¥</el-button>--> </div> <el-divider /> <div class="elTableDiv"> <el-table :data="tableData" :height="tableHeight" border stripe :row-class-name="tableRowClassName" :style="{width: 100+'%',height:tableHeight+'px',}" highlight-current-row :header-cell-style="this.$headerCellStyle" @@ -190,8 +191,12 @@ > <template slot-scope="{row}"> <div class="operationClass"> <el-button type="text" @click="edit('edit',row)">ç¼è¾</el-button> <el-button type="text" @click="del(row)">å é¤</el-button> <el-tooltip class="item" effect="dark" content="ç¼è¾" placement="top"> <i class="el-icon-edit-outline" @click="edit('edit',row)" /> </el-tooltip> <el-tooltip v-del-tab-index class="item" effect="dark" content="ç¼è¾" placement="top"> <i class="el-icon-delete" @click="del(row)" /> </el-tooltip> </div> </template> </el-table-column> @@ -302,7 +307,7 @@ :height="tableHeight" :style="{width: 100+'%',height:tableHeight-50+'px',}" border stripe :row-class-name="tableRowClassName" highlight-current-row :header-cell-style="this.$headerCellStyle" :cell-style="this.$cellStyle" @@ -312,6 +317,7 @@ width="50" label="åºå·" prop="RowNum" fixed /> <el-table-column prop="eqpcode" @@ -397,6 +403,8 @@ </el-table-column> <el-table-column label="æä½" width="120" fixed="right" > <template slot-scope="{row}"> <div class="operationClass"> @@ -546,7 +554,9 @@ this.getHeight() }, methods: { tableRowClassName({ row, rowIndex }) { return 'custom-row' }, handleRequest() { this.getBeatRateSearch().then(res => { if (res.code === '200') { @@ -726,6 +736,7 @@ if (res.code === '200') { this.$message.success('å¤å¶æåï¼') await this.getEqpTable() this.isEqpTableEdit = true } }, // 设å¤èæå¼æ¹å @@ -838,10 +849,10 @@ // è·å页é¢é«åº¦ getHeight() { this.$nextTick(() => { this.mainHeight = window.innerHeight - 250 this.tableHeight = this.mainHeight - 50 this.mainHeight = window.innerHeight - 85 this.tableHeight = this.mainHeight - 200 if (window.innerHeight < 769) { this.tableHeight = this.tableHeight - 50 this.tableHeight = this.tableHeight - 40 } this.isIpad = window.innerHeight < 769 && window.innerWidth < 1367 }) @@ -850,31 +861,53 @@ } </script> <!--å ¬å ±é¡µé¢æ ·å¼--> <style lang="scss" scoped> $main_color: #42b983; .el-button--text{ font-size: 14px; cursor: pointer; } .el-icon-share ,.el-icon-delete,.el-icon-edit-outline{ color: $main_color; cursor: pointer; } .el-icon-edit-outline{ margin-right: 15px; } ::v-deep .el-button--primary, .el-button--default, .el-button--info { height: 34px; display: flex; align-items: center; padding: 0 15px; } ::v-deep .el-button--primary { background-color: $main_color !important; height: 30px; display: flex; align-items: center; //border: 1px solid $main_color; border: none; padding: 0 20px; //background-color: $main_color !important; } ::v-deep .el-button--primary:hover { ::v-deep .el-button--default { background-color: #f8f8fa; border: none; } ::v-deep .el-button--info { height: 30px; display: flex; align-items: center; padding: 0 20px; ::v-deep .el-input__inner { height: 34px; line-height: 34px; //color: #a7a7a7; } ::v-deep .el-pagination.is-background .el-pager li:not(.disabled).active { background-color: $main_color !important; ::v-deep .el-dialog__body { padding: 20px 20px !important; } ::v-deep .dialogVisibleRoles .el-dialog__body { padding: 20px 20px !important; } ::v-deep .importPickerClass .el-dialog__body { padding: 20px 20px !important; } ::v-deep .el-dialog__footer { @@ -882,106 +915,30 @@ justify-content: flex-end; } .footerButton { display: flex; justify-content: end; } ::v-deep .el-button--default { background-color: #ffffff !important; height: 30px; display: flex; align-items: center; padding: 0 20px; } ::v-deep .el-button--default:hover { color: #606266; } ::v-deep .el-dialog__body { padding: 20px 20px !important; } ::v-deep .el-radio__input.is-checked .el-radio__inner { background-color: $main_color; border-color: $main_color; } ::v-deep .el-radio__input.is-checked + .el-radio__label { color: $main_color !important; } ::v-deep .el-checkbox__input.is-checked .el-checkbox__inner { border-color: $main_color; background-color: $main_color; } ::v-deep .el-input__inner { height: 30px; line-height: 30px; } ::v-deep .el-input__inner:focus { border-color: $main_color; } ::v-deep .el-table .caret-wrapper { transform: scale(0.8); } ::v-deep .cell { display: flex !important; align-items: center !important; justify-content: space-between !important; } ::v-deep .el-button--text { color: $main_color; font-size: 14px; cursor: pointer; } .operationClass { height: 23px; display: flex; justify-content: space-between; align-items: center; justify-content: space-between; } .el-icon-share { color: $main_color; cursor: pointer; ::v-deep .el-table::before { height: 0; } .el-checkbox.is-bordered.is-checked { border-color: $main_color; ::v-deep .el-table__body-wrapper { background-color: #f8f8fa; } ::v-deep .el-radio__input.is-checked .el-radio__inner { border-color: $main_color; background: $main_color; ::v-deep .el-table__body .el-table__row.hover-row td{ background-color: #eaecef ; } ::v-deep .el-checkbox__input.is-indeterminate .el-checkbox__inner { border-color: $main_color; background: $main_color; } ::v-deep .el-checkbox__input.is-checked + .el-checkbox__label { color: $main_color !important; } ::v-deep .el-checkbox.is-bordered + .el-checkbox.is-bordered { margin: 10px 30px 0px 0; } ::v-deep .el-radio__input.is-checked + .el-radio__label { color: $main_color; } ::v-deep .el-radio.is-bordered + .el-radio.is-bordered { margin: 10px 30px 0px 0; ::v-deep .el-form--inline .el-form-item__label { color: #a7a7a7; } .body ::v-deep .el-divider { @@ -993,25 +950,14 @@ .body ::v-deep .el-form-item { margin-bottom: 0; } ::v-deep .el-input__inner:focus { border-color: $main_color; .userDialogVisible ::v-deep .el-form-item { margin-bottom: 0; } ::v-deep .el-select .el-input__inner:focus { border-color: $main_color; } </style> <style> ::v-deep .el-select-dropdown__item.selected { color: $main_color; .el-table .custom-row { background: #f8f8fa; } ::v-deep .el-checkbox__inner:hover { border-color: $main_color; } ::v-deep .el-textarea__inner:focus { border-color: $main_color; } </style>