|
@@ -132,7 +132,8 @@ const ContactPerson = React.createClass({
|
|
|
return (
|
|
|
!this.props.isCustomerAdmin && (
|
|
|
<div>
|
|
|
- {adminData.isSuperAdmin || !record.id ? (
|
|
|
+ {/* 禁止管理员删除联系人 */}
|
|
|
+ {/* {adminData.isSuperAdmin || !record.id ? (
|
|
|
<Popconfirm
|
|
|
title="是否删除?"
|
|
|
onConfirm={(e) => {
|
|
@@ -154,7 +155,7 @@ const ContactPerson = React.createClass({
|
|
|
</Popconfirm>
|
|
|
) : (
|
|
|
""
|
|
|
- )}
|
|
|
+ )} */}
|
|
|
{record.major != 1 ? (
|
|
|
<Button
|
|
|
style={{
|
|
@@ -324,16 +325,13 @@ const ContactPerson = React.createClass({
|
|
|
addcontactModul: true,
|
|
|
});
|
|
|
},
|
|
|
+ //
|
|
|
componentWillMount() {
|
|
|
+ const { data } = this.props
|
|
|
this.contactLists(this.props.data.id);
|
|
|
this.setState({
|
|
|
name: this.props.name,
|
|
|
- locationProvince:
|
|
|
- this.props.data.province +
|
|
|
- "-" +
|
|
|
- this.props.data.city +
|
|
|
- "-" +
|
|
|
- this.props.data.area,
|
|
|
+ locationProvince: (data.province || "") + (!data.city ? "" : "-") + (data.city || "") + (!data.area ? "" : "-") + (data.area || ""),
|
|
|
introduction: this.props.data.introduction,
|
|
|
type: this.props.data.type,
|
|
|
});
|