diff --git a/pc4mobx/organization/apis/qtxConfig.js b/pc4mobx/organization/apis/qtxConfig.js
new file mode 100644
index 0000000..0424d9c
--- /dev/null
+++ b/pc4mobx/organization/apis/qtxConfig.js
@@ -0,0 +1,9 @@
+import { WeaTools } from 'ecCom';
+
+
+export const getQtxConfigInfo = (params) => {
+ return WeaTools.callApi('/api/bs/hrmorganization/config/selectConfigInfo', 'GET', params);
+}
+export const saveQtxConfigInfo = (params) => {
+ return WeaTools.callApi('/api/bs/hrmorganization/config/saveConfigInfo', 'POST', params);
+ }
\ No newline at end of file
diff --git a/pc4mobx/organization/apis/quickSearch.js b/pc4mobx/organization/apis/quickSearch.js
new file mode 100644
index 0000000..7c5e5fb
--- /dev/null
+++ b/pc4mobx/organization/apis/quickSearch.js
@@ -0,0 +1,16 @@
+import {
+ WeaTools
+} from 'ecCom';
+
+export const saveQuickSearchInfo = (params) => {
+ return WeaTools.callApi(`/api/bs/hrmorganization/quicksearch/saveQuickSearchInfo`, 'POST', params);
+}
+
+export const saveQuickSearchDetailInfo = (params) => {
+ return WeaTools.callApi(`/api/bs/hrmorganization/quicksearch/saveQuickSearchDetailInfo`, 'POST', params);
+}
+
+export const getQuickSearchInfo = (params) => WeaTools.callApi(`/api/bs/hrmorganization/quicksearch/getQuickSearchInfo`, 'GET', params);
+
+export const getQuickSearchDetailInfo = (params) => WeaTools.callApi(`/api/bs/hrmorganization/quicksearch/getQuickSearchDetailInfo`, 'GET', params);
+
diff --git a/pc4mobx/organization/apis/resource.js b/pc4mobx/organization/apis/resource.js
index f4c16ee..d8a8aeb 100644
--- a/pc4mobx/organization/apis/resource.js
+++ b/pc4mobx/organization/apis/resource.js
@@ -31,6 +31,11 @@ export const getHasRight = (params) => {
return WeaTools.callApi('/api/bs/hrmorganization/hrmresource/getHasRight', 'GET', params);
}
+export const getQuickSearchCondition = (params) => {
+ return WeaTools.callApi('/api/bs/hrmorganization/quicksearch/getQuickSearchCondition', 'GET', params);
+}
+
+
export const editResource = (params) => {
return WeaTools.callApi('/api/bs/hrmorganization/hrmresource/updateForm', 'POST', params);
}
diff --git a/pc4mobx/organization/components/company/CompanyExtend.js b/pc4mobx/organization/components/company/CompanyExtend.js
index 9ae029f..ab0ccab 100644
--- a/pc4mobx/organization/components/company/CompanyExtend.js
+++ b/pc4mobx/organization/components/company/CompanyExtend.js
@@ -1,7 +1,7 @@
/**
* @Author: 程亮
* @Date: 2022-05-18 14:52:39
- * @LastEditTime: 2023-07-26 18:59:02
+ * @LastEditTime: 2023-08-04 16:52:47
* @Description:
* @FilePath: /trunk/src4js/pc4mobx/organization/components/company/CompanyExtend.js
*/
@@ -28,11 +28,16 @@ import AttachToNumberField from "../NewNumberField";
export default class CompanyExtend extends React.Component {
componentDidMount() {
- this.init();
+ this.handleHashChange();
+ window.addEventListener('hashchange', this.handleHashChange);
}
- init = () => {
+
+ componentWillUnmount() {
+ window.removeEventListener('hashchange', this.handleHashChange);
+ }
+
+ handleHashChange = () => {
const { companyExtend, company } = this.props;
- //const {id} = company;
let { hash } = window.location;
hash = hash.split("?")[0];
let id = hash.match("[^/]+(?=/$|$)")[0];
@@ -129,7 +134,7 @@ export default class CompanyExtend extends React.Component {
labelCol={{ span: `${field.labelcol}` }}
wrapperCol={{ span: `${field.fieldcol}` }}>
- {field.domkey[0] == 'subcompanycode' && }
+ {field.domkey[0] == 'subcompanycode' && isEditor &&}
),
colSpan: 1
});
@@ -231,7 +236,7 @@ export default class CompanyExtend extends React.Component {
}
backCard = () => {
- this.init();
+ this.handleHashChange();
}
view = () => {
diff --git a/pc4mobx/organization/components/company/company.js b/pc4mobx/organization/components/company/company.js
index 6ea1f48..3cf53da 100644
--- a/pc4mobx/organization/components/company/company.js
+++ b/pc4mobx/organization/components/company/company.js
@@ -1,7 +1,7 @@
/**
* @Author: 程亮
* @Date: 2022-05-18 16:23:32
- * @LastEditTime: 2023-07-26 18:41:11
+ * @LastEditTime: 2023-08-08 11:23:40
* @Description:
* @FilePath: /trunk/src4js/pc4mobx/organization/components/company/company.js
*/
@@ -26,7 +26,7 @@ import {
Button,
message,
Switch,
- Menu, Dropdown, Icon,Tooltip
+ Menu, Dropdown, Icon, Tooltip
} from 'antd'
import {
WeaSwitch,
@@ -43,7 +43,7 @@ import NewAndEditDialog from '../NewAndEditDialog';
import NewWeaTable from '../NewWeaTableDialog';
import { renderNoright } from '../../util';
import {
- CompanyExtendStore
+ CompanyExtendStore
} from '../../stores/companyextend';
const companyExtend = new CompanyExtendStore();
@@ -343,9 +343,9 @@ export default class Company extends React.Component {
c.className = "wea-table-indent"
c.render = function (text, record) {
return {
- window.open(`/spa/organization/static/index.html#/main/organization/companyExtend/${record.id}`, "_blank")
- }}>{text}
-
+ window.open(`/spa/organization/static/index.html#/main/organization/companyExtend/${record.id}`, "_blank")
+ }}>{text}
+
}
}
if (c.dataIndex == 'operate') {
@@ -354,25 +354,25 @@ export default class Company extends React.Component {
c.render = function (text, record) {
const menu = (