-
上传模型
+
+ 上传模型
-
+
搜索
@@ -17,12 +17,12 @@
-
+
-
-
-
+
+
+
@@ -31,8 +31,7 @@
查看
- 互联
+ 互联
删除
@@ -62,7 +61,7 @@ const removeIds = ref([]); // 删除用户ID集合 用于批量删除
let queryParams = reactive({
page_num: 1,
page_size: 10,
- model_name:''
+ model_name: ''
});
const dateTimeRange = ref("");
let total = ref(100); // 数据总数
@@ -77,19 +76,19 @@ watch(dateTimeRange, (newVal) => {
let tableData = ref([])
/** 查询 */
function handleQuery() {
- ModelApi.list(queryParams).then(d=>{
- total.value=d.data.data.total||0;
- tableData.value=d.data.data.model_list||[];
+ ModelApi.list(queryParams).then(d => {
+ total.value = d.data.data.total || 0;
+ tableData.value = d.data.data.model_list || [];
});
loading.value = true;
//ElMessage.success("查询成功");
loading.value = false;
-
+
}
-const doUploadModel=()=>{
+const doUploadModel = () => {
router.push({ path: "/modelMgr/uploadModel" });
}
-function doconnection(){
+function doconnection() {
router.push({ path: "/connection/index" });
}
@@ -98,7 +97,7 @@ function resetQuery() {
queryFormRef.value.resetFields();
dateTimeRange.value = "";
queryParams.page_num = 1;
- queryParams.model_name='';
+ queryParams.model_name = '';
handleQuery();
}
@@ -114,18 +113,18 @@ function handleDelete(row: { [key: string]: any }) {
cancelButtonText: "取消",
type: "warning",
}).then(function () {
- ModelApi.deleteModel(row.model_id).then(d=>{
- if(d.data.code==0){
+ ModelApi.deleteModel(row.model_id).then(d => {
+ if (d.data.code == 0) {
ElMessage.success("删除成功");
handleQuery();
}
})
-
+
});
}
-const doShowModelDetail=(row:any)=>{
- router.push({path:"/modelMgr/modelDetail",query:{id:row.model_id,from:'model'}})
+const doShowModelDetail = (row: any) => {
+ router.push({ path: "/modelMgr/modelDetail", query: { id: row.model_id, from: 'model' } })
}
/**
* 打开弹窗
@@ -154,16 +153,19 @@ onMounted(() => {