王露 3 lat temu
rodzic
commit
b6bdad92a2

+ 1
- 0
digital-park-web/digital-park/src/views/park-enterprises/components/ClaimDialog.vue Wyświetl plik

}, },
setData() { setData() {
this.btnLoading = true; this.btnLoading = true;
this.companyClaimInfo.companyId = this.$route.query.companyId;
addCompanyClaim(this.companyClaimInfo) addCompanyClaim(this.companyClaimInfo)
.then(res => { .then(res => {
console.log(res.data,'认领信息'); console.log(res.data,'认领信息');

+ 6
- 3
digital-park-web/digital-park/src/views/park-information/Detail.vue Wyświetl plik

<span class="question">{{ companyInfo.newsName }}</span> <span class="question">{{ companyInfo.newsName }}</span>
</div> </div>
<div class="answer_box"> <div class="answer_box">
<div class="answer">
{{ companyInfo.text }}
</div>
<div class="answer" v-html="parseMarkdown(companyInfo.text)"></div>
</div> </div>
</div> </div>
</section> </section>
//例如:import 《组件名称》 from '《组件路径》'; //例如:import 《组件名称》 from '《组件路径》';
import SearchBox from "./components/SearchBox.vue"; import SearchBox from "./components/SearchBox.vue";
import { getCompanyNewsById } from "@api/company"; import { getCompanyNewsById } from "@api/company";
import { parseMarkdown } from "@/utils/common";

export default { export default {
//import引入的组件需要注入到对象中才能使用 //import引入的组件需要注入到对象中才能使用
components: { SearchBox }, components: { SearchBox },
this.pageLoading = false; this.pageLoading = false;
}); });
}, },
parseMarkdown(str) {
return str ? parseMarkdown(str) : "";
},
}, },
//生命周期 - 创建完成(可以访问当前this实例) //生命周期 - 创建完成(可以访问当前this实例)
created() { created() {

Ładowanie…
Anuluj
Zapisz