Compare commits

...

2 Commits

  1. 2
      src/components/TreeSelect/index.vue
  2. 18
      src/views/device_management/components/Move.vue
  3. 2
      src/views/device_management/index.vue
  4. 4
      src/views/ysjl/2000/2100/zbg/dj/edit.vue

2
src/components/TreeSelect/index.vue

@ -33,7 +33,7 @@ export default {
default: () => { default: () => {
return { return {
value: 'id', // ID value: 'id', // ID
label: 'title', // label: 'name', //
children: 'children' // children: 'children' //
} }
} }

18
src/views/device_management/components/Move.vue

@ -166,9 +166,9 @@ import TreeSelect from '@/components/TreeSelect'
// crudpresenter // crudpresenter
const defaultCrud = presenter(CRUD({ const defaultCrud = presenter(CRUD({
title: '领用、借用管理', title: '领用、借用管理',
url: '/move', url: '/move/list',
orderBy: ['id desc'], orderBy: ['id desc'],
crudMethod: { ...InstrumentMove } crudMethod: { ...InstrumentMove },
})) }))
// form // form
@ -180,7 +180,8 @@ const defaultForm = form({
applyDate: '', applyDate: '',
currentUserId: '', currentUserId: '',
currentDepartmentId: null, currentDepartmentId: null,
remark: '' remark: '',
instrumentId: null
}) })
// //
@ -210,21 +211,21 @@ export default {
data() { data() {
return { return {
dialogVisible: false, dialogVisible: false,
userList: this.$store.getters.allUserList, userList: this.$store.getters.allUser,
treeSelectProps: { treeSelectProps: {
children: 'children', children: 'children',
label: 'departmentName', label: 'name',
value: 'id' value: 'id'
}, },
colConfigs: [ colConfigs: [
{ prop: 'currentUserId', label: '当前使用人', align: 'center', formatter: this.formatter.formatterNickName }, { prop: 'currentUserId', label: '当前使用人', align: 'center', formatter: this.formatter.getChineseName },
{ {
prop: 'currentDepartmentId', prop: 'currentDepartmentId',
label: '当前使用科室', label: '当前使用科室',
align: 'center', align: 'center',
formatter: this.formatter.formatterDepartmentName formatter: this.formatter.formatterDepartmentName
}, },
{ prop: 'applicantId', label: '申请人', align: 'center', formatter: this.formatter.formatterNickName }, { prop: 'applicantId', label: '申请人', align: 'center', formatter: this.formatter.getChineseName },
{ {
prop: 'applyDepartmentId', prop: 'applyDepartmentId',
label: '申请科室', label: '申请科室',
@ -272,12 +273,13 @@ export default {
methods: { methods: {
// //
[CRUD.HOOK.beforeRefresh](crud) { [CRUD.HOOK.beforeRefresh](crud) {
crud.query.instrumentId = this.instrumentId crud.query.id = this.instrumentId
}, },
// //
[CRUD.HOOK.beforeToAdd](crud, form) { [CRUD.HOOK.beforeToAdd](crud, form) {
this.applyDepartmentId = 0 this.applyDepartmentId = 0
this.currentDepartmentId = 0 this.currentDepartmentId = 0
form.id = this.instrumentId
form.instrumentId = this.instrumentId form.instrumentId = this.instrumentId
}, },
// //

2
src/views/device_management/index.vue

@ -52,7 +52,7 @@
</crud> </crud>
</div> </div>
<!--表格内容--> <!--表格内容-->
<CustomTable ref="customTable" :col-configs="colConfigs" :columns="columns" :crud="crud" :row-class-name="getTableRowClassName"> <CustomTable ref="customTable" :col-configs="colConfigs" :selection="false" :columns="columns" :crud="crud" :row-class-name="getTableRowClassName">
<el-table-column slot="operation" align="center" width="100" label="操作"> <el-table-column slot="operation" align="center" width="100" label="操作">
<template slot-scope="scope"> <template slot-scope="scope">
<Edit :permission="permission" :data="scope.row" :disabled-edit="false" /> <Edit :permission="permission" :data="scope.row" :disabled-edit="false" />

4
src/views/ysjl/2000/2100/zbg/dj/edit.vue

@ -216,12 +216,12 @@
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="9"> <el-col :span="9">
<el-form-item label="工作压力" prop="shiyongyali"> <el-form-item label="使用压力" prop="shiyongyali">
<el-input v-model="param.shiyongyali" type="text" style="width: 120%;" disabled /> <el-input v-model="param.shiyongyali" type="text" style="width: 120%;" disabled />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="9"> <el-col :span="9">
<el-form-item label="工作温度" prop="shiyongwendu"> <el-form-item label="使用温度" prop="shiyongwendu">
<el-input v-model="param.shiyongwendu" type="text" style="width: 120%;" disabled> <el-input v-model="param.shiyongwendu" type="text" style="width: 120%;" disabled>
<template slot="append"> <template slot="append">
() ()

Loading…
Cancel
Save