This commit is contained in:
2026-08-17 11:01:21 +08:00
parent 6e07cab51f
commit 255573ed06
705 changed files with 8762 additions and 36677 deletions
+69 -26
View File
@@ -1,49 +1,92 @@
<template>
<view class="u-wrap">
<u-sticky>
<!-- 只能有一个根元素 -->
<view class="sticky">
<u-search v-model="keyword" placeholder="请输入单位名称" :show-action="false" ></u-search>
</view>
</u-sticky>
<ListCol v-for="(item, idx) in list" :data="item" :column='column' label-width="160" />
</view>
</template>
<script setup>
import {
ref
} from 'vue';
import ListCol from '@/components/ListCol.vue'
const keyword = ref("")
const column = ref([{
import { ref } from 'vue';
const keyword = ref('');
const column = ref([
{
name: '单位名称',
value: 'unitName',
type: 'string',
}, {
type: 'string'
},
{
name: '在建项目数',
value: 'inProject',
type: 'string',
}, {
type: 'string'
},
{
name: '停工项目数',
value: 'stopProject',
type: 'string',
}])
type: 'string'
}
]);
const list = ref([{
const list = ref([
{
unitName: '天辰',
inProject: 20,
stopProject: 5
}, {
},
{
unitName: '赛鼎',
inProject: 20,
stopProject: 5
}])
},
{
unitName: '赛鼎',
inProject: 20,
stopProject: 5
},
{
unitName: '赛鼎',
inProject: 20,
stopProject: 5
},
{
unitName: '赛鼎',
inProject: 20,
stopProject: 5
},
{
unitName: '赛鼎',
inProject: 20,
stopProject: 5
},
{
unitName: '赛鼎',
inProject: 20,
stopProject: 5
},
{
unitName: '赛鼎',
inProject: 20,
stopProject: 5
},
{
unitName: '赛鼎',
inProject: 20,
stopProject: 5
},
{
unitName: '赛鼎',
inProject: 20,
stopProject: 5
},
{
unitName: '赛鼎',
inProject: 20,
stopProject: 5
}
]);
</script>
<style lang="scss">
.sticky{
padding: 20rpx 30rpx;
}
.sticky {
padding: 20rpx 30rpx;
}
</style>