+
+
+
+
+
{{ item.name }}
-
-
-
-
- {{ product?.views }}次调用
-
-
-
-
![dessert]()
-
-
-
-
-
-
{{ product?.agent_system?.type == 1 ? '对话式' : '工作流' }}
+
+
+
+
+
+
![]()
+
+
+
{{ product?.title }}
+
{{ product?.agent_system?.description }}
+
+
+
-
+
+
@@ -40,10 +60,13 @@ const router = useRouter();
const list = ref([]);
const getData = async () => {
- const { code, data } = await getAgentList();
+ const { code, data } = await getAgentList(query);
list.value = data;
};
+const query = reactive({
+ title: '',
+});
const goDetail = (type: number, id: number) => {
if (type === 1) {
router.push({
diff --git a/src/views/Agent/Index/style.scss b/src/views/Agent/Index/style.scss
index 93b3f24..50e4299 100644
--- a/src/views/Agent/Index/style.scss
+++ b/src/views/Agent/Index/style.scss
@@ -1,6 +1,5 @@
.agent-wrap {
padding: 24px;
- background: #fff;
border-radius: 4px;
.ant-card-cover img {
@@ -17,4 +16,154 @@
word-wrap: break-word;
padding-bottom: 20px;
}
+
+ .card-container {
+ width: 100%;
+ height: 100%;
+ padding: 12px;
+ background: var(--BG-White, white);
+ overflow: hidden;
+ border-radius: 8px;
+ outline: 1px solid var(--BG-300, #e6e6e8);
+ outline-offset: -1px;
+ display: inline-flex;
+ flex-direction: column;
+ justify-content: flex-start;
+ align-items: flex-start;
+ gap: 8px;
+ }
+
+ .card-image-container {
+ position: relative;
+ align-self: stretch;
+ height: 120px;
+ background: #ffe9e7; /* 可以替换成变量 */
+ overflow: hidden;
+ border-top-left-radius: 8px;
+ border-top-right-radius: 8px;
+ }
+
+ .card-image {
+ width: 100%;
+ height: 100%;
+ left: 0;
+ top: -3px;
+ position: absolute;
+ }
+
+ .card-content {
+ align-self: stretch;
+ display: flex;
+ flex-direction: column;
+ justify-content: flex-start;
+ align-items: flex-start;
+ gap: 4px;
+ }
+
+ .card-title {
+ color: var(--Text-1, #211f24);
+ font-size: 16px;
+ font-family: Alibaba PuHuiTi;
+ font-weight: 400;
+ line-height: 24px;
+ word-wrap: break-word;
+ }
+
+ .card-description {
+ color: var(--Text-3, #737478);
+ font-size: 14px;
+ font-family: Alibaba PuHuiTi;
+ font-weight: 400;
+ line-height: 22px;
+ word-wrap: break-word;
+ }
+
+ .card-footer {
+ align-self: stretch;
+ display: inline-flex;
+ justify-content: space-between;
+ align-items: center;
+ }
+
+ .tag {
+ display: flex;
+ align-items: center;
+ gap: 4px;
+ height: 20px;
+ padding: 0 8px;
+ border-radius: 2px;
+
+ &.red {
+ color: var(--Functional-Red-6, #f64b31);
+ }
+
+ &.blue {
+ color: var(--Functional-Blue-6, #3366ff);
+ }
+
+ }
+
+ .tag-icon {
+ width: 12px;
+ height: 12px;
+ position: relative;
+
+ &::before {
+ content: '';
+ position: absolute;
+ width: 11.5px;
+ height: 10.75px;
+ left: 0.25px;
+ top: 0.63px;
+ background: var(--Functional-Red-6, #f64b31);
+ }
+ }
+
+ .tag-text {
+ font-size: 12px;
+ font-family: Alibaba PuHuiTi;
+ font-weight: 400;
+ line-height: 20px;
+ word-wrap: break-word;
+
+ &.red {
+ color: var(--Functional-Red-6, #f64b31);
+ }
+
+ &.blue {
+ color: var(--Functional-Blue-6, #3366ff);
+ }
+ }
+
+ .usage-info {
+ display: flex;
+ align-items: center;
+ gap: 2px;
+ color: var(--Text-3, #737478);
+ font-size: 12px;
+ font-family: HarmonyOS Sans SC, Alibaba PuHuiTi;
+ font-weight: 400;
+ line-height: 20px;
+ }
+
+
+ :deep(.arco-input-wrapper) {
+ border-radius: 4px;
+ border-color: #d7d7d9;
+ background-color: #fff;
+ height: 35px;
+ width: 400px;
+
+ &:focus-within,
+ &.arco-input-focus {
+ background-color: var(--color-bg-2);
+ border-color: rgb(var(--primary-6));
+ box-shadow: 0 0 0 0 var(--color-primary-light-2);
+ }
+
+ &.arco-textarea-wrapper {
+ height: 60px;
+ }
+ }
+
}
diff --git a/src/views/Agent/work-flow/components/DynamicForm.vue b/src/views/Agent/work-flow/components/DynamicForm.vue
index 6fc406c..73ea51f 100644
--- a/src/views/Agent/work-flow/components/DynamicForm.vue
+++ b/src/views/Agent/work-flow/components/DynamicForm.vue
@@ -19,7 +19,7 @@
-
提交执行
+
提交执行