From d9417a42966632d51c8e38193473b1d880c4472f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E7=86=99=E6=9C=9D?= <13694051+wangxizhao123@user.noreply.gitee.com> Date: Wed, 15 May 2024 22:37:11 +0800 Subject: [PATCH] =?UTF-8?q?feat()=E6=A0=B9=E6=8D=AE=E4=BD=9C=E7=94=A8?= =?UTF-8?q?=E5=9F=9F=E4=B8=8D=E5=90=8C=E8=8E=B7=E5=8F=96=E4=B8=8D=E5=90=8C?= =?UTF-8?q?=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/engine/edition/index.vue | 41 +++++++++++++++++++++++++++--- 1 file changed, 37 insertions(+), 4 deletions(-) diff --git a/src/views/engine/edition/index.vue b/src/views/engine/edition/index.vue index 7f3c5dd..7539c5d 100644 --- a/src/views/engine/edition/index.vue +++ b/src/views/engine/edition/index.vue @@ -215,7 +215,7 @@
数据集
- + @@ -223,6 +223,12 @@
清空选择
+ + + {{edinn.key}} + +
@@ -236,8 +242,11 @@ - - + + + {{val}} + @@ -246,10 +255,16 @@
- {{tab.val}} + + {{tab.val}} +
+ + 测试 + + @@ -315,6 +330,10 @@ export default { //复选字段 fields: [], fieldd: [], + //多选记录 + dataRecordSelectKeyList: [], + dataRecordSelectData: null, + dataMode: null, //父类列 primaryId: [], tableLisrs: null, @@ -326,6 +345,8 @@ export default { editionContent: "", ruleContent: "" }, + //显示结果 + testResult: "", // 表单校验 rules: { } @@ -343,6 +364,17 @@ export default { this.getList(); }, methods: { + // 测试 + dataTest(){ + let number = Math.floor(Math.random()*3); + if (number === 0){ + this.testResult = "测试正常,无异常数据返回"; + }else if (number === 1){ + this.testResult = "测试失败:触发*****异常条例,数据发生动作【移除/忽略/记录】"; + }else if (number === 2){ + this.testResult = "程序异常:*******异常"; + } + }, // 关闭 ruleEngineVersionInfoStatusClose(done) { this.$confirm('确认关闭?') @@ -392,6 +424,7 @@ export default { //读取队列 dataRecordSelect(row) { console.log(row) + this.dataRecordSelectKeyList = [] this.fieldd = row }, /** 查询规则引擎版本列表 */