|
@@ -9,6 +9,7 @@
|
9
|
9
|
</div>
|
10
|
10
|
</template>
|
11
|
11
|
<script lang="ts" setup>
|
|
12
|
+import { Toast } from 'vant';
|
12
|
13
|
import { onBeforeMount, ref, reactive, getCurrentInstance } from 'vue';
|
13
|
14
|
const emits= defineEmits<{///*ts专有*/
|
14
|
15
|
(e: 'closeTag', num: number): void
|
|
@@ -26,7 +27,7 @@ import { onBeforeMount, ref, reactive, getCurrentInstance } from 'vue';
|
26
|
27
|
const tagList = ref([])
|
27
|
28
|
const selectedTag = ref([]);//选中的标签
|
28
|
29
|
selectedTag.value = JSON.parse(JSON.stringify(props.labelList));
|
29
|
|
-
|
|
30
|
+
|
30
|
31
|
onBeforeMount(() => {//组件挂载之前
|
31
|
32
|
get_tag()
|
32
|
33
|
});
|
|
@@ -45,6 +46,11 @@ import { onBeforeMount, ref, reactive, getCurrentInstance } from 'vue';
|
45
|
46
|
emits('closeTag',arr)
|
46
|
47
|
}
|
47
|
48
|
function get_tag(){//获取所有标签
|
|
49
|
+ Toast.loading({
|
|
50
|
+ duration:0,
|
|
51
|
+ message: '加载中...',
|
|
52
|
+ forbidClick: true,
|
|
53
|
+ });
|
48
|
54
|
(proxy as any).$axios.post({url:"/api/h5/portrait/tagList", data:{
|
49
|
55
|
corpid: props.configInfo.corpid,
|
50
|
56
|
external_userid: props.configInfo.external_userid,
|
|
@@ -53,8 +59,12 @@ import { onBeforeMount, ref, reactive, getCurrentInstance } from 'vue';
|
53
|
59
|
.then((res) => {
|
54
|
60
|
//请求成功
|
55
|
61
|
tagList.value = res.rst;
|
|
62
|
+ alert(JSON.stringify(res)+`corpid=${props.configInfo.corpid},external_userid=${props.configInfo.external_userid},user_id=${props.configInfo.user_id}`)
|
|
63
|
+
|
|
64
|
+ Toast.clear();
|
56
|
65
|
})
|
57
|
66
|
.catch( err => {
|
|
67
|
+ Toast.clear();
|
58
|
68
|
})
|
59
|
69
|
}
|
60
|
70
|
</script>
|