Commit 92af9d18 by crushh

update: 创建链接

parent 936a2f55
......@@ -141,16 +141,19 @@
<el-form-item label="选择链接:">
<div class="flex">
<el-select class="w160" v-model="link.wxEnterpriseId" @change="getlinkOptions()" v-show="entepriseList.length > 1">
<el-option v-for="el in entepriseList" :key="el.wxEnterpriseId" :value="el.wxEnterpriseId" :label="el.corpName"></el-option>
</el-select>
<el-select class="w160" v-model="link.linkType" @change="getlinkOptions()">
<el-option label="专用链接" :value="1"></el-option>
<el-option label="通用链接" :value="2"></el-option>
</el-select>
<el-select class="w160" v-model="link.hmLinkId" filterable placeholder="请选择" remote :remote-method="getlinkOptions" :loading="linkOptionsLoading">
<el-option v-for="item in linkOptions" :key="item.shortCode" :label="item.name" :value="item.shortCode"> </el-option>
</el-select>
<div class="flex">
<el-select class="w160" v-model="link.wxEnterpriseId" @change="getlinkOptions()" v-show="entepriseList.length > 1">
<el-option v-for="el in entepriseList" :key="el.wxEnterpriseId" :value="el.wxEnterpriseId" :label="el.corpName"></el-option>
</el-select>
<el-select class="w160" v-model="link.linkType" @change="getlinkOptions()">
<el-option label="专用链接" :value="1"></el-option>
<el-option label="通用链接" :value="2"></el-option>
</el-select>
<el-select class="w160" v-model="link.hmLinkId" filterable placeholder="请选择" remote :remote-method="getlinkOptions" :loading="linkOptionsLoading">
<el-option v-for="item in linkOptions" :key="item.shortCode" :label="item.name" :value="item.shortCode"> </el-option>
</el-select>
</div>
<el-button class="ml10" type="text" @click="createLink">创建链接</el-button>
</div>
</el-form-item>
</div>
......@@ -344,6 +347,9 @@ export default {
this.getEntepriseList();
},
methods: {
createLink() {
window.open(`${window.location.origin}/api-auth/login-for-haoban?requestProject=1&hbPage=attractFlowLink`);
},
getlinkOptions(searchName) {
const { linkType, wxEnterpriseId } = this.link;
this.link.hmLinkId = '';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment