Commit 8d78d5de by 胡悦

修改footer

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