瀏覽代碼

分析报表 报表序号显示修改,说明书 更新内容显示修改

fujunwen 4 年之前
父節點
當前提交
a8ff63c369
共有 2 個文件被更改,包括 9 次插入2 次删除
  1. 4 1
      src/views/analysis/CoreDeviceReport.vue
  2. 5 1
      src/views/analysis/SpecificationUpdateRecord.vue

+ 4 - 1
src/views/analysis/CoreDeviceReport.vue

@@ -52,7 +52,7 @@
         style="width: 100%;margin-bottom: 63px;"
         @row-click="showEquipmentStatus"
       >
-        <el-table-column label="序号" type="index" width="60" :index="indexMethod"></el-table-column>
+        <el-table-column label="序号" prop="index" width="60"></el-table-column>
         <el-table-column prop="sbjc" label="设备名称" width="600"></el-table-column>
         <el-table-column prop="assetnum" label="设备内码"></el-table-column>
         <el-table-column prop="is_exception" label="状态">
@@ -368,6 +368,9 @@ export default {
         if (result === "success") {
           this.tatol = count;
           this.tableData = data;
+          _.forEach(this.tableData, (item, index) => {
+            item.index = ((this.curPage - 1) * this.pageSize )+ index + 1;
+          })
         }
       });
     },

+ 5 - 1
src/views/analysis/SpecificationUpdateRecord.vue

@@ -27,7 +27,11 @@
       <el-table-column property="time" label="日期"></el-table-column>
       <el-table-column property="evenType" label="事项类型"></el-table-column>
       <el-table-column property="objid" label="编号"></el-table-column>
-      <el-table-column property="content" label="更新内容"></el-table-column>
+      <el-table-column property="content" label="更新内容">
+        <template slot-scope="scope">
+          <div :title="scope.row.content" style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">{{scope.row.content}}</div>
+        </template>
+      </el-table-column>
     </el-table>
     <div class="page">
       <el-pagination