|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<view class="container flex flex_column">
|
|
|
- <view style="flex-grow: 1;">
|
|
|
+ <view style="flex-grow: 1;padding-bottom: 120rpx;">
|
|
|
<evan-form ref="formData" :rules="ruleValidate" :model="formData">
|
|
|
<evan-form-item label="岗位名称:" prop="name">
|
|
|
<u-input class="form-input" :maxlength="30" style="width: 100%;" placeholder="请填写岗位名称(最多30个字符)" v-model="formData.name" />
|
|
@@ -57,7 +57,6 @@
|
|
|
}
|
|
|
},
|
|
|
onLoad(options) {
|
|
|
- console.log(options)
|
|
|
this.type = options.type
|
|
|
uni.setNavigationBarTitle({
|
|
|
title: this.type=="add" ? '添加岗位' : '编辑岗位'
|
|
@@ -84,7 +83,6 @@
|
|
|
if (valid) {
|
|
|
this.loading = true
|
|
|
const menusIds = this.$refs.roleSet.getSelMenu()
|
|
|
- console.log(menusIds,'menus--')
|
|
|
if(!menusIds){
|
|
|
uni.showToast({
|
|
|
icon: 'none',
|
|
@@ -144,6 +142,8 @@
|
|
|
.container{
|
|
|
margin: 0 30rpx;
|
|
|
height: 100vh;
|
|
|
+ position: relative;
|
|
|
+ overflow: auto;
|
|
|
.form-input-placeholder{
|
|
|
text-align: right;
|
|
|
}
|
|
@@ -154,6 +154,10 @@
|
|
|
.form-footer-btn{
|
|
|
padding: 20rpx;
|
|
|
background: #FFFFFF;
|
|
|
+ width: 100%;
|
|
|
+ position: fixed;
|
|
|
+ bottom: 0;
|
|
|
+ left: 0;
|
|
|
}
|
|
|
}
|
|
|
</style>
|