更新企微投放,人群包链接
This commit is contained in:
2
.env.dev
2
.env.dev
@@ -11,3 +11,5 @@ VUE_APP_MESSAGE_CENTER ='http://gtech-gateway.dcin-test.digitalyili.com/apigtech
|
|||||||
#VUE_APP_SOCKETURL = 'wss://planetg-java.test.automark.cc/survey_sync'
|
#VUE_APP_SOCKETURL = 'wss://planetg-java.test.automark.cc/survey_sync'
|
||||||
VUE_APP_SOCKETURL = 'wss://ylst-api-uat.dctest.digitalyili.com/survey_sync'
|
VUE_APP_SOCKETURL = 'wss://ylst-api-uat.dctest.digitalyili.com/survey_sync'
|
||||||
VUE_APP_JSONPURL = 'https://iam-uat.dctest.digitalyili.com/idp/restful/getIDPToken'
|
VUE_APP_JSONPURL = 'https://iam-uat.dctest.digitalyili.com/idp/restful/getIDPToken'
|
||||||
|
|
||||||
|
VUE_APP_YQRURL = 'https://ocp-uat-ain.digitalyili.com'
|
||||||
|
|||||||
@@ -10,3 +10,6 @@ VUE_APP_MESSAGE_CENTER ='http://gtech-gateway.cxpin.digitalyili.com/apigtech/mes
|
|||||||
VUE_APP_LOGIN = 'https://yip.digitalyili.com//login'
|
VUE_APP_LOGIN = 'https://yip.digitalyili.com//login'
|
||||||
VUE_APP_SOCKETURL = 'wss://ylst-api.xapi.digitalyili.com/survey_sync'
|
VUE_APP_SOCKETURL = 'wss://ylst-api.xapi.digitalyili.com/survey_sync'
|
||||||
VUE_APP_JSONPURL = 'https://iam.digitalyili.com/idp/restful/getIDPToken'
|
VUE_APP_JSONPURL = 'https://iam.digitalyili.com/idp/restful/getIDPToken'
|
||||||
|
|
||||||
|
VUE_APP_YQRURL = 'https://ocp.digitalyili.com'
|
||||||
|
|
||||||
|
|||||||
3
.env.sit
3
.env.sit
@@ -13,3 +13,6 @@ VUE_APP_LOGIN = 'https://yip-uat.dctest.digitalyili.com/login'
|
|||||||
VUE_APP_SOCKETURL = 'wss://ylst-api-uat.dctest.digitalyili.com/survey_sync'
|
VUE_APP_SOCKETURL = 'wss://ylst-api-uat.dctest.digitalyili.com/survey_sync'
|
||||||
|
|
||||||
VUE_APP_JSONPURL = 'https://iam-uat.dctest.digitalyili.com/idp/restful/getIDPToken'
|
VUE_APP_JSONPURL = 'https://iam-uat.dctest.digitalyili.com/idp/restful/getIDPToken'
|
||||||
|
|
||||||
|
VUE_APP_YQRURL = 'https://ocp-uat-ain.digitalyili.com'
|
||||||
|
|
||||||
|
|||||||
2
.env.uat
2
.env.uat
@@ -13,3 +13,5 @@ VUE_APP_LOGIN = 'https://yip-uat.dctest.digitalyili.com/login'
|
|||||||
VUE_APP_SOCKETURL = 'wss://ylst-api-uat.dctest.digitalyili.com/survey_sync'
|
VUE_APP_SOCKETURL = 'wss://ylst-api-uat.dctest.digitalyili.com/survey_sync'
|
||||||
|
|
||||||
VUE_APP_JSONPURL = 'https://iam-uat.dctest.digitalyili.com/idp/restful/getIDPToken'
|
VUE_APP_JSONPURL = 'https://iam-uat.dctest.digitalyili.com/idp/restful/getIDPToken'
|
||||||
|
|
||||||
|
VUE_APP_YQRURL = 'https://ocp-uat-ain.digitalyili.com'
|
||||||
|
|||||||
@@ -6,4 +6,5 @@ module.exports = {
|
|||||||
loginUrl: process.env.VUE_APP_LOGIN,
|
loginUrl: process.env.VUE_APP_LOGIN,
|
||||||
socketUrl: process.env.VUE_APP_SOCKETURL,
|
socketUrl: process.env.VUE_APP_SOCKETURL,
|
||||||
jsonpUrl: process.env.VUE_APP_JSONPURL,
|
jsonpUrl: process.env.VUE_APP_JSONPURL,
|
||||||
|
jqrUrl: process.env.VUE_APP_YQRURL,
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -283,14 +283,14 @@ export default {
|
|||||||
console.log(dataSource.value);
|
console.log(dataSource.value);
|
||||||
|
|
||||||
const data = await edit({
|
const data = await edit({
|
||||||
deliveryPlanList: JSON.stringify(
|
deliveryPlanList: JSON.parse(JSON.stringify(
|
||||||
dataSource.value.map((s) => {
|
dataSource.value.map((s) => {
|
||||||
return {
|
return {
|
||||||
sampleQuota: s.sampleQuota || 0,
|
sampleQuota: s.sampleQuota || 0,
|
||||||
outerPlanId: s.id,
|
outerPlanId: s.id,
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
),
|
)),
|
||||||
sn: route.query.sn,
|
sn: route.query.sn,
|
||||||
deliveryPlanId: id.value,
|
deliveryPlanId: id.value,
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -385,6 +385,7 @@ export default {
|
|||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
.copy-btn {
|
.copy-btn {
|
||||||
|
margin-left: 20px;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|||||||
@@ -8,26 +8,32 @@
|
|||||||
:wrapper-col="wrapperCol"
|
:wrapper-col="wrapperCol"
|
||||||
>
|
>
|
||||||
<a-form-item label="消息接收者" name="">
|
<a-form-item label="消息接收者" name="">
|
||||||
<a-input
|
<a-select
|
||||||
placeholder="请输入本次投放名称"
|
v-model:value="value"
|
||||||
v-model:value="formState.deliveryName"
|
mode="multiple"
|
||||||
:show-count="true"
|
label-in-value
|
||||||
:maxlength="50"
|
placeholder="Select users"
|
||||||
class="input"
|
style="width: 328px"
|
||||||
|
:filter-option="false"
|
||||||
|
:not-found-content="fetching ? undefined : null"
|
||||||
|
:options="data"
|
||||||
|
@search="fetchUser"
|
||||||
>
|
>
|
||||||
<template #suffix
|
<template v-if="fetching" #notFoundContent>
|
||||||
><span class="show-count"> {{ formState.deliveryName.length }}/50</span>
|
<a-spin size="small" />
|
||||||
</template>
|
</template>
|
||||||
</a-input>
|
</a-select>
|
||||||
<a-button type="text" class="custom-button" @click="addLogicHandle">
|
<a-button type="text" class="custom-button" @click="onOperate(1)">
|
||||||
<div class="flex-align">
|
<div class="flex-align">
|
||||||
<i class="iconfont"></i>
|
<i class="iconfont"></i>
|
||||||
<span style="margin-left: 6px">新增人群包</span>
|
<span style="margin-left: 6px">新增人群包</span>
|
||||||
</div>
|
</div>
|
||||||
</a-button>
|
</a-button>
|
||||||
<a-button type="text" class="custom-button" @click="addLogicHandle">
|
<span style="border-right: 1px solid #D8D8D8;"></span>
|
||||||
|
<a-button type="text" class="custom-button" @click="onOperate(2)">
|
||||||
<div class="flex-align">
|
<div class="flex-align">
|
||||||
<i class="iconfont"></i>
|
<!-- <i class="iconfont"></i> -->
|
||||||
|
<i class="iconfont"></i>
|
||||||
<span style="margin-left: 6px">查看人群包</span>
|
<span style="margin-left: 6px">查看人群包</span>
|
||||||
</div>
|
</div>
|
||||||
</a-button>
|
</a-button>
|
||||||
@@ -59,8 +65,9 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref } from 'vue'
|
import { ref, watch, reactive } from 'vue'
|
||||||
|
import { debounce } from 'lodash-es';
|
||||||
|
import { jqrUrl } from "../../../../config";
|
||||||
defineProps({
|
defineProps({
|
||||||
|
|
||||||
})
|
})
|
||||||
@@ -82,6 +89,50 @@ defineProps({
|
|||||||
})
|
})
|
||||||
const wrapperCol = ref({ span: 18 })
|
const wrapperCol = ref({ span: 18 })
|
||||||
|
|
||||||
|
let lastFetchId = 0;
|
||||||
|
const state = reactive({
|
||||||
|
data: [],
|
||||||
|
value: [],
|
||||||
|
fetching: false,
|
||||||
|
});
|
||||||
|
const fetchUser = debounce(value => {
|
||||||
|
console.log('fetching user', value);
|
||||||
|
lastFetchId += 1;
|
||||||
|
const fetchId = lastFetchId;
|
||||||
|
state.data = [];
|
||||||
|
state.fetching = true;
|
||||||
|
fetch('https://randomuser.me/api/?results=5')
|
||||||
|
.then(response => response.json())
|
||||||
|
.then(body => {
|
||||||
|
if (fetchId !== lastFetchId) {
|
||||||
|
// for fetch callback order
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const data = body.results.map(user => ({
|
||||||
|
label: `${user.name.first} ${user.name.last}`,
|
||||||
|
value: user.login.username,
|
||||||
|
}));
|
||||||
|
state.data = data;
|
||||||
|
state.fetching = false;
|
||||||
|
});
|
||||||
|
}, 300);
|
||||||
|
watch(state.value, () => {
|
||||||
|
state.data = [];
|
||||||
|
state.fetching = false;
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
let builtUrl = jqrUrl + 'profile_platform/1/segment/list'
|
||||||
|
let viewUrl = jqrUrl + '/profile_platform/1/segment/rule?segId=256'
|
||||||
|
const onOperate = (type) => {
|
||||||
|
if (type===1) {
|
||||||
|
window.open(builtUrl)
|
||||||
|
}else{
|
||||||
|
window.open(viewUrl)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
|||||||
@@ -36,6 +36,7 @@ import SubTitle from "@/views/DataAnalyse/components/SubTitle.vue";
|
|||||||
import { onMounted } from "@vue/runtime-core";
|
import { onMounted } from "@vue/runtime-core";
|
||||||
import { useRoute } from "vue-router";
|
import { useRoute } from "vue-router";
|
||||||
import { useStore } from "vuex";
|
import { useStore } from "vuex";
|
||||||
|
import { message } from "ant-design-vue";
|
||||||
export default {
|
export default {
|
||||||
name: "share-links",
|
name: "share-links",
|
||||||
components: {
|
components: {
|
||||||
|
|||||||
Reference in New Issue
Block a user