修复扩展页面
This commit is contained in:
parent
aa77770e09
commit
5cce357d78
|
|
@ -241,7 +241,7 @@ export default class ResourceCard extends React.Component {
|
|||
{
|
||||
data.buttons.slice(0,3).map((item,index) => {
|
||||
return (
|
||||
<Button className='item' onClick={() => { window.location.href = item.url.replaceAll("${id}",data.user.id)}}>{item.name}</Button>
|
||||
<Button className='item' onClick={() => { window.open(item.url.replaceAll("${id}",data.user.id),"_self")}}>{item.name}</Button>
|
||||
)
|
||||
})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -79,7 +79,8 @@ export class CompanyExtendStore {
|
|||
editResource = () => {
|
||||
let pDatas = this.form.getFormParams();
|
||||
Api.editResource({ ...{
|
||||
id: this.id
|
||||
id: this.id,
|
||||
viewCondition:this.selectedKey
|
||||
},
|
||||
...pDatas,
|
||||
...this.getTableEditParams()
|
||||
|
|
@ -119,6 +120,7 @@ export class CompanyExtendStore {
|
|||
|
||||
getData = () => {
|
||||
this.setLoading(true);
|
||||
this.form = new WeaForm();
|
||||
let params = {
|
||||
viewAttr: this.isEditor ? 2 : 1,
|
||||
id: this.id,
|
||||
|
|
|
|||
|
|
@ -78,7 +78,8 @@ export class DepartmentExtendStore {
|
|||
editResource = () => {
|
||||
let pDatas = this.form.getFormParams();
|
||||
Api.editResource({ ...{
|
||||
id: this.id
|
||||
id: this.id,
|
||||
viewCondition:this.selectedKey
|
||||
},
|
||||
...pDatas,
|
||||
...this.getTableEditParams()
|
||||
|
|
@ -118,6 +119,7 @@ export class DepartmentExtendStore {
|
|||
|
||||
getData = () => {
|
||||
this.setLoading(true);
|
||||
this.form = new WeaForm();
|
||||
let params = {
|
||||
viewAttr: this.isEditor ? 2 : 1,
|
||||
id: this.id,
|
||||
|
|
|
|||
|
|
@ -81,7 +81,8 @@ export class JobExtendStore {
|
|||
let pDatas = this.form.getFormParams();
|
||||
Api.editResource({
|
||||
...{
|
||||
id: this.id
|
||||
id: this.id,
|
||||
viewCondition:this.selectedKey
|
||||
},
|
||||
...pDatas,
|
||||
...this.getTableEditParams()
|
||||
|
|
@ -121,10 +122,11 @@ export class JobExtendStore {
|
|||
|
||||
getData = () => {
|
||||
this.setLoading(true);
|
||||
this.form = new WeaForm();
|
||||
let params = {
|
||||
viewAttr: this.isEditor ? 2 : 1,
|
||||
id: this.id,
|
||||
viewCondition: this.selectedKey
|
||||
viewCondition: this.selectedKey,
|
||||
}
|
||||
Api.getJobExtendForm(params).then((res) => {
|
||||
if (res.code === 200) {
|
||||
|
|
|
|||
|
|
@ -78,14 +78,16 @@ export class ResourceExtendStore {
|
|||
editResource = () => {
|
||||
let pDatas = this.form.getFormParams();
|
||||
Api.editResource({ ...{
|
||||
id: this.id
|
||||
id: this.id,
|
||||
viewCondition:this.selectedKey
|
||||
},
|
||||
...pDatas,
|
||||
...this.getTableEditParams()
|
||||
}).then(data => {
|
||||
if (data.code == 200) {
|
||||
message.success(i18n.message.saveSuccess());
|
||||
window.location.href = `/spa/organization/static/index.html#/main/organization/resourceCard/${this.id}`;
|
||||
this.selectedKey = '0';
|
||||
window.open(`/spa/organization/static/index.html#/main/organization/resourceCard/${this.id}`,"_self");
|
||||
// this.init();
|
||||
// this.getData();
|
||||
// this.selectedRowKeys = [];
|
||||
|
|
@ -119,6 +121,7 @@ export class ResourceExtendStore {
|
|||
|
||||
getData = () => {
|
||||
this.setLoading(true);
|
||||
this.form = new WeaForm()
|
||||
let params = {
|
||||
viewAttr: this.isEditor ? 2 : 1,
|
||||
id: this.id,
|
||||
|
|
|
|||
Loading…
Reference in New Issue