|
@@ -57,7 +57,7 @@
|
|
|
</el-col>
|
|
|
<el-col :span="24" class="other">
|
|
|
<span>联系人</span>
|
|
|
- {{ userInfo.name || '暂无联系人' }}
|
|
|
+ {{ formatName(userInfo.name) || '暂无联系人' }}
|
|
|
</el-col>
|
|
|
</el-col>
|
|
|
<el-col :span="4" class="right" v-if="info.status == '1'">
|
|
@@ -97,7 +97,7 @@
|
|
|
<span>需求地区:</span>{{ getArea(item.area) }}
|
|
|
</el-col>
|
|
|
<el-col :span="24" class="two_1">
|
|
|
- <span>单位:</span>{{ item.userName || '暂无单位' }}
|
|
|
+ <span>单位:</span> {{ formatName(item.userName) || '暂无单位' }}
|
|
|
</el-col>
|
|
|
<el-col :span="24" class="bottom">
|
|
|
<a-button size="small" type="primary" @click="toView(item)">
|
|
@@ -267,6 +267,9 @@ const toCollection = async (status) => {
|
|
|
const toView = (item) => {
|
|
|
router.push({ path: '/demand/detail', query: { id: item.id || item._id } })
|
|
|
}
|
|
|
+const formatName = (str) => {
|
|
|
+ if (str) return str.substr(0, 1) + new Array(str.length).join('*')
|
|
|
+}
|
|
|
const currentPage = ref(1)
|
|
|
// 分页
|
|
|
const changePage = (page = currentPage.value) => {
|