|
@@ -1,134 +1,338 @@
|
|
|
<template>
|
|
<template>
|
|
|
<div class="app-container">
|
|
<div class="app-container">
|
|
|
- <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch">
|
|
|
|
|
- <el-form-item label="设备/工艺编号" prop="machineryCode">
|
|
|
|
|
- <el-input
|
|
|
|
|
- v-model="queryParams.machineryCode"
|
|
|
|
|
- placeholder="请输入设备/工艺编号"
|
|
|
|
|
- clearable
|
|
|
|
|
- @keyup.enter.native="handleQuery"
|
|
|
|
|
- />
|
|
|
|
|
- </el-form-item>
|
|
|
|
|
- <el-form-item label="设备/工艺名称" prop="machineryName">
|
|
|
|
|
- <el-input
|
|
|
|
|
- v-model="queryParams.machineryName"
|
|
|
|
|
- placeholder="请输入部门名称"
|
|
|
|
|
- clearable
|
|
|
|
|
- @keyup.enter.native="handleQuery"
|
|
|
|
|
- />
|
|
|
|
|
- </el-form-item>
|
|
|
|
|
-
|
|
|
|
|
- <el-form-item>
|
|
|
|
|
- <el-button v-no-more-click type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索
|
|
|
|
|
- </el-button>
|
|
|
|
|
- <el-button v-no-more-click 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 v-no-more-click
|
|
|
|
|
- type="primary"
|
|
|
|
|
- plain
|
|
|
|
|
- icon="el-icon-plus"
|
|
|
|
|
- size="mini"
|
|
|
|
|
- @click="handleAdd"
|
|
|
|
|
- v-hasPermi="['iscs:machinery:add']"
|
|
|
|
|
- >新增
|
|
|
|
|
- </el-button>
|
|
|
|
|
- </el-col>
|
|
|
|
|
- <el-col :span="1.5">
|
|
|
|
|
- <el-button v-no-more-click
|
|
|
|
|
- type="info"
|
|
|
|
|
- plain
|
|
|
|
|
- icon="el-icon-sort"
|
|
|
|
|
- size="mini"
|
|
|
|
|
- @click="toggleExpandAll"
|
|
|
|
|
- >展开/折叠
|
|
|
|
|
- </el-button>
|
|
|
|
|
- </el-col>
|
|
|
|
|
- <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
|
|
- </el-row>
|
|
|
|
|
-
|
|
|
|
|
- <el-table
|
|
|
|
|
- v-if="refreshTable"
|
|
|
|
|
- v-loading="loading"
|
|
|
|
|
- :data="deptList"
|
|
|
|
|
- row-key="machineryId"
|
|
|
|
|
- :default-expand-all="isExpandAll"
|
|
|
|
|
- :tree-props="{children: 'children', hasChildren: 'hasChildren'}"
|
|
|
|
|
- >
|
|
|
|
|
- <el-table-column prop="machineryCode" label="设备/工艺编码" ></el-table-column>
|
|
|
|
|
- <el-table-column prop="machineryName" label="设备/工艺名称" ></el-table-column>
|
|
|
|
|
- <el-table-column prop="machineryType" label="设备/工艺类型" ></el-table-column>
|
|
|
|
|
- <el-table-column prop="workstationName" label="所属岗位" >
|
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
|
- <span>{{ scope.row.workstationName }}</span>
|
|
|
|
|
- </template>
|
|
|
|
|
- </el-table-column>
|
|
|
|
|
- <el-table-column prop="lotoName" label="所属电柜" >
|
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
|
- <el-button type="text" @click="look(scope.row)">{{ scope.row.lotoName }}</el-button>
|
|
|
|
|
- </template>
|
|
|
|
|
- </el-table-column>
|
|
|
|
|
- <el-table-column prop="machineryImg" label="工艺图" >
|
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
|
|
|
+ <div class="left">
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ v-model="queryParams.machineryCode"
|
|
|
|
|
+ placeholder="请输入岗位"
|
|
|
|
|
+ clearable
|
|
|
|
|
+ @keyup.enter.native="handleQuery"
|
|
|
|
|
+ />
|
|
|
|
|
+ <!-- 岗位树 -->
|
|
|
|
|
+ <div class="deptTree"></div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="right">
|
|
|
|
|
+ <el-radio-group v-model="tabPosition" style="margin-bottom: 30px">
|
|
|
|
|
+ <el-radio-button label="craft">工艺</el-radio-button>
|
|
|
|
|
+ <el-radio-button label="equipment">设备</el-radio-button>
|
|
|
|
|
+ </el-radio-group>
|
|
|
|
|
+ <!-- 工艺 -->
|
|
|
|
|
+ <div class="craft" v-if="this.tabPosition == 'craft'">
|
|
|
|
|
+ <el-form
|
|
|
|
|
+ :model="queryParams"
|
|
|
|
|
+ ref="queryForm"
|
|
|
|
|
+ size="small"
|
|
|
|
|
+ :inline="true"
|
|
|
|
|
+ v-show="showSearch"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-form-item label="工艺名称" prop="machineryName">
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ v-model="queryParams.machineryName"
|
|
|
|
|
+ placeholder="请输入工艺名称"
|
|
|
|
|
+ clearable
|
|
|
|
|
+ @keyup.enter.native="handleQuery"
|
|
|
|
|
+ />
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
|
|
|
- <img
|
|
|
|
|
- v-if="scope.row.machineryImg"
|
|
|
|
|
- :src="scope.row.machineryImg"
|
|
|
|
|
- alt=""
|
|
|
|
|
- style="width: 50px; height: 50px"
|
|
|
|
|
- />
|
|
|
|
|
- <span v-else>-</span>
|
|
|
|
|
- </template>
|
|
|
|
|
- </el-table-column>
|
|
|
|
|
- <el-table-column label="创建时间" align="center" prop="createTime" width="200">
|
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
|
- <span>{{ scope.row.createTime }}</span>
|
|
|
|
|
- </template>
|
|
|
|
|
- </el-table-column>
|
|
|
|
|
- <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
|
- <el-button v-no-more-click
|
|
|
|
|
- size="mini"
|
|
|
|
|
- type="text"
|
|
|
|
|
- icon="el-icon-edit"
|
|
|
|
|
- @click="handleUpdate(scope.row)"
|
|
|
|
|
- v-hasPermi="['iscs:machinery:edit']"
|
|
|
|
|
- >修改
|
|
|
|
|
- </el-button>
|
|
|
|
|
- <el-button v-no-more-click
|
|
|
|
|
- size="mini"
|
|
|
|
|
- type="text"
|
|
|
|
|
- icon="el-icon-plus"
|
|
|
|
|
- @click="handleAdd(scope.row)"
|
|
|
|
|
- v-hasPermi="['iscs:machinery:add']"
|
|
|
|
|
- >新增
|
|
|
|
|
|
|
+ <el-form-item>
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ v-no-more-click
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ icon="el-icon-search"
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ @click="handleQuery"
|
|
|
|
|
+ >搜索
|
|
|
|
|
+ </el-button>
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ v-no-more-click
|
|
|
|
|
+ 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
|
|
|
|
|
+ v-no-more-click
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ plain
|
|
|
|
|
+ icon="el-icon-plus"
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ @click="handleAdd"
|
|
|
|
|
+ v-hasPermi="['iscs:machinery:add']"
|
|
|
|
|
+ >新增
|
|
|
|
|
+ </el-button>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="1.5">
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ v-no-more-click
|
|
|
|
|
+ type="danger"
|
|
|
|
|
+ plain
|
|
|
|
|
+ icon="el-icon-delete"
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ :disabled="multiple"
|
|
|
|
|
+ @click="handleDelete"
|
|
|
|
|
+ v-hasPermi="['mes:hw:information:batchremove']"
|
|
|
|
|
+ >批量删除</el-button
|
|
|
|
|
+ >
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <!-- <el-col :span="1.5">
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ v-no-more-click
|
|
|
|
|
+ type="info"
|
|
|
|
|
+ plain
|
|
|
|
|
+ icon="el-icon-sort"
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ @click="toggleExpandAll"
|
|
|
|
|
+ >展开/折叠
|
|
|
</el-button>
|
|
</el-button>
|
|
|
-<!-- v-if="scope.row.parentId != 0"-->
|
|
|
|
|
- <el-button v-no-more-click
|
|
|
|
|
|
|
+ </el-col> -->
|
|
|
|
|
+ <right-toolbar
|
|
|
|
|
+ :showSearch.sync="showSearch"
|
|
|
|
|
+ @queryTable="getList"
|
|
|
|
|
+ ></right-toolbar>
|
|
|
|
|
+ </el-row>
|
|
|
|
|
+
|
|
|
|
|
+ <el-table
|
|
|
|
|
+ v-if="refreshTable"
|
|
|
|
|
+ v-loading="loading"
|
|
|
|
|
+ :data="deptList"
|
|
|
|
|
+ row-key="machineryId"
|
|
|
|
|
+ :default-expand-all="isExpandAll"
|
|
|
|
|
+ :tree-props="{ children: 'children', hasChildren: 'hasChildren' }"
|
|
|
|
|
+ @selection-change="handleSelectionChange"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-table-column type="selection" width="55" align="center" />
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ prop="machineryCode"
|
|
|
|
|
+ label="工艺编码"
|
|
|
|
|
+ ></el-table-column>
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ prop="machineryName"
|
|
|
|
|
+ label="工艺名称"
|
|
|
|
|
+ ></el-table-column>
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ label="工艺详情"
|
|
|
|
|
+ align="center"
|
|
|
|
|
+ class-name="small-padding fixed-width"
|
|
|
|
|
+ >
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ v-no-more-click
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ type="text"
|
|
|
|
|
+ @click="handleLook(scope.row)"
|
|
|
|
|
+ >查看
|
|
|
|
|
+ </el-button>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ label="操作"
|
|
|
|
|
+ align="center"
|
|
|
|
|
+ class-name="small-padding fixed-width"
|
|
|
|
|
+ >
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ v-no-more-click
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ type="text"
|
|
|
|
|
+ icon="el-icon-edit"
|
|
|
|
|
+ @click="handleUpdate(scope.row)"
|
|
|
|
|
+ v-hasPermi="['iscs:machinery:edit']"
|
|
|
|
|
+ >编辑
|
|
|
|
|
+ </el-button>
|
|
|
|
|
+ <!-- <el-button
|
|
|
|
|
+ v-no-more-click
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ type="text"
|
|
|
|
|
+ icon="el-icon-plus"
|
|
|
|
|
+ @click="handleAdd(scope.row)"
|
|
|
|
|
+ v-hasPermi="['iscs:machinery:add']"
|
|
|
|
|
+ >新增
|
|
|
|
|
+ </el-button> -->
|
|
|
|
|
+ <!-- v-if="scope.row.parentId != 0"-->
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ v-no-more-click
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ type="text"
|
|
|
|
|
+ icon="el-icon-delete"
|
|
|
|
|
+ @click="handleDelete(scope.row)"
|
|
|
|
|
+ v-hasPermi="['iscs:machinery:remove']"
|
|
|
|
|
+ >删除
|
|
|
|
|
+ </el-button>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ </el-table>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <!-- 设备 -->
|
|
|
|
|
+ <div class="equipment" v-if="this.tabPosition !== 'craft'">
|
|
|
|
|
+ <el-form
|
|
|
|
|
+ :model="queryParams"
|
|
|
|
|
+ ref="queryForm"
|
|
|
|
|
+ size="small"
|
|
|
|
|
+ :inline="true"
|
|
|
|
|
+ v-show="showSearch"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-form-item label="设备名称" prop="machineryName">
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ v-model="queryParams.machineryName"
|
|
|
|
|
+ placeholder="请输入设备名称"
|
|
|
|
|
+ clearable
|
|
|
|
|
+ @keyup.enter.native="handleQuery"
|
|
|
|
|
+ />
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
|
|
|
- size="mini"
|
|
|
|
|
- type="text"
|
|
|
|
|
- icon="el-icon-delete"
|
|
|
|
|
- @click="handleDelete(scope.row)"
|
|
|
|
|
- v-hasPermi="['iscs:machinery:remove']"
|
|
|
|
|
- >删除
|
|
|
|
|
|
|
+ <el-form-item>
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ v-no-more-click
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ icon="el-icon-search"
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ @click="handleQuery"
|
|
|
|
|
+ >搜索
|
|
|
|
|
+ </el-button>
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ v-no-more-click
|
|
|
|
|
+ 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
|
|
|
|
|
+ v-no-more-click
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ plain
|
|
|
|
|
+ icon="el-icon-plus"
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ @click="handleAdd"
|
|
|
|
|
+ v-hasPermi="['iscs:machinery:add']"
|
|
|
|
|
+ >新增
|
|
|
|
|
+ </el-button>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="1.5">
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ v-no-more-click
|
|
|
|
|
+ type="danger"
|
|
|
|
|
+ plain
|
|
|
|
|
+ icon="el-icon-delete"
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ :disabled="multiple"
|
|
|
|
|
+ @click="handleDelete"
|
|
|
|
|
+ v-hasPermi="['mes:hw:information:batchremove']"
|
|
|
|
|
+ >批量删除</el-button
|
|
|
|
|
+ >
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <!-- <el-col :span="1.5">
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ v-no-more-click
|
|
|
|
|
+ type="info"
|
|
|
|
|
+ plain
|
|
|
|
|
+ icon="el-icon-sort"
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ @click="toggleExpandAll"
|
|
|
|
|
+ >展开/折叠
|
|
|
</el-button>
|
|
</el-button>
|
|
|
- </template>
|
|
|
|
|
- </el-table-column>
|
|
|
|
|
- </el-table>
|
|
|
|
|
|
|
+ </el-col> -->
|
|
|
|
|
+ <right-toolbar
|
|
|
|
|
+ :showSearch.sync="showSearch"
|
|
|
|
|
+ @queryTable="getList"
|
|
|
|
|
+ ></right-toolbar>
|
|
|
|
|
+ </el-row>
|
|
|
|
|
|
|
|
|
|
+ <el-table
|
|
|
|
|
+ v-if="refreshTable"
|
|
|
|
|
+ v-loading="loading"
|
|
|
|
|
+ :data="deptList"
|
|
|
|
|
+ row-key="machineryId"
|
|
|
|
|
+ :default-expand-all="isExpandAll"
|
|
|
|
|
+ :tree-props="{ children: 'children', hasChildren: 'hasChildren' }"
|
|
|
|
|
+ @selection-change="handleSelectionChange"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-table-column type="selection" width="55" align="center" />
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ prop="machineryCode"
|
|
|
|
|
+ label="设备编码"
|
|
|
|
|
+ ></el-table-column>
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ prop="machineryName"
|
|
|
|
|
+ label="设备名称"
|
|
|
|
|
+ ></el-table-column>
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ label="设备详情"
|
|
|
|
|
+ align="center"
|
|
|
|
|
+ class-name="small-padding fixed-width"
|
|
|
|
|
+ >
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ v-no-more-click
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ type="text"
|
|
|
|
|
+ @click="handleLook(scope.row)"
|
|
|
|
|
+ >查看
|
|
|
|
|
+ </el-button>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ label="操作"
|
|
|
|
|
+ align="center"
|
|
|
|
|
+ class-name="small-padding fixed-width"
|
|
|
|
|
+ >
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ v-no-more-click
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ type="text"
|
|
|
|
|
+ icon="el-icon-edit"
|
|
|
|
|
+ @click="handleUpdate(scope.row)"
|
|
|
|
|
+ v-hasPermi="['iscs:machinery:edit']"
|
|
|
|
|
+ >编辑
|
|
|
|
|
+ </el-button>
|
|
|
|
|
+ <!-- <el-button
|
|
|
|
|
+ v-no-more-click
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ type="text"
|
|
|
|
|
+ icon="el-icon-plus"
|
|
|
|
|
+ @click="handleAdd(scope.row)"
|
|
|
|
|
+ v-hasPermi="['iscs:machinery:add']"
|
|
|
|
|
+ >新增
|
|
|
|
|
+ </el-button> -->
|
|
|
|
|
+ <!-- v-if="scope.row.parentId != 0"-->
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ v-no-more-click
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ type="text"
|
|
|
|
|
+ icon="el-icon-delete"
|
|
|
|
|
+ @click="handleDelete(scope.row)"
|
|
|
|
|
+ v-hasPermi="['iscs:machinery:remove']"
|
|
|
|
|
+ >删除
|
|
|
|
|
+ </el-button>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ </el-table>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
<!-- 添加或修改部门对话框 -->
|
|
<!-- 添加或修改部门对话框 -->
|
|
|
<el-dialog :title="title" :visible.sync="open" width="450px" append-to-body>
|
|
<el-dialog :title="title" :visible.sync="open" width="450px" append-to-body>
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="120px">
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="120px">
|
|
|
-
|
|
|
|
|
- <el-form-item label="上级" prop="parentId" >
|
|
|
|
|
- <treeselect v-model="form.parentId" :options="machineryOptions" :normalizer="normalizer" placeholder="选择上级"/>
|
|
|
|
|
|
|
+ <el-form-item label="上级" prop="parentId">
|
|
|
|
|
+ <treeselect
|
|
|
|
|
+ v-model="form.parentId"
|
|
|
|
|
+ :options="machineryOptions"
|
|
|
|
|
+ :normalizer="normalizer"
|
|
|
|
|
+ placeholder="选择上级"
|
|
|
|
|
+ />
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="设备/工艺名称" prop="machineryName">
|
|
<el-form-item label="设备/工艺名称" prop="machineryName">
|
|
|
- <el-input v-model="form.machineryName" placeholder="请输入设备/工艺名称"/>
|
|
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ v-model="form.machineryName"
|
|
|
|
|
+ placeholder="请输入设备/工艺名称"
|
|
|
|
|
+ />
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-row>
|
|
<el-row>
|
|
|
<el-col :span="18">
|
|
<el-col :span="18">
|
|
@@ -151,8 +355,13 @@
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
</el-row>
|
|
</el-row>
|
|
|
- <el-form-item label="所属mars岗位" prop="workstationId" >
|
|
|
|
|
- <treeselect v-model="form.workstationId" :options="marsOptions" :normalizer="Marsnormalizer" placeholder="选择mars岗位"/>
|
|
|
|
|
|
|
+ <el-form-item label="所属mars岗位" prop="workstationId">
|
|
|
|
|
+ <treeselect
|
|
|
|
|
+ v-model="form.workstationId"
|
|
|
|
|
+ :options="marsOptions"
|
|
|
|
|
+ :normalizer="Marsnormalizer"
|
|
|
|
|
+ placeholder="选择mars岗位"
|
|
|
|
|
+ />
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item label="所属电柜" prop="lotoId">
|
|
<el-form-item label="所属电柜" prop="lotoId">
|
|
|
<el-select
|
|
<el-select
|
|
@@ -169,7 +378,10 @@
|
|
|
</el-select>
|
|
</el-select>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item label="设备/工艺类型" prop="machineryType">
|
|
<el-form-item label="设备/工艺类型" prop="machineryType">
|
|
|
- <el-input v-model="form.machineryType" placeholder="请输入设备/工艺类型" />
|
|
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ v-model="form.machineryType"
|
|
|
|
|
+ placeholder="请输入设备/工艺类型"
|
|
|
|
|
+ />
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="工艺图" prop="machineryImg">
|
|
<el-form-item label="工艺图" prop="machineryImg">
|
|
@@ -183,7 +395,9 @@
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-form>
|
|
</el-form>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
<div slot="footer" class="dialog-footer">
|
|
|
- <el-button v-no-more-click type="primary" @click="submitForm">确 定</el-button>
|
|
|
|
|
|
|
+ <el-button v-no-more-click type="primary" @click="submitForm"
|
|
|
|
|
+ >确 定</el-button
|
|
|
|
|
+ >
|
|
|
<el-button v-no-more-click @click="cancel">取 消</el-button>
|
|
<el-button v-no-more-click @click="cancel">取 消</el-button>
|
|
|
</div>
|
|
</div>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
@@ -192,17 +406,21 @@
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
import {
|
|
import {
|
|
|
- listTechnology, addTechnology, updateTechnology, delTechnology, getTechnologyInfo
|
|
|
|
|
-} from '@/api/system/machinery'
|
|
|
|
|
-import Treeselect from '@riophae/vue-treeselect'
|
|
|
|
|
-import '@riophae/vue-treeselect/dist/vue-treeselect.css'
|
|
|
|
|
-import { genCode } from '@/api/system/autocode/rule'
|
|
|
|
|
-import { listMarsDept } from '@/api/system/marsdept'
|
|
|
|
|
-import {listLoto} from '@/api/mes/lotoStation/lotoStation'
|
|
|
|
|
|
|
+ listTechnology,
|
|
|
|
|
+ addTechnology,
|
|
|
|
|
+ updateTechnology,
|
|
|
|
|
+ delTechnology,
|
|
|
|
|
+ getTechnologyInfo,
|
|
|
|
|
+} from "@/api/system/machinery";
|
|
|
|
|
+import Treeselect from "@riophae/vue-treeselect";
|
|
|
|
|
+import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
|
|
|
|
+import { genCode } from "@/api/system/autocode/rule";
|
|
|
|
|
+import { listMarsDept } from "@/api/system/marsdept";
|
|
|
|
|
+import { listLoto } from "@/api/mes/lotoStation/lotoStation";
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
- name: 'Dept',
|
|
|
|
|
- dicts: ['sys_normal_disable'],
|
|
|
|
|
|
|
+ name: "Dept",
|
|
|
|
|
+ dicts: ["sys_normal_disable"],
|
|
|
components: { Treeselect },
|
|
components: { Treeselect },
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
@@ -210,6 +428,7 @@ export default {
|
|
|
loading: true,
|
|
loading: true,
|
|
|
//自动生成编码
|
|
//自动生成编码
|
|
|
autoGenFlag: false,
|
|
autoGenFlag: false,
|
|
|
|
|
+ tabPosition: "craft",
|
|
|
// 显示搜索条件
|
|
// 显示搜索条件
|
|
|
showSearch: true,
|
|
showSearch: true,
|
|
|
// 表格树数据
|
|
// 表格树数据
|
|
@@ -217,11 +436,11 @@ export default {
|
|
|
// mars树选项
|
|
// mars树选项
|
|
|
marsOptions: [],
|
|
marsOptions: [],
|
|
|
//工艺树
|
|
//工艺树
|
|
|
- machineryOptions:[],
|
|
|
|
|
|
|
+ machineryOptions: [],
|
|
|
// 电柜
|
|
// 电柜
|
|
|
- lotoOptions:[],
|
|
|
|
|
|
|
+ lotoOptions: [],
|
|
|
// 弹出层标题
|
|
// 弹出层标题
|
|
|
- title: '',
|
|
|
|
|
|
|
+ title: "",
|
|
|
// 是否显示弹出层
|
|
// 是否显示弹出层
|
|
|
open: false,
|
|
open: false,
|
|
|
// 是否展开,默认全部展开
|
|
// 是否展开,默认全部展开
|
|
@@ -230,112 +449,124 @@ export default {
|
|
|
refreshTable: true,
|
|
refreshTable: true,
|
|
|
// 查询参数
|
|
// 查询参数
|
|
|
queryParams: {
|
|
queryParams: {
|
|
|
- pages:1,
|
|
|
|
|
- size:-1,
|
|
|
|
|
|
|
+ pages: 1,
|
|
|
|
|
+ size: -1,
|
|
|
machineryName: undefined,
|
|
machineryName: undefined,
|
|
|
- machineryCode: undefined
|
|
|
|
|
|
|
+ machineryCode: undefined,
|
|
|
},
|
|
},
|
|
|
- LotoOptions:[],//电柜绑定
|
|
|
|
|
|
|
+ LotoOptions: [], //电柜绑定
|
|
|
// 表单参数
|
|
// 表单参数
|
|
|
form: {},
|
|
form: {},
|
|
|
// 表单校验
|
|
// 表单校验
|
|
|
rules: {
|
|
rules: {
|
|
|
machineryCode: [
|
|
machineryCode: [
|
|
|
- { required: true, message: '设备/工艺编码不能为空', trigger: 'blur' }
|
|
|
|
|
|
|
+ { required: true, message: "设备/工艺编码不能为空", trigger: "blur" },
|
|
|
],
|
|
],
|
|
|
machineryName: [
|
|
machineryName: [
|
|
|
- { required: true, message: '设备/工艺名称不能为空', trigger: 'blur' }
|
|
|
|
|
|
|
+ { required: true, message: "设备/工艺名称不能为空", trigger: "blur" },
|
|
|
],
|
|
],
|
|
|
- workstationId:[
|
|
|
|
|
- { required: true, message: '岗位不能为空', trigger: 'blur' }
|
|
|
|
|
|
|
+ workstationId: [
|
|
|
|
|
+ { required: true, message: "岗位不能为空", trigger: "blur" },
|
|
|
],
|
|
],
|
|
|
- lotoId:[
|
|
|
|
|
- { required: true, message: '电柜不能为空', trigger: 'blur' }
|
|
|
|
|
- ]
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ lotoId: [{ required: true, message: "电柜不能为空", trigger: "blur" }],
|
|
|
|
|
+ },
|
|
|
|
|
+ };
|
|
|
},
|
|
},
|
|
|
created() {
|
|
created() {
|
|
|
- this.getList()
|
|
|
|
|
|
|
+ this.getList();
|
|
|
},
|
|
},
|
|
|
- watch:{
|
|
|
|
|
- "form.workstationId":function(newVal,oldVal){
|
|
|
|
|
- if(newVal){
|
|
|
|
|
- const data={
|
|
|
|
|
- pasge:1,
|
|
|
|
|
- size:-1,
|
|
|
|
|
- workstationId:this.form.workstationId
|
|
|
|
|
- }
|
|
|
|
|
- listLoto(data).then(response => {
|
|
|
|
|
- this.LotoOptions = response.data.records.map(item => {
|
|
|
|
|
|
|
+ watch: {
|
|
|
|
|
+ "form.workstationId": function (newVal, oldVal) {
|
|
|
|
|
+ if (newVal) {
|
|
|
|
|
+ const data = {
|
|
|
|
|
+ pasge: 1,
|
|
|
|
|
+ size: -1,
|
|
|
|
|
+ workstationId: this.form.workstationId,
|
|
|
|
|
+ };
|
|
|
|
|
+ listLoto(data).then((response) => {
|
|
|
|
|
+ this.LotoOptions = response.data.records.map((item) => {
|
|
|
return {
|
|
return {
|
|
|
value: item.lotoId,
|
|
value: item.lotoId,
|
|
|
- label: item.lotoName
|
|
|
|
|
- }
|
|
|
|
|
- })
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ label: item.lotoName,
|
|
|
|
|
+ };
|
|
|
|
|
+ });
|
|
|
|
|
+ });
|
|
|
}
|
|
}
|
|
|
- }
|
|
|
|
|
|
|
+ },
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
/** 查询部门列表 */
|
|
/** 查询部门列表 */
|
|
|
getList() {
|
|
getList() {
|
|
|
- this.loading = true
|
|
|
|
|
- listTechnology(this.queryParams).then(response => {
|
|
|
|
|
|
|
+ this.loading = true;
|
|
|
|
|
+ listTechnology(this.queryParams).then((response) => {
|
|
|
debugger;
|
|
debugger;
|
|
|
- this.deptList = this.handleTree(response.data.records,"machineryId","parentId")
|
|
|
|
|
- this.machineryOptions = this.handleTree(response.data.records,"machineryId","parentId")
|
|
|
|
|
- console.log(this.deptList,'设备/工艺列表')
|
|
|
|
|
- this.loading = false
|
|
|
|
|
- })
|
|
|
|
|
- const data={
|
|
|
|
|
- pasge:1,
|
|
|
|
|
- size:-1
|
|
|
|
|
- }
|
|
|
|
|
- listMarsDept(data).then(response => {
|
|
|
|
|
- this.marsOptions = this.handleTree(response.data.records,"workstationId","parentId")
|
|
|
|
|
- })
|
|
|
|
|
- listLoto(data).then(response => {
|
|
|
|
|
- this.LotoOptions = response.data.records.map(item => {
|
|
|
|
|
|
|
+ this.deptList = this.handleTree(
|
|
|
|
|
+ response.data.records,
|
|
|
|
|
+ "machineryId",
|
|
|
|
|
+ "parentId"
|
|
|
|
|
+ );
|
|
|
|
|
+ this.machineryOptions = this.handleTree(
|
|
|
|
|
+ response.data.records,
|
|
|
|
|
+ "machineryId",
|
|
|
|
|
+ "parentId"
|
|
|
|
|
+ );
|
|
|
|
|
+ console.log(this.deptList, "设备/工艺列表");
|
|
|
|
|
+ this.loading = false;
|
|
|
|
|
+ });
|
|
|
|
|
+ const data = {
|
|
|
|
|
+ pasge: 1,
|
|
|
|
|
+ size: -1,
|
|
|
|
|
+ };
|
|
|
|
|
+ listMarsDept(data).then((response) => {
|
|
|
|
|
+ this.marsOptions = this.handleTree(
|
|
|
|
|
+ response.data.records,
|
|
|
|
|
+ "workstationId",
|
|
|
|
|
+ "parentId"
|
|
|
|
|
+ );
|
|
|
|
|
+ });
|
|
|
|
|
+ listLoto(data).then((response) => {
|
|
|
|
|
+ this.LotoOptions = response.data.records.map((item) => {
|
|
|
return {
|
|
return {
|
|
|
value: item.lotoId,
|
|
value: item.lotoId,
|
|
|
- label: item.lotoName
|
|
|
|
|
- }
|
|
|
|
|
- })
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ label: item.lotoName,
|
|
|
|
|
+ };
|
|
|
|
|
+ });
|
|
|
|
|
+ });
|
|
|
},
|
|
},
|
|
|
/** 转换部门数据结构 */
|
|
/** 转换部门数据结构 */
|
|
|
Marsnormalizer(node) {
|
|
Marsnormalizer(node) {
|
|
|
if (node.children && !node.children.length) {
|
|
if (node.children && !node.children.length) {
|
|
|
- delete node.children
|
|
|
|
|
|
|
+ delete node.children;
|
|
|
}
|
|
}
|
|
|
return {
|
|
return {
|
|
|
id: node.workstationId,
|
|
id: node.workstationId,
|
|
|
label: node.workstationName,
|
|
label: node.workstationName,
|
|
|
- children: node.children
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ children: node.children,
|
|
|
|
|
+ };
|
|
|
},
|
|
},
|
|
|
normalizer(node) {
|
|
normalizer(node) {
|
|
|
if (node.children && !node.children.length) {
|
|
if (node.children && !node.children.length) {
|
|
|
- delete node.children
|
|
|
|
|
|
|
+ delete node.children;
|
|
|
}
|
|
}
|
|
|
return {
|
|
return {
|
|
|
id: node.machineryId,
|
|
id: node.machineryId,
|
|
|
label: node.machineryName,
|
|
label: node.machineryName,
|
|
|
- children: node.children
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ children: node.children,
|
|
|
|
|
+ };
|
|
|
},
|
|
},
|
|
|
// 地图预览
|
|
// 地图预览
|
|
|
look(row) {
|
|
look(row) {
|
|
|
console.log(row, "row预览");
|
|
console.log(row, "row预览");
|
|
|
const data = row.lotoId;
|
|
const data = row.lotoId;
|
|
|
- this.$router.push(`/system/technology/technologyList/index/MapData?lotoId=${data}&machineryId=${row.machineryId}`);
|
|
|
|
|
|
|
+ this.$router.push(
|
|
|
|
|
+ `/system/technology/technologyList/index/MapData?lotoId=${data}&machineryId=${row.machineryId}`
|
|
|
|
|
+ );
|
|
|
// this.dialogVisibleMap = true; // 显示地图预览弹框
|
|
// this.dialogVisibleMap = true; // 显示地图预览弹框
|
|
|
},
|
|
},
|
|
|
// 取消按钮
|
|
// 取消按钮
|
|
|
cancel() {
|
|
cancel() {
|
|
|
- this.open = false
|
|
|
|
|
- this.reset()
|
|
|
|
|
|
|
+ this.open = false;
|
|
|
|
|
+ this.reset();
|
|
|
},
|
|
},
|
|
|
// 表单重置
|
|
// 表单重置
|
|
|
reset() {
|
|
reset() {
|
|
@@ -343,15 +574,15 @@ export default {
|
|
|
machineryId: undefined,
|
|
machineryId: undefined,
|
|
|
parentId: undefined,
|
|
parentId: undefined,
|
|
|
machineryName: undefined,
|
|
machineryName: undefined,
|
|
|
- }
|
|
|
|
|
|
|
+ };
|
|
|
this.autoGenFlag = false;
|
|
this.autoGenFlag = false;
|
|
|
- this.resetForm('form')
|
|
|
|
|
|
|
+ this.resetForm("form");
|
|
|
},
|
|
},
|
|
|
//自动生成编码
|
|
//自动生成编码
|
|
|
handleAutoGenChange(autoGenFlag) {
|
|
handleAutoGenChange(autoGenFlag) {
|
|
|
if (autoGenFlag) {
|
|
if (autoGenFlag) {
|
|
|
genCode("TECHNOLOGY_CODE").then((response) => {
|
|
genCode("TECHNOLOGY_CODE").then((response) => {
|
|
|
- console.log(response,'设备工艺编码');
|
|
|
|
|
|
|
+ console.log(response, "设备工艺编码");
|
|
|
this.form.machineryCode = response;
|
|
this.form.machineryCode = response;
|
|
|
});
|
|
});
|
|
|
} else {
|
|
} else {
|
|
@@ -360,83 +591,113 @@ export default {
|
|
|
},
|
|
},
|
|
|
//图标上传成功
|
|
//图标上传成功
|
|
|
handleIconUplaoded(imgUrl) {
|
|
handleIconUplaoded(imgUrl) {
|
|
|
- this.form.machineryImg = imgUrl[0].url
|
|
|
|
|
|
|
+ this.form.machineryImg = imgUrl[0].url;
|
|
|
},
|
|
},
|
|
|
// 图标移除
|
|
// 图标移除
|
|
|
handleIconRemoved(imgUrl) {
|
|
handleIconRemoved(imgUrl) {
|
|
|
- this.form.machineryImg = null
|
|
|
|
|
|
|
+ this.form.machineryImg = null;
|
|
|
},
|
|
},
|
|
|
/** 搜索按钮操作 */
|
|
/** 搜索按钮操作 */
|
|
|
handleQuery() {
|
|
handleQuery() {
|
|
|
- this.getList()
|
|
|
|
|
|
|
+ this.getList();
|
|
|
},
|
|
},
|
|
|
/** 重置按钮操作 */
|
|
/** 重置按钮操作 */
|
|
|
resetQuery() {
|
|
resetQuery() {
|
|
|
- this.resetForm('queryForm')
|
|
|
|
|
- this.handleQuery()
|
|
|
|
|
|
|
+ this.resetForm("queryForm");
|
|
|
|
|
+ this.handleQuery();
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
/** 展开/折叠操作 */
|
|
/** 展开/折叠操作 */
|
|
|
toggleExpandAll() {
|
|
toggleExpandAll() {
|
|
|
- this.refreshTable = false
|
|
|
|
|
- this.isExpandAll = !this.isExpandAll
|
|
|
|
|
|
|
+ this.refreshTable = false;
|
|
|
|
|
+ this.isExpandAll = !this.isExpandAll;
|
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
|
- this.refreshTable = true
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ this.refreshTable = true;
|
|
|
|
|
+ });
|
|
|
},
|
|
},
|
|
|
/** 新增按钮操作 */
|
|
/** 新增按钮操作 */
|
|
|
handleAdd(row) {
|
|
handleAdd(row) {
|
|
|
- this.reset()
|
|
|
|
|
|
|
+ this.reset();
|
|
|
if (row != null && row.machineryId) {
|
|
if (row != null && row.machineryId) {
|
|
|
this.form.parentId = row.machineryId;
|
|
this.form.parentId = row.machineryId;
|
|
|
} else {
|
|
} else {
|
|
|
this.form.parentId = 0;
|
|
this.form.parentId = 0;
|
|
|
}
|
|
}
|
|
|
- this.open = true
|
|
|
|
|
- this.title = '添加部门'
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
|
|
+ this.open = true;
|
|
|
|
|
+ this.title = "添加部门";
|
|
|
},
|
|
},
|
|
|
/** 修改按钮操作 */
|
|
/** 修改按钮操作 */
|
|
|
handleUpdate(row) {
|
|
handleUpdate(row) {
|
|
|
- this.reset()
|
|
|
|
|
- getTechnologyInfo(row.machineryId).then(response => {
|
|
|
|
|
- this.form = response.data
|
|
|
|
|
- this.open = true
|
|
|
|
|
- this.title = '修改部门'
|
|
|
|
|
-
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ this.reset();
|
|
|
|
|
+ getTechnologyInfo(row.machineryId).then((response) => {
|
|
|
|
|
+ this.form = response.data;
|
|
|
|
|
+ this.open = true;
|
|
|
|
|
+ this.title = "修改部门";
|
|
|
|
|
+ });
|
|
|
},
|
|
},
|
|
|
/** 提交按钮 */
|
|
/** 提交按钮 */
|
|
|
- submitForm: function() {
|
|
|
|
|
- this.$refs['form'].validate(valid => {
|
|
|
|
|
|
|
+ submitForm: function () {
|
|
|
|
|
+ this.$refs["form"].validate((valid) => {
|
|
|
if (valid) {
|
|
if (valid) {
|
|
|
if (this.form.machineryId != undefined) {
|
|
if (this.form.machineryId != undefined) {
|
|
|
- updateTechnology(this.form).then(response => {
|
|
|
|
|
- this.$modal.msgSuccess('修改成功')
|
|
|
|
|
- this.open = false
|
|
|
|
|
- this.getList()
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ updateTechnology(this.form).then((response) => {
|
|
|
|
|
+ this.$modal.msgSuccess("修改成功");
|
|
|
|
|
+ this.open = false;
|
|
|
|
|
+ this.getList();
|
|
|
|
|
+ });
|
|
|
} else {
|
|
} else {
|
|
|
- addTechnology(this.form).then(response => {
|
|
|
|
|
- this.$modal.msgSuccess('新增成功')
|
|
|
|
|
- this.open = false
|
|
|
|
|
- this.getList()
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ addTechnology(this.form).then((response) => {
|
|
|
|
|
+ this.$modal.msgSuccess("新增成功");
|
|
|
|
|
+ this.open = false;
|
|
|
|
|
+ this.getList();
|
|
|
|
|
+ });
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- })
|
|
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
|
|
+ // 多选框选中数据
|
|
|
|
|
+ handleSelectionChange(selection) {
|
|
|
|
|
+ this.ids = selection.map((item) => item.id);
|
|
|
|
|
+ this.codes = selection.map((item) => item.machineryCode);
|
|
|
|
|
+ this.single = selection.length !== 1;
|
|
|
|
|
+ this.multiple = !selection.length;
|
|
|
},
|
|
},
|
|
|
/** 删除按钮操作 */
|
|
/** 删除按钮操作 */
|
|
|
handleDelete(row) {
|
|
handleDelete(row) {
|
|
|
- this.$modal.confirm('是否确认删除名称为"' + row.machineryName + '"的数据项?').then(function() {
|
|
|
|
|
- return delTechnology(row.machineryId)
|
|
|
|
|
- }).then(() => {
|
|
|
|
|
- this.getList()
|
|
|
|
|
- this.$modal.msgSuccess('删除成功')
|
|
|
|
|
- }).catch(() => {
|
|
|
|
|
- })
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
-}
|
|
|
|
|
|
|
+ this.$modal
|
|
|
|
|
+ .confirm('是否确认删除名称为"' + row.machineryName + '"的数据项?')
|
|
|
|
|
+ .then(function () {
|
|
|
|
|
+ return delTechnology(row.machineryId);
|
|
|
|
|
+ })
|
|
|
|
|
+ .then(() => {
|
|
|
|
|
+ this.getList();
|
|
|
|
|
+ this.$modal.msgSuccess("删除成功");
|
|
|
|
|
+ })
|
|
|
|
|
+ .catch(() => {});
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
|
|
+};
|
|
|
</script>
|
|
</script>
|
|
|
|
|
+<style scoped>
|
|
|
|
|
+.app-container {
|
|
|
|
|
+ width: 100%;
|
|
|
|
|
+ height: 100%;
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+}
|
|
|
|
|
+.left {
|
|
|
|
|
+ width: 15%;
|
|
|
|
|
+ height: 100%;
|
|
|
|
|
+ margin-right: 10px;
|
|
|
|
|
+ /* background: green; */
|
|
|
|
|
+}
|
|
|
|
|
+.deptTree {
|
|
|
|
|
+ width: 100%;
|
|
|
|
|
+ height: 90%;
|
|
|
|
|
+ /* background: pink; */
|
|
|
|
|
+}
|
|
|
|
|
+.right {
|
|
|
|
|
+ width: 83%;
|
|
|
|
|
+ height: 100%;
|
|
|
|
|
+ /* background: yellow; */
|
|
|
|
|
+}
|
|
|
|
|
+</style>
|