bugfix #17

Merged
charles merged 1 commits from main into prod 2025-08-20 14:48:19 +08:00
2 changed files with 32 additions and 8 deletions

View File

@ -177,14 +177,26 @@ export default Vue.extend({
const hasAuditInfo = Array.isArray(dataList) && dataList.length !== 0
const roles = sessionStorage.getItem('jueseNew')
const isCustomer = roles ? roles.includes('客户') : true
if(res.data.data[0].audit_status==='pending') {
this.$message.warning('您的审核状态为待审核,请等待审核通过后发布~')
} else if (hasAuditInfo || !isCustomer) {
// data[0]
if (hasAuditInfo && dataList[0]) {
const auditStatus = dataList[0].audit_status
if (auditStatus === 'pending') {
this.$message.warning('您的审核状态为待审核,请等待审核通过后发布~')
} else if (auditStatus === 'rejected') {
this.$message.warning('您的审核状态为驳回,请重新提交~')
} else {
//
this.publish_type = type
this.sendProductVisible = true
}
} else if (!isCustomer) {
//
this.publish_type = type
this.sendProductVisible = true
} else if(res.data.data[0].audit_status==='rejected') {
this.$message.warning('您的审核状态为驳回,请重新提交~')
} else {
//
this.showTip = true
}
})

View File

@ -43,6 +43,16 @@
</div>
</div>
<div class="category-section">
<div class="category-title">所属品类</div>
<div class="category-tags">
<span v-for="category in typeList" :key="category.id"
:class="['category-tag', { active: selectedCategory === category.value }]"
@click="selectCategory(category.value)">
{{ category.label }}
</span>
</div>
</div>
<!-- 公司类别 -->
<div class="category-section">
<div class="category-title">公司类别</div>
@ -327,7 +337,7 @@ export default {
background: #fff;
border: 1px solid #e8e8e8;
margin-right: 4px;
font-size: 16px!important;
font-size: 16px !important;
&:last-child {
margin-right: 0;
@ -424,6 +434,7 @@ export default {
flex-direction: column;
justify-content: flex-start;
align-items: center;
max-width: 1600px;
}
@ -462,10 +473,10 @@ export default {
display: flex;
flex-wrap: wrap;
gap: 8px;
.category-tag {
padding: 3px 6px;
background-color: #fff;
border: 1px solid #e8e8e8;
@ -474,6 +485,7 @@ export default {
cursor: pointer;
transition: all 0.3s ease;
font-size: 14px;
&:hover {
border-color: #1890ff;
color: #1890ff;