|
@@ -28,23 +28,16 @@
|
|
/>
|
|
/>
|
|
|
|
|
|
<template v-for="(item, index) in settlementList" :key="index">
|
|
<template v-for="(item, index) in settlementList" :key="index">
|
|
- <wd-card>
|
|
|
|
- <view class="project-body" @click="goDetail(item)">
|
|
|
|
|
|
+ <wd-card :title="'项目编号:' + item.COL_0.value">
|
|
|
|
+ <view class="project-body" @click="goDetail(item)">
|
|
<view class="body-list" v-for="(field, i) in showListField" :key="i">
|
|
<view class="body-list" v-for="(field, i) in showListField" :key="i">
|
|
<view>{{ field.content }}: {{ item[field.field].value }}</view>
|
|
<view>{{ field.content }}: {{ item[field.field].value }}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<template #footer>
|
|
<template #footer>
|
|
- <wd-button size="small" plain @click="goEdit(item)">编辑</wd-button>
|
|
|
|
- <wd-button
|
|
|
|
- style="margin-left: 10px"
|
|
|
|
- size="small"
|
|
|
|
- type="error"
|
|
|
|
- plain
|
|
|
|
- @click="deleteData(item)"
|
|
|
|
- >
|
|
|
|
- 删除
|
|
|
|
- </wd-button>
|
|
|
|
|
|
+ <wd-button size="small" type="warning" @click="goDetail(item)">查看详情</wd-button>
|
|
|
|
+ <wd-button size="small" @click="goEdit(item)">编辑</wd-button>
|
|
|
|
+ <wd-button size="small" type="error" @click="deleteData(item)">删除</wd-button>
|
|
</template>
|
|
</template>
|
|
</wd-card>
|
|
</wd-card>
|
|
</template>
|
|
</template>
|
|
@@ -74,10 +67,7 @@ const menu = ref([
|
|
]);
|
|
]);
|
|
const showListField = ref([
|
|
const showListField = ref([
|
|
// 项目编号:
|
|
// 项目编号:
|
|
- {
|
|
|
|
- content: '项目编号',
|
|
|
|
- field: 'COL_0',
|
|
|
|
- },
|
|
|
|
|
|
+
|
|
{
|
|
{
|
|
content: '项目名称',
|
|
content: '项目名称',
|
|
field: 'COL_1',
|
|
field: 'COL_1',
|
|
@@ -294,11 +284,9 @@ function addData() {
|
|
}
|
|
}
|
|
// goDetail 去往详情页
|
|
// goDetail 去往详情页
|
|
function goDetail(item) {
|
|
function goDetail(item) {
|
|
- console.log("🚀 ~ goDetail ~ item:", item)
|
|
|
|
router.push({
|
|
router.push({
|
|
path: 'pages/oils/detail',
|
|
path: 'pages/oils/detail',
|
|
query: { filedsData: JSON.stringify(item || '[]'), formKey: formKey.value },
|
|
query: { filedsData: JSON.stringify(item || '[]'), formKey: formKey.value },
|
|
-
|
|
|
|
});
|
|
});
|
|
}
|
|
}
|
|
// 删除
|
|
// 删除
|
|
@@ -420,4 +408,9 @@ function deleteData(item) {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+.settlement-form {
|
|
|
|
+ :deep .wd-button + .wd-button {
|
|
|
|
+ margin-left: 20rpx;
|
|
|
|
+ }
|
|
|
|
+}
|
|
</style>
|
|
</style>
|