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