feat:获取触控坐标

This commit is contained in:
zhanghao 2026-02-04 09:26:00 +08:00
parent 8dfdbc72be
commit f7b6e10e80
2 changed files with 33 additions and 6 deletions

View File

@ -523,8 +523,23 @@ export const collapseList = [
{ name: 'isEnd', type: 'string', desc: '是否结束', disabled: true}, { name: 'isEnd', type: 'string', desc: '是否结束', disabled: true},
{ name: 'iconUrl', type: 'string', desc: '图标路径', disabled: true} { name: 'iconUrl', type: 'string', desc: '图标路径', disabled: true}
] ]
},
{
icon: touchSvg,
name: "获取触控二维坐标",
type: "serviceNode",
desc: "获取触控二维坐标",
action: 'TI_TOUCH_COORDINATES',
nodeType: "AE",
nodeParams: [
{ name: "imageUrl", type: "input", input: "", disabled: true },
{ name: "iconUrl", type: "input", input: "", disabled: true }
],
outputType: 'json',
outputParams: [
{ name: 'touchCoordinates', type: 'string', desc: '触控二维坐标', disabled: true},
]
} }
], ],
}, },
{ {

View File

@ -181,6 +181,7 @@
<el-button <el-button
size="mini" size="mini"
type="text" type="text"
v-if="row.status == 1"
@click="handleSetting(row)" @click="handleSetting(row)"
v-hasPermi="['system:project:add','system:project:edit']" v-hasPermi="['system:project:add','system:project:edit']"
>配置 >配置
@ -194,14 +195,21 @@
>执行 >执行
</el-button> </el-button>
<el-button <el-button
icon="DataLine"
v-if="row.status == 0" v-if="row.status == 0"
link size="mini"
type="primary" type="text"
v-hasPermi="['system:project:add','system:project:edit']" v-hasPermi="['system:project:add','system:project:edit']"
@click="handleOpenDashboard(row)" @click="handleOpenDashboard(row)"
>可视化 >可视化
</el-button> </el-button>
<el-button
v-if="row.status == 0"
size="mini"
type="text"
v-hasPermi="['system:project:add','system:project:edit']"
@click="handleEvaluate(row)"
>评价
</el-button>
<el-button <el-button
size="mini" size="mini"
type="text" type="text"
@ -418,6 +426,7 @@ import { useContainerHeight } from "@/hooks/tableHeight";
import { getExecuteRunParams, queryExecuteInstId } from "@/api/vi/project.js" import { getExecuteRunParams, queryExecuteInstId } from "@/api/vi/project.js"
import { appendParamsToPath } from "@/utils/fn.js"; import { appendParamsToPath } from "@/utils/fn.js";
import { getChildrenByParentIdWithLevelLimitApi } from "@/api/evaluate/indicator.js"; import { getChildrenByParentIdWithLevelLimitApi } from "@/api/evaluate/indicator.js";
import { ElMessage } from "element-plus";
const topContainerRef = ref(); const topContainerRef = ref();
const containerHeight = useContainerHeight(topContainerRef); const containerHeight = useContainerHeight(topContainerRef);
@ -598,8 +607,7 @@ const handleSetting = (row) => {
router.push('/vi/plan/index/' + row.projectId) router.push('/vi/plan/index/' + row.projectId)
} }
const handleExecute = (row) => { const handleEvaluate = (row) => {
// router.push("/vi/evaluate/index/" + row.projectId);
router.push({ router.push({
path: "/vi/evaluate/index/" + row.projectId, // path: "/vi/evaluate/index/" + row.projectId, //
// JSON // JSON
@ -609,6 +617,10 @@ const handleExecute = (row) => {
}) })
} }
const handleExecute = (row) => {
ElMessage.info('功能开发中。。。')
}
const currentLog = ref({}); const currentLog = ref({});
const openDashboard = ref(false); const openDashboard = ref(false);
const taskRightList = ref([]); const taskRightList = ref([]);