如何实现列表VUE容器跳转代码呢?
-
如何实现列表VUE容器跳转代码呢?
可以参考下面的代码:
export const relation_sale = { template: `<div> <a-button v-if="value.auto_alot_flag != '' && value.auto_alot_flag != null && value.auto_alot_flag != undefined" size="small" class="ant-btn ant-btn-link" type="button" @click="onViewBtnClick" style="padding: 0 8px"><i class="iconfont iconliulan1"></i></a-button> <div v-else>无关联</div> </div>`, props: ['instance', 'name', 'value', 'rowIndex', 'pageStatus'], emits: ['change'], data: function () { return {}; }, methods: { onViewBtnClick(){ console.log(this.value); if(this.value.auto_alot_flag == "auto"){ if(this.value.auto_xs_type == "ATI"){ const url = `/apps/desktop/process/horizon_app_6m4gvycv1c/sappId/horizon_form_9akgvtp3js/${this.value.auto_xs_uid}?type=view` window.open(url, '_blank') }else if(this.value.auto_xs_type == "ATI-Quick"){ const url = `/apps/desktop/process/horizon_app_6m4gvycv1c/sappId/horizon_form_w65qqtu2lk/${this.value.auto_xs_uid}?type=view` window.open(url, '_blank') }else if(this.value.auto_xs_type == "auto_old"){ const url = `/apps/desktop/process/horizon_app_6m4gvycv1c/sappId/horizon_form_zew1utklzl/${this.value.auto_xs_uid}?type=view` window.open(url, '_blank') } }else if (this.value.auto_alot_flag == "aiot"){ const url = `/apps/desktop/process/horizon_app_6m4gvycv1c/sappId/horizon_form_1n4953jxvk/${this.value.alot_xs_uid}?type=view` window.open(url, '_blank') } } } }
最近的话题