-
算法管理
+
+
+
+
+
+
+ 项目信息
+
+
+
+
+ 项目名称:{{ "文字识别" }}
+ 负责人:{{ "识别线主管" }}
+ 联系方式:{{ "13811111111" }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 模型列表
+ 新建模型
+
+
+
+
+
+
+
+
+ Loading...
+ No more
+
+
+
+
+
+
diff --git a/src/views/project/list/components/Card.vue b/src/views/project/list/components/Card.vue
index 153dd1f..a895d0e 100644
--- a/src/views/project/list/components/Card.vue
+++ b/src/views/project/list/components/Card.vue
@@ -142,7 +142,7 @@ const cardInfoClass = computed(() => [
display: flex;
align-items: center;
justify-content: center;
- width: 260px;
+ width: 250px;
height: 150px;
font-size: 32px;
color: #0052d9;
diff --git a/src/views/project/list/components/DialogForm.vue b/src/views/project/list/components/DialogForm.vue
index 83037ec..1f10718 100644
--- a/src/views/project/list/components/DialogForm.vue
+++ b/src/views/project/list/components/DialogForm.vue
@@ -3,13 +3,13 @@ import { ref, watch } from "vue";
import { message } from "@/utils/message";
import { FormInstance } from "element-plus";
-const SELECT_OPTIONS = [
- { label: "网关", value: 1 },
- { label: "人工智能", value: 2 },
- { label: "CVM", value: 3 },
- { label: "防火墙", value: 4 },
- { label: "未知", value: 5 }
-];
+// const SELECT_OPTIONS = [
+// { label: "网关", value: 1 },
+// { label: "人工智能", value: 2 },
+// { label: "CVM", value: 3 },
+// { label: "防火墙", value: 4 },
+// { label: "未知", value: 5 }
+// ];
const props = defineProps({
visible: {
@@ -28,7 +28,7 @@ const ruleFormRef = ref
();
const formVisible = ref(false);
const formData = ref(props.data);
-const textareaValue = ref("");
+// const textareaValue = ref("");
const submitForm = async (formEl: FormInstance | undefined) => {
if (!formEl) return;
@@ -81,7 +81,7 @@ const rules = {
-
+
-
+
+
+
+
+
+
+
+
-
+
取消
diff --git a/src/views/project/list/index.vue b/src/views/project/list/index.vue
index 8ae485d..c1905cf 100644
--- a/src/views/project/list/index.vue
+++ b/src/views/project/list/index.vue
@@ -5,6 +5,9 @@ import { message } from "@/utils/message";
import { ElMessageBox } from "element-plus";
import { ref, onMounted, nextTick } from "vue";
import dialogForm from "./components/DialogForm.vue";
+import { useRouter } from "vue-router";
+import { isString } from "@pureadmin/utils";
+import { useMultiTagsStoreHook } from "@/store/modules/multiTags";
import { useRenderIcon } from "@/components/ReIcon/src/hooks";
import Search from "@iconify-icons/ep/search";
import AddFill from "@iconify-icons/ri/add-circle-line";
@@ -29,7 +32,9 @@ const INITIAL_DATA = {
status: "",
description: "",
type: "",
- mark: ""
+ mark: "",
+ leader: "",
+ phone: ""
};
const pagination = ref({ current: 1, pageSize: 12, total: 0 });
@@ -90,9 +95,24 @@ const handleManageProduct = product => {
formData.value = { ...product, status: product?.isSetup ? "1" : "0" };
});
};
-
+const router = useRouter();
const handleProductDetail = product => {
- console.log("111");
+ Object.keys(product).forEach(param => {
+ if (!isString(product[param])) {
+ product[param] = product[param].toString();
+ }
+ });
+ // 保存信息到标签页
+ useMultiTagsStoreHook().handleTags("push", {
+ path: `/project/details`,
+ name: "ProjectDetails",
+ query: product,
+ meta: {
+ title: `项目详情`,
+ showLink: false
+ }
+ });
+ router.push({ name: "ProjectDetails", query: product });
// formDialogVisible.value = true;
// nextTick(() => {
// formData.value = { ...product, status: product?.isSetup ? "1" : "0" };
@@ -107,12 +127,12 @@ const handleProductDetail = product => {
:icon="useRenderIcon(AddFill)"
@click="formDialogVisible = true"
>
- 新建产品
+ 新建项目