4 Commits 847d386261 ... 03c9a5635b

Author SHA1 Message Date
  wcf 03c9a5635b change layout top 2 years ago
  wcf 902451f1ed Merge branch 'master' of http://47.108.150.237:10000/allen/kgraph-ui 2 years ago
  wcf c8390a5223 Merge branch 'master' of http://47.108.150.237:10000/allen/kgraph-ui 2 years ago
  wcf 916e5c7491 edit background pic 2 years ago

+ 1 - 1
public/config.js

@@ -2,7 +2,7 @@ window.global = {
 	env: 'dev',
 	baseUrl: function() {
 		return {
-			dev: 'http://localhost/dev-api',
+			dev: 'http://47.108.150.237:11082/dev-api',
 			test: 'http://10.10.12.85:2004/graph',
 			local: 'http://localhost:2004',
 			prod: 'http://unigraph.xian.algmarket.com',

File diff suppressed because it is too large
+ 1 - 0
public/zoomChart/assets/zc.css


+ 44 - 0
src/api/common/typeDict.js

@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询用做存储类型,枚举类数据存储,列表
+export function listTypeDict(query) {
+  return request({
+    url: '/common/typeDict/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询用做存储类型,枚举类数据存储,详细
+export function getTypeDict(id) {
+  return request({
+    url: '/common/typeDict/' + id,
+    method: 'get'
+  })
+}
+
+// 新增用做存储类型,枚举类数据存储,
+export function addTypeDict(data) {
+  return request({
+    url: '/common/typeDict',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改用做存储类型,枚举类数据存储,
+export function updateTypeDict(data) {
+  return request({
+    url: '/common/typeDict',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除用做存储类型,枚举类数据存储,
+export function delTypeDict(id) {
+  return request({
+    url: '/common/typeDict/' + id,
+    method: 'delete'
+  })
+}

+ 44 - 0
src/api/dataCenter/dataFile.js

@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询文件管理列表
+export function listDataFile(query) {
+  return request({
+    url: '/dataCenter/dataFile/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询文件管理详细
+export function getDataFile(id) {
+  return request({
+    url: '/dataCenter/dataFile/' + id,
+    method: 'get'
+  })
+}
+
+// 新增文件管理
+export function addDataFile(data) {
+  return request({
+    url: '/dataCenter/dataFile',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改文件管理
+export function updateDataFile(data) {
+  return request({
+    url: '/dataCenter/dataFile',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除文件管理
+export function delDataFile(id) {
+  return request({
+    url: '/dataCenter/dataFile/' + id,
+    method: 'delete'
+  })
+}

BIN
src/assets/knowledge/backgrand_picture.png


+ 1 - 1
src/assets/knowledge/config/config.js

@@ -2,7 +2,7 @@ window.global = {
 	env: 'dev',
 	baseUrl: function() {
 		return {
-			dev: 'http://localhost/dev-api',
+			dev: 'http://47.108.150.237:11082/dev-api',
 			test: 'http://10.10.12.85:2004/graph',
 			local: 'http://localhost:2004',
 			prod: 'http://unigraph.xian.algmarket.com',

File diff suppressed because it is too large
+ 0 - 0
src/assets/theme/index.css


+ 10 - 10
src/layout/components/Navbar.vue

@@ -9,13 +9,13 @@
 
     <div class="right-menu">
       <template v-if="device!=='mobile'">
-        <search id="header-search" class="right-menu-item" />
+        <!--<search id="header-search" class="right-menu-item" />-->
 
         <screenfull id="screenfull" class="right-menu-item hover-effect" />
 
-        <el-tooltip content="布局大小" effect="dark" placement="bottom">
+        <!--<el-tooltip content="布局大小" effect="dark" placement="bottom">
           <size-select id="size-select" class="right-menu-item hover-effect" />
-        </el-tooltip>
+        </el-tooltip>-->
 
       </template>
 
@@ -132,7 +132,7 @@ export default {
 
   .topmenu-container {
     position: absolute;
-    left: 50px;
+    left: 300px;
     background-color: transparent;
   }
 
@@ -144,7 +144,7 @@ export default {
   .right-menu {
     float: right;
     height: 100%;
-    line-height: 50px;
+    line-height: 40px;
 
     &:focus {
       outline: none;
@@ -172,21 +172,21 @@ export default {
       margin-right: 30px;
 
       .avatar-wrapper {
-        margin-top: 5px;
+        //margin-top: 5px;
         position: relative;
 
         .user-avatar {
           cursor: pointer;
-          width: 40px;
-          height: 40px;
-          border-radius: 10px;
+          width: 25px;
+          height: 25px;
+          border-radius: 5px;
         }
 
         .el-icon-caret-bottom {
           cursor: pointer;
           position: absolute;
           right: -20px;
-          top: 25px;
+          top: 22px;
           font-size: 12px;
         }
       }

+ 277 - 0
src/views/common/typeDict/index.vue

@@ -0,0 +1,277 @@
+<template>
+  <div class="app-container">
+    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
+      <el-form-item label="类型名" prop="typeName">
+        <el-input
+          v-model="queryParams.typeName"
+          placeholder="请输入类型名"
+          clearable
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="父类型id" prop="parentId">
+        <el-input
+          v-model="queryParams.parentId"
+          placeholder="请输入父类型id"
+          clearable
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="父类型名" prop="parentName">
+        <el-input
+          v-model="queryParams.parentName"
+          placeholder="请输入父类型名"
+          clearable
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item>
+        <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
+        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
+      </el-form-item>
+    </el-form>
+
+    <el-row :gutter="10" class="mb8">
+      <el-col :span="1.5">
+        <el-button
+          type="primary"
+          plain
+          icon="el-icon-plus"
+          size="mini"
+          @click="handleAdd"
+          v-hasPermi="['common:typeDict:add']"
+        >新增</el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="success"
+          plain
+          icon="el-icon-edit"
+          size="mini"
+          :disabled="single"
+          @click="handleUpdate"
+          v-hasPermi="['common:typeDict:edit']"
+        >修改</el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="danger"
+          plain
+          icon="el-icon-delete"
+          size="mini"
+          :disabled="multiple"
+          @click="handleDelete"
+          v-hasPermi="['common:typeDict:remove']"
+        >删除</el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="warning"
+          plain
+          icon="el-icon-download"
+          size="mini"
+          @click="handleExport"
+          v-hasPermi="['common:typeDict:export']"
+        >导出</el-button>
+      </el-col>
+      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
+    </el-row>
+
+    <el-table v-loading="loading" :data="typeDictList" @selection-change="handleSelectionChange">
+      <el-table-column type="selection" width="55" align="center" />
+      <el-table-column label="${comment}" align="center" prop="id" />
+      <el-table-column label="类型名" align="center" prop="typeName" />
+      <el-table-column label="父类型id" align="center" prop="parentId" />
+      <el-table-column label="父类型名" align="center" prop="parentName" />
+      <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
+        <template slot-scope="scope">
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-edit"
+            @click="handleUpdate(scope.row)"
+            v-hasPermi="['common:typeDict:edit']"
+          >修改</el-button>
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-delete"
+            @click="handleDelete(scope.row)"
+            v-hasPermi="['common:typeDict:remove']"
+          >删除</el-button>
+        </template>
+      </el-table-column>
+    </el-table>
+    
+    <pagination
+      v-show="total>0"
+      :total="total"
+      :page.sync="queryParams.pageNum"
+      :limit.sync="queryParams.pageSize"
+      @pagination="getList"
+    />
+
+    <!-- 添加或修改用做存储类型,枚举类数据存储,对话框 -->
+    <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
+      <el-form ref="form" :model="form" :rules="rules" label-width="80px">
+        <el-form-item label="类型名" prop="typeName">
+          <el-input v-model="form.typeName" placeholder="请输入类型名" />
+        </el-form-item>
+        <el-form-item label="父类型id" prop="parentId">
+          <el-input v-model="form.parentId" placeholder="请输入父类型id" />
+        </el-form-item>
+      </el-form>
+      <div slot="footer" class="dialog-footer">
+        <el-button type="primary" @click="submitForm">确 定</el-button>
+        <el-button @click="cancel">取 消</el-button>
+      </div>
+    </el-dialog>
+  </div>
+</template>
+
+<script>
+import { listTypeDict, getTypeDict, delTypeDict, addTypeDict, updateTypeDict } from "@/api/common/typeDict";
+
+export default {
+  name: "TypeDict",
+  data() {
+    return {
+      // 遮罩层
+      loading: true,
+      // 选中数组
+      ids: [],
+      // 非单个禁用
+      single: true,
+      // 非多个禁用
+      multiple: true,
+      // 显示搜索条件
+      showSearch: true,
+      // 总条数
+      total: 0,
+      // 用做存储类型,枚举类数据存储,表格数据
+      typeDictList: [],
+      // 弹出层标题
+      title: "",
+      // 是否显示弹出层
+      open: false,
+      // 查询参数
+      queryParams: {
+        pageNum: 1,
+        pageSize: 10,
+        typeName: null,
+        parentId: null,
+        parentName: null,
+      },
+      // 表单参数
+      form: {},
+      // 表单校验
+      rules: {
+        parentId: [
+          { required: true, message: "父类型id不能为空", trigger: "blur" }
+        ],
+      }
+    };
+  },
+  created() {
+    this.getList();
+  },
+  methods: {
+    /** 查询用做存储类型,枚举类数据存储,列表 */
+    getList() {
+      this.loading = true;
+      listTypeDict(this.queryParams).then(response => {
+        this.typeDictList = response.rows;
+        this.total = response.total;
+        this.loading = false;
+      });
+    },
+    // 取消按钮
+    cancel() {
+      this.open = false;
+      this.reset();
+    },
+    // 表单重置
+    reset() {
+      this.form = {
+        id: null,
+        typeName: null,
+        parentId: null,
+        parentName: null,
+        createBy: null,
+        createTime: null,
+        updateBy: null,
+        updateTime: null
+      };
+      this.resetForm("form");
+    },
+    /** 搜索按钮操作 */
+    handleQuery() {
+      this.queryParams.pageNum = 1;
+      this.getList();
+    },
+    /** 重置按钮操作 */
+    resetQuery() {
+      this.resetForm("queryForm");
+      this.handleQuery();
+    },
+    // 多选框选中数据
+    handleSelectionChange(selection) {
+      this.ids = selection.map(item => item.id)
+      this.single = selection.length!==1
+      this.multiple = !selection.length
+    },
+    /** 新增按钮操作 */
+    handleAdd() {
+      this.reset();
+      this.open = true;
+      this.title = "添加用做存储类型,枚举类数据存储,";
+    },
+    /** 修改按钮操作 */
+    handleUpdate(row) {
+      this.reset();
+      const id = row.id || this.ids
+      getTypeDict(id).then(response => {
+        this.form = response.data;
+        this.open = true;
+        this.title = "修改用做存储类型,枚举类数据存储,";
+      });
+    },
+    /** 提交按钮 */
+    submitForm() {
+      this.$refs["form"].validate(valid => {
+        if (valid) {
+          if (this.form.id != null) {
+            updateTypeDict(this.form).then(response => {
+              this.$modal.msgSuccess("修改成功");
+              this.open = false;
+              this.getList();
+            });
+          } else {
+            addTypeDict(this.form).then(response => {
+              this.$modal.msgSuccess("新增成功");
+              this.open = false;
+              this.getList();
+            });
+          }
+        }
+      });
+    },
+    /** 删除按钮操作 */
+    handleDelete(row) {
+      const ids = row.id || this.ids;
+      this.$modal.confirm('是否确认删除用做存储类型,枚举类数据存储,编号为"' + ids + '"的数据项?').then(function() {
+        return delTypeDict(ids);
+      }).then(() => {
+        this.getList();
+        this.$modal.msgSuccess("删除成功");
+      }).catch(() => {});
+    },
+    /** 导出按钮操作 */
+    handleExport() {
+      this.download('common/typeDict/export', {
+        ...this.queryParams
+      }, `typeDict_${new Date().getTime()}.xlsx`)
+    }
+  }
+};
+</script>

+ 414 - 0
src/views/dataCenter/dataFile/index.vue

@@ -0,0 +1,414 @@
+<template>
+  <div class="app-container">
+    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
+      <el-form-item label="文件名" prop="fileName">
+        <el-input
+          v-model="queryParams.fileName"
+          placeholder="请输入文件名"
+          clearable
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="文件后缀名" prop="typeName">
+        <el-input
+          v-model="queryParams.typeName"
+          placeholder="请输入文件后缀名"
+          clearable
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="系统名" prop="sysName">
+        <el-input
+          v-model="queryParams.sysName"
+          placeholder="请输入系统名"
+          clearable
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="系统id" prop="sysId">
+        <el-input
+          v-model="queryParams.sysId"
+          placeholder="请输入系统id"
+          clearable
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="专业id" prop="majorId">
+        <el-input
+          v-model="queryParams.majorId"
+          placeholder="请输入专业id"
+          clearable
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="专业名" prop="majorName">
+        <el-input
+          v-model="queryParams.majorName"
+          placeholder="请输入专业名"
+          clearable
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="部件ID" prop="partId">
+        <el-input
+          v-model="queryParams.partId"
+          placeholder="请输入部件ID"
+          clearable
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="部件名" prop="partName">
+        <el-input
+          v-model="queryParams.partName"
+          placeholder="请输入部件名"
+          clearable
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="导入时间" prop="uploadTime">
+        <el-input
+          v-model="queryParams.uploadTime"
+          placeholder="请输入导入时间"
+          clearable
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="简介" prop="descript">
+        <el-input
+          v-model="queryParams.descript"
+          placeholder="请输入简介"
+          clearable
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="版本,期号" prop="fileVer">
+        <el-input
+          v-model="queryParams.fileVer"
+          placeholder="请输入版本,期号"
+          clearable
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="存储路径" prop="filePath">
+        <el-input
+          v-model="queryParams.filePath"
+          placeholder="请输入存储路径"
+          clearable
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item>
+        <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
+        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
+      </el-form-item>
+    </el-form>
+
+    <el-row :gutter="10" class="mb8">
+      <el-col :span="1.5">
+        <el-button
+          type="primary"
+          plain
+          icon="el-icon-plus"
+          size="mini"
+          @click="handleAdd"
+          v-hasPermi="['dataCenter:dataFile:add']"
+        >新增</el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="success"
+          plain
+          icon="el-icon-edit"
+          size="mini"
+          :disabled="single"
+          @click="handleUpdate"
+          v-hasPermi="['dataCenter:dataFile:edit']"
+        >修改</el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="danger"
+          plain
+          icon="el-icon-delete"
+          size="mini"
+          :disabled="multiple"
+          @click="handleDelete"
+          v-hasPermi="['dataCenter:dataFile:remove']"
+        >删除</el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="warning"
+          plain
+          icon="el-icon-download"
+          size="mini"
+          @click="handleExport"
+          v-hasPermi="['dataCenter:dataFile:export']"
+        >导出</el-button>
+      </el-col>
+      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
+    </el-row>
+
+    <el-table v-loading="loading" border :data="dataFileList" @selection-change="handleSelectionChange">
+      <el-table-column type="selection" width="55" align="center" />
+      <el-table-column label="序号" width="50px" align="center">
+        <template slot-scope="scope">
+          {{ scope.$index + 1 }}
+        </template>
+      </el-table-column>
+      <el-table-column label="${comment}" align="center" prop="id" v-if="false"/>
+      <el-table-column label="文件名" align="center" prop="fileName" />
+      <el-table-column label="文件类型" align="center" prop="fileType" />
+      <el-table-column label="文件后缀名" align="center" prop="typeName" />
+      <el-table-column label="装备型号" align="center" prop="equipType" />
+      <el-table-column label="系统名" align="center" prop="sysName" />
+      <el-table-column label="系统id" align="center" prop="sysId" />
+      <el-table-column label="专业id" align="center" prop="majorId" />
+      <el-table-column label="专业名" align="center" prop="majorName" />
+      <el-table-column label="部件ID" align="center" prop="partId" />
+      <el-table-column label="部件名" align="center" prop="partName" />
+      <el-table-column label="导入时间" align="center" prop="uploadTime" />
+      <el-table-column label="简介" align="center" prop="descript" />
+      <el-table-column label="版本,期号" align="center" prop="fileVer" />
+      <el-table-column label="存储路径" align="center" prop="filePath" />
+      <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
+        <template slot-scope="scope">
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-edit"
+            @click="handleUpdate(scope.row)"
+            v-hasPermi="['dataCenter:dataFile:edit']"
+          >修改</el-button>
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-delete"
+            @click="handleDelete(scope.row)"
+            v-hasPermi="['dataCenter:dataFile:remove']"
+          >删除</el-button>
+        </template>
+      </el-table-column>
+    </el-table>
+
+    <pagination
+      v-show="total>0"
+      :total="total"
+      :page.sync="queryParams.pageNum"
+      :limit.sync="queryParams.pageSize"
+      @pagination="getList"
+    />
+
+    <!-- 添加或修改文件管理对话框 -->
+    <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
+      <el-form ref="form" :model="form" :rules="rules" label-width="80px">
+        <el-form-item label="文件名" prop="fileName">
+          <el-input v-model="form.fileName" placeholder="请输入文件名" />
+        </el-form-item>
+        <el-form-item label="文件后缀名" prop="typeName">
+          <el-input v-model="form.typeName" placeholder="请输入文件后缀名" />
+        </el-form-item>
+        <el-form-item label="系统名" prop="sysName">
+          <el-input v-model="form.sysName" placeholder="请输入系统名" />
+        </el-form-item>
+        <el-form-item label="系统id" prop="sysId">
+          <el-input v-model="form.sysId" placeholder="请输入系统id" />
+        </el-form-item>
+        <el-form-item label="专业id" prop="majorId">
+          <el-input v-model="form.majorId" placeholder="请输入专业id" />
+        </el-form-item>
+        <el-form-item label="专业名" prop="majorName">
+          <el-input v-model="form.majorName" placeholder="请输入专业名" />
+        </el-form-item>
+        <el-form-item label="部件ID" prop="partId">
+          <el-input v-model="form.partId" placeholder="请输入部件ID" />
+        </el-form-item>
+        <el-form-item label="部件名" prop="partName">
+          <el-input v-model="form.partName" placeholder="请输入部件名" />
+        </el-form-item>
+        <el-form-item label="导入时间" prop="uploadTime">
+          <el-input v-model="form.uploadTime" placeholder="请输入导入时间" />
+        </el-form-item>
+        <el-form-item label="简介" prop="descript">
+          <el-input v-model="form.descript" placeholder="请输入简介" />
+        </el-form-item>
+        <el-form-item label="版本,期号" prop="fileVer">
+          <el-input v-model="form.fileVer" placeholder="请输入版本,期号" />
+        </el-form-item>
+        <el-form-item label="存储路径" prop="filePath">
+          <el-input v-model="form.filePath" placeholder="请输入存储路径" />
+        </el-form-item>
+      </el-form>
+      <div slot="footer" class="dialog-footer">
+        <el-button type="primary" @click="submitForm">确 定</el-button>
+        <el-button @click="cancel">取 消</el-button>
+      </div>
+    </el-dialog>
+  </div>
+</template>
+
+<script>
+import { listDataFile, getDataFile, delDataFile, addDataFile, updateDataFile } from "@/api/dataCenter/dataFile";
+
+export default {
+  name: "DataFile",
+  data() {
+    return {
+      // 遮罩层
+      loading: true,
+      // 选中数组
+      ids: [],
+      // 非单个禁用
+      single: true,
+      // 非多个禁用
+      multiple: true,
+      // 显示搜索条件
+      showSearch: true,
+      // 总条数
+      total: 0,
+      // 文件管理表格数据
+      dataFileList: [],
+      // 弹出层标题
+      title: "",
+      // 是否显示弹出层
+      open: false,
+      // 查询参数
+      queryParams: {
+        pageNum: 1,
+        pageSize: 10,
+        fileName: null,
+        fileType: null,
+        typeName: null,
+        equipType: null,
+        sysName: null,
+        sysId: null,
+        majorId: null,
+        majorName: null,
+        partId: null,
+        partName: null,
+        uploadTime: null,
+        descript: null,
+        fileVer: null,
+        filePath: null,
+      },
+      // 表单参数
+      form: {},
+      // 表单校验
+      rules: {
+      }
+    };
+  },
+  created() {
+    this.getList();
+  },
+  methods: {
+    /** 查询文件管理列表 */
+    getList() {
+      this.loading = true;
+      listDataFile(this.queryParams).then(response => {
+        this.dataFileList = response.rows;
+        this.total = response.total;
+        this.loading = false;
+      });
+    },
+    // 取消按钮
+    cancel() {
+      this.open = false;
+      this.reset();
+    },
+    // 表单重置
+    reset() {
+      this.form = {
+        id: null,
+        fileName: null,
+        fileType: null,
+        typeName: null,
+        equipType: null,
+        sysName: null,
+        sysId: null,
+        majorId: null,
+        majorName: null,
+        partId: null,
+        partName: null,
+        uploadTime: null,
+        descript: null,
+        fileVer: null,
+        filePath: null,
+        createBy: null,
+        createTime: null,
+        updateBy: null,
+        updateTime: null
+      };
+      this.resetForm("form");
+    },
+    /** 搜索按钮操作 */
+    handleQuery() {
+      this.queryParams.pageNum = 1;
+      this.getList();
+    },
+    /** 重置按钮操作 */
+    resetQuery() {
+      this.resetForm("queryForm");
+      this.handleQuery();
+    },
+    // 多选框选中数据
+    handleSelectionChange(selection) {
+      this.ids = selection.map(item => item.id)
+      this.single = selection.length!==1
+      this.multiple = !selection.length
+    },
+    /** 新增按钮操作 */
+    handleAdd() {
+      this.reset();
+      this.open = true;
+      this.title = "添加文件管理";
+    },
+    /** 修改按钮操作 */
+    handleUpdate(row) {
+      this.reset();
+      const id = row.id || this.ids
+      getDataFile(id).then(response => {
+        this.form = response.data;
+        this.open = true;
+        this.title = "修改文件管理";
+      });
+    },
+    /** 提交按钮 */
+    submitForm() {
+      this.$refs["form"].validate(valid => {
+        if (valid) {
+          if (this.form.id != null) {
+            updateDataFile(this.form).then(response => {
+              this.$modal.msgSuccess("修改成功");
+              this.open = false;
+              this.getList();
+            });
+          } else {
+            addDataFile(this.form).then(response => {
+              this.$modal.msgSuccess("新增成功");
+              this.open = false;
+              this.getList();
+            });
+          }
+        }
+      });
+    },
+    /** 删除按钮操作 */
+    handleDelete(row) {
+      const ids = row.id || this.ids;
+      this.$modal.confirm('是否确认删除文件管理编号为"' + ids + '"的数据项?').then(function() {
+        return delDataFile(ids);
+      }).then(() => {
+        this.getList();
+        this.$modal.msgSuccess("删除成功");
+      }).catch(() => {});
+    },
+    /** 导出按钮操作 */
+    handleExport() {
+      this.download('dataCenter/dataFile/export', {
+        ...this.queryParams
+      }, `dataFile_${new Date().getTime()}.xlsx`)
+    }
+  }
+};
+</script>

+ 8 - 3
src/views/ledger/eqiupSys/index.vue

@@ -165,9 +165,14 @@
       <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
     </el-row>
 
-    <el-table v-loading="loading" :data="eqiupSysList" @selection-change="handleSelectionChange">
+    <el-table v-loading="loading" border :data="eqiupSysList" @selection-change="handleSelectionChange">
       <el-table-column type="selection" width="55" align="center" />
-      <el-table-column label="${comment}" align="center" prop="id" />
+      <el-table-column label="序号" width="50px" align="center">
+        <template slot-scope="scope">
+          {{ scope.$index + 1 }}
+        </template>
+      </el-table-column>
+      <el-table-column label="${comment}" align="center" prop="id" v-if="false"/>
       <el-table-column label="系统名" align="center" prop="sysName" />
       <el-table-column label="型号" align="center" prop="sysType" />
       <el-table-column label="上层系统id" align="center" prop="parentId" />
@@ -203,7 +208,7 @@
         </template>
       </el-table-column>
     </el-table>
-    
+
     <pagination
       v-show="total>0"
       :total="total"

+ 8 - 3
src/views/ledger/equip/index.vue

@@ -117,9 +117,14 @@
       <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
     </el-row>
 
-    <el-table v-loading="loading" :data="equipList" @selection-change="handleSelectionChange">
+    <el-table v-loading="loading" border :data="equipList" @selection-change="handleSelectionChange">
       <el-table-column type="selection" width="55" align="center" />
-      <el-table-column label="${comment}" align="center" prop="id" />
+      <el-table-column label="序号" width="50px" align="center">
+        <template slot-scope="scope">
+          {{ scope.$index + 1 }}
+        </template>
+      </el-table-column>
+      <el-table-column label="${comment}" align="center" prop="id" v-if="false"/>
       <el-table-column label="装备名" align="center" prop="equipName" />
       <el-table-column label="编号" align="center" prop="equipNo" />
       <el-table-column label="型号" align="center" prop="equipType" />
@@ -149,7 +154,7 @@
         </template>
       </el-table-column>
     </el-table>
-    
+
     <pagination
       v-show="total>0"
       :total="total"

+ 8 - 3
src/views/ledger/major/index.vue

@@ -85,9 +85,14 @@
       <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
     </el-row>
 
-    <el-table v-loading="loading" :data="majorList" @selection-change="handleSelectionChange">
+    <el-table v-loading="loading" border :data="majorList" @selection-change="handleSelectionChange">
       <el-table-column type="selection" width="55" align="center" />
-      <el-table-column label="${comment}" align="center" prop="id" />
+      <el-table-column label="序号" width="50px" align="center">
+        <template slot-scope="scope">
+          {{ scope.$index + 1 }}
+        </template>
+      </el-table-column>
+      <el-table-column label="${comment}" align="center" prop="id" v-if="false"/>
       <el-table-column label="专业名" align="center" prop="majorName" />
       <el-table-column label="系统名" align="center" prop="sysName" />
       <el-table-column label="系统id" align="center" prop="sysId" />
@@ -111,7 +116,7 @@
         </template>
       </el-table-column>
     </el-table>
-    
+
     <pagination
       v-show="total>0"
       :total="total"

+ 8 - 3
src/views/ledger/parts/index.vue

@@ -205,9 +205,14 @@
       <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
     </el-row>
 
-    <el-table v-loading="loading" :data="partsList" @selection-change="handleSelectionChange">
+    <el-table v-loading="loading" border :data="partsList" @selection-change="handleSelectionChange">
       <el-table-column type="selection" width="55" align="center" />
-      <el-table-column label="${comment}" align="center" prop="id" />
+      <el-table-column label="序号" width="50px" align="center">
+        <template slot-scope="scope">
+          {{ scope.$index + 1 }}
+        </template>
+      </el-table-column>
+      <el-table-column label="${comment}" align="center" prop="id" v-if="false"/>
       <el-table-column label="部件名" align="center" prop="partName" />
       <el-table-column label="所属系统id" align="center" prop="sysId" />
       <el-table-column label="系统名" align="center" prop="sysName" />
@@ -256,7 +261,7 @@
         </template>
       </el-table-column>
     </el-table>
-    
+
     <pagination
       v-show="total>0"
       :total="total"

+ 8 - 3
src/views/ledger/platform/index.vue

@@ -77,9 +77,14 @@
       <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
     </el-row>
 
-    <el-table v-loading="loading" :data="platformList" @selection-change="handleSelectionChange">
+    <el-table v-loading="loading" border :data="platformList" @selection-change="handleSelectionChange">
       <el-table-column type="selection" width="55" align="center" />
-      <el-table-column label="${comment}" align="center" prop="id" />
+      <el-table-column label="序号" width="50px" align="center">
+        <template slot-scope="scope">
+          {{ scope.$index + 1 }}
+        </template>
+      </el-table-column>
+      <el-table-column label="${comment}" align="center" prop="id" v-if="false"/>
       <el-table-column label="平台名" align="center" prop="platName" />
       <el-table-column label="型号" align="center" prop="platType" />
       <el-table-column label="版本" align="center" prop="platVer" />
@@ -103,7 +108,7 @@
         </template>
       </el-table-column>
     </el-table>
-    
+
     <pagination
       v-show="total>0"
       :total="total"

+ 8 - 3
src/views/maintenance/faultInfo/index.vue

@@ -109,9 +109,14 @@
       <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
     </el-row>
 
-    <el-table v-loading="loading" :data="faultInfoList" @selection-change="handleSelectionChange">
+    <el-table v-loading="loading" border :data="faultInfoList" @selection-change="handleSelectionChange">
       <el-table-column type="selection" width="55" align="center" />
-      <el-table-column label="${comment}" align="center" prop="id" />
+      <el-table-column label="序号" width="50px" align="center">
+        <template slot-scope="scope">
+          {{ scope.$index + 1 }}
+        </template>
+      </el-table-column>
+      <el-table-column label="${comment}" align="center" prop="id" v-if="false"/>
       <el-table-column label="故障名" align="center" prop="faultName" />
       <el-table-column label="故障类型" align="center" prop="faultType" />
       <el-table-column label="平台" align="center" prop="platName" />
@@ -142,7 +147,7 @@
         </template>
       </el-table-column>
     </el-table>
-    
+
     <pagination
       v-show="total>0"
       :total="total"

+ 8 - 3
src/views/maintenance/faultRecord/index.vue

@@ -221,9 +221,14 @@
       <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
     </el-row>
 
-    <el-table v-loading="loading" :data="faultRecordList" @selection-change="handleSelectionChange">
+    <el-table v-loading="loading" border :data="faultRecordList" @selection-change="handleSelectionChange">
       <el-table-column type="selection" width="55" align="center" />
-      <el-table-column label="${comment}" align="center" prop="id" />
+      <el-table-column label="序号" width="50px" align="center">
+        <template slot-scope="scope">
+          {{ scope.$index + 1 }}
+        </template>
+      </el-table-column>
+      <el-table-column label="${comment}" align="center" prop="id" v-if="false"/>
       <el-table-column label="型号" align="center" prop="equipType" />
       <el-table-column label="装备编号" align="center" prop="equipNo" />
       <el-table-column label="战区" align="center" prop="equipDept" />
@@ -266,7 +271,7 @@
         </template>
       </el-table-column>
     </el-table>
-    
+
     <pagination
       v-show="total>0"
       :total="total"

+ 1 - 1
vue.config.js

@@ -35,7 +35,7 @@ module.exports = {
     proxy: {
       // detail: https://cli.vuejs.org/config/#devserver-proxy
       [process.env.VUE_APP_BASE_API]: {
-        target: `http://localhost:11082`,
+        target: `http://47.108.150.237:11082`,
         changeOrigin: true,
         pathRewrite: {
           ['^' + process.env.VUE_APP_BASE_API]: ''

Some files were not shown because too many files changed in this diff