|
@@ -56,6 +56,7 @@
|
|
|
const props = defineProps(['id'])
|
|
|
const onClose = ()=>{
|
|
|
visible.value = false
|
|
|
+ mutextags.value = ''
|
|
|
formRef.value.resetFields()
|
|
|
}
|
|
|
const form = ref({
|
|
@@ -99,20 +100,22 @@
|
|
|
"content": form.value
|
|
|
})
|
|
|
utils.message(res,'创建成功',async()=>{
|
|
|
- mutextags.value = form.value.result.map(item => {
|
|
|
- return {
|
|
|
- "sys_systemtagdetailid": item,
|
|
|
- }
|
|
|
- })
|
|
|
- if (mutextags.value.length > 0) {
|
|
|
- let res2 = await Api.requested({
|
|
|
- "id":20221014122501,
|
|
|
- "content": {
|
|
|
- "sys_systemtagid": res.data.sys_systemtagid,
|
|
|
- "sys_systemtagdetailid": res.data.sys_systemtagdetailid,
|
|
|
- "mutextags": mutextags.value,
|
|
|
+ if (form.value.result !== undefined){
|
|
|
+ mutextags.value = form.value.result.map(item => {
|
|
|
+ return {
|
|
|
+ "sys_systemtagdetailid": item,
|
|
|
}
|
|
|
})
|
|
|
+ if (mutextags.value.length > 0) {
|
|
|
+ let res2 = await Api.requested({
|
|
|
+ "id":20221014122501,
|
|
|
+ "content": {
|
|
|
+ "sys_systemtagid": res.data.sys_systemtagid,
|
|
|
+ "sys_systemtagdetailid": res.data.sys_systemtagdetailid,
|
|
|
+ "mutextags": mutextags.value,
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
onClose()
|
|
|
emit('onSuccess')
|