修复发布优惠券日期选择器部分手机无法显示按钮卡顿等问题调整添加员工接口问题

This commit is contained in:
唐明明
2021-09-30 15:35:34 +08:00
parent 9591400bb9
commit b8cbd8d565
17 changed files with 55 additions and 29 deletions

View File

@@ -38,7 +38,7 @@
<label>
<view class="item-title">设为推荐</view>
<view class="item-info">设为推荐员工将在企业自媒体中优先展示</view>
<switch class="item-switch" :checked="isPosition" color="#e93340" @change="switchChange" />
<switch class="item-switch" :checked="isPosition" color="#8b64fd" @change="switchChange" />
</label>
</view>
</view>
@@ -50,7 +50,7 @@
<label>
<view class="item-title">{{item.title}}</view>
<view class="item-info">{{item.description}}</view>
<checkbox class="item-checkbox" :checked="item.check" color="#e93340" :value="item.permission_id" />
<checkbox class="item-checkbox" :checked="item.check" color="#8b64fd" :value="String(item.permission_id)"/>
</label>
</view>
</checkbox-group>
@@ -93,8 +93,16 @@
}
employeesConfig().then(res => {
this.section = res.store
console.log(res)
if(this.$Route.query.type === 'PUT'){
employeesInfo(this.$Route.query.id || 4).then(res => {
console.log(111)
employeesInfo(this.$Route.query.id).then(res => {
console.log(11111)
console.log(res)
let permissionIds = []
for(let val of res.permission){
if(val.check){