From 08881d6b6412822d5035f63a0775ca1f213c8668 Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期一, 20 十月 2025 10:17:22 +0800
Subject: [PATCH] 测试完成
---
src/components/Regular/index.vue | 206 ++++++++++++++++++++++++++++++---------------------
1 files changed, 120 insertions(+), 86 deletions(-)
diff --git a/src/components/Regular/index.vue b/src/components/Regular/index.vue
index 9a033d5..30d359f 100644
--- a/src/components/Regular/index.vue
+++ b/src/components/Regular/index.vue
@@ -1,7 +1,11 @@
<template>
<div>
- <div class="topicxq" v-for="item in TargetoptionList">
- <el-form :inline="true" :rules="rules" :model="item">
+ <div
+ class="topicxq"
+ v-for="item in TargetoptionList"
+ v-if="item.isoperation != 3"
+ >
+ <el-form :inline="true" :rules="rules" :model="item" label-width="80px">
<el-row :gutter="10">
<el-col :span="12"
><el-form-item prop="targetvalue" label="閫夐」鍚嶇О">
@@ -14,7 +18,7 @@
</el-input> </el-form-item
></el-col>
<el-col :span="12"
- ><el-form-item label="棰勮鎻愰啋">
+ ><el-form-item label="寮傚父鎻愰啋">
<el-radio-group v-model="item.isabnormal">
<el-radio :label="1">鏄�</el-radio>
<el-radio :label="0">鍚�</el-radio>
@@ -36,7 +40,7 @@
<el-col :span="20"
><el-form-item label="閫夐」璇存槑">
<el-input
- style="width: 500px;"
+ style="width: 500px"
type="textarea"
:rows="2"
placeholder="璇疯緭鍏�"
@@ -46,6 +50,13 @@
</el-input> </el-form-item
></el-col>
</el-row>
+ <el-form-item label="缁撴潫瀵硅瘽">
+ <el-radio-group v-model="item.isEnd">
+ <el-radio :label="1">鏄�</el-radio>
+ <el-radio :label="0">鍚�</el-radio>
+ </el-radio-group>
+ </el-form-item>
+
<el-row :gutter="10" v-if="intent">
<el-col :span="12"
><el-form-item label="澶勭悊">
@@ -70,90 +81,107 @@
</el-input> </el-form-item
></el-col>
</el-row>
- <el-form-item label="鍏抽敭瀛�(鍚�)" prop="desc" v-if="hasValue">
- <div class="xinz-inf">
- <el-tag
- :key="crux"
- type="success"
- v-for="crux in item.dynamiccruxs"
- closable
- effect="dark"
- :disable-transitions="false"
- @close="handleClosecrux(crux, item, 1)"
+ <el-row :gutter="10" v-if="scriptType == 1">
+ <el-form-item label="閫変腑鎻愮ず">
+ <el-input
+ style="width: 24vw"
+ type="textarea"
+ autosize
+ placeholder="璇疯緭鍏ュ唴瀹�"
+ v-model="item.prompt"
>
- {{ crux }}
- </el-tag>
- <el-select
- v-model="inputValue"
- v-if="item.inputVisible"
- @change="handleInputConfirm(item)"
- filterable
- remote
- allow-create
- reserve-keyword
- default-first-option
- :loading="loading"
- placeholder="璇烽�夋嫨"
- >
- <el-option
- v-for="items in regular"
- :key="items.label"
- :label="items.label"
- :value="items.label"
+ </el-input
+ ></el-form-item>
+ </el-row>
+ <el-row>
+ <el-form-item label="鍏抽敭瀛�(鍚�)" prop="desc" v-if="hasValue">
+ <div class="xinz-inf">
+ <el-tag
+ :key="crux"
+ type="success"
+ v-for="crux in item.dynamiccruxs"
+ closable
+ effect="dark"
+ :disable-transitions="false"
+ @close="handleClosecrux(crux, item, 1)"
>
- </el-option>
- </el-select>
- <el-button
- v-else
- class="button-new-tag"
- size="small"
- @click="showInput(item)"
- >+ 鏂板</el-button
- >
- </div>
- </el-form-item>
- <el-form-item label="鍏抽敭瀛�(闈�)" prop="adesc" v-if="hasValue">
- <div class="xinz-inf">
- <el-tag
- :key="crux"
- type="warning"
- v-for="crux in item.nodynamiccruxs"
- closable
- effect="dark"
- :disable-transitions="false"
- @close="handleClosecrux(crux, item, 2)"
- >
- {{ crux }}
- </el-tag>
- <el-select
- v-model="inputValue"
- v-if="item.noinputVisible"
- @change="handleInputConfirm(item)"
- filterable
- remote
- allow-create
- reserve-keyword
- default-first-option
- :loading="loading"
- placeholder="璇烽�夋嫨"
- >
- <el-option
- v-for="items in noregular"
- :key="items.value"
- :label="items.label"
- :value="items.label"
+ {{ crux }}
+ </el-tag>
+ <el-select
+ v-model="inputValue"
+ v-if="item.inputVisible"
+ @change="handleInputConfirm(item)"
+ filterable
+ remote
+ allow-create
+ reserve-keyword
+ default-first-option
+ :loading="loading"
+ placeholder="璇烽�夋嫨"
>
- </el-option>
- </el-select>
- <el-button
- v-else
- class="button-new-tag"
- size="small"
- @click="showInputno(item)"
- >+ 鏂板</el-button
- >
- </div>
- </el-form-item>
+ <el-option
+ v-for="items in regular"
+ :key="items.label"
+ :label="items.label"
+ :value="items.label"
+ >
+ </el-option>
+ </el-select>
+ <el-button
+ v-else
+ class="button-new-tag"
+ size="small"
+ @click="showInput(item)"
+ >+ 鏂板</el-button
+ >
+ </div>
+ </el-form-item>
+ </el-row>
+ <el-row>
+ <el-form-item label="鍏抽敭瀛�(闈�)" prop="adesc" v-if="hasValue">
+ <div class="xinz-inf">
+ <el-tag
+ :key="crux"
+ type="warning"
+ v-for="crux in item.nodynamiccruxs"
+ closable
+ effect="dark"
+ :disable-transitions="false"
+ @close="handleClosecrux(crux, item, 2)"
+ >
+ {{ crux }}
+ </el-tag>
+ <el-select
+ v-model="inputValue"
+ v-if="item.noinputVisible"
+ @change="handleInputConfirm(item)"
+ filterable
+ remote
+ allow-create
+ reserve-keyword
+ default-first-option
+ :loading="loading"
+ placeholder="璇烽�夋嫨"
+ >
+ <el-option
+ v-for="items in noregular"
+ :key="items.value"
+ :label="items.label"
+ :value="items.label"
+ >
+ </el-option>
+ </el-select>
+ <el-button
+ v-else
+ class="button-new-tag"
+ size="small"
+ @click="showInputno(item)"
+ >+ 鏂板</el-button
+ >
+ </div>
+ </el-form-item>
+ </el-row>
+
<el-form-item label="閫夐」鏂囦欢" prop="sickness" v-if="Verbalproblem">
<div style="width: 40vw">
<el-upload
@@ -169,7 +197,9 @@
<el-image
style="width: 100px; height: 100px"
:src="item.picturePath"
- :preview-src-list="[...item.picturePath]"
+ :preview-src-list="
+ item.picturePath ? [item.picturePath] : []
+ "
>
</el-image>
</div>
@@ -262,6 +292,10 @@
type: Boolean,
default: true,
},
+ scriptType: {
+ type: String,
+ default: "1",
+ },
addoption: {
type: Boolean,
default: false,
--
Gitblit v1.9.3