Compare commits
No commits in common. "d27b1ebe104b8fa8cdce62e00eadf1b6f5c90d35" and "b39d1900ab194038205cf35c3e0a5bd34b9398fa" have entirely different histories.
d27b1ebe10
...
b39d1900ab
10
components.d.ts
vendored
10
components.d.ts
vendored
@ -13,19 +13,14 @@ declare module '@vue/runtime-core' {
|
|||||||
DropdownMenu: typeof import('./src/components/Share/DropdownMenu.vue')['default']
|
DropdownMenu: typeof import('./src/components/Share/DropdownMenu.vue')['default']
|
||||||
Dropzone: typeof import('./src/components/Dropzone/index.vue')['default']
|
Dropzone: typeof import('./src/components/Dropzone/index.vue')['default']
|
||||||
EditorImage: typeof import('./src/components/Tinymce/components/EditorImage.vue')['default']
|
EditorImage: typeof import('./src/components/Tinymce/components/EditorImage.vue')['default']
|
||||||
ElAutocomplete: typeof import('element-plus/es')['ElAutocomplete']
|
|
||||||
ElBadge: typeof import('element-plus/es')['ElBadge']
|
ElBadge: typeof import('element-plus/es')['ElBadge']
|
||||||
ElBreadcrumb: typeof import('element-plus/es')['ElBreadcrumb']
|
ElBreadcrumb: typeof import('element-plus/es')['ElBreadcrumb']
|
||||||
ElBreadcrumbItem: typeof import('element-plus/es')['ElBreadcrumbItem']
|
ElBreadcrumbItem: typeof import('element-plus/es')['ElBreadcrumbItem']
|
||||||
ElButton: typeof import('element-plus/es')['ElButton']
|
ElButton: typeof import('element-plus/es')['ElButton']
|
||||||
ElCard: typeof import('element-plus/es')['ElCard']
|
ElCard: typeof import('element-plus/es')['ElCard']
|
||||||
ElCheckbox: typeof import('element-plus/es')['ElCheckbox']
|
|
||||||
ElCheckboxGroup: typeof import('element-plus/es')['ElCheckboxGroup']
|
|
||||||
ElCol: typeof import('element-plus/es')['ElCol']
|
ElCol: typeof import('element-plus/es')['ElCol']
|
||||||
ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider']
|
ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider']
|
||||||
ElDatePicker: typeof import('element-plus/es')['ElDatePicker']
|
|
||||||
ElDialog: typeof import('element-plus/es')['ElDialog']
|
ElDialog: typeof import('element-plus/es')['ElDialog']
|
||||||
ElDivider: typeof import('element-plus/es')['ElDivider']
|
|
||||||
ElDropdown: typeof import('element-plus/es')['ElDropdown']
|
ElDropdown: typeof import('element-plus/es')['ElDropdown']
|
||||||
ElDropdownItem: typeof import('element-plus/es')['ElDropdownItem']
|
ElDropdownItem: typeof import('element-plus/es')['ElDropdownItem']
|
||||||
ElDropdownMenu: typeof import('element-plus/es')['ElDropdownMenu']
|
ElDropdownMenu: typeof import('element-plus/es')['ElDropdownMenu']
|
||||||
@ -36,9 +31,7 @@ declare module '@vue/runtime-core' {
|
|||||||
ElMenu: typeof import('element-plus/es')['ElMenu']
|
ElMenu: typeof import('element-plus/es')['ElMenu']
|
||||||
ElMenuItem: typeof import('element-plus/es')['ElMenuItem']
|
ElMenuItem: typeof import('element-plus/es')['ElMenuItem']
|
||||||
ElOption: typeof import('element-plus/es')['ElOption']
|
ElOption: typeof import('element-plus/es')['ElOption']
|
||||||
ElPagination: typeof import('element-plus/es')['ElPagination']
|
|
||||||
ElProgress: typeof import('element-plus/es')['ElProgress']
|
ElProgress: typeof import('element-plus/es')['ElProgress']
|
||||||
ElRate: typeof import('element-plus/es')['ElRate']
|
|
||||||
ElRow: typeof import('element-plus/es')['ElRow']
|
ElRow: typeof import('element-plus/es')['ElRow']
|
||||||
ElScrollbar: typeof import('element-plus/es')['ElScrollbar']
|
ElScrollbar: typeof import('element-plus/es')['ElScrollbar']
|
||||||
ElSelect: typeof import('element-plus/es')['ElSelect']
|
ElSelect: typeof import('element-plus/es')['ElSelect']
|
||||||
@ -74,7 +67,4 @@ declare module '@vue/runtime-core' {
|
|||||||
UploadExcel: typeof import('./src/components/UploadExcel/index.vue')['default']
|
UploadExcel: typeof import('./src/components/UploadExcel/index.vue')['default']
|
||||||
VueCountTo: typeof import('./src/components/vue-count-to/vue-countTo.vue')['default']
|
VueCountTo: typeof import('./src/components/vue-count-to/vue-countTo.vue')['default']
|
||||||
}
|
}
|
||||||
export interface ComponentCustomProperties {
|
|
||||||
vLoading: typeof import('element-plus/es')['ElLoadingDirective']
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
<template>
|
<template>
|
||||||
<!-- 顶部缩放侧边栏icon-->
|
|
||||||
<div style="padding: 0 15px;" @click="toggleClick">
|
<div style="padding: 0 15px;" @click="toggleClick">
|
||||||
<svg :class="{ 'is-active': isActive }" class="hamburger" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg"
|
<svg :class="{ 'is-active': isActive }" class="hamburger" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg"
|
||||||
width="64" height="64">
|
width="64" height="64">
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
<template>
|
<template>
|
||||||
<!-- 顶部全屏icon-->
|
|
||||||
<div>
|
<div>
|
||||||
<svg-icon :icon-class="isFullscreen ? 'exit-fullscreen' : 'fullscreen'" @click="click" />
|
<svg-icon :icon-class="isFullscreen ? 'exit-fullscreen' : 'fullscreen'" @click="click" />
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,241 +1,33 @@
|
|||||||
<template>
|
<template>
|
||||||
|
<div class="errPage-container">
|
||||||
<div style=" width:100%">
|
<ErrorA />
|
||||||
<el-card style="max-width: 100vw;margin: 1.5vw;">
|
<ErrorB />
|
||||||
<template #header>
|
<h3>Please click the bug icon in the upper right corner</h3>
|
||||||
<span>消息</span>
|
<aside>
|
||||||
</template>
|
Now the management system are basically the form of the spa, it enhances the user experience, but it also increases the possibility of page problems, a small negligence may lead to the entire page deadlock. Fortunately Vue provides a way to catch handling exceptions, where you can handle errors or report exceptions.
|
||||||
<div style="display:flex;flex-direction:row;justify-content: space-around ">
|
<a target="_blank" class="link-type" href="https://vue3-element-admin-site.midfar.com/guide/advanced/error.html">
|
||||||
<div>
|
Document introduction
|
||||||
时间
|
</a>
|
||||||
<el-date-picker
|
</aside>
|
||||||
v-model="value2"
|
<a href="#">
|
||||||
type="daterange"
|
<img src="https://wpimg.wallstcn.com/360e4842-4db5-42d0-b078-f9a84a825546.gif">
|
||||||
unlink-panels
|
</a>
|
||||||
range-separator="——"
|
|
||||||
start-placeholder="开始时间"
|
|
||||||
end-placeholder="结束时间"
|
|
||||||
:shortcuts="shortcuts"
|
|
||||||
:size="large"
|
|
||||||
style="margin-left:0.5vw"
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
<div>
|
|
||||||
状态
|
|
||||||
<el-select
|
|
||||||
v-model="value"
|
|
||||||
clearable
|
|
||||||
placeholder="Status"
|
|
||||||
style="width: 240px;margin-left:0.5vw"
|
|
||||||
>
|
|
||||||
<el-option
|
|
||||||
v-for="item in options"
|
|
||||||
:key="item.value"
|
|
||||||
:label="item.label"
|
|
||||||
:value="item.value"
|
|
||||||
/>
|
|
||||||
</el-select>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div>
|
|
||||||
<el-button type="primary" style="width:80px">查询</el-button>
|
|
||||||
<el-button style="width:80px">重置</el-button>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</el-card>
|
|
||||||
<el-card style="max-width: 100vw;height:60vh;margin:1.3vw">
|
|
||||||
<div style="display:flex;flex-direction: row;justify-content: space-between">
|
|
||||||
<el-button
|
|
||||||
text
|
|
||||||
type=''
|
|
||||||
>历史记录</el-button
|
|
||||||
>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div v-for="(row, index) in tableData" :key="index" class="table-row">
|
|
||||||
<div class="table-cell">
|
|
||||||
<div class="date" style="display:flex;flex-direction: column">
|
|
||||||
<span style="color:skyblue">{{row.name}}</span>
|
|
||||||
<span>{{ row.date }}</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="table-cell">
|
|
||||||
<div>address: {{ row.address }}</div>
|
|
||||||
</div>
|
|
||||||
<div class="table-cell table-cell-right">
|
|
||||||
<el-button size="small" type="danger" @click="handleDelete(index, row)">Delete</el-button>
|
|
||||||
<el-button size="small" type="danger" @click="handleDelete(index, row);centerDialogVisible = true">Delete</el-button>
|
|
||||||
<el-dialog v-model="centerDialogVisible" title="删除" width="500" :modal="false">
|
|
||||||
<span>
|
|
||||||
是否确认删除此条信息?
|
|
||||||
</span>
|
|
||||||
<template #footer>
|
|
||||||
<div class="dialog-footer">
|
|
||||||
<el-button @click="centerDialogVisible = false">取消</el-button>
|
|
||||||
<el-button type="primary" @click="centerDialogVisible = false">
|
|
||||||
确认
|
|
||||||
</el-button>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
</el-dialog>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<el-pagination
|
|
||||||
size="large"
|
|
||||||
background
|
|
||||||
layout="prev, pager, next"
|
|
||||||
:total="50"
|
|
||||||
style="display: flex;flex-direction: row;justify-content: center;margin-top:5vh"
|
|
||||||
/>
|
|
||||||
</el-card>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script>
|
||||||
import { ref } from 'vue';
|
import { defineComponent } from 'vue';
|
||||||
// 删除对话框
|
import ErrorA from './components/ErrorTestA';
|
||||||
const centerDialogVisible = ref(false);
|
import ErrorB from './components/ErrorTestB';
|
||||||
// 时间选择器
|
|
||||||
const value2 = ref('');
|
|
||||||
const shortcuts = [
|
|
||||||
{
|
|
||||||
text: 'Last week',
|
|
||||||
value: () => {
|
|
||||||
const end = new Date();
|
|
||||||
const start = new Date();
|
|
||||||
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
|
|
||||||
return [start, end];
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
text: 'Last month',
|
|
||||||
value: () => {
|
|
||||||
const end = new Date();
|
|
||||||
const start = new Date();
|
|
||||||
start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
|
|
||||||
return [start, end];
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
text: 'Last 3 months',
|
|
||||||
value: () => {
|
|
||||||
const end = new Date();
|
|
||||||
const start = new Date();
|
|
||||||
start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
|
|
||||||
return [start, end];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
// 状态选择器
|
export default defineComponent({
|
||||||
|
name: 'ErrorLog',
|
||||||
const value = ref('');
|
components: { ErrorA, ErrorB }
|
||||||
const options = [
|
});
|
||||||
{
|
|
||||||
value: 'Option1',
|
|
||||||
label: '未开始'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
value: 'Option2',
|
|
||||||
label: '进行中'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
value: 'Option3',
|
|
||||||
label: '暂停'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
value: 'Option4',
|
|
||||||
label: 'Option4'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
value: 'Option5',
|
|
||||||
label: '已完成'
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
// 表格
|
|
||||||
interface User {
|
|
||||||
date: string
|
|
||||||
name: string
|
|
||||||
address: string
|
|
||||||
}
|
|
||||||
|
|
||||||
const handleDelete = (index: number, row: User) => {
|
|
||||||
console.log(index, row);
|
|
||||||
};
|
|
||||||
|
|
||||||
const tableData: User[] = [
|
|
||||||
{
|
|
||||||
date: '2016-05-03',
|
|
||||||
name: 'Tom',
|
|
||||||
address: 'No. 189, Grove St, Los Angeles'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
date: '2016-05-02',
|
|
||||||
name: 'Tom',
|
|
||||||
address: 'No. 189, Grove St, Los Angeles'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
date: '2016-05-04',
|
|
||||||
name: 'Tom',
|
|
||||||
address: 'No. 189, Grove St, Los Angeles'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
date: '2016-05-01',
|
|
||||||
name: 'Tom',
|
|
||||||
address: 'No. 189, Grove St, Los Angeles'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
date: '2016-05-01',
|
|
||||||
name: 'Tom',
|
|
||||||
address: 'No. 189, Grove St, Los Angeles'
|
|
||||||
}
|
|
||||||
];
|
|
||||||
</script>
|
</script>
|
||||||
<style>
|
|
||||||
.my-autocomplete li {
|
|
||||||
line-height: normal;
|
|
||||||
padding: 7px;
|
|
||||||
}
|
|
||||||
.my-autocomplete li .name {
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
.my-autocomplete li .addr {
|
|
||||||
font-size: 12px;
|
|
||||||
color: #b4b4b4;
|
|
||||||
}
|
|
||||||
.my-autocomplete li .highlighted .addr {
|
|
||||||
color: #ddd;
|
|
||||||
}
|
|
||||||
|
|
||||||
.table-row {
|
<style scoped>
|
||||||
display: flex;
|
.errPage-container {
|
||||||
align-items: center;
|
padding: 30px;
|
||||||
margin-bottom: 10px;
|
}
|
||||||
}
|
|
||||||
|
|
||||||
.table-cell {
|
|
||||||
flex: 1;
|
|
||||||
padding: 5px;
|
|
||||||
display: flex;
|
|
||||||
justify-content: space-between;
|
|
||||||
align-items: center;
|
|
||||||
}
|
|
||||||
.table-cell-right {
|
|
||||||
justify-content: flex-end;
|
|
||||||
margin-right:5vw;
|
|
||||||
}
|
|
||||||
.date {
|
|
||||||
display: flex;
|
|
||||||
/*align-items: center;*/
|
|
||||||
}
|
|
||||||
|
|
||||||
.date el-icon {
|
|
||||||
margin-right: 10px;
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
@ -1,281 +1,58 @@
|
|||||||
<template>
|
<template>
|
||||||
<div style=" width:100%">
|
<div class="tab-container">
|
||||||
<el-card style="max-width: 100vw;margin: 1.5vw;">
|
<el-tag>mounted times :{{ createdTimes }}</el-tag>
|
||||||
<template #header><span>日报</span></template>
|
<el-alert :closable="false" style="width:200px;display:inline-block;vertical-align: middle;margin-left:30px;" title="Tab with keep-alive" type="success" />
|
||||||
<div style="display:flex;flex-direction:row;justify-content: space-around ">
|
<el-tabs v-model="activeName" style="margin-top:15px;" type="border-card">
|
||||||
<div>
|
<el-tab-pane v-for="item in tabMapOptions" :key="item.key" :label="item.label" :name="item.key">
|
||||||
项目
|
<keep-alive>
|
||||||
<el-autocomplete
|
<tab-pane v-if="activeName==item.key" :type="item.key" @create="showCreatedTimes" />
|
||||||
v-model="state"
|
</keep-alive>
|
||||||
:fetch-suggestions="querySearch"
|
</el-tab-pane>
|
||||||
popper-class="my-autocomplete"
|
</el-tabs>
|
||||||
placeholder="Please input"
|
|
||||||
@select="handleSelect"
|
|
||||||
style="margin-left:0.5vw"
|
|
||||||
>
|
|
||||||
<template #suffix>
|
|
||||||
<el-icon class="el-input__icon" @click="handleIconClick">
|
|
||||||
<ArrowDownBold />
|
|
||||||
</el-icon>
|
|
||||||
</template>
|
|
||||||
<template #default="{ item }">
|
|
||||||
<div class="value">{{ item.value }}</div>
|
|
||||||
<span class="link">{{ item.link }}</span>
|
|
||||||
</template>
|
|
||||||
</el-autocomplete>
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
时间
|
|
||||||
<el-date-picker
|
|
||||||
v-model="value2" type="daterange"
|
|
||||||
unlink-panels
|
|
||||||
range-separator="——"
|
|
||||||
start-placeholder="开始时间"
|
|
||||||
end-placeholder="结束时间"
|
|
||||||
:shortcuts="shortcuts"
|
|
||||||
style="margin-left:0.5vw"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<el-button type="primary" style="width: 80px">查询</el-button>
|
|
||||||
<el-button style="width: 80px">重置</el-button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</el-card>
|
|
||||||
<el-card style="max-width: 100vw;height:60vh;margin:1.3vw">
|
|
||||||
<div style="display:flex;flex-direction: row;justify-content: space-between">
|
|
||||||
<el-button text >历史记录</el-button>
|
|
||||||
<el-button type="primary" @click="AddDialogVisible=true">新建</el-button>
|
|
||||||
<el-dialog v-model="AddDialogVisible" width="500" center :modal="false" :show-close="false">
|
|
||||||
<template #header>
|
|
||||||
<div style="display:flex;flex-direction: row;justify-content: flex-start;color:red;font-size:large" >新增日报</div>
|
|
||||||
<el-divider content-position="left" style="background:red"><el-icon><CaretTop /></el-icon></el-divider>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<div>
|
|
||||||
<div style="margin-top:-4vh ">
|
|
||||||
<span style="color:red">项目名称:</span>
|
|
||||||
<el-input
|
|
||||||
v-model="input"
|
|
||||||
style="width: 200px"
|
|
||||||
placeholder="请输入"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<div style="margin-top:2vh ">
|
|
||||||
<span style="color:red"> 工作时间:</span>
|
|
||||||
<el-date-picker
|
|
||||||
v-model="value1"
|
|
||||||
type="date"
|
|
||||||
placeholder="请选择日期"
|
|
||||||
style="width: 200px"
|
|
||||||
:default-value="new Date(2010, 9, 1)"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<div style="margin-top:2vh ;display:flex;flex-direction:row;">
|
|
||||||
<span style="color: red">日报内容:</span>
|
|
||||||
<el-input
|
|
||||||
v-model="textarea"
|
|
||||||
style="width: 300px;"
|
|
||||||
:rows="4"
|
|
||||||
type="textarea"
|
|
||||||
placeholder="请输入"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<template #footer>
|
|
||||||
<div class="dialog-footer">
|
|
||||||
<el-button @click="AddDialogVisible = false" type="info" style="width: 80px">取消 </el-button>
|
|
||||||
<el-button type="danger" style="width:80px" @click="AddDialogVisible = false">
|
|
||||||
新增
|
|
||||||
</el-button>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
</el-dialog>
|
|
||||||
</div>
|
|
||||||
<el-table ref="multipleTableRef" :data="tableData" style="max-width: 100vw;"
|
|
||||||
@selection-change="handleSelectionChange">
|
|
||||||
<el-table-column type="selection" width="55" />
|
|
||||||
<el-table-column label="序号" width="120">
|
|
||||||
<template #default="scope">{{ scope.row.date }}</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column property="name" label="项目名称" width="120" />
|
|
||||||
<el-table-column property="address" label="项目负责人" show-overflow-tooltip />
|
|
||||||
<el-table-column property="address" label="日报" />
|
|
||||||
<el-table-column property="address" label="日报填写者" />
|
|
||||||
<el-table-column property="address" label="填写时间" />
|
|
||||||
<el-table-column property="address" label="工作时间" />
|
|
||||||
<el-table-column property="address" label="操作" >
|
|
||||||
<el-button size="small" text style="color:deepskyblue" @click="EditDialogVisible = true">修改</el-button>
|
|
||||||
<el-dialog v-model="EditDialogVisible" title="删除" width="500" :modal="false">
|
|
||||||
<template #footer>
|
|
||||||
<div class="dialog-footer">
|
|
||||||
<el-button @click="EditDialogVisible = false">取消</el-button>
|
|
||||||
<el-button type="primary" @click="EditDialogVisible = false">
|
|
||||||
确认
|
|
||||||
</el-button>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
</el-dialog>
|
|
||||||
</el-table-column>
|
|
||||||
</el-table>
|
|
||||||
<el-pagination
|
|
||||||
larger
|
|
||||||
background
|
|
||||||
layout="prev, pager, next"
|
|
||||||
:total="50" class="mt-4"
|
|
||||||
style="display: flex;flex-direction: row;justify-content: center;margin-top:5vh"
|
|
||||||
/>
|
|
||||||
</el-card>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script>
|
||||||
import { ref } from 'vue';
|
import { defineComponent } from 'vue';
|
||||||
import { ElTable } from 'element-plus';
|
import TabPane from './components/TabPane';
|
||||||
import { ArrowDownBold, CaretTop } from '@element-plus/icons-vue';
|
|
||||||
const value1 = ref('');
|
|
||||||
// 修改对话框
|
|
||||||
const EditDialogVisible = ref(false);
|
|
||||||
// 新建对话框
|
|
||||||
const AddDialogVisible = ref(false);
|
|
||||||
interface User {
|
|
||||||
date: string
|
|
||||||
name: string
|
|
||||||
address: string
|
|
||||||
}
|
|
||||||
|
|
||||||
const multipleTableRef = ref<InstanceType<typeof ElTable>>();
|
export default defineComponent({
|
||||||
const multipleSelection = ref<User[]>([]);
|
name: 'Tab',
|
||||||
|
components: { TabPane },
|
||||||
const handleSelectionChange = (val: User[]) => {
|
data() {
|
||||||
multipleSelection.value = val;
|
return {
|
||||||
};
|
tabMapOptions: [
|
||||||
|
{ label: 'China', key: 'CN' },
|
||||||
const tableData: User[] = [
|
{ label: 'USA', key: 'US' },
|
||||||
{
|
{ label: 'Japan', key: 'JP' },
|
||||||
date: '2016-05-03',
|
{ label: 'Eurozone', key: 'EU' }
|
||||||
name: 'Tom',
|
],
|
||||||
address: 'No. 189, Grove St, Los Angeles'
|
activeName: 'CN',
|
||||||
},
|
createdTimes: 0
|
||||||
{
|
|
||||||
date: '2016-05-02',
|
|
||||||
name: 'Tom',
|
|
||||||
address: 'No. 189, Grove St, Los Angeles'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
date: '2016-05-04',
|
|
||||||
name: 'Tom',
|
|
||||||
address: 'No. 189, Grove St, Los Angeles'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
date: '2016-05-01',
|
|
||||||
name: 'Tom',
|
|
||||||
address: 'No. 189, Grove St, Los Angeles'
|
|
||||||
}
|
|
||||||
|
|
||||||
];
|
|
||||||
|
|
||||||
// 输入框1
|
|
||||||
import { onMounted } from 'vue';
|
|
||||||
|
|
||||||
|
|
||||||
interface LinkItem {
|
|
||||||
value: string
|
|
||||||
link: string
|
|
||||||
}
|
|
||||||
|
|
||||||
const state = ref('');
|
|
||||||
const links = ref<LinkItem[]>([]);
|
|
||||||
|
|
||||||
const querySearch = (queryString: string, cb) => {
|
|
||||||
const results = queryString
|
|
||||||
? links.value.filter(createFilter(queryString))
|
|
||||||
: links.value;
|
|
||||||
// call callback function to return suggestion objects
|
|
||||||
cb(results);
|
|
||||||
};
|
|
||||||
const createFilter = (queryString) => {
|
|
||||||
return (restaurant) => {
|
|
||||||
return (
|
|
||||||
restaurant.value.toLowerCase().indexOf(queryString.toLowerCase()) === 0
|
|
||||||
);
|
|
||||||
};
|
};
|
||||||
};
|
},
|
||||||
const loadAll = () => {
|
// watch: {
|
||||||
return [
|
// activeName(val) { // url变化会导致渲染异常。因此这里注释掉了
|
||||||
{ value: '1' },
|
// this.$router.push(`${this.$route.path}?tab=${val}`);
|
||||||
{ value: '2' },
|
// }
|
||||||
{ value: '3' },
|
// },
|
||||||
{ value: '4' },
|
created() {
|
||||||
{ value: '5' }
|
// init the default selected tab
|
||||||
|
const tab = this.$route.query.tab;
|
||||||
];
|
if (tab) {
|
||||||
};
|
this.activeName = tab;
|
||||||
const handleSelect = (item: LinkItem) => {
|
}
|
||||||
console.log(item);
|
},
|
||||||
};
|
methods: {
|
||||||
|
showCreatedTimes() {
|
||||||
const handleIconClick = (ev: Event) => {
|
this.createdTimes = this.createdTimes + 1;
|
||||||
console.log(ev);
|
}
|
||||||
};
|
}
|
||||||
|
|
||||||
onMounted(() => {
|
|
||||||
links.value = loadAll();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// 时间选择器
|
|
||||||
|
|
||||||
const value2 = ref('');
|
|
||||||
|
|
||||||
const shortcuts = [
|
|
||||||
{
|
|
||||||
text: 'Last week',
|
|
||||||
value: () => {
|
|
||||||
const end = new Date();
|
|
||||||
const start = new Date();
|
|
||||||
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
|
|
||||||
return [start, end];
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
text: 'Last month',
|
|
||||||
value: () => {
|
|
||||||
const end = new Date();
|
|
||||||
const start = new Date();
|
|
||||||
start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
|
|
||||||
return [start, end];
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
text: 'Last 3 months',
|
|
||||||
value: () => {
|
|
||||||
const end = new Date();
|
|
||||||
const start = new Date();
|
|
||||||
start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
|
|
||||||
return [start, end];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
];
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style scoped>
|
||||||
.my-autocomplete li {
|
.tab-container {
|
||||||
line-height: normal;
|
margin: 30px;
|
||||||
padding: 7px;
|
}
|
||||||
}
|
|
||||||
|
|
||||||
.my-autocomplete li .name {
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
.my-autocomplete li .addr {
|
|
||||||
font-size: 12px;
|
|
||||||
color: #b4b4b4;
|
|
||||||
}
|
|
||||||
|
|
||||||
.my-autocomplete li .highlighted .addr {
|
|
||||||
color: #ddd;
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
@ -1,137 +0,0 @@
|
|||||||
|
|
||||||
<template>
|
|
||||||
<div style=" width:100%">
|
|
||||||
<el-card style="max-width: 100vw;margin: 1.5vw;max-height:100vh;height:80vh ">
|
|
||||||
<template #header>
|
|
||||||
<strong>子模块1</strong>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<!-- <div style=" display: flex;flex-direction: column;justify-content: center">-->
|
|
||||||
<div class="ModuleData" style="margin-left: 30vw;width: 24vw;height: 55vh;display: flex;flex-direction: column;justify-content: space-around;
|
|
||||||
">
|
|
||||||
<div style="display: flex;flex-direction: row;justify-content: space-between">
|
|
||||||
<strong>01.模块名称 </strong>
|
|
||||||
<span style="width: 250px">子模块1</span>
|
|
||||||
</div>
|
|
||||||
<div style="display: flex;flex-direction: row;justify-content: space-between">
|
|
||||||
<strong>02.模块周期</strong>
|
|
||||||
<span style="width: 250px">13天</span>
|
|
||||||
</div>
|
|
||||||
<div style="display: flex;flex-direction: row;justify-content: space-between">
|
|
||||||
<strong>03.工作量 </strong>
|
|
||||||
<span style="width: 250px">子模块1</span>
|
|
||||||
</div>
|
|
||||||
<div style="display: flex;flex-direction: row;justify-content: space-between">
|
|
||||||
<strong>04.负责人 </strong>
|
|
||||||
<span style="width: 250px">子模块1</span>
|
|
||||||
</div>
|
|
||||||
<div style="display: flex;flex-direction: row;justify-content: space-between">
|
|
||||||
<strong>05.状态 </strong>
|
|
||||||
<el-autocomplete
|
|
||||||
v-model="state"
|
|
||||||
:fetch-suggestions="querySearch"
|
|
||||||
popper-class="my-autocomplete"
|
|
||||||
placeholder="Please input"
|
|
||||||
@select="handleSelect"
|
|
||||||
style="width: 250px"
|
|
||||||
>
|
|
||||||
<template #suffix>
|
|
||||||
<el-icon class="el-input__icon" @click="handleIconClick">
|
|
||||||
<edit />
|
|
||||||
</el-icon>
|
|
||||||
</template>
|
|
||||||
<template #default="{ item }">
|
|
||||||
<div class="value">{{ item.value }}</div>
|
|
||||||
<span class="link">{{ item.link }}</span>
|
|
||||||
</template>
|
|
||||||
</el-autocomplete>
|
|
||||||
</div>
|
|
||||||
<div style="display: flex;flex-direction: row;justify-content: space-between">
|
|
||||||
<strong>06.截止时间 </strong>
|
|
||||||
<span style="width: 250px">子模块1</span>
|
|
||||||
</div>
|
|
||||||
<div style="display: flex;flex-direction: row;justify-content: space-between">
|
|
||||||
<strong>07.简介 </strong>
|
|
||||||
<el-input
|
|
||||||
v-model="textarea2"
|
|
||||||
style="width: 250px"
|
|
||||||
:autosize="{ minRows: 4, maxRows: 6 }"
|
|
||||||
type="textarea"
|
|
||||||
placeholder="Please input"
|
|
||||||
:row="4"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!-- </div>-->
|
|
||||||
</el-card>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script lang="ts" setup>
|
|
||||||
import { onMounted, ref } from 'vue';
|
|
||||||
import { Edit } from '@element-plus/icons-vue';
|
|
||||||
|
|
||||||
interface LinkItem {
|
|
||||||
value: string
|
|
||||||
link: string
|
|
||||||
}
|
|
||||||
|
|
||||||
const state = ref('');
|
|
||||||
const links = ref<LinkItem[]>([]);
|
|
||||||
|
|
||||||
const querySearch = (queryString: string, cb) => {
|
|
||||||
const results = queryString
|
|
||||||
? links.value.filter(createFilter(queryString))
|
|
||||||
: links.value;
|
|
||||||
// call callback function to return suggestion objects
|
|
||||||
cb(results);
|
|
||||||
};
|
|
||||||
const createFilter = (queryString) => {
|
|
||||||
return (restaurant) => {
|
|
||||||
return (
|
|
||||||
restaurant.value.toLowerCase().indexOf(queryString.toLowerCase()) === 0
|
|
||||||
);
|
|
||||||
};
|
|
||||||
};
|
|
||||||
const loadAll = () => {
|
|
||||||
return [
|
|
||||||
{ value: 'vue', link: 'https://github.com/vuejs/vue' },
|
|
||||||
{ value: 'element', link: 'https://github.com/ElemeFE/element' },
|
|
||||||
{ value: 'cooking', link: 'https://github.com/ElemeFE/cooking' },
|
|
||||||
{ value: 'mint-ui', link: 'https://github.com/ElemeFE/mint-ui' },
|
|
||||||
{ value: 'vuex', link: 'https://github.com/vuejs/vuex' },
|
|
||||||
{ value: 'vue-router', link: 'https://github.com/vuejs/vue-router' },
|
|
||||||
{ value: 'babel', link: 'https://github.com/babel/babel' }
|
|
||||||
];
|
|
||||||
};
|
|
||||||
const handleSelect = (item: LinkItem) => {
|
|
||||||
console.log(item);
|
|
||||||
};
|
|
||||||
|
|
||||||
const handleIconClick = (ev: Event) => {
|
|
||||||
console.log(ev);
|
|
||||||
};
|
|
||||||
|
|
||||||
onMounted(() => {
|
|
||||||
links.value = loadAll();
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style>
|
|
||||||
.my-autocomplete li {
|
|
||||||
line-height: normal;
|
|
||||||
padding: 7px;
|
|
||||||
}
|
|
||||||
.my-autocomplete li .name {
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
.my-autocomplete li .addr {
|
|
||||||
font-size: 12px;
|
|
||||||
color: #b4b4b4;
|
|
||||||
}
|
|
||||||
.my-autocomplete li .highlighted .addr {
|
|
||||||
color: #ddd;
|
|
||||||
}
|
|
||||||
</style>
|
|
@ -1,202 +0,0 @@
|
|||||||
<template>
|
|
||||||
|
|
||||||
<div style=" width:100%">
|
|
||||||
<el-card style="max-width: 100vw;margin: 1.5vw;">
|
|
||||||
<template #header><strong >子系统1</strong></template>
|
|
||||||
<div style="display:flex;flex-direction:row;justify-content: space-around ">
|
|
||||||
<div>
|
|
||||||
名称
|
|
||||||
<el-input v-model="input" style="width: 240px;margin-left:0.5vw" placeholder="请输入" />
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
状态
|
|
||||||
<el-input v-model="input" style="width: 240px;margin-left:0.5vw" placeholder="请输入" />
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<el-button type="primary" style="width:80px">查询</el-button>
|
|
||||||
<el-button style="width:80px">重置</el-button>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</el-card>
|
|
||||||
<el-card style="max-width: 100vw;height:60vh;margin:1.3vw">
|
|
||||||
<div style="display:flex;flex-direction: row;justify-content: space-between">
|
|
||||||
<el-button
|
|
||||||
text
|
|
||||||
type=''
|
|
||||||
>子模块列表</el-button
|
|
||||||
>
|
|
||||||
</div>
|
|
||||||
<el-table
|
|
||||||
ref="multipleTableRef"
|
|
||||||
:data="tableData"
|
|
||||||
style="max-width: 100vw;"
|
|
||||||
@selection-change="handleSelectionChange"
|
|
||||||
>
|
|
||||||
<!-- <el-table-column type="selection" width="55" />-->
|
|
||||||
<el-table-column label="序号" width="120">
|
|
||||||
<template #default="scope">{{ scope.row.date }}</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column property="name" label="子模块名称" width="120" />
|
|
||||||
<el-table-column property="address" label="工作量" show-overflow-tooltip />
|
|
||||||
<el-table-column property="address" label="周期" />
|
|
||||||
<el-table-column property="address" label="负责人" />
|
|
||||||
<el-table-column property="address" label="状态" />
|
|
||||||
<el-table-column property="address" label="子模块简介" />
|
|
||||||
<el-table-column property="address" label="截止时间" />
|
|
||||||
<el-table-column property="address" label="操作" >
|
|
||||||
<el-button
|
|
||||||
link
|
|
||||||
style="color:deepskyblue"
|
|
||||||
>查看详情</el-button
|
|
||||||
>
|
|
||||||
</el-table-column>
|
|
||||||
</el-table>
|
|
||||||
<el-pagination
|
|
||||||
larger
|
|
||||||
background
|
|
||||||
layout="prev, pager, next"
|
|
||||||
:total="50"
|
|
||||||
class="mt-4"
|
|
||||||
style="display: flex;flex-direction: row;justify-content: center;margin-top:5vh"
|
|
||||||
/>
|
|
||||||
</el-card>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script lang="ts" setup>
|
|
||||||
import { ref } from 'vue';
|
|
||||||
import { ElTable } from 'element-plus';
|
|
||||||
|
|
||||||
interface User {
|
|
||||||
date: string
|
|
||||||
name: string
|
|
||||||
address: string
|
|
||||||
}
|
|
||||||
|
|
||||||
const multipleTableRef = ref<InstanceType<typeof ElTable>>();
|
|
||||||
const multipleSelection = ref<User[]>([]);
|
|
||||||
|
|
||||||
const handleSelectionChange = (val: User[]) => {
|
|
||||||
multipleSelection.value = val;
|
|
||||||
};
|
|
||||||
|
|
||||||
const tableData: User[] = [
|
|
||||||
{
|
|
||||||
date: '2016-05-03',
|
|
||||||
name: 'Tom',
|
|
||||||
address: 'No. 189, Grove St, Los Angeles'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
date: '2016-05-02',
|
|
||||||
name: 'Tom',
|
|
||||||
address: 'No. 189, Grove St, Los Angeles'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
date: '2016-05-04',
|
|
||||||
name: 'Tom',
|
|
||||||
address: 'No. 189, Grove St, Los Angeles'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
date: '2016-05-01',
|
|
||||||
name: 'Tom',
|
|
||||||
address: 'No. 189, Grove St, Los Angeles'
|
|
||||||
}
|
|
||||||
|
|
||||||
];
|
|
||||||
|
|
||||||
// 输入框1
|
|
||||||
import { onMounted } from 'vue';
|
|
||||||
import { Edit } from '@element-plus/icons-vue';
|
|
||||||
|
|
||||||
interface LinkItem {
|
|
||||||
value: string
|
|
||||||
link: string
|
|
||||||
}
|
|
||||||
|
|
||||||
const state = ref('');
|
|
||||||
const links = ref<LinkItem[]>([]);
|
|
||||||
|
|
||||||
const querySearch = (queryString: string, cb) => {
|
|
||||||
const results = queryString
|
|
||||||
? links.value.filter(createFilter(queryString))
|
|
||||||
: links.value;
|
|
||||||
// call callback function to return suggestion objects
|
|
||||||
cb(results);
|
|
||||||
};
|
|
||||||
const createFilter = (queryString) => {
|
|
||||||
return (restaurant) => {
|
|
||||||
return (
|
|
||||||
restaurant.value.toLowerCase().indexOf(queryString.toLowerCase()) === 0
|
|
||||||
);
|
|
||||||
};
|
|
||||||
};
|
|
||||||
const loadAll = () => {
|
|
||||||
return [
|
|
||||||
{ value: '1' },
|
|
||||||
{ value: '2' },
|
|
||||||
{ value: '3' },
|
|
||||||
{ value: '4' },
|
|
||||||
{ value: '5' }
|
|
||||||
|
|
||||||
];
|
|
||||||
};
|
|
||||||
const handleSelect = (item: LinkItem) => {
|
|
||||||
console.log(item);
|
|
||||||
};
|
|
||||||
|
|
||||||
const handleIconClick = (ev: Event) => {
|
|
||||||
console.log(ev);
|
|
||||||
};
|
|
||||||
|
|
||||||
// 时间选择器
|
|
||||||
const value1 = ref('');
|
|
||||||
const value2 = ref('');
|
|
||||||
|
|
||||||
const shortcuts = [
|
|
||||||
{
|
|
||||||
text: 'Last week',
|
|
||||||
value: () => {
|
|
||||||
const end = new Date();
|
|
||||||
const start = new Date();
|
|
||||||
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
|
|
||||||
return [start, end];
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
text: 'Last month',
|
|
||||||
value: () => {
|
|
||||||
const end = new Date();
|
|
||||||
const start = new Date();
|
|
||||||
start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
|
|
||||||
return [start, end];
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
text: 'Last 3 months',
|
|
||||||
value: () => {
|
|
||||||
const end = new Date();
|
|
||||||
const start = new Date();
|
|
||||||
start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
|
|
||||||
return [start, end];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
];
|
|
||||||
</script>
|
|
||||||
<style>
|
|
||||||
.my-autocomplete li {
|
|
||||||
line-height: normal;
|
|
||||||
padding: 7px;
|
|
||||||
}
|
|
||||||
.my-autocomplete li .name {
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
.my-autocomplete li .addr {
|
|
||||||
font-size: 12px;
|
|
||||||
color: #b4b4b4;
|
|
||||||
}
|
|
||||||
.my-autocomplete li .highlighted .addr {
|
|
||||||
color: #ddd;
|
|
||||||
}
|
|
||||||
</style>
|
|
@ -1,124 +1,25 @@
|
|||||||
<template>
|
<template>
|
||||||
<div style=" width:100%">
|
<div class="app-container">
|
||||||
<el-card style="max-width: 100vw;margin: 1.5vw;">
|
<div style="margin:0 0 5px 20px">
|
||||||
<template #header><strong >项目1</strong></template>
|
Fixed header, sorted by header order,
|
||||||
<div style="display:flex;flex-direction:row;justify-content: space-around ">
|
|
||||||
<div>
|
|
||||||
名称
|
|
||||||
<el-input v-model="input" style="width: 240px;margin-left:0.5vw" placeholder="请输入" />
|
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<fixed-thead />
|
||||||
状态
|
|
||||||
<el-input v-model="input" style="width: 240px;margin-left:0.5vw" placeholder="请输入" />
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<el-button type="primary" style="width:80px">查询</el-button>
|
|
||||||
<el-button style="width:80px">重置</el-button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</el-card>
|
|
||||||
<el-card style="max-width: 100vw;height:60vh;margin:1.3vw">
|
|
||||||
<div style="display:flex;flex-direction: row;justify-content: space-between">
|
|
||||||
<el-button
|
|
||||||
text
|
|
||||||
type=''
|
|
||||||
>子系统列表</el-button
|
|
||||||
>
|
|
||||||
</div>
|
|
||||||
<el-table
|
|
||||||
ref="multipleTableRef"
|
|
||||||
:data="tableData"
|
|
||||||
style="max-width: 100vw;"
|
|
||||||
@selection-change="handleSelectionChange"
|
|
||||||
>
|
|
||||||
<!-- <el-table-column type="selection" width="55" />-->
|
|
||||||
<el-table-column label="序号" width="120">
|
|
||||||
<template #default="scope">{{ scope.row.date }}</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column property="name" label="子系统名称" width="120" />
|
|
||||||
<el-table-column property="address" label="工作量" show-overflow-tooltip />
|
|
||||||
<el-table-column property="address" label="周期" />
|
|
||||||
<el-table-column property="address" label="负责人" />
|
|
||||||
<el-table-column property="address" label="状态" />
|
|
||||||
<el-table-column property="address" label="子系统简介" />
|
|
||||||
<el-table-column property="address" label="截止时间" />
|
|
||||||
<el-table-column property="address" label="操作" >
|
|
||||||
<el-button
|
|
||||||
link
|
|
||||||
style="color:deepskyblue"
|
|
||||||
>查看详情</el-button
|
|
||||||
>
|
|
||||||
</el-table-column>
|
|
||||||
</el-table>
|
|
||||||
<el-pagination
|
|
||||||
larger
|
|
||||||
background
|
|
||||||
layout="prev, pager, next"
|
|
||||||
:total="50"
|
|
||||||
class="mt-4"
|
|
||||||
style="display: flex;flex-direction: row;justify-content: center;margin-top:5vh"
|
|
||||||
/>
|
|
||||||
</el-card>
|
|
||||||
|
|
||||||
|
<div style="margin:30px 0 5px 20px">
|
||||||
|
Not fixed header, sorted by click order
|
||||||
|
</div>
|
||||||
|
<unfixed-thead />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script>
|
||||||
import { ref } from 'vue';
|
import { defineComponent } from 'vue';
|
||||||
import { ElTable } from 'element-plus';
|
import FixedThead from './components/FixedThead';
|
||||||
interface User {
|
import UnfixedThead from './components/UnfixedThead';
|
||||||
date: string
|
|
||||||
name: string
|
|
||||||
address: string
|
|
||||||
}
|
|
||||||
|
|
||||||
const multipleTableRef = ref<InstanceType<typeof ElTable>>();
|
|
||||||
const multipleSelection = ref<User[]>([]);
|
|
||||||
|
|
||||||
const handleSelectionChange = (val: User[]) => {
|
|
||||||
multipleSelection.value = val;
|
|
||||||
};
|
|
||||||
|
|
||||||
const tableData: User[] = [
|
|
||||||
{
|
|
||||||
date: '2016-05-03',
|
|
||||||
name: 'Tom',
|
|
||||||
address: 'No. 189, Grove St, Los Angeles'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
date: '2016-05-02',
|
|
||||||
name: 'Tom',
|
|
||||||
address: 'No. 189, Grove St, Los Angeles'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
date: '2016-05-04',
|
|
||||||
name: 'Tom',
|
|
||||||
address: 'No. 189, Grove St, Los Angeles'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
date: '2016-05-01',
|
|
||||||
name: 'Tom',
|
|
||||||
address: 'No. 189, Grove St, Los Angeles'
|
|
||||||
}
|
|
||||||
|
|
||||||
];
|
|
||||||
|
|
||||||
|
|
||||||
|
export default defineComponent({
|
||||||
|
name: 'DynamicTable',
|
||||||
|
components: { FixedThead, UnfixedThead }
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
<style>
|
|
||||||
.my-autocomplete li {
|
|
||||||
line-height: normal;
|
|
||||||
padding: 7px;
|
|
||||||
}
|
|
||||||
.my-autocomplete li .name {
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
.my-autocomplete li .addr {
|
|
||||||
font-size: 12px;
|
|
||||||
color: #b4b4b4;
|
|
||||||
}
|
|
||||||
.my-autocomplete li .highlighted .addr {
|
|
||||||
color: #ddd;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<el-card class="box-card">
|
<el-card class="box-card">
|
||||||
<template #header>
|
<template #header>
|
||||||
@ -33,6 +32,7 @@
|
|||||||
Danger
|
Danger
|
||||||
</el-button>
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="block">
|
<div class="block">
|
||||||
<el-button type="primary" :icon="IconEdit" />
|
<el-button type="primary" :icon="IconEdit" />
|
||||||
<el-button type="primary" :icon="IconShare" />
|
<el-button type="primary" :icon="IconShare" />
|
||||||
@ -69,9 +69,7 @@
|
|||||||
<el-slider v-model="slideValue" />
|
<el-slider v-model="slideValue" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</template>
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { defineComponent, markRaw } from 'vue';
|
import { defineComponent, markRaw } from 'vue';
|
||||||
@ -119,8 +117,6 @@ export default defineComponent({
|
|||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.field-label{
|
.field-label{
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
@ -130,11 +126,12 @@ export default defineComponent({
|
|||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
margin: 20px auto;
|
margin: 20px auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.block {
|
.block {
|
||||||
padding: 30px 24px;
|
padding: 30px 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tag-item {
|
.tag-item {
|
||||||
margin-right: 15px;
|
margin-right: 15px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user