From a38f54f02b48cf8ef2c9ed6febed560b4f38d534 Mon Sep 17 00:00:00 2001 From: wjt <1797368093@qq.com> Date: 星期五, 21 六月 2024 15:26:42 +0800 Subject: [PATCH] Merge branch 'master' of http://218.28.192.34:9999/r/sqys/sqys_xcx --- policy/policyApply/perPage.vue | 87 +++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 87 insertions(+), 0 deletions(-) diff --git a/policy/policyApply/perPage.vue b/policy/policyApply/perPage.vue new file mode 100644 index 0000000..a05d340 --- /dev/null +++ b/policy/policyApply/perPage.vue @@ -0,0 +1,87 @@ +<template> + <u-popup mode="button" :safeAreaInsetBottom="false" :show="show" @close="close" @open="open" z-index="8000" bgColor="#fff"> + <view class="bg-box"> + <view class="title">閫夋嫨闅忚浜哄憳</view> + <u-checkbox-group iconPlacement="right" v-model="checkboxValue1" placement="column" @change="checkboxChange"> + <u-checkbox :customStyle="{marginBottom: '40rpx', }" v-for="(item, index) in checkboxList1" :key="index" + :name="item.userId" :label="`${item.dept.deptName}--${item.nickName}`"> + </u-checkbox> + </u-checkbox-group> + <view class="set-flex set-flex-content-between"> + <view class="button-per"> + <u-button @click="close">鍙栨秷</u-button> + </view> + <view class="button-per" @click="enteryResult"> + <u-button color="#1171E0">纭</u-button> + </view> + </view> + </view> + </u-popup> +</template> + +<script> + export default { + props: { + list: { + type: Array, + default: () => [] + } + }, + data() { + return { + show: false, + checkboxValue1: [], + // 鍩烘湰妗堝垪鏁版嵁 + checkboxList1: [ + ], + } + + }, + watch: { + list: { + handler(n) { + this.checkboxList1 = n + }, + immediate: true + } + }, + methods: { + checkboxChange(n) { + // console.log('change', n); + }, + close(){ + this.show = false + }, + open(list) { + + this.show = true + }, + enteryResult() { + this.$emit('selectValue', this.checkboxValue1) + this.close() + console.log(44) + } + } + } +</script> + +<style scoped> + .bg-box{ + position: fixed; + bottom: 0; + background-color: white; + border-radius: 20rpx 20rpx 0 0; + padding: 20rpx 32rpx; + z-index: 1000000; + width: 100%; + box-sizing: border-box; + } + .title{ + font-size: 36rpx; + font-family: 500; + margin-bottom: 40rpx; + } + .button-per{ + width: 48%; + } +</style> \ No newline at end of file -- Gitblit v1.9.1