lxl-dev #3
@ -29,4 +29,11 @@ export function deletePoint(id) {
|
||||
url: `/inspection/waypoint/${id}`,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
export function copyPoint(id) {
|
||||
return request({
|
||||
url: `/inspection/waypoint/copy/${id}`,
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
|
||||
@ -44,4 +44,11 @@ export function bindWaypointsToTask(taskId, waypointIds) {
|
||||
method: 'post',
|
||||
data: waypointIds
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
export function copyTask(id) {
|
||||
return request({
|
||||
url: `/inspection/task/copy/${id}`,
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
|
||||
@ -44,4 +44,11 @@ export function bindTastCase(taskId, ids) {
|
||||
method: 'post',
|
||||
data: ids
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
export function copyTask(id) {
|
||||
return request({
|
||||
url: `/aima/task/copy/${id}`,
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
|
||||
@ -29,4 +29,11 @@ export function deleteTestCase(ids) {
|
||||
url: `/aima/testcase/${ids}`,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
export function copyTestCase(id) {
|
||||
return request({
|
||||
url: `/aima/testcase/copy/${id}`,
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
|
||||
@ -26,6 +26,13 @@ export function addConfig(data) {
|
||||
})
|
||||
}
|
||||
|
||||
export function copyConfig(id) {
|
||||
return request({
|
||||
url: '/test/config/copy/' + id,
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
|
||||
// 修改任务流程编排
|
||||
export function updateConfig(data) {
|
||||
return request({
|
||||
|
||||
@ -26,6 +26,13 @@ export function addDetect(data) {
|
||||
})
|
||||
}
|
||||
|
||||
export function copyDetect(id) {
|
||||
return request({
|
||||
url: '/test/detect/copy/' + id,
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
|
||||
// 修改检测项配置
|
||||
export function updateDetect(data) {
|
||||
return request({
|
||||
|
||||
@ -149,7 +149,7 @@
|
||||
align="center"
|
||||
class-name="small-padding fixed-width"
|
||||
label="操作"
|
||||
width="200"
|
||||
width="280"
|
||||
>
|
||||
<template #default="scope">
|
||||
<el-button
|
||||
@ -160,6 +160,13 @@
|
||||
>
|
||||
修改
|
||||
</el-button>
|
||||
<el-button
|
||||
:loading="copyingId === scope.row.id"
|
||||
icon="CopyDocument"
|
||||
link
|
||||
type="primary"
|
||||
@click="handleCopy(scope.row)"
|
||||
>复制</el-button>
|
||||
<el-button
|
||||
icon="Cpu"
|
||||
link
|
||||
@ -231,6 +238,7 @@
|
||||
<script name="Detect" setup>
|
||||
import {
|
||||
addPoint,
|
||||
copyPoint,
|
||||
deletePoint,
|
||||
getPointList,
|
||||
updatePoint,
|
||||
@ -255,6 +263,7 @@ const { proxy } = getCurrentInstance();
|
||||
const tableDataList = ref([]);
|
||||
const open = ref(false);
|
||||
const loading = ref(false);
|
||||
const copyingId = ref("");
|
||||
const showSearch = ref(true);
|
||||
|
||||
const total = ref(0);
|
||||
@ -369,6 +378,17 @@ function submitForm() {
|
||||
}
|
||||
|
||||
/** 删除按钮操作 */
|
||||
async function handleCopy(row) {
|
||||
copyingId.value = row.id;
|
||||
try {
|
||||
await copyPoint(row.id);
|
||||
ElMessage.success("复制成功");
|
||||
await getList();
|
||||
} finally {
|
||||
copyingId.value = "";
|
||||
}
|
||||
}
|
||||
|
||||
function handleDelete(row) {
|
||||
ElMessageBox.confirm("确定要删除该点位吗?", "提示", {
|
||||
confirmButtonText: "确定",
|
||||
|
||||
@ -46,11 +46,14 @@
|
||||
<el-table-column align="center" label="所属地图" prop="mapName" show-overflow-tooltip />
|
||||
<el-table-column align="center" label="创建人" prop="createBy" show-overflow-tooltip />
|
||||
<el-table-column align="center" label="创建时间" prop="createTime" show-overflow-tooltip />
|
||||
<el-table-column align="center" class-name="small-padding fixed-width" label="操作" width="260">
|
||||
<el-table-column align="center" class-name="small-padding fixed-width" label="操作" width="320">
|
||||
<template #default="scope">
|
||||
<el-button icon="Edit" link type="primary" @click="handleUpdate(scope.row)">
|
||||
修改
|
||||
</el-button>
|
||||
<el-button :loading="copyingId === scope.row.id" icon="CopyDocument" link type="primary"
|
||||
@click="handleCopy(scope.row)">复制
|
||||
</el-button>
|
||||
<el-button icon="Cpu" link type="primary" @click="handleBindPoint(scope.row)">绑定点位
|
||||
</el-button>
|
||||
<el-button icon="Delete" link type="primary" @click="handleDelete(scope.row)">删除
|
||||
@ -165,7 +168,7 @@
|
||||
</template>
|
||||
|
||||
<script name="Detect" setup>
|
||||
import { addTask, updateTask, getTaskList, deleteTask, getWaypointByTaskId, bindWaypointsToTask } from "../../../api/inspection/task";
|
||||
import { addTask, copyTask, updateTask, getTaskList, deleteTask, getWaypointByTaskId, bindWaypointsToTask } from "../../../api/inspection/task";
|
||||
import { getPointList } from "../../../api/inspection/point";
|
||||
import TableSearch from "@/components/TableSearch/index.vue";
|
||||
|
||||
@ -184,6 +187,7 @@ const tableDataList = ref([]);
|
||||
const open = ref(false);
|
||||
const dialogVisible = ref(false);
|
||||
const loading = ref(false);
|
||||
const copyingId = ref("");
|
||||
const showSearch = ref(true);
|
||||
|
||||
const total = ref(0);
|
||||
@ -297,6 +301,17 @@ function submitForm() {
|
||||
}
|
||||
|
||||
/** 删除按钮操作 */
|
||||
async function handleCopy(row) {
|
||||
copyingId.value = row.id;
|
||||
try {
|
||||
await copyTask(row.id);
|
||||
ElMessage.success("复制成功");
|
||||
await getList();
|
||||
} finally {
|
||||
copyingId.value = "";
|
||||
}
|
||||
}
|
||||
|
||||
function handleDelete(row) {
|
||||
ElMessageBox.confirm("确定要删除该任务吗?", "提示", {
|
||||
confirmButtonText: "确定",
|
||||
|
||||
@ -46,11 +46,14 @@
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="创建人" prop="createBy" show-overflow-tooltip />
|
||||
<el-table-column align="center" label="创建时间" prop="createTime" show-overflow-tooltip />
|
||||
<el-table-column align="center" class-name="small-padding fixed-width" label="操作" width="260">
|
||||
<el-table-column align="center" class-name="small-padding fixed-width" label="操作" width="320">
|
||||
<template #default="scope">
|
||||
<el-button icon="Edit" link type="primary" @click="handleUpdate(scope.row)">
|
||||
修改
|
||||
</el-button>
|
||||
<el-button :loading="copyingId === scope.row.id" icon="CopyDocument" link type="primary"
|
||||
@click="handleCopy(scope.row)">复制
|
||||
</el-button>
|
||||
<el-button icon="Cpu" link type="primary" @click="handleBindCase(scope.row)">绑定用例
|
||||
</el-button>
|
||||
<el-button icon="Delete" link type="primary" @click="handleDelete(scope.row)">删除
|
||||
@ -151,7 +154,7 @@
|
||||
</template>
|
||||
|
||||
<script name="Detect" setup>
|
||||
import { addTask, updateTask, getTaskList, deleteTask, getTestCaseByTaskId, bindTastCase} from "../../../api/intelligenceTest/taskManage";
|
||||
import { addTask, copyTask, updateTask, getTaskList, deleteTask, getTestCaseByTaskId, bindTastCase} from "../../../api/intelligenceTest/taskManage";
|
||||
import { getTestCaseList } from "../../../api/intelligenceTest/testCase.js";
|
||||
import TableSearch from "@/components/TableSearch/index.vue";
|
||||
|
||||
@ -170,6 +173,7 @@ const tableDataList = ref([]);
|
||||
const open = ref(false);
|
||||
const dialogVisible = ref(false);
|
||||
const loading = ref(false);
|
||||
const copyingId = ref("");
|
||||
const showSearch = ref(true);
|
||||
|
||||
const total = ref(0);
|
||||
@ -272,6 +276,17 @@ function submitForm() {
|
||||
}
|
||||
|
||||
/** 删除按钮操作 */
|
||||
async function handleCopy(row) {
|
||||
copyingId.value = row.id;
|
||||
try {
|
||||
await copyTask(row.id);
|
||||
ElMessage.success("复制成功");
|
||||
await getList();
|
||||
} finally {
|
||||
copyingId.value = "";
|
||||
}
|
||||
}
|
||||
|
||||
function handleDelete(row) {
|
||||
ElMessageBox.confirm("确定要删除该任务吗?", "提示", {
|
||||
confirmButtonText: "确定",
|
||||
|
||||
@ -105,11 +105,13 @@
|
||||
></TableTags>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="280">
|
||||
<template #default="scope">
|
||||
<el-tooltip content="修改" placement="top">
|
||||
<el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)">修改</el-button>
|
||||
</el-tooltip>
|
||||
<el-button :loading="copyingId === scope.row.id" link type="primary" icon="CopyDocument"
|
||||
@click="handleCopy(scope.row)">复制</el-button>
|
||||
<el-button
|
||||
icon="Cpu"
|
||||
link
|
||||
@ -167,7 +169,7 @@
|
||||
<script setup name="Role">
|
||||
import TableSearch from "@/components/TableSearch/index.vue";
|
||||
import { useContainerHeight } from "@/hooks/tableHeight";
|
||||
import { addTestCase, getTestCaseList, updateTestCase, deleteTestCase } from "@/api/intelligenceTest/testCase.js"
|
||||
import { addTestCase, copyTestCase, getTestCaseList, updateTestCase, deleteTestCase } from "@/api/intelligenceTest/testCase.js"
|
||||
import { ElMessage, ElMessageBox } from 'element-plus'
|
||||
import { appendParamsToPath } from "@/utils/fn.js";
|
||||
import TableTags from "@/components/TableTags/index.vue";
|
||||
@ -178,6 +180,7 @@ const containerHeight = useContainerHeight(topContainerRef);
|
||||
const tableDataList = ref([]);
|
||||
const open = ref(false);
|
||||
const loading = ref(true);
|
||||
const copyingId = ref("");
|
||||
const showSearch = ref(true);
|
||||
const ids = ref([]);
|
||||
const single = ref(true);
|
||||
@ -227,6 +230,17 @@ function resetQuery() {
|
||||
}
|
||||
|
||||
/** 删除按钮操作 */
|
||||
async function handleCopy(row) {
|
||||
copyingId.value = row.id;
|
||||
try {
|
||||
await copyTestCase(row.id);
|
||||
ElMessage.success("复制成功");
|
||||
await getList();
|
||||
} finally {
|
||||
copyingId.value = "";
|
||||
}
|
||||
}
|
||||
|
||||
function handleDelete(row) {
|
||||
const deleteIds = row.id || ids.value;
|
||||
ElMessageBox.confirm(`确定要删除编号为${deleteIds}的测试用例吗?`, "提示", {
|
||||
|
||||
@ -129,7 +129,7 @@
|
||||
align="center"
|
||||
class-name="small-padding fixed-width"
|
||||
label="操作"
|
||||
width="280"
|
||||
width="350"
|
||||
>
|
||||
<template #default="scope">
|
||||
<el-button
|
||||
@ -141,6 +141,14 @@
|
||||
>
|
||||
修改
|
||||
</el-button>
|
||||
<el-button
|
||||
v-hasPermi="['test:config:add']"
|
||||
:loading="copyingId === scope.row.id"
|
||||
icon="CopyDocument"
|
||||
link
|
||||
type="primary"
|
||||
@click="handleCopy(scope.row)"
|
||||
>复制</el-button>
|
||||
<el-button
|
||||
v-hasPermi="['test:config:config']"
|
||||
icon="Finished"
|
||||
@ -336,6 +344,7 @@
|
||||
<script name="Config" setup>
|
||||
import {
|
||||
addConfig,
|
||||
copyConfig,
|
||||
delConfig,
|
||||
getConfig,
|
||||
getTaskConfig,
|
||||
@ -363,6 +372,7 @@ const { proxy } = getCurrentInstance();
|
||||
const configList = ref([]);
|
||||
const open = ref(false);
|
||||
const loading = ref(true);
|
||||
const copyingId = ref("");
|
||||
const showSearch = ref(true);
|
||||
const ids = ref([]);
|
||||
const single = ref(true);
|
||||
@ -496,6 +506,17 @@ function submitForm() {
|
||||
}
|
||||
|
||||
/** 删除按钮操作 */
|
||||
async function handleCopy(row) {
|
||||
copyingId.value = row.id;
|
||||
try {
|
||||
await copyConfig(row.id);
|
||||
proxy.$modal.msgSuccess("复制成功");
|
||||
await getList();
|
||||
} finally {
|
||||
copyingId.value = "";
|
||||
}
|
||||
}
|
||||
|
||||
function handleDelete(row) {
|
||||
const _ids = row.id || ids.value;
|
||||
proxy.$modal
|
||||
|
||||
@ -169,7 +169,7 @@
|
||||
align="center"
|
||||
class-name="small-padding fixed-width"
|
||||
label="操作"
|
||||
width="200"
|
||||
width="280"
|
||||
>
|
||||
<template #default="scope">
|
||||
<el-button
|
||||
@ -181,6 +181,14 @@
|
||||
>
|
||||
修改
|
||||
</el-button>
|
||||
<el-button
|
||||
v-hasPermi="['test:detect:add']"
|
||||
:loading="copyingId === scope.row.id"
|
||||
icon="CopyDocument"
|
||||
link
|
||||
type="primary"
|
||||
@click="handleCopy(scope.row)"
|
||||
>复制</el-button>
|
||||
<el-button
|
||||
v-hasPermi="['device:terminal:deploy']"
|
||||
icon="Cpu"
|
||||
@ -263,6 +271,7 @@
|
||||
<script name="Detect" setup>
|
||||
import {
|
||||
addDetect,
|
||||
copyDetect,
|
||||
delDetect,
|
||||
getDetect,
|
||||
listDetect,
|
||||
@ -285,6 +294,7 @@ const detectList = ref([]);
|
||||
const open = ref(false);
|
||||
const dialogVisible = ref(false);
|
||||
const loading = ref(true);
|
||||
const copyingId = ref("");
|
||||
const showSearch = ref(true);
|
||||
const ids = ref([]);
|
||||
const single = ref(true);
|
||||
@ -411,6 +421,17 @@ function submitForm() {
|
||||
}
|
||||
|
||||
/** 删除按钮操作 */
|
||||
async function handleCopy(row) {
|
||||
copyingId.value = row.id;
|
||||
try {
|
||||
await copyDetect(row.id);
|
||||
proxy.$modal.msgSuccess("复制成功");
|
||||
await getList();
|
||||
} finally {
|
||||
copyingId.value = "";
|
||||
}
|
||||
}
|
||||
|
||||
function handleDelete(row) {
|
||||
const _ids = row.id || ids.value;
|
||||
proxy.$modal
|
||||
|
||||
Loading…
Reference in New Issue
Block a user