-
-
{data.user.email}
-
-
{data.user.phone}
+ !this.isEmptyObject(data) &&
+
+
+
+

+
+
{data.user.name}
+ {data.user.sex == 0 ? : }
+
+
+
+
+
+
+
+
+
+
+ {data.user.email}
+
+ {data.user.phone}
+
+
+ 账号类型:
+ {data.user.belongTo}
+ 状态:
+ {data.user.status}
+
+
-
-
账号类型:
-
{data.user.belongTo}
-
状态:
-
{data.user.status}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
流程总数
+
{ window.open(`/spa/workflow/static/index.html#/main/workflow/listDoing?resourceid=${data.user.id}`) }}>{data.statistical.workflowCount}
+
+
+
+
+
+
文档总数
+
{ window.open(`/spa/document/static/index.html#/main/document/search?viewcondition=2&doccreaterid=${data.user.id}`) }}>{data.statistical.docCount}
+
+
+
+
+
+
我的客户
+
{ window.open(`/spa/crm/static/index.html#/main/crm/customer/hrmView?searchHrmId=${data.user.id}`) }}>{data.statistical.cusCount}
+
+
+
+
+
+
我的协作
+
{ window.open(`/spa/cowork/static/index.html#/main/cowork/hrmview?searchHrmid=${data.user.id}`) }}>{data.statistical.collaborationCount}
+
+
+
+
+
+
微博总数
+
{ window.open(`/spa/blog/static/index.html#/user/${data.user.id}`) }}>{data.statistical.weiboCount}
+
+
+
+
+ {
+ data.formItems.map((item, index) => {
+ return (
+
+ )
+ })
+ }
+ {
+ data.iframeList.map((item, index) => {
+ return (
+
+ )
+ })
+ }
-
-
-
-
-
-
-
+
-
-
-
-
-
-
-
流程总数
-
{window.open(`/spa/workflow/static/index.html#/main/workflow/listDoing?resourceid=${data.user.id}`)}}>{data.statistical.workflowCount}
-
-
-
-
-
-
文档总数
-
{window.open(`/spa/document/static/index.html#/main/document/search?viewcondition=2&doccreaterid=${data.user.id}`)}}>{data.statistical.docCount}
-
-
-
-
-
-
我的客户
-
{window.open(`/spa/crm/static/index.html#/main/crm/customer/hrmView?searchHrmId=${data.user.id}`)}}>{data.statistical.cusCount}
-
-
-
-
-
-
我的协作
-
{window.open(`/spa/cowork/static/index.html#/main/cowork/hrmview?searchHrmid=${data.user.id}`)}}>{data.statistical.collaborationCount}
-
-
-
-
-
-
微博总数
-
{window.open(`/spa/blog/static/index.html#/user/${data.user.id}`)}}>{data.statistical.weiboCount}
-
-
-
-
- {
- data.formItems.map((item,index)=>{
- return(
-
- )
- })
- }
- {
- iframeList.map((item,index) => {
- return(
-
- )
- })
- }
-
-
-
-
-
-
-
-
+
+
)
}
diff --git a/pc4mobx/organization/components/resource/ResourceExtend.js b/pc4mobx/organization/components/resource/ResourceExtend.js
index a241998..6862342 100644
--- a/pc4mobx/organization/components/resource/ResourceExtend.js
+++ b/pc4mobx/organization/components/resource/ResourceExtend.js
@@ -1,7 +1,7 @@
/**
* @Author: 程亮
* @Date: 2022-06-20 14:59:21
- * @LastEditTime: 2022-06-21 18:05:35
+ * @LastEditTime: 2022-10-18 11:18:05
* @Description:
* @FilePath: /trunk/src4js/pc4mobx/organization/components/resource/ResourceExtend.js
*/
@@ -159,23 +159,7 @@
key: 'save',
onClick: key => {
this.saveEditCard();
- }
- }, {
- icon:
,
- content: i18n.button.back(),
- key: 'back',
- onClick: key => {
- this.backCard();
- }
- }]
- } else {
- arr = [{
- icon:
,
- content: i18n.button.modify(),
- key: 'editCard',
- onClick: key => {
- this.editCard();
- }
+ }
}
]
}
@@ -188,37 +172,19 @@
const { resourceExtend } = this.props;
const { isEditor, buttons } = resourceExtend;
const save =
;
- const back =
;
- const edit =
;
const btns = [];
- try {
- if (isEditor) {
- if (buttons.hasSave) {
- btns.push(save);
- btns.push(back);
- }
- } else {
- if (buttons.hasEdit) {
- btns.push(edit);
- }
- }
- } catch (e) { }
+ btns.push(save);
return btns;
}
- editCard = () => {
- const { resourceExtend } = this.props;
- resourceExtend.edit();
- }
+
saveEditCard = () => {
const { resourceExtend } = this.props;
resourceExtend.save();
}
- backCard = () => {
- this.init();
- }
+
changeData(key) {
const {
diff --git a/pc4mobx/organization/components/resource/resource.js b/pc4mobx/organization/components/resource/resource.js
index 2914f81..c2b9d7f 100644
--- a/pc4mobx/organization/components/resource/resource.js
+++ b/pc4mobx/organization/components/resource/resource.js
@@ -101,12 +101,22 @@ export default class Resource extends React.Component {
inputLeftDom={`
${i18n.label.organization()}`}
treeNodeClick={this.treeNodeClick}
expandAllChildrenOnSearch={true}
+ renderNode={item => this.renderNode(item)}
/>
)
return tree;
}
+ renderNode(item) {
+ return
+
+ {item.name}
+ {item.canceled && ({i18n.label.forbidden()})}
+
+ }
+
+
getTopMenuBtns() {
const {
resource
@@ -192,42 +202,6 @@ export default class Resource extends React.Component {
datasImport.getImportForm();
}
-
- batchDelete() {
- const {
- resource
- } = this.props;
- const {
- tableStore
- } = resource;
-
- let keys = toJS(tableStore.selectedRowKeys).toString();
- resource.setIds(keys);
- this.showConfirm('batchDel');
- }
- showConfirm(v) {
- let _this = this;
- confirm({
- title: i18n.confirm.defaultTitle(),
- content: (v == 'del') ? i18n.confirm.delete() : i18n.confirm.batchDeleteConfirm(),
- okText: i18n.button.ok(),
- cancelText: i18n.button.cancel(),
- onOk() {
- _this.onOk();
- },
- onCancel() {
- return false;
- },
- });
- }
- onOk() {
- const {
- resource
- } = this.props;
- resource.delete();
- }
-
-
getDropMenuDatas() {
const {
resource
@@ -309,50 +283,25 @@ export default class Resource extends React.Component {
if (c.dataIndex == 'last_name') {
c.render = function (text, record) {
return
{
- window.open(`/spa/organization/static/index.html#/main/organization/ResourceExtend/${record.id}`, "_blank")
+ window.open(`/spa/organization/static/index.html#/main/organization/resourceCard/${record.id}`);
}}>{text}
}
}
})
}
- updateForbiddenTag(checked, id) {
- const {
- resource
- } = this.props;
- resource.updateForbiddenTag(checked, id);
- }
onOperatesClick(record, rowIndex, operate) {
const {
index
} = operate;
- (index == '0') && this.doEdit(record.randomFieldId);
- (index == '1') && this.doDel(record.randomFieldId);
-
+ (index == '0') && this.view(record.randomFieldId);
}
- doEdit(id) {
- const {
- resource
- } = this.props;
-
- resource.setNeDialogTitle(i18n.label.editRankScheme());
- resource.setSchemeId(id);
- resource.setIsNew(false);
- resource.setVisible(true);
- resource.getForm();
+ view(id) {
+ window.open(`/spa/organization/static/index.html#/main/organization/resourceCard/${id}`);
}
- doDel(id) {
- const {
- resource
- } = this.props;
- resource.setIds(id);
- this.showConfirm('del');
- }
-
-
handleSave() {
const {
resource
@@ -426,8 +375,6 @@ export default class Resource extends React.Component {
}
-
-
render() {
const {
@@ -495,7 +442,7 @@ export default class Resource extends React.Component {
conditionLen={3}
save={() => this.handleSave()}
onCancel={() => resource.setVisible(false)}
- saveAndSetting={() => this.handleSaveAndSetting()}
+ // saveAndSetting={() => this.handleSaveAndSetting()}
/>
diff --git a/pc4mobx/organization/images/workflow.jpg b/pc4mobx/organization/images/workflow.jpg
index dc930674e861cebc925ed46419d343e9dd7fc008..94565f4b1186e5dc04159d64381db9ab09d87687 100644
GIT binary patch
literal 33032
zcmeFZdsvd`+BZz&8l9O+n>J&msI8_