Compare commits
No commits in common. "0a263425d062d398d93c57a410d628c1bdc486f2" and "24b482b84467173f7cb0658433ead2e5b14f1ca8" have entirely different histories.
0a263425d0
...
24b482b844
@ -338,10 +338,7 @@ export default Vue.extend({
|
|||||||
supplySquare: isEn ? 'Supply Square' : '供需广场',
|
supplySquare: isEn ? 'Supply Square' : '供需广场',
|
||||||
// about: isEn ? 'About Us' : '关于我们'
|
// about: isEn ? 'About Us' : '关于我们'
|
||||||
}
|
}
|
||||||
const hiddenNcmatchActions = ['computeMarket', 'trainPlatform', 'agentStore']
|
return this.productMenuItems.map(item => ({ ...item, label: labels[item.action] || item.action }))
|
||||||
return this.productMenuItems
|
|
||||||
.filter(item => !this.isNcmatchDomain || !hiddenNcmatchActions.includes(item.action))
|
|
||||||
.map(item => ({ ...item, label: labels[item.action] || item.action }))
|
|
||||||
},
|
},
|
||||||
aiPanelStyle() {
|
aiPanelStyle() {
|
||||||
if (this.aiPanelPosition.left === null || this.aiPanelPosition.top === null) return {}
|
if (this.aiPanelPosition.left === null || this.aiPanelPosition.top === null) return {}
|
||||||
|
|||||||
@ -152,11 +152,11 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="card-foot">
|
<div class="card-foot">
|
||||||
<span class="price">{{ getPriceText(item) }}</span>
|
<span class="price">{{ getPriceText(item) }}</span>
|
||||||
<!-- <button type="button" @click="openDetail(item)">
|
<button type="button" @click="openDetail(item)">
|
||||||
查看详情
|
查看详情
|
||||||
<i v-if="loadingStates[item.id]" class="el-icon-loading"></i>
|
<i v-if="loadingStates[item.id]" class="el-icon-loading"></i>
|
||||||
<span v-else>→</span>
|
<span v-else>→</span>
|
||||||
</button> -->
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
</div>
|
</div>
|
||||||
@ -381,7 +381,6 @@ export default {
|
|||||||
filteredPlazaDemandList() {
|
filteredPlazaDemandList() {
|
||||||
const keyword = this.keyword.toLowerCase()
|
const keyword = this.keyword.toLowerCase()
|
||||||
return this.plazaDemandData.filter(item => {
|
return this.plazaDemandData.filter(item => {
|
||||||
if (item.isPublishedDemand) return false
|
|
||||||
const matchTab = this.currentPlazaTab === '全部' || item.type === this.currentPlazaTab
|
const matchTab = this.currentPlazaTab === '全部' || item.type === this.currentPlazaTab
|
||||||
const matchSearch = !keyword || [
|
const matchSearch = !keyword || [
|
||||||
item.title,
|
item.title,
|
||||||
@ -525,16 +524,24 @@ export default {
|
|||||||
formData.append('contact_person', this.demandForm.contact)
|
formData.append('contact_person', this.demandForm.contact)
|
||||||
formData.append('phone_number', this.demandForm.phone)
|
formData.append('phone_number', this.demandForm.phone)
|
||||||
formData.append('application_scenario', this.demandForm.scenario)
|
formData.append('application_scenario', this.demandForm.scenario)
|
||||||
|
const submittedDemand = {
|
||||||
|
title: this.demandForm.title,
|
||||||
|
company: this.demandForm.company,
|
||||||
|
type: this.demandForm.type,
|
||||||
|
scenario: this.demandForm.scenario,
|
||||||
|
tags: [this.demandForm.type].filter(Boolean),
|
||||||
|
desc: this.demandForm.desc
|
||||||
|
}
|
||||||
|
|
||||||
reqPublishProductAdd(formData).then(res => {
|
reqPublishProductAdd(formData).then(res => {
|
||||||
if (res.status) {
|
if (res.status) {
|
||||||
this.plazaDemandData = this.plazaDemandData.filter(item => {
|
this.plazaDemandData.unshift(submittedDemand)
|
||||||
return item.title !== this.demandForm.title || item.desc !== this.demandForm.desc
|
this.currentPlazaTab = '全部'
|
||||||
})
|
|
||||||
this.publishDemandVisible = false
|
this.publishDemandVisible = false
|
||||||
this.resetDemandForm()
|
this.resetDemandForm()
|
||||||
this.$message.success('需求发布成功!')
|
this.$message.success(res.msg || '需求发布成功!')
|
||||||
} else {
|
} else {
|
||||||
this.$message.error('需求发布失败')
|
this.$message.error(res.msg || '需求发布失败')
|
||||||
}
|
}
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
this.$message.error('需求发布失败,请稍后重试')
|
this.$message.error('需求发布失败,请稍后重试')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user