Просмотр исходного кода

裂解炉炉管测压
- 测压表添加记录人字段
- 测压时记录登录人的人员账号信息

wangggziwen 1 год назад
Родитель
Сommit
3b62b1e0e3

+ 11 - 0
master/src/main/java/com/ruoyi/project/production/domain/TFurnancePressure.java

@@ -110,6 +110,17 @@ public class TFurnancePressure extends BaseEntity
     /** 图片地址 */
     private String photoUrl;
 
+    /** 记录人userId */
+    private Long recorder;
+
+    public Long getRecorder() {
+        return recorder;
+    }
+
+    public void setRecorder(Long recorder) {
+        this.recorder = recorder;
+    }
+
     public String getTeam() {
         return team;
     }

+ 20 - 0
master/src/main/java/com/ruoyi/project/system/controller/SysUserController.java

@@ -51,6 +51,16 @@ public class SysUserController extends BaseController
     @Autowired
     private TokenService tokenService;
 
+    /**
+     * 获取用户编号
+     */
+    @PreAuthorize("@ss.hasPermi('system:user:query')")
+    @GetMapping("/getUserId")
+    public AjaxResult getUserid()
+    {
+        return AjaxResult.success(getUserId());
+    }
+
     /**
      * 获取用户列表
      */
@@ -63,6 +73,16 @@ public class SysUserController extends BaseController
         return getDataTable(list);
     }
 
+    /**
+     * 获取用户列表(不分页)
+     */
+    @PreAuthorize("@ss.hasPermi('system:user:list')")
+    @GetMapping("/listNoPage")
+    public AjaxResult listNoPage(SysUser user)
+    {
+        return AjaxResult.success(userService.selectUserList(user));
+    }
+
     @GetMapping("/listUserPost")
     public List<SysUser> listUserPost(TStaffmgr tStaffmgr)
     {

+ 6 - 1
master/src/main/resources/mybatis/production/TFurnancePressureMapper.xml

@@ -33,10 +33,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <result property="status"    column="status"    />
         <result property="team"    column="team"    />
         <result property="photoUrl"    column="photo_url"    />
+        <result property="recorder"    column="recorder"    />
     </resultMap>
 
     <sql id="selectTFurnancePressureVo">
-        select d.id, d.team, d.photo_url, d.status, d.furnance_name, d.record_time, d.pass1, d.pass2, d.pass3, d.pass4, d.pass5, d.pass6, d.pass7, d.pass8, d.pass9, d.pass10, d.pass11, d.pass12, d.pass13, d.pass14, d.pass15, d.pass16, d.dept_id, d.del_flag, d.create_by, d.create_time, d.update_by, d.update_time from t_furnance_pressure d
+        select d.id, d.recorder, d.team, d.photo_url, d.status, d.furnance_name, d.record_time, d.pass1, d.pass2, d.pass3, d.pass4, d.pass5, d.pass6, d.pass7, d.pass8, d.pass9, d.pass10, d.pass11, d.pass12, d.pass13, d.pass14, d.pass15, d.pass16, d.dept_id, d.del_flag, d.create_by, d.create_time, d.update_by, d.update_time from t_furnance_pressure d
       left join sys_dept s on s.dept_id = d.dept_id
     </sql>
 
@@ -68,6 +69,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="status != null "> and status = #{status}</if>
             <if test="team != null "> and team = #{team}</if>
             <if test="photoUrl != null "> and photo_url = #{photoUrl}</if>
+            <if test="recorder != null and recorder != 0"> and recorder = #{recorder}</if>
             and d.del_flag = 0
         </where>
         <!-- 数据范围过滤 -->
@@ -126,6 +128,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="status != null">status,</if>
             <if test="team != null">team,</if>
             <if test="photoUrl != null">photo_url,</if>
+            <if test="recorder != null and recorder != 0">recorder,</if>
          </trim>
         <trim prefix="values (" suffix=")" suffixOverrides=",">
             <if test="id != null">#{id},</if>
@@ -156,6 +159,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="status != null">#{status},</if>
             <if test="team != null">#{team},</if>
             <if test="photoUrl != null">#{photoUrl},</if>
+            <if test="recorder != null and recorder != 0">#{recorder},</if>
          </trim>
     </insert>
 
@@ -189,6 +193,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="status != null">status = #{status},</if>
             <if test="team != null">team = #{team},</if>
             <if test="photoUrl != null">photo_url = #{photoUrl},</if>
+            <if test="recorder != null and recorder != 0">recorder = #{recorder},</if>
         </trim>
         where id = #{id}
     </update>

+ 17 - 0
ui/src/api/system/user.js

@@ -10,6 +10,14 @@ export function listUser(query) {
   })
 }
 
+export function listUserNoPage(query) {
+  return request({
+    url: '/system/user/listNoPage',
+    method: 'get',
+    params: query
+  })
+}
+
 export function listUserPost(query) {
   return request({
     url: '/system/user/listUserPost',
@@ -26,6 +34,7 @@ export function listUserByMgrRegion(query) {
     params: query
   })
 }
+
 // 查询用户详细
 export function getUser(userId) {
   return request({
@@ -34,6 +43,14 @@ export function getUser(userId) {
   })
 }
 
+// 获取用户编号
+export function getUserId() {
+  return request({
+    url: '/system/user/getUserId',
+    method: 'get'
+  })
+}
+
 // 新增用户
 export function addUser(data) {
   return request({

+ 25 - 3
ui/src/views/production/pressure/h109.vue

@@ -330,6 +330,16 @@
             </el-option>
           </el-select>
         </el-form-item>
+        <el-form-item label="记录人">
+          <el-select v-model="form.recorder" placeholder="请选择" size="small">
+            <el-option
+              v-for="item in userList"
+              :key="item.userId"
+              :label="item.nickName"
+              :value="item.userId">
+            </el-option>
+          </el-select>
+        </el-form-item>
         <el-form-item label="状态">
           <el-select v-model="form.status" placeholder="请选择" size="small" @change="handleChange">
             <el-option
@@ -516,6 +526,7 @@
   import { getToken } from "@/utils/auth";
   import Treeselect from "@riophae/vue-treeselect";
   import "@riophae/vue-treeselect/dist/vue-treeselect.css";
+  import { listUserNoPage, getUserId } from "@/api/system/user";
 
   export default {
     name: "Pressure",
@@ -613,6 +624,8 @@
         teamOptions: [],
         recordTimeYmd: null,
         recordTimeHms: null,
+        // 用户列表
+        userList: [],
       };
     },
     watch: {
@@ -634,11 +647,17 @@
       this.getDicts("TEAM_DIVIDE").then(response => {
         this.teamOptions = response.data;
       });
+      this.listUser();
     },
     methods: {
       init() {
         this.getList();
       },
+      listUser() {
+        listUserNoPage().then(response => {
+          this.userList = response.data;
+        });
+      },
       // 班值字典翻译
       teamFormat(row, column) {
         return this.selectDictLabel(this.teamOptions, row.team);
@@ -789,9 +808,12 @@
       /** 新增按钮操作 */
       handleAdd() {
         this.reset();
-        this.form.furnanceName = "H109";
-        this.open = true;
-        this.title = "添加裂解炉炉管测压";
+        getUserId().then(response => {
+          this.form.recorder = response.data;
+          this.form.furnanceName = "H109";
+          this.open = true;
+          this.title = "添加裂解炉炉管测压";
+        });
       },
       /** 修改按钮操作 */
       handleUpdate(row) {

+ 25 - 3
ui/src/views/production/pressure/h110.vue

@@ -234,6 +234,16 @@
             </el-option>
           </el-select>
         </el-form-item>
+        <el-form-item label="记录人">
+          <el-select v-model="form.recorder" placeholder="请选择" size="small">
+            <el-option
+              v-for="item in userList"
+              :key="item.userId"
+              :label="item.nickName"
+              :value="item.userId">
+            </el-option>
+          </el-select>
+        </el-form-item>
         <el-form-item label="状态">
           <el-select v-model="form.status" placeholder="请选择" size="small" @change="handleChange">
             <el-option
@@ -364,6 +374,7 @@
   import { getToken } from "@/utils/auth";
   import Treeselect from "@riophae/vue-treeselect";
   import "@riophae/vue-treeselect/dist/vue-treeselect.css";
+  import { listUserNoPage, getUserId } from "@/api/system/user";
 
   export default {
     name: "Pressure",
@@ -461,6 +472,8 @@
         teamOptions: [],
         recordTimeYmd: null,
         recordTimeHms: null,
+        // 用户列表
+        userList: [],
       };
     },
     watch: {
@@ -482,11 +495,17 @@
       this.getDicts("TEAM_DIVIDE").then(response => {
         this.teamOptions = response.data;
       });
+      this.listUser();
     },
     methods: {
       init() {
         this.getList();
       },
+      listUser() {
+        listUserNoPage().then(response => {
+          this.userList = response.data;
+        });
+      },
       // 班值字典翻译
       teamFormat(row, column) {
         return this.selectDictLabel(this.teamOptions, row.team);
@@ -629,9 +648,12 @@
       /** 新增按钮操作 */
       handleAdd() {
         this.reset();
-        this.form.furnanceName = "H110";
-        this.open = true;
-        this.title = "添加裂解炉炉管测压";
+        getUserId().then(response => {
+          this.form.recorder = response.data;
+          this.form.furnanceName = "H110";
+          this.open = true;
+          this.title = "添加裂解炉炉管测压";
+        });
       },
       /** 修改按钮操作 */
       handleUpdate(row) {

+ 25 - 3
ui/src/views/production/pressure/h111.vue

@@ -234,6 +234,16 @@
             </el-option>
           </el-select>
         </el-form-item>
+        <el-form-item label="记录人">
+          <el-select v-model="form.recorder" placeholder="请选择" size="small">
+            <el-option
+              v-for="item in userList"
+              :key="item.userId"
+              :label="item.nickName"
+              :value="item.userId">
+            </el-option>
+          </el-select>
+        </el-form-item>
         <el-form-item label="状态">
           <el-select v-model="form.status" placeholder="请选择" size="small" @change="handleChange">
             <el-option
@@ -364,6 +374,7 @@
   import { getToken } from "@/utils/auth";
   import Treeselect from "@riophae/vue-treeselect";
   import "@riophae/vue-treeselect/dist/vue-treeselect.css";
+  import { listUserNoPage, getUserId } from "@/api/system/user";
 
   export default {
     name: "Pressure",
@@ -461,6 +472,8 @@
         teamOptions: [],
         recordTimeYmd: null,
         recordTimeHms: null,
+        // 用户列表
+        userList: [],
       };
     },
     watch: {
@@ -482,11 +495,17 @@
       this.getDicts("TEAM_DIVIDE").then(response => {
         this.teamOptions = response.data;
       });
+      this.listUser();
     },
     methods: {
       init() {
         this.getList();
       },
+      listUser() {
+        listUserNoPage().then(response => {
+          this.userList = response.data;
+        });
+      },
       // 班值字典翻译
       teamFormat(row, column) {
         return this.selectDictLabel(this.teamOptions, row.team);
@@ -629,9 +648,12 @@
       /** 新增按钮操作 */
       handleAdd() {
         this.reset();
-        this.form.furnanceName = "H111";
-        this.open = true;
-        this.title = "添加裂解炉炉管测压";
+        getUserId().then(response => {
+          this.form.recorder = response.data;
+          this.form.furnanceName = "H111";
+          this.open = true;
+          this.title = "添加裂解炉炉管测压";
+        });
       },
       /** 修改按钮操作 */
       handleUpdate(row) {

+ 25 - 3
ui/src/views/production/pressure/h112.vue

@@ -234,6 +234,16 @@
             </el-option>
           </el-select>
         </el-form-item>
+        <el-form-item label="记录人">
+          <el-select v-model="form.recorder" placeholder="请选择" size="small">
+            <el-option
+              v-for="item in userList"
+              :key="item.userId"
+              :label="item.nickName"
+              :value="item.userId">
+            </el-option>
+          </el-select>
+        </el-form-item>
         <el-form-item label="状态">
           <el-select v-model="form.status" placeholder="请选择" size="small" @change="handleChange">
             <el-option
@@ -364,6 +374,7 @@
   import { getToken } from "@/utils/auth";
   import Treeselect from "@riophae/vue-treeselect";
   import "@riophae/vue-treeselect/dist/vue-treeselect.css";
+  import { listUserNoPage, getUserId } from "@/api/system/user";
 
   export default {
     name: "Pressure",
@@ -461,6 +472,8 @@
         teamOptions: [],
         recordTimeYmd: null,
         recordTimeHms: null,
+        // 用户列表
+        userList: [],
       };
     },
     watch: {
@@ -482,11 +495,17 @@
       this.getDicts("TEAM_DIVIDE").then(response => {
         this.teamOptions = response.data;
       });
+      this.listUser();
     },
     methods: {
       init() {
         this.getList();
       },
+      listUser() {
+        listUserNoPage().then(response => {
+          this.userList = response.data;
+        });
+      },
       // 班值字典翻译
       teamFormat(row, column) {
         return this.selectDictLabel(this.teamOptions, row.team);
@@ -629,9 +648,12 @@
       /** 新增按钮操作 */
       handleAdd() {
         this.reset();
-        this.form.furnanceName = "H112";
-        this.open = true;
-        this.title = "添加裂解炉炉管测压";
+        getUserId().then(response => {
+          this.form.recorder = response.data;
+          this.form.furnanceName = "H112";
+          this.open = true;
+          this.title = "添加裂解炉炉管测压";
+        });
       },
       /** 修改按钮操作 */
       handleUpdate(row) {

+ 25 - 3
ui/src/views/production/pressure/h113.vue

@@ -234,6 +234,16 @@
             </el-option>
           </el-select>
         </el-form-item>
+        <el-form-item label="记录人">
+          <el-select v-model="form.recorder" placeholder="请选择" size="small">
+            <el-option
+              v-for="item in userList"
+              :key="item.userId"
+              :label="item.nickName"
+              :value="item.userId">
+            </el-option>
+          </el-select>
+        </el-form-item>
         <el-form-item label="状态">
           <el-select v-model="form.status" placeholder="请选择" size="small" @change="handleChange">
             <el-option
@@ -364,6 +374,7 @@
   import { getToken } from "@/utils/auth";
   import Treeselect from "@riophae/vue-treeselect";
   import "@riophae/vue-treeselect/dist/vue-treeselect.css";
+  import { listUserNoPage, getUserId } from "@/api/system/user";
 
   export default {
     name: "Pressure",
@@ -461,6 +472,8 @@
         teamOptions: [],
         recordTimeYmd: null,
         recordTimeHms: null,
+        // 用户列表
+        userList: [],
       };
     },
     watch: {
@@ -482,11 +495,17 @@
       this.getDicts("TEAM_DIVIDE").then(response => {
         this.teamOptions = response.data;
       });
+      this.listUser();
     },
     methods: {
       init() {
         this.getList();
       },
+      listUser() {
+        listUserNoPage().then(response => {
+          this.userList = response.data;
+        });
+      },
       // 班值字典翻译
       teamFormat(row, column) {
         return this.selectDictLabel(this.teamOptions, row.team);
@@ -629,9 +648,12 @@
       /** 新增按钮操作 */
       handleAdd() {
         this.reset();
-        this.form.furnanceName = "H113";
-        this.open = true;
-        this.title = "添加裂解炉炉管测压";
+        getUserId().then(response => {
+          this.form.recorder = response.data;
+          this.form.furnanceName = "H113";
+          this.open = true;
+          this.title = "添加裂解炉炉管测压";
+        });
       },
       /** 修改按钮操作 */
       handleUpdate(row) {

+ 25 - 3
ui/src/views/production/pressure/h114.vue

@@ -234,6 +234,16 @@
             </el-option>
           </el-select>
         </el-form-item>
+        <el-form-item label="记录人">
+          <el-select v-model="form.recorder" placeholder="请选择" size="small">
+            <el-option
+              v-for="item in userList"
+              :key="item.userId"
+              :label="item.nickName"
+              :value="item.userId">
+            </el-option>
+          </el-select>
+        </el-form-item>
         <el-form-item label="状态">
           <el-select v-model="form.status" placeholder="请选择" size="small" @change="handleChange">
             <el-option
@@ -364,6 +374,7 @@
   import { getToken } from "@/utils/auth";
   import Treeselect from "@riophae/vue-treeselect";
   import "@riophae/vue-treeselect/dist/vue-treeselect.css";
+  import { listUserNoPage, getUserId } from "@/api/system/user";
 
   export default {
     name: "Pressure",
@@ -461,6 +472,8 @@
         teamOptions: [],
         recordTimeYmd: null,
         recordTimeHms: null,
+        // 用户列表
+        userList: [],
       };
     },
     watch: {
@@ -482,11 +495,17 @@
       this.getDicts("TEAM_DIVIDE").then(response => {
         this.teamOptions = response.data;
       });
+      this.listUser();
     },
     methods: {
       init() {
         this.getList();
       },
+      listUser() {
+        listUserNoPage().then(response => {
+          this.userList = response.data;
+        });
+      },
       // 班值字典翻译
       teamFormat(row, column) {
         return this.selectDictLabel(this.teamOptions, row.team);
@@ -629,9 +648,12 @@
       /** 新增按钮操作 */
       handleAdd() {
         this.reset();
-        this.form.furnanceName = "H114";
-        this.open = true;
-        this.title = "添加裂解炉炉管测压";
+        getUserId().then(response => {
+          this.form.recorder = response.data;
+          this.form.furnanceName = "H114";
+          this.open = true;
+          this.title = "添加裂解炉炉管测压";
+        });
       },
       /** 修改按钮操作 */
       handleUpdate(row) {

+ 25 - 3
ui/src/views/production/pressure/h115.vue

@@ -234,6 +234,16 @@
             </el-option>
           </el-select>
         </el-form-item>
+        <el-form-item label="记录人">
+          <el-select v-model="form.recorder" placeholder="请选择" size="small">
+            <el-option
+              v-for="item in userList"
+              :key="item.userId"
+              :label="item.nickName"
+              :value="item.userId">
+            </el-option>
+          </el-select>
+        </el-form-item>
         <el-form-item label="状态">
           <el-select v-model="form.status" placeholder="请选择" size="small" @change="handleChange">
             <el-option
@@ -364,6 +374,7 @@
   import { getToken } from "@/utils/auth";
   import Treeselect from "@riophae/vue-treeselect";
   import "@riophae/vue-treeselect/dist/vue-treeselect.css";
+  import { listUserNoPage, getUserId } from "@/api/system/user";
 
   export default {
     name: "Pressure",
@@ -461,6 +472,8 @@
         teamOptions: [],
         recordTimeYmd: null,
         recordTimeHms: null,
+        // 用户列表
+        userList: [],
       };
     },
     watch: {
@@ -482,11 +495,17 @@
       this.getDicts("TEAM_DIVIDE").then(response => {
         this.teamOptions = response.data;
       });
+      this.listUser();
     },
     methods: {
       init() {
         this.getList();
       },
+      listUser() {
+        listUserNoPage().then(response => {
+          this.userList = response.data;
+        });
+      },
       // 班值字典翻译
       teamFormat(row, column) {
         return this.selectDictLabel(this.teamOptions, row.team);
@@ -629,9 +648,12 @@
       /** 新增按钮操作 */
       handleAdd() {
         this.reset();
-        this.form.furnanceName = "H115";
-        this.open = true;
-        this.title = "添加裂解炉炉管测压";
+        getUserId().then(response => {
+          this.form.recorder = response.data;
+          this.form.furnanceName = "H115";
+          this.open = true;
+          this.title = "添加裂解炉炉管测压";
+        });
       },
       /** 修改按钮操作 */
       handleUpdate(row) {

+ 25 - 3
ui/src/views/production/pressure/h116.vue

@@ -234,6 +234,16 @@
             </el-option>
           </el-select>
         </el-form-item>
+        <el-form-item label="记录人">
+          <el-select v-model="form.recorder" placeholder="请选择" size="small">
+            <el-option
+              v-for="item in userList"
+              :key="item.userId"
+              :label="item.nickName"
+              :value="item.userId">
+            </el-option>
+          </el-select>
+        </el-form-item>
         <el-form-item label="状态">
           <el-select v-model="form.status" placeholder="请选择" size="small" @change="handleChange">
             <el-option
@@ -364,6 +374,7 @@
   import { getToken } from "@/utils/auth";
   import Treeselect from "@riophae/vue-treeselect";
   import "@riophae/vue-treeselect/dist/vue-treeselect.css";
+  import { listUserNoPage, getUserId } from "@/api/system/user";
 
   export default {
     name: "Pressure",
@@ -461,6 +472,8 @@
         teamOptions: [],
         recordTimeYmd: null,
         recordTimeHms: null,
+        // 用户列表
+        userList: [],
       };
     },
     watch: {
@@ -482,11 +495,17 @@
       this.getDicts("TEAM_DIVIDE").then(response => {
         this.teamOptions = response.data;
       });
+      this.listUser();
     },
     methods: {
       init() {
         this.getList();
       },
+      listUser() {
+        listUserNoPage().then(response => {
+          this.userList = response.data;
+        });
+      },
       // 班值字典翻译
       teamFormat(row, column) {
         return this.selectDictLabel(this.teamOptions, row.team);
@@ -629,9 +648,12 @@
       /** 新增按钮操作 */
       handleAdd() {
         this.reset();
-        this.form.furnanceName = "H116";
-        this.open = true;
-        this.title = "添加裂解炉炉管测压";
+        getUserId().then(response => {
+          this.form.recorder = response.data;
+          this.form.furnanceName = "H116";
+          this.open = true;
+          this.title = "添加裂解炉炉管测压";
+        });
       },
       /** 修改按钮操作 */
       handleUpdate(row) {

+ 25 - 3
ui/src/views/production/pressure/h117.vue

@@ -234,6 +234,16 @@
             </el-option>
           </el-select>
         </el-form-item>
+        <el-form-item label="记录人">
+          <el-select v-model="form.recorder" placeholder="请选择" size="small">
+            <el-option
+              v-for="item in userList"
+              :key="item.userId"
+              :label="item.nickName"
+              :value="item.userId">
+            </el-option>
+          </el-select>
+        </el-form-item>
         <el-form-item label="状态">
           <el-select v-model="form.status" placeholder="请选择" size="small" @change="handleChange">
             <el-option
@@ -364,6 +374,7 @@
   import { getToken } from "@/utils/auth";
   import Treeselect from "@riophae/vue-treeselect";
   import "@riophae/vue-treeselect/dist/vue-treeselect.css";
+  import { listUserNoPage, getUserId } from "@/api/system/user";
 
   export default {
     name: "Pressure",
@@ -461,6 +472,8 @@
         teamOptions: [],
         recordTimeYmd: null,
         recordTimeHms: null,
+        // 用户列表
+        userList: [],
       };
     },
     watch: {
@@ -482,11 +495,17 @@
       this.getDicts("TEAM_DIVIDE").then(response => {
         this.teamOptions = response.data;
       });
+      this.listUser();
     },
     methods: {
       init() {
         this.getList();
       },
+      listUser() {
+        listUserNoPage().then(response => {
+          this.userList = response.data;
+        });
+      },
       // 班值字典翻译
       teamFormat(row, column) {
         return this.selectDictLabel(this.teamOptions, row.team);
@@ -629,9 +648,12 @@
       /** 新增按钮操作 */
       handleAdd() {
         this.reset();
-        this.form.furnanceName = "H117";
-        this.open = true;
-        this.title = "添加裂解炉炉管测压";
+        getUserId().then(response => {
+          this.form.recorder = response.data;
+          this.form.furnanceName = "H117";
+          this.open = true;
+          this.title = "添加裂解炉炉管测压";
+        });
       },
       /** 修改按钮操作 */
       handleUpdate(row) {

+ 25 - 3
ui/src/views/production/pressure/h118.vue

@@ -234,6 +234,16 @@
             </el-option>
           </el-select>
         </el-form-item>
+        <el-form-item label="记录人">
+          <el-select v-model="form.recorder" placeholder="请选择" size="small">
+            <el-option
+              v-for="item in userList"
+              :key="item.userId"
+              :label="item.nickName"
+              :value="item.userId">
+            </el-option>
+          </el-select>
+        </el-form-item>
         <el-form-item label="状态">
           <el-select v-model="form.status" placeholder="请选择" size="small" @change="handleChange">
             <el-option
@@ -364,6 +374,7 @@
   import { getToken } from "@/utils/auth";
   import Treeselect from "@riophae/vue-treeselect";
   import "@riophae/vue-treeselect/dist/vue-treeselect.css";
+  import { listUserNoPage, getUserId } from "@/api/system/user";
 
   export default {
     name: "Pressure",
@@ -461,6 +472,8 @@
         teamOptions: [],
         recordTimeYmd: null,
         recordTimeHms: null,
+        // 用户列表
+        userList: [],
       };
     },
     watch: {
@@ -482,11 +495,17 @@
       this.getDicts("TEAM_DIVIDE").then(response => {
         this.teamOptions = response.data;
       });
+      this.listUser();
     },
     methods: {
       init() {
         this.getList();
       },
+      listUser() {
+        listUserNoPage().then(response => {
+          this.userList = response.data;
+        });
+      },
       // 班值字典翻译
       teamFormat(row, column) {
         return this.selectDictLabel(this.teamOptions, row.team);
@@ -629,9 +648,12 @@
       /** 新增按钮操作 */
       handleAdd() {
         this.reset();
-        this.form.furnanceName = "H118";
-        this.open = true;
-        this.title = "添加裂解炉炉管测压";
+        getUserId().then(response => {
+          this.form.recorder = response.data;
+          this.form.furnanceName = "H118";
+          this.open = true;
+          this.title = "添加裂解炉炉管测压";
+        });
       },
       /** 修改按钮操作 */
       handleUpdate(row) {

+ 25 - 3
ui/src/views/production/pressure/h130.vue

@@ -286,6 +286,16 @@
             </el-option>
           </el-select>
         </el-form-item>
+        <el-form-item label="记录人">
+          <el-select v-model="form.recorder" placeholder="请选择" size="small">
+            <el-option
+              v-for="item in userList"
+              :key="item.userId"
+              :label="item.nickName"
+              :value="item.userId">
+            </el-option>
+          </el-select>
+        </el-form-item>
         <el-form-item label="状态">
           <el-select v-model="form.status" placeholder="请选择" size="small" @change="handleChange">
             <el-option
@@ -436,6 +446,7 @@
   import { getToken } from "@/utils/auth";
   import Treeselect from "@riophae/vue-treeselect";
   import "@riophae/vue-treeselect/dist/vue-treeselect.css";
+  import { listUserNoPage, getUserId } from "@/api/system/user";
 
   export default {
     name: "Pressure",
@@ -533,6 +544,8 @@
         teamOptions: [],
         recordTimeYmd: null,
         recordTimeHms: null,
+        // 用户列表
+        userList: [],
       };
     },
     watch: {
@@ -554,11 +567,17 @@
       this.getDicts("TEAM_DIVIDE").then(response => {
         this.teamOptions = response.data;
       });
+      this.listUser();
     },
     methods: {
       init() {
         this.getList();
       },
+      listUser() {
+        listUserNoPage().then(response => {
+          this.userList = response.data;
+        });
+      },
       // 班值字典翻译
       teamFormat(row, column) {
         return this.selectDictLabel(this.teamOptions, row.team);
@@ -701,9 +720,12 @@
       /** 新增按钮操作 */
       handleAdd() {
         this.reset();
-        this.form.furnanceName = "H130";
-        this.open = true;
-        this.title = "添加裂解炉炉管测压";
+        getUserId().then(response => {
+          this.form.recorder = response.data;
+          this.form.furnanceName = "H130";
+          this.open = true;
+          this.title = "添加裂解炉炉管测压";
+        });
       },
       /** 修改按钮操作 */
       handleUpdate(row) {