|
|
|
@ -1,7 +1,8 @@ |
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
<basic-container> |
|
|
|
<basic-container> |
|
|
|
<avue-form :option="option1" v-model="form" @tab-click="handleTabClick" @submit="handleSubmit" @row-del="handleDelete"> |
|
|
|
<avue-form :option="option1" v-model="form" @tab-click="handleTabClick" @submit="handleSubmit" |
|
|
|
|
|
|
|
@row-del="handleDelete"> |
|
|
|
<template slot-scope="{disabled,size}" slot="realName"> |
|
|
|
<template slot-scope="{disabled,size}" slot="realName"> |
|
|
|
<div style="display: flex;"> |
|
|
|
<div style="display: flex;"> |
|
|
|
<el-input style="width: 600px;" :disabled="nameDisabled" :size="size" v-model="form.realName" |
|
|
|
<el-input style="width: 600px;" :disabled="nameDisabled" :size="size" v-model="form.realName" |
|
|
|
@ -16,6 +17,11 @@ |
|
|
|
<el-button style="margin-left: 10px;" type="primary" @click="changePhone">修改</el-button> |
|
|
|
<el-button style="margin-left: 10px;" type="primary" @click="changePhone">修改</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
<template slot-scope="{disabled,size}" slot="deptName"> |
|
|
|
|
|
|
|
<div style="display: flex;"> |
|
|
|
|
|
|
|
<el-input style="width: 600px;" disabled :size="size" v-model="deptName" placeholder="请输入所属实验室"></el-input> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</template> |
|
|
|
<template slot-scope="{disabled,size}" slot="address"> |
|
|
|
<template slot-scope="{disabled,size}" slot="address"> |
|
|
|
<div style="display: flex;"> |
|
|
|
<div style="display: flex;"> |
|
|
|
<el-input style="width: 600px;" :disabled="positionDisabled" :size="size" v-model="form.address" |
|
|
|
<el-input style="width: 600px;" :disabled="positionDisabled" :size="size" v-model="form.address" |
|
|
|
@ -32,7 +38,7 @@ |
|
|
|
<script> |
|
|
|
<script> |
|
|
|
import mapSel from "@/components/mapSel/index.vue"; |
|
|
|
import mapSel from "@/components/mapSel/index.vue"; |
|
|
|
import option from "@/option/user/info"; |
|
|
|
import option from "@/option/user/info"; |
|
|
|
import { getUserInfo,updateInfo,getInvoiceList,addInvoice } from "@/api/system/user"; |
|
|
|
import { getUserInfo, updateInfo, getInvoiceList, addInvoice, getDeptName } from "@/api/system/user"; |
|
|
|
import md5 from 'js-md5'; |
|
|
|
import md5 from 'js-md5'; |
|
|
|
import func from "@/util/func"; |
|
|
|
import func from "@/util/func"; |
|
|
|
import { mapGetters } from "vuex"; |
|
|
|
import { mapGetters } from "vuex"; |
|
|
|
@ -59,7 +65,8 @@ export default { |
|
|
|
infoPosition: { lng: '', lat: '' }, |
|
|
|
infoPosition: { lng: '', lat: '' }, |
|
|
|
isMarker: false, |
|
|
|
isMarker: false, |
|
|
|
point: '', |
|
|
|
point: '', |
|
|
|
option1:{} |
|
|
|
option1: {}, |
|
|
|
|
|
|
|
deptName: '' |
|
|
|
}; |
|
|
|
}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
computed: { |
|
|
|
@ -74,8 +81,27 @@ export default { |
|
|
|
this.option1 = option |
|
|
|
this.option1 = option |
|
|
|
} |
|
|
|
} |
|
|
|
this.handleWitch(); |
|
|
|
this.handleWitch(); |
|
|
|
|
|
|
|
console.log(9999,this.userInfo.dataType) |
|
|
|
|
|
|
|
if (this.userInfo.dataType == 1) { |
|
|
|
|
|
|
|
this.getDeptName() |
|
|
|
|
|
|
|
let column = this.findObject(this.option.group[0].column, "deptName"); |
|
|
|
|
|
|
|
column.display=true |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
|
|
|
|
// 根据部门id查询部门名字 |
|
|
|
|
|
|
|
getDeptName() { |
|
|
|
|
|
|
|
let query = { |
|
|
|
|
|
|
|
deptId: this.userInfo.dept_id |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getDeptName(query).then(res => { |
|
|
|
|
|
|
|
this.deptName = res.data.data |
|
|
|
|
|
|
|
}).catch(err => { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
}, |
|
|
|
// 点击修改负责人姓名按钮 |
|
|
|
// 点击修改负责人姓名按钮 |
|
|
|
changeRealName() { |
|
|
|
changeRealName() { |
|
|
|
this.nameDisabled = false |
|
|
|
this.nameDisabled = false |
|
|
|
|