From 7df64634d3d7b292713eebfa008c40b3f5f9f65f Mon Sep 17 00:00:00 2001
From: shj <1790240199@qq.com>
Date: Tue, 20 Sep 2022 15:57:03 +0800
Subject: [PATCH] 修改
---
src/components/userSelections/index.vue | 29 ++++++++++++++++++++++++-----
1 files changed, 24 insertions(+), 5 deletions(-)
diff --git a/src/components/userSelections/index.vue b/src/components/userSelections/index.vue
index 19458f2..8fdbb3f 100644
--- a/src/components/userSelections/index.vue
+++ b/src/components/userSelections/index.vue
@@ -5,7 +5,9 @@
v-model="isShowDialog"
width="1000px"
draggable
+ :fullscreen="full"
>
+ <el-button @click="toggleFullscreen" size="small" class="pot" :icon="FullScreen"></el-button>
<el-container class="layout-container-demo" style="height: 500px;overflow: auto;min-width: 960px">
<el-aside width="200px">
<el-input v-model="filterText" placeholder="请输入组织机构过滤" />
@@ -38,11 +40,12 @@
<el-table
:data="tableData"
:header-cell-style="{background:'#f6f7fa',color:'#909399',fontWeight:400}"
+ @cell-click="radio"
>
<el-table-column align="center" width="55">
<template #default="scope">
- <el-radio-group v-model="radio1" @change="radio">
- <el-radio :label="scope.row.date" size="large">{{null}}</el-radio>
+ <el-radio-group v-model="radio1">
+ <el-radio :label="scope.row.id" size="large">{{ null }}</el-radio>
</el-radio-group>
</template>
</el-table-column>
@@ -121,7 +124,9 @@
ElTree,
// ElTable,
} from 'element-plus'
-
+import {
+ FullScreen
+} from '@element-plus/icons-vue'
interface Tree {
id: number
label: string
@@ -137,7 +142,7 @@
components: {
// Search,
},
- setup() {
+ setup(props,{emit}) {
const isShowDialog = ref(false)
// 打开弹窗
const openDialog = () => {
@@ -149,6 +154,8 @@
};
// 取消
const onCancel = () => {
+ let obj=JSON.parse(JSON.stringify(dynamicTags.value))
+ emit("SearchUser",obj[0])
closeDialog();
};
@@ -267,7 +274,7 @@
dynamicTags.value.splice(dynamicTags.value.indexOf(tag), 1);
radio1.value=""
};
- const radio1=ref('谭柏')
+ const radio1=ref('')
const radio=(event:any)=>{
dynamicTags.value[0]=event
}
@@ -282,6 +289,15 @@
// 分页未改变
const handleCurrentChange = (val: number) => {
console.log(`current page: ${val}`);
+ };
+ //全屏
+ const full = ref(false);
+ const toggleFullscreen = () => {
+ if (full.value == false) {
+ full.value = true;
+ } else {
+ full.value = false;
+ }
};
return {
openDialog,
@@ -303,6 +319,9 @@
pageSize,
radio1,
radio,
+ toggleFullscreen,
+ FullScreen,
+ full,
};
},
});
--
Gitblit v1.9.2