|
@@ -134,6 +134,7 @@
|
|
|
</el-col>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
+ <a-modal v-model:open="open" title="相关推荐" @ok="handleOk"> 是否查看相关需求推荐 </a-modal>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script setup>
|
|
@@ -149,6 +150,8 @@ const SupplyRules = ref()
|
|
|
import { UserStore } from '@/store/user'
|
|
|
const userStore = UserStore()
|
|
|
const user = computed(() => userStore.user)
|
|
|
+// 路由
|
|
|
+const router = useRouter()
|
|
|
// 字典表
|
|
|
const isUseList = ref([])
|
|
|
const statusList = ref([])
|
|
@@ -214,13 +217,18 @@ const submitForm = async (formEl) => {
|
|
|
if (get(data, '_id')) res = await supplyStore.update({ ...data, ...other })
|
|
|
else res = await supplyStore.create({ ...data, ...other })
|
|
|
if ($checkRes(res, true)) {
|
|
|
- /* empty */
|
|
|
+ open.value = true
|
|
|
}
|
|
|
} else {
|
|
|
console.log('error submit!', fields)
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
+const open = ref(false)
|
|
|
+const handleOk = () => {
|
|
|
+ const query = { type: 'search' }
|
|
|
+ router.push({ path: '/search', query })
|
|
|
+}
|
|
|
</script>
|
|
|
<style scoped lang="scss">
|
|
|
.button {
|