diff --git a/src/views/task/create.vue b/src/views/task/create.vue index c20e560..977a72e 100644 --- a/src/views/task/create.vue +++ b/src/views/task/create.vue @@ -19,11 +19,11 @@ @@ -315,18 +315,23 @@ const resetQuery = () => { handleQuery() } - // - typeList.value = handleTree(await DeptApi.getSimpleDeptList()) /** * 获取标签列表 */ function getTagList() { - TagLibraryApi.getTagLibraryPage({}).then((res) => { + TagLibraryApi.getTagLibraryPage({tagType:2}).then((res) => { tagList.value = res }) } + +const defaultProps = { + label: 'tagName', // 使用 'name' 字段作为选项的标签 + children: 'children', // 如果存在子节点,则使用 'children' 字段 +}; + + /** * 获取企业列表 */ @@ -407,6 +412,7 @@ async function submitForm() { const validate = await unref(formRef).validate() if (validate) { const data = JSON.parse(JSON.stringify(formData.value)) + data.status=1; data.enterpriseIds = formData.value.enterprises.map((i) => i.id) if(data.enterpriseIds.length==0){ message.success("温馨提示:请您选择执法对象")