fix 组件优化,搜索按钮修复
This commit is contained in:
parent
07b69bfc71
commit
b6674e0667
@ -1,7 +1,6 @@
|
||||
{
|
||||
"name": "vue-next-admin",
|
||||
"version": "2.4.33",
|
||||
"GFastVersion": "2.3.0",
|
||||
"description": "vue3 vite next admin template",
|
||||
"author": "lyt_20201208",
|
||||
"license": "MIT",
|
||||
|
@ -76,7 +76,7 @@ export function uploadPart(data:Object,progress:Callback,cancelToken:CancelToken
|
||||
}
|
||||
})*/
|
||||
return axios({
|
||||
url: baseURL+'/api/v1/system/upload/uploadPart',
|
||||
url: baseURL+'api/v1/system/upload/uploadPart',
|
||||
method: 'post',
|
||||
data:data,
|
||||
headers: {
|
||||
|
@ -18,7 +18,7 @@
|
||||
</el-upload>
|
||||
|
||||
<el-dialog v-model="dialogVisible">
|
||||
<img w-full :src="dialogImageUrl" alt="Preview Image" />
|
||||
<el-image :src="dialogImageUrl" fit="contain" />
|
||||
</el-dialog>
|
||||
</div>
|
||||
<div class="up-img" v-else>
|
||||
|
@ -8,7 +8,11 @@
|
||||
v-model:file-list="dataFileList"
|
||||
ref="upImageRef"
|
||||
:list-type="fileType=='image'?'picture-card':'text'"
|
||||
:on-preview="handlePictureCardPreview"
|
||||
></el-upload>
|
||||
<el-dialog v-model="dialogVisible">
|
||||
<el-image :src="dialogImageUrl" fit="contain" />
|
||||
</el-dialog>
|
||||
</div>
|
||||
<el-dialog title="选择文件" v-model="isShowDialog" width="1000px" :close-on-click-modal="false" :destroy-on-close="true">
|
||||
<el-card shadow="hover">
|
||||
@ -159,7 +163,7 @@
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
import {toRefs, reactive, ref, computed,getCurrentInstance} from 'vue';
|
||||
import {FormInstance, UploadUserFile} from 'element-plus';
|
||||
import {FormInstance, type UploadProps, UploadUserFile} from 'element-plus';
|
||||
import {
|
||||
listSysAttachment,
|
||||
} from "/@/api/system/sysAttachment";
|
||||
@ -213,6 +217,8 @@ const isShowDialog = ref(false)
|
||||
const loading = ref(false)
|
||||
const queryRef = ref()
|
||||
const editRef = ref();
|
||||
const dialogImageUrl = ref('')
|
||||
const dialogVisible = ref(false)
|
||||
// 是否显示所有搜索选项
|
||||
const showAll = ref(false)
|
||||
// 非单个禁用
|
||||
@ -335,6 +341,10 @@ const reset = ()=>{
|
||||
resetQuery(queryRef.value)
|
||||
state.ids = []
|
||||
}
|
||||
const handlePictureCardPreview: UploadProps['onPreview'] = (uploadFile) => {
|
||||
dialogImageUrl.value = uploadFile.url!
|
||||
dialogVisible.value = true
|
||||
};
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.system-sysAttachment-container{
|
||||
|
@ -105,7 +105,7 @@ const onHandleSelect = (item: any) => {
|
||||
const onSearchBlur = () => {
|
||||
closeSearch();
|
||||
};
|
||||
|
||||
defineExpose({openSearch})
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
|
@ -205,7 +205,7 @@ const handleUserScope = ((row:any)=>{
|
||||
setRole.value = row.id
|
||||
getUsersById(row.id).then((res:any)=>{
|
||||
ld.close()
|
||||
roleUsers.value=res.data.userList??[]
|
||||
roleUsers.value=res.data.userList?res.data.userList.map((user:any)=>user.id):[]
|
||||
selectUserRef.value.openDialog()
|
||||
})
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user