Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
周远喜
mes-ui
Commits
1ed98213
Commit
1ed98213
authored
Aug 27, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user
parent
488c9b1d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
936 additions
and
936 deletions
+936
-936
package-lock.json
package-lock.json
+4
-4
index.vue
pages/basicData/user/index.vue
+932
-932
No files found.
package-lock.json
View file @
1ed98213
...
@@ -2627,7 +2627,7 @@
...
@@ -2627,7 +2627,7 @@
},
},
"adler-32"
:
{
"adler-32"
:
{
"version"
:
"1.2.0"
,
"version"
:
"1.2.0"
,
"resolved"
:
"https://registry.npm
.taobao.org/adler-32/download
/adler-32-1.2.0.tgz"
,
"resolved"
:
"https://registry.npm
js.org/adler-32/-
/adler-32-1.2.0.tgz"
,
"integrity"
:
"sha1-aj5r8KY5ALoVZSgIyxXGgT0aXyU="
,
"integrity"
:
"sha1-aj5r8KY5ALoVZSgIyxXGgT0aXyU="
,
"requires"
:
{
"requires"
:
{
"exit-on-epipe"
:
"~1.0.1"
,
"exit-on-epipe"
:
"~1.0.1"
,
...
@@ -4774,7 +4774,7 @@
...
@@ -4774,7 +4774,7 @@
},
},
"codepage"
:
{
"codepage"
:
{
"version"
:
"1.14.0"
,
"version"
:
"1.14.0"
,
"resolved"
:
"https://registry.npm
.taobao.org/codepage/download
/codepage-1.14.0.tgz"
,
"resolved"
:
"https://registry.npm
js.org/codepage/-
/codepage-1.14.0.tgz"
,
"integrity"
:
"sha1-jL4lSBMjVZ19MHVxsP/5HnodL5k="
,
"integrity"
:
"sha1-jL4lSBMjVZ19MHVxsP/5HnodL5k="
,
"requires"
:
{
"requires"
:
{
"commander"
:
"~2.14.1"
,
"commander"
:
"~2.14.1"
,
...
@@ -6226,7 +6226,7 @@
...
@@ -6226,7 +6226,7 @@
},
},
"echarts"
:
{
"echarts"
:
{
"version"
:
"4.8.0"
,
"version"
:
"4.8.0"
,
"resolved"
:
"https://registry.npm.taobao.org/echarts/download/echarts-4.8.0.tgz
?cache=0&sync_timestamp=1596215792462&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fecharts%2Fdownload%2Fecharts-4.8.0.tgz
"
,
"resolved"
:
"https://registry.npm.taobao.org/echarts/download/echarts-4.8.0.tgz"
,
"integrity"
:
"sha1-ssHPuSKbE9No7hBPyO6mALV01MQ="
,
"integrity"
:
"sha1-ssHPuSKbE9No7hBPyO6mALV01MQ="
,
"requires"
:
{
"requires"
:
{
"zrender"
:
"4.3.1"
"zrender"
:
"4.3.1"
...
@@ -20598,7 +20598,7 @@
...
@@ -20598,7 +20598,7 @@
},
},
"zrender"
:
{
"zrender"
:
{
"version"
:
"4.3.1"
,
"version"
:
"4.3.1"
,
"resolved"
:
"https://registry.npm.taobao.org/zrender/download/zrender-4.3.1.tgz?cache=0&sync_timestamp=159
6718989769
&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fzrender%2Fdownload%2Fzrender-4.3.1.tgz"
,
"resolved"
:
"https://registry.npm.taobao.org/zrender/download/zrender-4.3.1.tgz?cache=0&sync_timestamp=159
7683748542
&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fzrender%2Fdownload%2Fzrender-4.3.1.tgz"
,
"integrity"
:
"sha1-uviqbcgYei+BlpLX1fm+36K5D6M="
"integrity"
:
"sha1-uviqbcgYei+BlpLX1fm+36K5D6M="
}
}
}
}
...
...
pages/basicData/user/index.vue
View file @
1ed98213
<
template
>
<
template
>
<Layout
class=
"full"
>
<Layout
class=
"full"
>
<Sider
<Sider
hide-trigger
:style=
"
{background: '#fff'}" width="260" class="menu" style=" flex:0;border:none">
hide-trigger
:style=
"
{background: '#fff'}"
width="260"
class="menu"
style=" flex:0;border:none"
>
<div
class=
"zh-tree"
:style=
"
{height:treeHeight+'px'}">
<div
class=
"zh-tree"
:style=
"
{height:treeHeight+'px'}">
<h3
class=
"zh-title"
>
部门结构
</h3>
<h3
class=
"zh-title"
>
部门结构
</h3>
<div
class=
"zh-box"
>
<div
class=
"zh-box"
>
...
@@ -16,15 +10,7 @@
...
@@ -16,15 +10,7 @@
</div>
</div>
</Sider>
</Sider>
<Content
class=
"content"
>
<Content
class=
"content"
>
<DataGrid
<DataGrid
:columns=
"columns"
ref=
"grid"
:action=
"action"
:conditions=
"easySearch"
placeholder=
"请输入姓名/员工编号"
:high=
"true"
:height=
"tdHeight"
>
:columns=
"columns"
ref=
"grid"
:action=
"action"
:conditions=
"easySearch"
placeholder=
"请输入姓名/员工编号"
:high=
"true"
:height=
"tdHeight"
>
<template
slot=
"searchForm"
>
<template
slot=
"searchForm"
>
<Search
/>
<Search
/>
</
template
>
</
template
>
...
@@ -47,25 +33,9 @@
...
@@ -47,25 +33,9 @@
<p>
确定删除?
</p>
<p>
确定删除?
</p>
</Modal>
</Modal>
<!-- 重置密码 -->
<!-- 重置密码 -->
<Modal
<Modal
v-model=
"show7"
title=
"提示"
:mask-closable=
"false"
ok-text=
"确定"
cancel-text=
"取消"
@
on-ok=
"reset"
>
此操作将密码重置为初始密码, 是否继续?
</Modal>
v-model=
"show7"
title=
"提示"
:mask-closable=
"false"
ok-text=
"确定"
cancel-text=
"取消"
@
on-ok=
"reset"
>
此操作将密码重置为初始密码, 是否继续?
</Modal>
<!-- 授权 -->
<!-- 授权 -->
<Modal
<Modal
v-model=
"show3"
title=
"授权-当前用户"
:width=
"800"
:mask-closable=
"false"
ok-text=
"保存"
cancel-text=
"取消"
@
on-ok=
"authOk"
@
on-cancel=
"authCancle"
>
v-model=
"show3"
title=
"授权-当前用户"
:width=
"800"
:mask-closable=
"false"
ok-text=
"保存"
cancel-text=
"取消"
@
on-ok=
"authOk"
@
on-cancel=
"authCancle"
>
<div
style=
"max-height:400px;overflow:auto"
>
<div
style=
"max-height:400px;overflow:auto"
>
<Form
:model=
"authModel"
:label-width=
"70"
>
<Form
:model=
"authModel"
:label-width=
"70"
>
<Row>
<Row>
...
@@ -76,13 +46,7 @@
...
@@ -76,13 +46,7 @@
<div
style=
"width:750px;border:2px solid #E8EAEC;margin-top:10px"
>
<div
style=
"width:750px;border:2px solid #E8EAEC;margin-top:10px"
>
<Row>
<Row>
<CheckboxGroup
v-model=
"authModel.default"
>
<CheckboxGroup
v-model=
"authModel.default"
>
<Col
<Col
span=
"5"
offset=
"1"
v-for=
"(item,index) in authList1"
:key=
"index"
style=
"line-height:33px;font-size:14px;"
>
span=
"5"
offset=
"1"
v-for=
"(item,index) in authList1"
:key=
"index"
style=
"line-height:33px;font-size:14px;"
>
<Checkbox
:label=
"item.id"
>
{{item.name}}
</Checkbox>
<Checkbox
:label=
"item.id"
>
{{item.name}}
</Checkbox>
</Col>
</Col>
</CheckboxGroup>
</CheckboxGroup>
...
@@ -97,13 +61,7 @@
...
@@ -97,13 +61,7 @@
<div
style=
"width:750px;border:2px solid #E8EAEC;margin-top:10px"
>
<div
style=
"width:750px;border:2px solid #E8EAEC;margin-top:10px"
>
<Row>
<Row>
<CheckboxGroup
v-model=
"authModel.extra"
>
<CheckboxGroup
v-model=
"authModel.extra"
>
<Col
<Col
span=
"5"
offset=
"1"
v-for=
"(item,index) in authList"
:key=
"index"
style=
"line-height:33px;font-size:14px;"
>
span=
"5"
offset=
"1"
v-for=
"(item,index) in authList"
:key=
"index"
style=
"line-height:33px;font-size:14px;"
>
<Checkbox
:label=
"item.id"
>
{{item.name}}
</Checkbox>
<Checkbox
:label=
"item.id"
>
{{item.name}}
</Checkbox>
</Col>
</Col>
</CheckboxGroup>
</CheckboxGroup>
...
@@ -122,15 +80,7 @@
...
@@ -122,15 +80,7 @@
<Upload
action
:before-upload=
"beforeUpload"
ref=
"uploadfile"
:format=
"formatList"
>
<Upload
action
:before-upload=
"beforeUpload"
ref=
"uploadfile"
:format=
"formatList"
>
<Button
icon=
"ios-cloud-upload-outline"
>
上传Excel文件
</Button>
<Button
icon=
"ios-cloud-upload-outline"
>
上传Excel文件
</Button>
</Upload>
</Upload>
<DataGrid
<DataGrid
border
:height=
"tdHeightExcel"
:columns=
"columnsImport"
:data=
"excelData"
:tool=
"false"
:page=
"false"
:set=
"false"
></DataGrid>
border
:height=
"tdHeightExcel"
:columns=
"columnsImport"
:data=
"excelData"
:tool=
"false"
:page=
"false"
:set=
"false"
></DataGrid>
<div
slot=
"footer"
>
<div
slot=
"footer"
>
<span
v-if=
"excelData.length>0"
>
共 {{excelData.length}} 条数据
</span>
<span
v-if=
"excelData.length>0"
>
共 {{excelData.length}} 条数据
</span>
<Button
@
click=
"cancelExcel"
>
取消
</Button>
<Button
@
click=
"cancelExcel"
>
取消
</Button>
...
@@ -138,8 +88,9 @@
...
@@ -138,8 +88,9 @@
</div>
</div>
</Modal>
</Modal>
</Content>
</Content>
</Layout>
</Layout>
</template>
</template>
<
script
>
<
script
>
import
Api
from
"./api"
;
import
Api
from
"./api"
;
import
ApiDepart
from
"../department/api"
;
import
ApiDepart
from
"../department/api"
;
...
@@ -149,7 +100,9 @@ import Detail from "./detail";
...
@@ -149,7 +100,9 @@ import Detail from "./detail";
import
Search
from
"./search"
;
import
Search
from
"./search"
;
import
service
from
"@/plugins/request"
;
import
service
from
"@/plugins/request"
;
import
util
from
"@/libs/util"
;
import
util
from
"@/libs/util"
;
import
{
Time
}
from
"view-design"
;
import
{
Time
}
from
"view-design"
;
import
XLSX
from
"xlsx"
;
import
XLSX
from
"xlsx"
;
export
default
{
export
default
{
...
@@ -165,12 +118,14 @@ export default {
...
@@ -165,12 +118,14 @@ export default {
action
:
Api
.
index
,
action
:
Api
.
index
,
easySearch
:
{
easySearch
:
{
keys
:
{
keys
:
{
op
:
op
:
"userName,cardNo,national,phone,email,enableEquip,jobNo,remark,departmentTitle,roleTitles"
,
"userName,cardNo,national,phone,email,enableEquip,jobNo,remark,departmentTitle,roleTitles"
,
value
:
null
,
value
:
null
,
default
:
true
,
default
:
true
,
},
},
departmentId
:
{
op
:
"In"
,
value
:
""
},
departmentId
:
{
op
:
"In"
,
value
:
""
},
},
},
treeData
:
[],
treeData
:
[],
tdHeight
:
""
,
tdHeight
:
""
,
...
@@ -182,7 +137,10 @@ export default {
...
@@ -182,7 +137,10 @@ export default {
show3
:
false
,
//授权角色
show3
:
false
,
//授权角色
authList
:
[],
authList
:
[],
authList1
:
[],
authList1
:
[],
authModel
:
{
default
:
[],
extra
:
[]
},
authModel
:
{
default
:
[],
extra
:
[]
},
ids
:
[],
ids
:
[],
addModal
:
false
,
addModal
:
false
,
editModal
:
false
,
editModal
:
false
,
...
@@ -197,7 +155,12 @@ export default {
...
@@ -197,7 +155,12 @@ export default {
// width: 80,
// width: 80,
// align: 'center'
// align: 'center'
// },
// },
{
key
:
"id"
,
title
:
this
.
l
(
"id"
),
hide
:
true
,
align
:
"left"
},
{
key
:
"id"
,
title
:
this
.
l
(
"id"
),
hide
:
true
,
align
:
"left"
},
{
{
key
:
"userName"
,
key
:
"userName"
,
title
:
this
.
l
(
"userName"
),
title
:
this
.
l
(
"userName"
),
...
@@ -205,12 +168,17 @@ export default {
...
@@ -205,12 +168,17 @@ export default {
easy
:
true
,
easy
:
true
,
high
:
true
,
high
:
true
,
render
:
(
h
,
params
)
=>
{
render
:
(
h
,
params
)
=>
{
return
h
(
"div"
,
{
class
:
"action"
},
[
return
h
(
"div"
,
{
class
:
"action"
},
[
h
(
h
(
"op"
,
"op"
,
{
{
attrs
:
{
attrs
:
{
oprate
:
"detail"
},
oprate
:
"detail"
on
:
{
click
:
()
=>
this
.
detail
(
params
.
row
.
id
)
},
},
on
:
{
click
:
()
=>
this
.
detail
(
params
.
row
.
id
)
},
},
},
params
.
row
.
userName
params
.
row
.
userName
),
),
...
@@ -282,23 +250,24 @@ export default {
...
@@ -282,23 +250,24 @@ export default {
high
:
true
,
high
:
true
,
hide
:
true
,
hide
:
true
,
render
:
(
h
,
params
)
=>
{
render
:
(
h
,
params
)
=>
{
return
h
(
"div"
,
{
class
:
"action"
},
[
return
h
(
"div"
,
{
class
:
"action"
},
[
h
(
h
(
"op"
,
"op"
,
{
{
attrs
:
{
attrs
:
{
oprate
:
"detail"
,
oprate
:
"detail"
,
class
:
class
:
params
.
row
.
roleTitles
==
null
||
params
.
row
.
roleTitles
==
null
||
params
.
row
.
roleTitles
==
""
?
params
.
row
.
roleTitles
==
""
"empower"
:
"detail"
,
?
"empower"
},
:
"detail"
,
on
:
{
click
:
()
=>
this
.
authorize
(
params
.
row
.
id
)
},
},
on
:
{
click
:
()
=>
this
.
authorize
(
params
.
row
.
id
)
},
},
},
params
.
row
.
roleTitles
==
null
||
params
.
row
.
roleTitles
==
""
params
.
row
.
roleTitles
==
null
||
params
.
row
.
roleTitles
==
""
?
?
"授权"
"授权"
:
:
params
.
row
.
roleTitles
params
.
row
.
roleTitles
),
),
]);
]);
},
},
...
@@ -383,41 +352,51 @@ export default {
...
@@ -383,41 +352,51 @@ export default {
align
:
"right"
,
align
:
"right"
,
import
:
false
,
import
:
false
,
render
:
(
h
,
params
)
=>
{
render
:
(
h
,
params
)
=>
{
return
h
(
"div"
,
{
class
:
"action"
},
[
return
h
(
"div"
,
{
class
:
"action"
},
[
h
(
h
(
"op"
,
"op"
,
{
{
attrs
:
{
attrs
:
{
oprate
:
"detail"
,
oprate
:
"detail"
,
class
:
"empower"
,
class
:
"empower"
,
},
},
on
:
{
click
:
()
=>
this
.
syncAccount
(
params
.
row
)
},
on
:
{
click
:
()
=>
this
.
syncAccount
(
params
.
row
)
},
},
},
params
.
row
.
accountId
==
0
?
"同步"
:
""
params
.
row
.
accountId
==
0
?
"同步"
:
""
),
),
h
(
h
(
"op"
,
"op"
,
{
{
attrs
:
{
attrs
:
{
oprate
:
"edit"
},
oprate
:
"edit"
on
:
{
click
:
()
=>
this
.
edit
(
params
.
row
.
id
)
},
},
on
:
{
click
:
()
=>
this
.
edit
(
params
.
row
.
id
)
},
},
},
"编辑"
"编辑"
),
),
h
(
h
(
"op"
,
"op"
,
{
{
attrs
:
{
attrs
:
{
oprate
:
"remove"
},
oprate
:
"remove"
on
:
{
click
:
()
=>
this
.
remove
(
params
.
row
)
},
},
on
:
{
click
:
()
=>
this
.
remove
(
params
.
row
)
},
},
},
"删除"
"删除"
),
),
h
(
h
(
"op"
,
"op"
,
{
{
attrs
:
{
attrs
:
{
oprate
:
"detail"
,
oprate
:
"detail"
,
},
},
on
:
{
click
:
()
=>
this
.
openReset
(
params
.
row
)
},
on
:
{
click
:
()
=>
this
.
openReset
(
params
.
row
)
},
},
},
"重置密码"
"重置密码"
),
),
...
@@ -470,7 +449,10 @@ export default {
...
@@ -470,7 +449,10 @@ export default {
this
.
loadrole
(
0
);
this
.
loadrole
(
0
);
this
.
loadrole
(
1
);
this
.
loadrole
(
1
);
},
},
async
fetch
({
store
,
params
})
{
async
fetch
({
store
,
params
})
{
await
store
.
dispatch
(
"loadDictionary"
);
// 加载数据字典
await
store
.
dispatch
(
"loadDictionary"
);
// 加载数据字典
},
},
methods
:
{
methods
:
{
...
@@ -501,7 +483,9 @@ export default {
...
@@ -501,7 +483,9 @@ export default {
this
.
selectRow
=
row
;
this
.
selectRow
=
row
;
},
},
removeOk
()
{
removeOk
()
{
Api
.
delete
({
id
:
this
.
curId
}).
then
((
r
)
=>
{
Api
.
delete
({
id
:
this
.
curId
}).
then
((
r
)
=>
{
if
(
r
.
success
)
{
if
(
r
.
success
)
{
this
.
$refs
.
grid
.
load
();
this
.
$refs
.
grid
.
load
();
this
.
deletelModal
=
false
;
this
.
deletelModal
=
false
;
...
@@ -510,7 +494,7 @@ export default {
...
@@ -510,7 +494,7 @@ export default {
let
parms
=
{
let
parms
=
{
userId
:
this
.
curId
,
userId
:
this
.
curId
,
accountId
:
this
.
selectRow
.
accountId
,
accountId
:
this
.
selectRow
.
accountId
,
ta
nantCode
:
util
.
cookies
.
get
(
"tanantCode"
),
te
nantCode
:
util
.
cookies
.
get
(
"tanantCode"
),
isDeleted
:
true
,
isDeleted
:
true
,
name
:
this
.
selectRow
.
userName
,
name
:
this
.
selectRow
.
userName
,
};
};
...
@@ -596,7 +580,9 @@ export default {
...
@@ -596,7 +580,9 @@ export default {
loadrole
(
type
)
{
loadrole
(
type
)
{
var
url
=
`
${
systemUrl
}
/MyRole/GetRolesAsync`
;
var
url
=
`
${
systemUrl
}
/MyRole/GetRolesAsync`
;
var
data
=
[];
var
data
=
[];
service
.
get
(
`
${
url
}
`
,
{
role_type
:
type
}).
then
((
response
)
=>
{
service
.
get
(
`
${
url
}
`
,
{
role_type
:
type
}).
then
((
response
)
=>
{
data
=
response
.
result
.
items
;
data
=
response
.
result
.
items
;
if
(
type
==
1
)
{
if
(
type
==
1
)
{
this
.
authList
=
data
;
this
.
authList
=
data
;
...
@@ -613,7 +599,9 @@ export default {
...
@@ -613,7 +599,9 @@ export default {
this
.
curId
=
id
;
this
.
curId
=
id
;
this
.
show3
=
true
;
this
.
show3
=
true
;
var
url
=
`
${
systemUrl
}
/MyUserRole/GetPaged`
;
var
url
=
`
${
systemUrl
}
/MyUserRole/GetPaged`
;
service
.
get
(
`
${
url
}
`
,
{
userId
:
id
}).
then
((
response
)
=>
{
service
.
get
(
`
${
url
}
`
,
{
userId
:
id
}).
then
((
response
)
=>
{
var
data
=
response
.
result
.
items
;
var
data
=
response
.
result
.
items
;
var
dt1
=
data
.
filter
(
function
(
ite
)
{
var
dt1
=
data
.
filter
(
function
(
ite
)
{
return
ite
.
role_type
==
0
;
return
ite
.
role_type
==
0
;
...
@@ -661,7 +649,7 @@ export default {
...
@@ -661,7 +649,7 @@ export default {
userId
:
this
.
selectRow
.
id
,
userId
:
this
.
selectRow
.
id
,
loginName
:
this
.
selectRow
.
phone
,
loginName
:
this
.
selectRow
.
phone
,
status
:
this
.
selectRow
.
status
,
status
:
this
.
selectRow
.
status
,
ta
nantCode
:
util
.
cookies
.
get
(
"tanantCode"
),
te
nantCode
:
util
.
cookies
.
get
(
"tanantCode"
),
name
:
this
.
selectRow
.
userName
,
name
:
this
.
selectRow
.
userName
,
};
};
if
(
this
.
selectRow
.
phone
&&
this
.
selectRow
.
phone
!=
""
)
{
if
(
this
.
selectRow
.
phone
&&
this
.
selectRow
.
phone
!=
""
)
{
...
@@ -734,7 +722,10 @@ export default {
...
@@ -734,7 +722,10 @@ export default {
//tHeader.push(el.key + "DirName");
//tHeader.push(el.key + "DirName");
//filterVal.push(el.key + "DirName");
//filterVal.push(el.key + "DirName");
//tempCol.push({ key: el.key + "DirName", code: el.code }); //临时存放code数据字典的字段及对应的数据字典code
//tempCol.push({ key: el.key + "DirName", code: el.code }); //临时存放code数据字典的字段及对应的数据字典code
tempCol
.
push
({
key
:
el
.
key
,
code
:
el
.
code
});
//临时存放code数据字典的字段及对应的数据字典code
tempCol
.
push
({
key
:
el
.
key
,
code
:
el
.
code
});
//临时存放code数据字典的字段及对应的数据字典code
}
}
tHeader
.
push
(
this
.
l
(
el
.
key
));
tHeader
.
push
(
this
.
l
(
el
.
key
));
filterVal
.
push
(
el
.
key
);
filterVal
.
push
(
el
.
key
);
...
@@ -810,7 +801,10 @@ export default {
...
@@ -810,7 +801,10 @@ export default {
var
arrTitleUse
=
[];
//使用数据字典的字段
var
arrTitleUse
=
[];
//使用数据字典的字段
tempColums
.
forEach
((
elCode
)
=>
{
tempColums
.
forEach
((
elCode
)
=>
{
if
(
elCode
.
code
)
{
if
(
elCode
.
code
)
{
arrTitleUse
.
push
({
key
:
elCode
.
key
,
code
:
elCode
.
code
});
arrTitleUse
.
push
({
key
:
elCode
.
key
,
code
:
elCode
.
code
});
}
}
});
});
...
@@ -914,7 +908,10 @@ export default {
...
@@ -914,7 +908,10 @@ export default {
var
arrTitleUse
=
[];
//使用数据字典的字段
var
arrTitleUse
=
[];
//使用数据字典的字段
tempColums
.
forEach
((
elCode
)
=>
{
tempColums
.
forEach
((
elCode
)
=>
{
if
(
elCode
.
code
)
{
if
(
elCode
.
code
)
{
arrTitleUse
.
push
({
key
:
elCode
.
key
,
code
:
elCode
.
code
});
arrTitleUse
.
push
({
key
:
elCode
.
key
,
code
:
elCode
.
code
});
}
}
});
});
...
@@ -965,6 +962,7 @@ export default {
...
@@ -965,6 +962,7 @@ export default {
let
nodeList
=
this
.
treeData
;
let
nodeList
=
this
.
treeData
;
var
text
=
this
.
treeInputSearch
;
var
text
=
this
.
treeInputSearch
;
var
newNodeList
=
[];
var
newNodeList
=
[];
function
searchTree
(
nodeLists
,
value
)
{
function
searchTree
(
nodeLists
,
value
)
{
for
(
let
i
=
0
;
i
<
nodeLists
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
nodeLists
.
length
;
i
++
)
{
if
(
nodeLists
[
i
].
title
.
indexOf
(
value
)
!=
-
1
)
{
if
(
nodeLists
[
i
].
title
.
indexOf
(
value
)
!=
-
1
)
{
...
@@ -987,9 +985,11 @@ export default {
...
@@ -987,9 +985,11 @@ export default {
},
},
};
};
</
script
>
</
script
>
<
style
lang=
"less"
scoped
>
<
style
lang=
"less"
scoped
>
.full {
.full {
margin-top: 0;
margin-top: 0;
.content {
.content {
margin-top: 10px;
margin-top: 10px;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment