优化字段显示,已重新打包。

This commit is contained in:
monanxiao
2024-10-24 17:57:30 +08:00
parent 9073b8310e
commit b80265f3e8
6 changed files with 77 additions and 13 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ const errorCode = {
// const url = "https://repair.cpolar.top"; // 开发地址
const url = "https://api.cqcxj.cn"; // 正式地址
// const url = "https://cqjql.scdswj.cn:9443"; // 临时地址n
// const url = "https://cqjql.scdswj.cn:9443"; // 临时地址
const service = axios.create({
baseURL: url,
+22 -7
View File
@@ -205,14 +205,14 @@ const formData = ref({
})
const fileBannerList = ref([]); // 轮播图
const fileDetail = ref(); // 详情图
const fileDetail = ref([]); // 详情图
// 页面初始化
const initData = () => {
getGoodsList(queryData.value).then((res) => {
let itemData = res.data.map(item => {
tableData.value = res.data.map(item => {
try {
// 尝试将字符串转换为 JSON 对象
item.carouselImage = JSON.parse(item.carouselImage);
@@ -222,8 +222,6 @@ const initData = () => {
}
return item;
});
tableData.value = itemData;
total.value = res.total
})
}
@@ -377,15 +375,30 @@ const onSubmit = () => {
return;
}
formData.value.carouselImage = JSON.stringify(formData.value.carouselImage); // 转为字符串
let params = {...formData.value}
params.carouselImage = JSON.stringify(params.carouselImage); // 转为字符串
addGoods(formData.value)
addGoods(params)
.then((res) => {
drawer.value = false;
formData.value = {
goodsName: '',
price: '',
carouselImage: [],
details: '',
isList: false
}
fileBannerList.value = [];
fileDetail.value = [];
ElMessage({
message: '添加成功',
type: 'success',
})
drawer.value = false;
initData();
})
.catch((err) => {
@@ -422,6 +435,8 @@ const cancelDrawer = () => {
details: '',
isList: false
}
fileBannerList.value = [];
fileDetail.value = [];
}
// 分页切换
+5 -5
View File
@@ -81,11 +81,11 @@
</el-form-item>
<br>
<el-form-item label="用户昵称">
<el-form-item label="用户姓名">
<el-input
v-model="formSearch.username"
style="max-width: 300px"
placeholder="用户昵称"
placeholder="用户姓名"
class="input-with-select"
/>
</el-form-item>
@@ -94,7 +94,7 @@
<el-input
v-model="formSearch.surveyorsName"
style="max-width: 300px"
placeholder="用户昵称"
placeholder="工程师姓名"
class="input-with-select"
/>
</el-form-item>
@@ -102,7 +102,7 @@
<el-input
v-model="formSearch.repairerName"
style="max-width: 300px"
placeholder="用户昵称"
placeholder="工程师姓名"
class="input-with-select"
/>
</el-form-item>
@@ -224,7 +224,7 @@
</el-table-column>
<el-table-column
label="微信昵称"
label="用户姓名"
prop="username"
width="300"
align="center"
+17
View File
@@ -52,6 +52,23 @@
<el-avatar :size="50" :src="scope.row.avatar" />
</template>
</el-table-column>
<el-table-column
label="关注公众号"
width="300"
align="center"
show-overflow-tooltip
>
<template #default="scope">
<template v-if="scope.row.ampOpenid">
<el-tag type="success">已关注</el-tag>
</template>
<template v-else>
<el-tag type="info">未关注</el-tag>
</template>
</template>
</el-table-column>
<el-table-column
label="微信昵称"
prop="nickName"
+15
View File
@@ -67,6 +67,21 @@
align="center"
show-overflow-tooltip
/>
<el-table-column
label="关注公众号"
width="300"
align="center"
show-overflow-tooltip
>
<template #default="scope">
<template v-if="scope.row.ampOpenid">
<el-tag type="success">已关注</el-tag>
</template>
<template v-else>
<el-tag type="info">未关注</el-tag>
</template>
</template>
</el-table-column>
<el-table-column
label="注册时间"
prop="createTime"
+17
View File
@@ -68,6 +68,23 @@
align="center"
show-overflow-tooltip
/>
<el-table-column
label="关注公众号"
width="300"
align="center"
show-overflow-tooltip
>
<template #default="scope">
<template v-if="scope.row.ampOpenid">
<el-tag type="success">已关注</el-tag>
</template>
<template v-else>
<el-tag type="info">未关注</el-tag>
</template>
</template>
</el-table-column>
<el-table-column
label="注册时间"
prop="createTime"