设备补招页面修改
This commit is contained in:
@@ -1,14 +1,14 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="default-main">
|
<div class="default-main device">
|
||||||
<el-tabs v-model="activeName" type="border-card">
|
<currentDevice ref="currentDeviceRef"/>
|
||||||
|
<!-- <el-tabs v-model="activeName" type="border-card">
|
||||||
<el-tab-pane label="当前设备补招" name="0">
|
<el-tab-pane label="当前设备补招" name="0">
|
||||||
<!-- <current v-if="activeName == '0'" /> -->
|
|
||||||
<currentDevice v-if="activeName == '0'" ref="currentDeviceRef"/>
|
<currentDevice v-if="activeName == '0'" ref="currentDeviceRef"/>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane label="历史设备补招" name="1">
|
<el-tab-pane label="历史设备补招" name="1">
|
||||||
<history v-if="activeName == '1'" />
|
<history v-if="activeName == '1'" />
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
</el-tabs>
|
</el-tabs> -->
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
@@ -40,4 +40,9 @@ onMounted(() => {
|
|||||||
currentDeviceRef.value&¤tDeviceRef.value.getMakeUpDataList(route.query)
|
currentDeviceRef.value&¤tDeviceRef.value.getMakeUpDataList(route.query)
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped></style>
|
<style lang="scss" scoped>
|
||||||
|
.device{
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="default-main current_device" v-loading="loading">
|
<div class="default-main current_device" v-loading="loading" v-if="false">
|
||||||
<!-- <div class="file_path" v-if="dirCheckedList.value && dirCheckedList.value.length != 0">
|
<!-- <div class="file_path" v-if="dirCheckedList.value && dirCheckedList.value.length != 0">
|
||||||
<el-breadcrumb separator="/">
|
<el-breadcrumb separator="/">
|
||||||
<el-breadcrumb-item v-for="(item, index) in dirCheckedList" :key="index">
|
<el-breadcrumb-item v-for="(item, index) in dirCheckedList" :key="index">
|
||||||
@@ -18,25 +18,87 @@
|
|||||||
<p>{{ item.prjName }}>{{ item.prjDataPath }}</p>
|
<p>{{ item.prjName }}>{{ item.prjDataPath }}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- 设备补招 -->
|
||||||
|
<div class="default-main current_device">
|
||||||
|
<div class="current_header">
|
||||||
|
<el-form-item label="日期">
|
||||||
|
<DatePicker ref="datePickerRef"></DatePicker>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item>
|
||||||
|
<el-checkbox-group style="width: 150px" v-model="checkList">
|
||||||
|
<el-checkbox label="稳态" value="B" />
|
||||||
|
<el-checkbox label="暂态" value="A" />
|
||||||
|
</el-checkbox-group>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item>
|
||||||
|
<el-button type="primary" :icon="Search" @click="handleSearch">查询</el-button>
|
||||||
|
<el-button type="primary" :icon="Plus" @click="handleUpDevice">补招</el-button>
|
||||||
|
<el-button :icon="Back" @click="go(-1)">返回</el-button>
|
||||||
|
</el-form-item>
|
||||||
|
</div>
|
||||||
|
<div class="current_body" ref="tbodyRef">
|
||||||
|
<vxe-table
|
||||||
|
border
|
||||||
|
ref="tableRef"
|
||||||
|
:data="dirList"
|
||||||
|
:height="tableHeight"
|
||||||
|
@checkbox-all="selectAllChangeEvent"
|
||||||
|
@checkbox-change="selectChangeEvent"
|
||||||
|
style="margin-right: 30px"
|
||||||
|
>
|
||||||
|
<vxe-column align="center" type="checkbox" width="60"></vxe-column>
|
||||||
|
<vxe-column align="center" field="name" title="名称"></vxe-column>
|
||||||
|
<vxe-column align="center" field="startTime" title="起始时间"></vxe-column>
|
||||||
|
<vxe-column align="center" field="endTime" title="结束时间"></vxe-column>
|
||||||
|
</vxe-table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { ref, onMounted, defineProps, defineExpose } from 'vue'
|
import { ref, onMounted, defineProps, defineExpose } from 'vue'
|
||||||
import { getMakeUpData, getAskDirOrFile } from '@/api/cs-harmonic-boot/recruitment.ts'
|
import { getMakeUpData, getAskDirOrFile } from '@/api/cs-harmonic-boot/recruitment.ts'
|
||||||
|
import DatePicker from '@/components/form/datePicker/index.vue'
|
||||||
|
import { useRouter } from 'vue-router'
|
||||||
|
import {
|
||||||
|
Plus,
|
||||||
|
Back,
|
||||||
|
Search,
|
||||||
|
Refresh,
|
||||||
|
RefreshRight,
|
||||||
|
RefreshLeft,
|
||||||
|
ScaleToOriginal,
|
||||||
|
ZoomIn,
|
||||||
|
Cpu,
|
||||||
|
View,
|
||||||
|
Download,
|
||||||
|
ZoomOut,
|
||||||
|
FolderOpened
|
||||||
|
} from '@element-plus/icons-vue'
|
||||||
// const props = defineProps(['lineId'])
|
// const props = defineProps(['lineId'])
|
||||||
|
const { push, currentRoute, go } = useRouter() // 路由
|
||||||
const loading = ref(false)
|
const loading = ref(false)
|
||||||
const dirList = ref([])
|
const dirList = ref([])
|
||||||
const route: any = ref({})
|
const route: any = ref({})
|
||||||
|
const datePickerRef = ref()
|
||||||
const getMakeUpDataList = (row: any) => {
|
const getMakeUpDataList = (row: any) => {
|
||||||
route.value = row
|
route.value = row
|
||||||
loading.value = true
|
loading.value = true
|
||||||
getMakeUpData(row.id).then(res => {
|
getMakeUpData(row.id).then(res => {
|
||||||
console.log(res, '????????????')
|
console.log(res, '????????????')
|
||||||
|
res.data.map((item: any) => {
|
||||||
|
item.name = item.prjDataPath.replace('/bd0/cmn/', item.prjName + '-')
|
||||||
|
item.startTime = item.startTime ? item.startTime : '/'
|
||||||
|
item.endTime = item.endTime ? item.endTime : '/'
|
||||||
|
})
|
||||||
dirList.value = res.data
|
dirList.value = res.data
|
||||||
|
console.log(dirList.value, '查询3333333333333333')
|
||||||
loading.value = false
|
loading.value = false
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 进入文件夹
|
// 进入文件夹
|
||||||
const dirCheckedList: any = ref([])
|
const dirCheckedList: any = ref([])
|
||||||
|
const tbodyRef = ref()
|
||||||
|
const tableHeight = ref(0)
|
||||||
const handleIntoDir = (row: any) => {
|
const handleIntoDir = (row: any) => {
|
||||||
if (dirCheckedList.value.indexOf(row) == -1) {
|
if (dirCheckedList.value.indexOf(row) == -1) {
|
||||||
dirCheckedList.value.push(row)
|
dirCheckedList.value.push(row)
|
||||||
@@ -49,8 +111,8 @@ const handleIntoDir = (row: any) => {
|
|||||||
prjName: row.prjName
|
prjName: row.prjName
|
||||||
}
|
}
|
||||||
getAskDirOrFile(obj).then(res => {
|
getAskDirOrFile(obj).then(res => {
|
||||||
console.log(res, '查询3333333333333333')
|
|
||||||
dirList.value = res.data
|
dirList.value = res.data
|
||||||
|
console.log(dirList.value, '查询3333333333333333')
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
@@ -60,38 +122,59 @@ onMounted(() => {
|
|||||||
defineExpose({ getMakeUpDataList })
|
defineExpose({ getMakeUpDataList })
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
// .current_device {
|
||||||
|
// width: 100%;
|
||||||
|
// height: calc(100vh - 200px);
|
||||||
|
// display: flex;
|
||||||
|
// flex-wrap: wrap;
|
||||||
|
// align-items: flex-start;
|
||||||
|
// // justify-content: space-between;
|
||||||
|
// overflow-y: auto;
|
||||||
|
// .device_dir {
|
||||||
|
// width: 24.1%;
|
||||||
|
// height: 120px;
|
||||||
|
// border: 1px solid #eee;
|
||||||
|
// margin: 0 0.3%;
|
||||||
|
// display: flex;
|
||||||
|
// align-items: center;
|
||||||
|
// flex-direction: column;
|
||||||
|
// justify-content: center;
|
||||||
|
// .device_dir_file {
|
||||||
|
// width: 60px;
|
||||||
|
// height: 60px;
|
||||||
|
// }
|
||||||
|
// img {
|
||||||
|
// width: 50px;
|
||||||
|
// height: 50px;
|
||||||
|
// }
|
||||||
|
// img:hover {
|
||||||
|
// cursor: pointer;
|
||||||
|
// }
|
||||||
|
// p {
|
||||||
|
// margin-top: 10px;
|
||||||
|
// }
|
||||||
|
// // margin:10px;
|
||||||
|
// }
|
||||||
|
// }
|
||||||
.current_device {
|
.current_device {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: calc(100vh - 200px);
|
height: calc(100vh - 200px);
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-direction: column;
|
||||||
align-items: flex-start;
|
.current_header {
|
||||||
// justify-content: space-between;
|
width: 100%;
|
||||||
overflow-y: auto;
|
height: 60px;
|
||||||
.device_dir {
|
|
||||||
width: 24.1%;
|
|
||||||
height: 120px;
|
|
||||||
border: 1px solid #eee;
|
|
||||||
margin: 0 0.3%;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
flex-direction: column;
|
.el-form-item{
|
||||||
justify-content: center;
|
display: flex;
|
||||||
.device_dir_file {
|
align-items: center;
|
||||||
width: 60px;
|
margin-bottom: 0;
|
||||||
height: 60px;
|
|
||||||
}
|
}
|
||||||
img {
|
|
||||||
width: 50px;
|
|
||||||
height: 50px;
|
|
||||||
}
|
}
|
||||||
img:hover {
|
.current_body {
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
p {
|
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
}
|
flex: 1;
|
||||||
// margin:10px;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user