删除 {
return false;
}
loading.value = true;
- DataSetApi.add(form)
+ DataSetApi.add(form.value)
.then((res) => {
if (res.data.code == 0) {
ElMessage.success("保存成功");
diff --git a/src/views/manage/datas/edit.vue b/src/views/manage/datas/edit.vue
index c77f432..e546d61 100644
--- a/src/views/manage/datas/edit.vue
+++ b/src/views/manage/datas/edit.vue
@@ -334,12 +334,12 @@ const doEquipmentFiles = () => {
if (disp.length > 0) {
item.insertAdjacentHTML(
"beforeend",
- "已标注JSON"
+ "已标注"
);
} else {
item.insertAdjacentHTML(
"beforeend",
- "未标注JSON"
+ "未标注"
);
}
});
@@ -377,8 +377,8 @@ function startUploadFiles() {
let json = uploadJsonList.value.filter((it) => disName(item.name, it.name));
let data = {
image_file_name: item.name,
- image_file: item,
- label_file: json.length > 0 ? json[0] : null,
+ image_file: item.raw,
+ label_file: json.length > 0 ? json[0].raw : null,
};
uploadLoading.value = true;
DataSetApi.rawUpload(form.value.dataset_id, data)
@@ -524,6 +524,9 @@ const initData = () => {
ID.value = id;
DataSetApi.dataSetInfo(id).then((res) => {
if (res.data.code == 0) {
+ let resolution = res.data.data.image_resolution.split("x");
+ res.data.data.image_width=resolution[0];
+ res.data.data.image_height=resolution[1];
form.value = res.data.data;
codeHtml.value = JSON.stringify(res.data.data.dataset_parameters);
if (codeHtml.value == "{}") {
diff --git a/src/views/manage/datas/index.vue b/src/views/manage/datas/index.vue
index 013191f..e2aa634 100644
--- a/src/views/manage/datas/index.vue
+++ b/src/views/manage/datas/index.vue
@@ -11,10 +11,10 @@
-
+
-
+
-
+
{
+ let device_info = res.data.data.device_info;
if (res.data.code == 0) {
let data = {};
- let device_info = res.data.data.device_info;
data.uuid = device_info.uuid;
data.pcie_index = device_info.pcie_index;
data.manufacturer = device_info.manufacturer;
diff --git a/src/views/manage/equipment/index.vue b/src/views/manage/equipment/index.vue
index 95109b5..33b2a94 100644
--- a/src/views/manage/equipment/index.vue
+++ b/src/views/manage/equipment/index.vue
@@ -94,7 +94,7 @@
text
type="primary"
size="small"
- @click="openDialog('user-form', scope.row.id)"
+ @click="openUpGrades(scope.row)"
>升级
{
handleQuery();
});
diff --git a/src/views/manage/otherTool/index.vue b/src/views/manage/otherTool/index.vue
index ebaf6ec..c8dfd58 100644
--- a/src/views/manage/otherTool/index.vue
+++ b/src/views/manage/otherTool/index.vue
@@ -114,8 +114,8 @@ function handleQuery() {
loading.value = true;
ToolChainshApi.toolStatusList(queryParams)
.then((res) => {
- pageData.value = res.data.data.tool_status_list;
- total.value = res.data.data.total;
+ pageData.value = res.data?.data?.tool_status_list;
+ total.value = res.data?.data?.total;
})
.finally(() => {
loading.value = false;