Commit d5684962 authored by TZW's avatar TZW

1230

parent 77adc3e3
...@@ -13,7 +13,7 @@ export default { ...@@ -13,7 +13,7 @@ export default {
dev: { dev: {
[defaultSetting.proxypath]: { [defaultSetting.proxypath]: {
// 要代理的地址 // 要代理的地址
target: 'http://192.168.40.64:28000', //jf哥 target: 'http://192.168.40.64:28001', //jf哥
// target: 'http://192.168.40.203:8000', //dj哥 // target: 'http://192.168.40.203:8000', //dj哥
changeOrigin: true, changeOrigin: true,
}, },
......
...@@ -8,6 +8,7 @@ function DrawerPro(props) { ...@@ -8,6 +8,7 @@ function DrawerPro(props) {
let pushSettingFlag = props.pushSettingFlag; let pushSettingFlag = props.pushSettingFlag;
let newProps = { ...props }; let newProps = { ...props };
delete newProps.children; delete newProps.children;
delete newProps.style;
const detailprops = { const detailprops = {
...newProps, ...newProps,
detailpath: props.detailpath, detailpath: props.detailpath,
......
...@@ -79,6 +79,10 @@ const Permissiontree = (props) => { ...@@ -79,6 +79,10 @@ const Permissiontree = (props) => {
daauthTree, daauthTree,
} = state; } = state;
console.log('tree', props);
useEffect(() => {
resetData();
}, []);
const loop = (data) => { const loop = (data) => {
return data.map((item) => { return data.map((item) => {
if (item.children) { if (item.children) {
...@@ -110,15 +114,12 @@ const Permissiontree = (props) => { ...@@ -110,15 +114,12 @@ const Permissiontree = (props) => {
}, },
}); });
useEffect(() => {
resetData();
}, []);
function resetData() { function resetData() {
if (!id) { if (!id) {
return; return;
} }
if (treeType == 'auth') { if (treeType == 'auth') {
console.log(1);
roleTree({ roleId: id }).then((res) => { roleTree({ roleId: id }).then((res) => {
if (res.code == '0000') { if (res.code == '0000') {
let data = res?.data || {}; let data = res?.data || {};
......
...@@ -14,7 +14,7 @@ function getcolumns(setdrawer) { ...@@ -14,7 +14,7 @@ function getcolumns(setdrawer) {
}, },
}, },
{ {
title: '故障代码', title: '故障类型代码',
dataIndex: 'faultCode', dataIndex: 'faultCode',
key: 'faultCode', key: 'faultCode',
}, },
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: Li Hanlin * @Author: Li Hanlin
* @Date: 2022-12-07 11:19:30 * @Date: 2022-12-07 11:19:30
* @Last Modified by: Li Hanlin * @Last Modified by: Li Hanlin
* @Last Modified time: 2022-12-09 16:47:36 * @Last Modified time: 2022-12-30 13:56:38
*/ */
import * as React from 'react'; import * as React from 'react';
...@@ -225,7 +225,7 @@ function Fault(props) { ...@@ -225,7 +225,7 @@ function Fault(props) {
}, },
}, },
{ {
title: '故障代码', title: '故障名称代码',
dataIndex: 'faultDetailCode', dataIndex: 'faultDetailCode',
key: 'faultDetailCode', key: 'faultDetailCode',
}, },
...@@ -274,7 +274,7 @@ function Fault(props) { ...@@ -274,7 +274,7 @@ function Fault(props) {
}, },
}, },
{ {
title: '故障代码', title: '故障类型代码',
dataIndex: 'faultCode', dataIndex: 'faultCode',
key: 'faultCode', key: 'faultCode',
}, },
...@@ -291,6 +291,7 @@ function Fault(props) { ...@@ -291,6 +291,7 @@ function Fault(props) {
path="/repair/umFaultSettingDetail/queryList" path="/repair/umFaultSettingDetail/queryList"
extraparams={{ faultSettingId: drawer?.item.id }} extraparams={{ faultSettingId: drawer?.item.id }}
pageextra={'add'} pageextra={'add'}
resizeable={false}
addconfig={{ addconfig={{
// access: 'sysDepartment_save', // access: 'sysDepartment_save',
btn: { btn: {
...@@ -330,7 +331,6 @@ function Fault(props) { ...@@ -330,7 +331,6 @@ function Fault(props) {
fields={columns} fields={columns}
actionRef={gzmcref} actionRef={gzmcref}
style={{ transform: 'translateX(180px)' }} style={{ transform: 'translateX(180px)' }}
width={'100%'}
defaultFormValue={drawergz?.item} defaultFormValue={drawergz?.item}
onClose={() => { onClose={() => {
setdrawergz((s) => ({ setdrawergz((s) => ({
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: Li Hanlin * @Author: Li Hanlin
* @Date: 2022-12-05 10:13:42 * @Date: 2022-12-05 10:13:42
* @Last Modified by: Li Hanlin * @Last Modified by: Li Hanlin
* @Last Modified time: 2022-12-22 17:16:38 * @Last Modified time: 2022-12-30 13:18:22
*/ */
import * as React from 'react'; import * as React from 'react';
...@@ -372,7 +372,48 @@ function Platform(props) { ...@@ -372,7 +372,48 @@ function Platform(props) {
detailpath="/repair/umTrackOperation/queryOperationList" detailpath="/repair/umTrackOperation/queryOperationList"
params={{ trackOrderId: drawer?.item?.id }} params={{ trackOrderId: drawer?.item?.id }}
baseRow={drawer?.item} baseRow={drawer?.item}
basecolumns={basecolumns} basecolumns={[
{
title: '创建人',
dataIndex: 'createUserName',
key: 'createUserName',
},
{
title: '创建时间',
dataIndex: 'createTime',
key: 'createTime',
},
{
title: '工单状态',
dataIndex: 'statusName',
key: 'statusName',
},
{
title: '来源工单',
dataIndex: 'dataSourcesNo',
key: 'dataSourcesNo',
},
{
title: '来源类型',
dataIndex: 'dataSourcesName',
key: 'dataSourcesName',
},
{
title: '最新追踪人员',
dataIndex: 'newRepairUserName',
key: 'newRepairUserName',
},
{
title: '下次追踪日期',
dataIndex: 'nextTrackDate',
key: 'nextTrackDate',
},
{
title: '关单时间',
dataIndex: 'repairCloseTime',
key: 'repairCloseTime',
},
]}
type="zzgd" type="zzgd"
/> />
); );
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: Li Hanlin * @Author: Li Hanlin
* @Date: 2022-11-09 14:44:44 * @Date: 2022-11-09 14:44:44
* @Last Modified by: Li Hanlin * @Last Modified by: Li Hanlin
* @Last Modified time: 2022-12-15 13:52:19 * @Last Modified time: 2022-12-30 14:10:29
*/ */
import * as React from 'react'; import * as React from 'react';
...@@ -144,7 +144,7 @@ function Role(props) { ...@@ -144,7 +144,7 @@ function Role(props) {
onFinish: async (vals) => { onFinish: async (vals) => {
//console.log(vals); //console.log(vals);
let res = await doFetch({ let res = await doFetch({
url: '/auth/sysRolePermission/queryAll', url: '/auth/sysRolePermission/save',
params: { ...vals }, params: { ...vals },
}); });
//console.log(res); //console.log(res);
...@@ -317,6 +317,7 @@ function Role(props) { ...@@ -317,6 +317,7 @@ function Role(props) {
})); }));
}} }}
open={drawer.authorityOpen} open={drawer.authorityOpen}
destroyOnClose
> >
<PermissionTree <PermissionTree
id={drawer?.item?.id} id={drawer?.item?.id}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment