|
|
|
@ -104,7 +104,7 @@ |
|
|
|
|
:labelCol="labelCol" |
|
|
|
|
:wrapperCol="wrapperCol" |
|
|
|
|
label="缩写"> |
|
|
|
|
<a-input placeholder="请输入手机号" v-decorator="['departNameAbbr', validatorRules.departNameAbbr ]"/> |
|
|
|
|
<a-input placeholder="请输入缩写" v-decorator="['departNameAbbr', validatorRules.departNameAbbr ]"/> |
|
|
|
|
</a-form-item> |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -114,7 +114,7 @@ |
|
|
|
|
label="部门编码"> |
|
|
|
|
<a-input disabled placeholder="请输入部门编码" v-decorator="['orgCode', validatorRules.orgCode ]"/> |
|
|
|
|
</a-form-item> |
|
|
|
|
<template v-if="orgTypeDisabled"> |
|
|
|
|
<!--<template v-if="orgTypeDisabled">--> |
|
|
|
|
<a-form-item |
|
|
|
|
:labelCol="labelCol" |
|
|
|
|
:wrapperCol="wrapperCol" |
|
|
|
@ -155,7 +155,7 @@ |
|
|
|
|
<!--</a-radio-group>--> |
|
|
|
|
<!--</template>--> |
|
|
|
|
</a-form-item> |
|
|
|
|
</template> |
|
|
|
|
<!--</template>--> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<template v-if="orgTypeDisabled"> |
|
|
|
@ -468,7 +468,7 @@ |
|
|
|
|
console.log('selected', selectedKeys, e) |
|
|
|
|
this.hiding = false |
|
|
|
|
let record = e.node.dataRef |
|
|
|
|
console.log('onSelect-record', record) |
|
|
|
|
console.log('onSelect-record-3', record) |
|
|
|
|
this.currSelected = Object.assign({}, record) |
|
|
|
|
this.model = this.currSelected |
|
|
|
|
this.selectedKeys = [record.key] |
|
|
|
@ -491,8 +491,10 @@ |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
this.$nextTick(() => { |
|
|
|
|
//this.form.getFieldDecorator('departNameAbbr', {initialValue: ''}) |
|
|
|
|
// this.form.getFieldDecorator('fax', {initialValue: ''}) |
|
|
|
|
// this.form.getFieldDecorator('fax', {initialValue: ''}) |
|
|
|
|
this.form.setFieldsValue(pick(record, 'departName','orgCategory', 'orgCode', 'departOrder', 'mobile', 'fax', 'address', 'memo')) |
|
|
|
|
this.form.setFieldsValue(pick(record, 'departName','departNameEn','departNameAbbr','orgCategory', 'orgCode', 'departOrder', 'mobile', 'address', 'memo')) |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
getCurrSelectedTitle() { |
|
|
|
|