Эх сурвалжийг харах

处理标签,项目列表处理

yangg 7 сар өмнө
parent
commit
404af49165

+ 1 - 1
.env.development

@@ -2,7 +2,7 @@
 ENV = 'development'
 port = 8080
 # base api
-VUE_APP_BASE_API = 'http://192.168.66.187:8084'
+VUE_APP_BASE_API = 'http://183.195.216.54:8084'
 #192.168.66.187
 
 #183.195.216.54

Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 0 - 0
dist/index.html


+ 0 - 1
dist/static/css/chunk-276e7119.906b5901.css

@@ -1 +0,0 @@
-.button-group[data-v-15177f25]{margin-bottom:20px}.tag-container[data-v-15177f25]{padding:20px}.search-bar[data-v-15177f25]{margin-bottom:20px}.pagination-container[data-v-15177f25]{margin-top:20px;text-align:right}

+ 0 - 0
dist/static/css/chunk-72aa2789.7479c590.css → dist/static/css/chunk-5a0433c8.7479c590.css


+ 1 - 0
dist/static/css/chunk-659a9781.3a3a689b.css

@@ -0,0 +1 @@
+.button-group[data-v-0775833e]{margin-bottom:20px}.tag-container[data-v-0775833e]{padding:20px}.search-bar[data-v-0775833e]{margin-bottom:20px}.pagination-container[data-v-0775833e]{margin-top:20px;text-align:right}

Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 0 - 0
dist/static/js/app.0d9a351e.js


Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 0 - 0
dist/static/js/chunk-276e7119.54f8993e.js


Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 0 - 0
dist/static/js/chunk-5a0433c8.14410924.js


Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 0 - 0
dist/static/js/chunk-659a9781.c84f6b9d.js


+ 8 - 4
src/views/project/components/dataList.vue

@@ -1421,13 +1421,17 @@ export default {
     },
     /* 产品分类名称 */
     getCategoryTypeName(categoryId) {
-      const category = this.productList.find((item) => item.id === categoryId);
-      return category ? category.category.name : categoryId;
+      if (!categoryId) return "未分类";
+      const product = this.productList.find((item) => item.id === categoryId);
+      return product && product.category ? product.category.name : "未知分类";
     },
+
     getCategoryName(categoryId) {
-      const category = this.productList.find((item) => item.id === categoryId);
-      return category ? category.name : categoryId;
+      if (!categoryId) return "未知产品";
+      const product = this.productList.find((item) => item.id === categoryId);
+      return product ? product.name : "未知产品";
     },
+
     searchData() {
       let _this = this;
       _this.dialogVisible = false;

+ 3 - 1
src/views/tags/index.vue

@@ -34,7 +34,9 @@
       <el-table-column prop="name" label="标签名称"></el-table-column>
       <el-table-column prop="" label="已绑定文献数量"
         ><template slot-scope="scope">
-          {{ JSON.parse(scope.row.literature_id).length }}</template
+
+          <span v-if="scope.row.literature_id!==null">{{ JSON.parse(scope.row.literature_id).length}}</span>
+          <span v-else>0</span></template
         ></el-table-column
       >
       <el-table-column prop="create_time" label="创建时间">

Энэ ялгаанд хэт олон файл өөрчлөгдсөн тул зарим файлыг харуулаагүй болно