|
@@ -106,6 +106,14 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
+
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="分管领导" prop="administrator">
|
|
|
+ <!--<UserSelectSignatory size="medium" :readonly="true" :limit='1' :value="inputForm.administrator"></UserSelectSignatory>-->
|
|
|
+ <UserSelect size="medium" :readonly="true" :limit='1' :value="inputForm.administrator" @getValue='(value) => {inputForm.administrator = value}'></UserSelect>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
</el-row>
|
|
|
|
|
|
</el-form>
|
|
@@ -119,6 +127,8 @@
|
|
|
<script>
|
|
|
import SelectTree from '@/components/treeSelect/treeSelect.vue'
|
|
|
import OfficeService from '@/api/sys/OfficeService'
|
|
|
+ import UserSelectSignatory from '@/views/modules/cw/workClientInfo/clientUserSelect'
|
|
|
+ import UserSelect from '@/components/userSelect'
|
|
|
export default {
|
|
|
data () {
|
|
|
return {
|
|
@@ -147,12 +157,15 @@
|
|
|
fax: '', // 传真
|
|
|
email: '', // 邮箱
|
|
|
useable: '', // 是否可用
|
|
|
- isPublic: '' // 是否公有
|
|
|
+ isPublic: '', // 是否公有
|
|
|
+ administrator: '' // 分管领导
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
components: {
|
|
|
- SelectTree
|
|
|
+ SelectTree,
|
|
|
+ UserSelectSignatory,
|
|
|
+ UserSelect
|
|
|
},
|
|
|
officeService: null,
|
|
|
created () {
|
|
@@ -176,6 +189,7 @@
|
|
|
this.inputForm.id = obj.id
|
|
|
this.inputForm.parent.id = obj.parent.id
|
|
|
this.inputForm.parent.name = obj.parent.name
|
|
|
+
|
|
|
if (method === 'edit' || method === 'view') { // 修改或者查看
|
|
|
this.loading = true
|
|
|
this.officeService.queryById(this.inputForm.id).then(({data}) => {
|
|
@@ -190,6 +204,7 @@
|
|
|
this.$refs['inputForm'].validate((valid) => {
|
|
|
if (valid) {
|
|
|
this.loading = true
|
|
|
+ console.log(this.inputForm)
|
|
|
this.officeService.save(this.inputForm).then(({data}) => {
|
|
|
this.loading = false
|
|
|
this.$message({
|
|
@@ -208,6 +223,7 @@
|
|
|
getValue (value) {
|
|
|
this.inputForm.parent.id = value
|
|
|
this.inputForm.isPublic = ''
|
|
|
+ this.inputForm.administrator = ''
|
|
|
}
|
|
|
}
|
|
|
}
|