Commit 8d78d5de by 胡悦

修改footer

1 parent 1746214c
......@@ -64,19 +64,13 @@
</div>
</div>
<select-product v-show="step == 2" ref="productForm" title="功能权限"></select-product>
<div
class="footer-panel"
:style="{
left: footerLeft + 'px',
width: footerWidth + 'px'
}"
>
<GLFooter>
<el-button type="primary" @click="handleNext" v-show="step == 1">下一步</el-button>
<el-button type="primary" @click="handleSave(1)" v-show="step == 2">存草稿</el-button>
<el-button type="primary" @click="handlePrev" v-show="step == 2">上一步</el-button>
<el-button type="primary" @click="handleSave(2)" v-show="step == 2">确定</el-button>
<el-button type="primary" @click="handleCancel">取消</el-button>
</div>
</GLFooter>
<el-dialog :visible.sync="dialogMapVisible" width="60%">
<map-view ref="mapForm" :mapHeight="mapHeight"></map-view>
<span slot="footer" class="dialog-footer">
......@@ -402,10 +396,7 @@ export default {
},
mounted() {
document.querySelector('#app').scrollTop = 0
this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
this.accountAddForm.parentId = this.$route.params.id
document.querySelector('#app').scrollTop = this.accountAddForm.parentId = this.$route.params.id
this.$refs.baseInfoForm.checkBusinessType()
this.findMerchantDetail()
this.getCarbrandTree()
......
......@@ -212,15 +212,9 @@
<GLTable ref="updateRecord" :tableTotal="tableTotal" :tableData="updateRecordList" :hasNum="true" :pageConf="pageConf" :tableParams="thirdtableParams" @refreshTable="getThirdTable"></GLTable>
</div>
</div>
<div
class="footer-panel"
:style="{
left: footerLeft + 'px',
width: footerWidth + 'px'
}"
>
<GLFooter>
<el-button type="primary" @click="handleCancel">关闭</el-button>
</div>
</GLFooter>
</div>
</template>
<script>
......@@ -356,7 +350,7 @@ export default {
},
//将后台返回数据中数值为空的字段全部替换为“-”
formateNullFieldData(initialData) {
const isEmpty = function(val) {
const isEmpty = function (val) {
if (!String(val) || String(val) === 'null') {
return '-'
}
......@@ -364,7 +358,7 @@ export default {
}
var that = this
if (initialData instanceof Array) {
initialData.forEach(function(val, key, array) {
initialData.forEach(function (val, key, array) {
array[key] = that.formateNullFieldData(val)
})
} else if (initialData instanceof Object) {
......@@ -556,8 +550,6 @@ export default {
},
mounted() {
this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
this.getThirdTable()
this.getSecondTable()
}
......
......@@ -62,17 +62,11 @@
<div v-show="step == 'first'">
<select-product title="功能权限" ref="productForm"></select-product>
</div>
<div
class="footer-panel"
:style="{
left: footerLeft + 'px',
width: footerWidth + 'px'
}"
>
<GLFooter>
<el-button type="primary" @click="handleSave()" v-show="step == 'first'">确定</el-button>
<el-button type="primary" @click="handleNext()" v-show="step == 'second'">确定</el-button>
<el-button type="primary" @click="handleCancel">取消</el-button>
</div>
</GLFooter>
<el-dialog :visible.sync="dialogMapVisible" width="60%">
<map-view ref="mapForm" :mapHeight="mapHeight"></map-view>
<span slot="footer" class="dialog-footer">
......@@ -453,8 +447,6 @@ export default {
},
mounted() {
document.querySelector('#app').scrollTop = 0
this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
this.accountAddForm.id = this.$route.params.id
this.getCarbrandTree()
this.findAllDictData()
......
<!--
* @Author: your name
* @Date: 2022-03-03 17:45:22
* @LastEditTime: 2022-04-01 17:17:26
* @LastEditors: Please set LastEditors
* @LastEditTime: 2022-04-14 15:05:05
* @LastEditors: huyue
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: \scrm-micro-settings\src\views\approvalConfig\createGuide.vue
-->
......@@ -91,7 +91,9 @@
</div>
</div>
</div>
<div class="footer-panel" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }"><el-button type="primary" @click="handleCancel">返回</el-button></div>
<GLFooter>
<el-button type="primary" @click="handleCancel">返回</el-button>
</GLFooter>
</div>
</template>
......@@ -108,10 +110,6 @@ export default {
thirdHeight: 40
}
},
mounted() {
this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
},
methods: {
handleCancel() {
this.$router.push({ path: '/approvalConfig/index' })
......
......@@ -90,18 +90,22 @@
</div>
</div>
<div style="height: 64px"></div>
<div
<GLFooter class="fixed-footer">
<div :style="{ width: customWidth + 'px' }" ref="btnWidth" class="btn-custom pruple" @click="handleMutiGL">确定关联({{ dataList.length }})</div>
<div style="width: 20px"></div>
<el-button :style="{ width: customWidth + 'px' }" @click="closeCurRouter">取消</el-button>
</GLFooter>
<!-- <div
class="fixed-footer"
:style="{
left: footerLeft + 'px',
width: footerWidth + 'px'
}"
>
<!-- <div :style="{ width: customWidth + 'px' }" class="btn-custom" @click="closeCurRouter">取消</div> -->
<div :style="{ width: customWidth + 'px' }" ref="btnWidth" class="btn-custom pruple" @click="handleMutiGL">确定关联({{ dataList.length }})</div>
<div style="width: 20px"></div>
<el-button :style="{ width: customWidth + 'px' }" @click="closeCurRouter">取消</el-button>
</div>
</div> -->
</div>
</template>
......@@ -481,9 +485,9 @@ export default {
text-align: center;
padding: 12px 0;
}
.pruple {
background: #5850ff;
}
}
.pruple {
background: #5850ff;
}
.wrap-title {
font-size: 16px;
......
......@@ -12,9 +12,10 @@
<record :id="id"></record>
</el-tab-pane>
</el-tabs>
<div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }">
<GLFooter>
<el-button type="primary" @click="handleClose">关闭</el-button>
</div>
</GLFooter>
</div>
</template>
......@@ -27,9 +28,7 @@ export default {
data() {
return {
id: '',
activeName: 'info',
footerLeft: '0',
footerWidth: '0'
activeName: 'info'
}
},
......@@ -41,12 +40,6 @@ export default {
computed: {},
created() {
this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
this.id = this.$route.params.id
},
methods: {
handleClose() {
this.$router.push({
......
......@@ -27,10 +27,14 @@
</template>
</glsx-combi-form>
</div>
<div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }">
<GLFooter>
<el-button type="primary" @click="handleConfirm">确定</el-button>
<el-button type="default" @click="handleCancel">取消</el-button>
</div>
</GLFooter>
<!-- <div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }">
<el-button type="primary" @click="handleConfirm">确定</el-button>
<el-button type="default" @click="handleCancel">取消</el-button>
</div> -->
</div>
</template>
......@@ -53,8 +57,6 @@ export default {
1: '新增员工',
2: '修改员工'
},
footerLeft: '0',
footerWidth: '0',
editChildRef: 'editChildRef',
routeInfo: {
// 1-新增;2-编辑
......@@ -251,7 +253,7 @@ export default {
fileName: res.merchantFileResponse ? res.merchantFileResponse.fileName : ''
}
this.handleChangeMerchant(this.editForm.merchantId, true)
this.$nextTick(()=>{
this.$nextTick(() => {
this.editStatus = false
})
})
......@@ -414,8 +416,6 @@ export default {
},
mounted() {
this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
this.routeInfo = this.$route.params
this.title = this.titleObj[this.routeInfo.addOrEdit]
this.getAllMerchantList()
......
......@@ -347,7 +347,7 @@ export default {
},
//获取二维码
getQrcode() {
this.$apis.ww.getQrcode({ }).then(res => {
this.$apis.ww.getQrcode({}).then(res => {
let qrcode = new QRCode('qrcode', {
text: res.qrcodeUrl, // 需要转换为二维码的内容
width: 120,
......@@ -584,7 +584,7 @@ export default {
vertical-align: middle;
color: #333333;
border-width: 1px;
height: 36px;
// height: 36px;
border-style: solid;
border-color: #e8e8ea;
background: #f4f6fc;
......
......@@ -58,19 +58,12 @@
<div class="scrm-box-f" style="margin-top: 10px">
<SelectProduct ref="productFrom" :roleType="true" title="角色权限"></SelectProduct>
<!-- <div style="height: 84px"></div> -->
<div
class="fixed_bottom"
:style="{
left: footerLeft + 'px',
width: footerWidth + 'px'
}"
>
<el-button class="custtom" v-if="pageType == 'create'" type="primary" @click="toCreateRole(1)">草稿</el-button>
<div class="wrap_driver">
<el-button type="primary" @click="toCreateRole(0)">确定</el-button>
</div>
<GLFooter style="z-index: 1">
<el-button v-if="pageType == 'create'" type="primary" plain @click="toCreateRole(1)">草稿</el-button>
<el-button type="primary" @click="toCreateRole(0)">确定</el-button>
<el-button @click="toBack">取消</el-button>
</div>
</GLFooter>
</div>
</div>
</template>
......@@ -346,8 +339,6 @@ export default {
}
},
mounted() {
this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
// if(this.accountLevel==4){
// this.selectMerchant(this.ruleForm.merchantId)
// }
......
......@@ -6,7 +6,7 @@
</div>
<div class="table_widget">
<div>
<GLCombiForm ref="showSearch" :formObj="searchForm" :searchSelectObj="searchSelectObj" :formData="searchFormData" :inline="true" @handleOk="toFindData" @handleRest="reSetFindData"></GLCombiForm>
<GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :searchSelectObj="searchSelectObj" :formData="searchFormData" :inline="true" @handleOk="toFindData" @handleRest="reSetFindData"></GLCombiForm>
</div>
<GLTable v-if="distoryTable" ref="table" :tableData="tableData" :tableTotal="tableTotal" :pageConf="pageConf" :tableParams="tableParams" @refreshTable="getTableData">
<template slot="auth-button" slot-scope="scope" :data="scope.scope">
......
......@@ -21,7 +21,7 @@
<div class="main_widget">
<div class="main_title">角色权限</div>
<div class="wrapper">
<div class="menu_line_one" :style="rootList.length?'':'padding:0'">
<div class="menu_line_one" :style="rootList.length ? '' : 'padding:0'">
<div v-for="(item, index) in rootList" :key="index" class="line_element" :class="curRootIndex == index ? 'line_element_active' : ''" @click="selectRootItem(index)">{{ item.accounttypeName }}</div>
</div>
</div>
......@@ -46,15 +46,10 @@
<!-- <div class="fixed_bottom">
<el-button type="primary" @click="toBack">关闭</el-button>
</div> -->
<div
class="footer-panel"
:style="{
left: footerLeft + 'px',
width: footerWidth + 'px'
}"
>
<GLFooter>
<el-button type="primary" @click="toBack">关闭</el-button>
</div>
</GLFooter>
</div>
</template>
......@@ -82,10 +77,6 @@ export default {
this.getRoleData(id)
this.getMerchantTree(id)
},
mounted() {
this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
},
methods: {
// 获取角色信息
getRoleData(id) {
......@@ -163,8 +154,8 @@ export default {
})
)
this.newTreeList = this.toContiuneTree(this.newTreeList, 0, maxval)
console.log(this.newTreeList);
this.maxval = maxval-1
console.log(this.newTreeList)
this.maxval = maxval - 1
this.$nextTick(() => {
this.changeTreeClass(maxval)
})
......@@ -172,14 +163,14 @@ export default {
// 处理树横向
renderContent(h, { node, data }) {
let className = ''
if (data.perms&&data.count>this.maxval) {
if (data.perms && data.count > this.maxval) {
className = 'especially'
}
return <div class={className}>{data.label}</div>
},
// 改变tree节点样式
changeTreeClass(maxval) {
let piefix = (maxval-1)*20
let piefix = (maxval - 1) * 20
var classDomList = document.getElementsByClassName('especially')
for (var i = 0; i < classDomList.length; i++) {
classDomList[i].parentNode.style.cssText = 'float:left'
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!