Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
template_vue
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
胡宝山
template_vue
Commits
c0e597e3
Commit
c0e597e3
authored
Jul 29, 2023
by
岑歆奕
Committed by
AiNoeLiYa
Jul 29, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.注释了系统管理中的数据字典
2.完善了queryParams中字段的更改,更改为page和rows Signed-off-by:
AiNoeLiYa
<
jzbcxy@gmail.com
>
parent
c5430501
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
92 additions
and
94 deletions
+92
-94
basicInfo.vue
src/views/equipment/basicInfo.vue
+1
-1
index.vue
src/views/system/dept/index.vue
+18
-18
index.vue
src/views/system/dict/index.vue
+62
-39
index.vue
src/views/system/role/index.vue
+11
-20
index.vue
src/views/system/user/index.vue
+0
-16
No files found.
src/views/equipment/basicInfo.vue
View file @
c0e597e3
...
@@ -306,7 +306,7 @@ export default {
...
@@ -306,7 +306,7 @@ export default {
getList
()
{
getList
()
{
this
.
loading
=
true
this
.
loading
=
true
listBasicInfo
(
this
.
queryParams
).
then
(
res
=>
{
listBasicInfo
(
this
.
queryParams
).
then
(
res
=>
{
res
.
rows
.
createDate
=
parseTime
(
res
.
rows
.
createDate
,
'{y}-{m}-{d}'
)
res
.
rows
.
createDate
=
parseTime
(
res
.
rows
.
createDate
,
'{y}-{m}-{d}'
)
this
.
total
=
res
.
total
this
.
total
=
res
.
total
this
.
basicInfoList
=
res
.
rows
this
.
basicInfoList
=
res
.
rows
this
.
loading
=
false
this
.
loading
=
false
...
...
src/views/system/dept/index.vue
View file @
c0e597e3
...
@@ -10,16 +10,16 @@
...
@@ -10,16 +10,16 @@
size=
"small"
size=
"small"
/>
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"部门状态"
>
<!--
<el-form-item
label=
"部门状态"
>
--
>
<el-select
v-model=
"queryParams.flag"
placeholder=
"请选择部门状态"
clearable
size=
"small"
>
<!--
<el-select
v-model=
"queryParams.flag"
placeholder=
"请选择部门状态"
clearable
size=
"small"
>
--
>
<el-option
<!--
<el-option-->
v-for=
"dict in statusOptions"
<!-- v-for="dict in statusOptions"-->
:key=
"dict.dictValue"
<!-- :key="dict.dictValue"-->
:label=
"dict.dictLabel"
<!-- :label="dict.dictLabel"-->
:value=
"dict.dictValue"
<!-- :value="dict.dictValue"-->
/
>
<!-- />--
>
</el-select
>
<!--
</el-select>
--
>
</el-form-item
>
<!--
</el-form-item>
--
>
<el-form-item>
<el-form-item>
<el-button
<el-button
style=
"padding: 8px 7px;"
style=
"padding: 8px 7px;"
...
@@ -81,7 +81,7 @@
...
@@ -81,7 +81,7 @@
<span>
{{
scope
.
row
.
createDate
|
transformDateByFormat
(
'YYYY-MM-DD HH:mm'
)
}}
</span>
<span>
{{
scope
.
row
.
createDate
|
transformDateByFormat
(
'YYYY-MM-DD HH:mm'
)
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
<!-- <template slot-scope="scope">-->
<!-- <template slot-scope="scope">-->
<!-- <el-button-->
<!-- <el-button-->
<!-- v-hasPermi="['system:dept:edit']"-->
<!-- v-hasPermi="['system:dept:edit']"-->
...
@@ -222,7 +222,7 @@ export default {
...
@@ -222,7 +222,7 @@ export default {
// 是否显示弹出层
// 是否显示弹出层
open
:
false
,
open
:
false
,
// 状态数据字典
// 状态数据字典
statusOptions
:
[],
//
statusOptions: [],
// 查询参数
// 查询参数
queryParams
:
{
queryParams
:
{
deptName
:
undefined
,
deptName
:
undefined
,
...
@@ -275,9 +275,9 @@ export default {
...
@@ -275,9 +275,9 @@ export default {
this
.
queryParams
=
{
...
param
}
this
.
queryParams
=
{
...
param
}
}
}
this
.
getList
()
this
.
getList
()
this
.
getDicts
(
'sys_normal_disable'
.
toUpperCase
()).
then
(
response
=>
{
//
this.getDicts('sys_normal_disable'.toUpperCase()).then(response => {
this
.
statusOptions
=
response
.
data
//
this.statusOptions = response.data
})
//
})
},
},
methods
:
{
methods
:
{
/** 查询部门列表 */
/** 查询部门列表 */
...
@@ -317,9 +317,9 @@ export default {
...
@@ -317,9 +317,9 @@ export default {
}
}
},
},
// 字典状态字典翻译
// 字典状态字典翻译
statusFormat
(
row
,
column
)
{
//
statusFormat(row, column) {
return
this
.
selectDictLabel
(
this
.
statusOptions
,
row
.
flag
)
//
return this.selectDictLabel(this.statusOptions, row.flag)
},
//
},
// 取消按钮
// 取消按钮
cancel
()
{
cancel
()
{
this
.
open
=
false
this
.
open
=
false
...
...
src/views/system/dict/index.vue
View file @
c0e597e3
...
@@ -23,22 +23,22 @@
...
@@ -23,22 +23,22 @@
@
keyup
.
enter
.
native=
"handleQuery"
@
keyup
.
enter
.
native=
"handleQuery"
/>
/>
</el-form-item>
</el-form-item>
<
el-form-item
label=
"状态"
prop=
"flag"
>
<
!--
<el-form-item
label=
"状态"
prop=
"flag"
>
--
>
<el-select
<!--
<el-select-->
v-model=
"queryParams.flag"
<!-- v-model="queryParams.flag"-->
placeholder=
"字典状态"
<!-- placeholder="字典状态"-->
clearable
<!-- clearable-->
size=
"small"
<!-- size="small"-->
style=
"width: 200px"
<!-- style="width: 200px"-->
>
<!-- >--
>
<el-option
<!--
<el-option-->
v-for=
"dict in statusOptions"
<!-- v-for="dict in statusOptions"-->
:key=
"dict.dictValue"
<!-- :key="dict.dictValue"-->
:label=
"dict.dictLabel"
<!-- :label="dict.dictLabel"-->
:value=
"dict.dictValue"
<!-- :value="dict.dictValue"-->
/
>
<!-- />--
>
</el-select
>
<!--
</el-select>
--
>
<
/el-form-item
>
<
!--
</el-form-item>
--
>
<el-form-item
label=
"创建时间"
>
<el-form-item
label=
"创建时间"
>
<el-date-picker
<el-date-picker
v-model=
"dateRange"
v-model=
"dateRange"
...
@@ -52,12 +52,25 @@
...
@@ -52,12 +52,25 @@
/>
/>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
size=
"small"
@
click=
"handleQuery"
>
搜索
</el-button>
<el-button
<el-button
icon=
"el-icon-refresh"
size=
"small"
@
click=
"resetQuery"
>
重置
</el-button>
type=
"primary"
style=
"padding: 8px 7px;"
icon=
"el-icon-search"
size=
"small"
@
click=
"handleQuery"
>
搜索
</el-button>
<el-button
style=
"padding: 8px 7px;"
icon=
"el-icon-refresh"
size=
"small"
@
click=
"resetQuery"
>
重置
</el-button>
</el-form-item>
</el-form-item>
<el-row
:gutter=
"10"
class=
"mb8"
>
<el-row
:gutter=
"10"
class=
"mb8"
>
<el-col
:span=
"1.5"
>
<el-col
:span=
"1.5"
>
<el-button
<el-button
style=
"padding: 8px 7px;"
type=
"primary"
type=
"primary"
icon=
"el-icon-plus"
icon=
"el-icon-plus"
size=
"small"
size=
"small"
...
@@ -66,9 +79,10 @@
...
@@ -66,9 +79,10 @@
</el-col>
</el-col>
<el-col
:span=
"1.5"
>
<el-col
:span=
"1.5"
>
<el-button
<el-button
style=
"padding: 8px 7px;"
type=
"success"
type=
"success"
icon=
"el-icon-edit"
icon=
"el-icon-edit"
size=
"
mini
"
size=
"
small
"
:disabled=
"single"
:disabled=
"single"
@
click=
"handleUpdate"
@
click=
"handleUpdate"
>
修改
>
修改
...
@@ -76,9 +90,10 @@
...
@@ -76,9 +90,10 @@
</el-col>
</el-col>
<el-col
:span=
"1.5"
>
<el-col
:span=
"1.5"
>
<el-button
<el-button
style=
"padding: 8px 7px;"
type=
"danger"
type=
"danger"
icon=
"el-icon-delete"
icon=
"el-icon-delete"
size=
"
mini
"
size=
"
small
"
:disabled=
"multiple"
:disabled=
"multiple"
@
click=
"handleDelete"
@
click=
"handleDelete"
>
删除
>
删除
...
@@ -86,6 +101,7 @@
...
@@ -86,6 +101,7 @@
</el-col>
</el-col>
<el-col
:span=
"1.5"
>
<el-col
:span=
"1.5"
>
<el-button
<el-button
style=
"padding: 8px 7px;"
type=
"success"
type=
"success"
icon=
"el-icon-download"
icon=
"el-icon-download"
size=
"small"
size=
"small"
...
@@ -161,8 +177,8 @@
...
@@ -161,8 +177,8 @@
<pagination
<pagination
v-show=
"total>0"
v-show=
"total>0"
:total=
"total"
:total=
"total"
:page
.
sync=
"queryParams.page
Num
"
:page
.
sync=
"queryParams.page"
:limit
.
sync=
"queryParams.
pageSize
"
:limit
.
sync=
"queryParams.
rows
"
@
pagination=
"getList"
@
pagination=
"getList"
/>
/>
<!-- 添加或修改参数配置对话框 -->
<!-- 添加或修改参数配置对话框 -->
...
@@ -174,14 +190,21 @@
...
@@ -174,14 +190,21 @@
<el-form-item
label=
"字典类型"
prop=
"dictType"
>
<el-form-item
label=
"字典类型"
prop=
"dictType"
>
<el-input
v-model
.
trim=
"form.dictType"
:maxlength=
"30"
placeholder=
"请输入字典类型"
/>
<el-input
v-model
.
trim=
"form.dictType"
:maxlength=
"30"
placeholder=
"请输入字典类型"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"状态"
prop=
"flag"
>
<el-form-item
label=
"状态"
prop=
"flag"
>
<!-- <el-form-item label="状态" prop="flag">-->
<!-- <el-radio-group v-model="form.flag">-->
<!-- <el-radio-->
<!-- v-for="dict in statusOptions"-->
<!-- :key="dict.dictValue"-->
<!-- :label="dict.dictValue"-->
<!-- >{{ dict.dictLabel }}-->
<!-- </el-radio>-->
<!-- </el-radio-group>-->
<!-- </el-form-item>-->
<el-radio-group
v-model=
"form.flag"
>
<el-radio-group
v-model=
"form.flag"
>
<el-radio
<el-radio
label=
"1"
>
启用
</el-radio>
v-for=
"dict in statusOptions"
<el-radio
label=
"0"
>
停用
</el-radio>
:key=
"dict.dictValue"
:label=
"dict.dictValue"
>
{{ dict.dictLabel }}
</el-radio>
</el-radio-group>
</el-radio-group>
</el-form-item>
</el-form-item>
<el-form-item
label=
"父字典名称"
>
<el-form-item
label=
"父字典名称"
>
...
@@ -313,14 +336,14 @@ export default {
...
@@ -313,14 +336,14 @@ export default {
title
:
''
,
title
:
''
,
// 是否显示弹出层
// 是否显示弹出层
open
:
false
,
open
:
false
,
// 状态数据字典
//
//
状态数据字典
statusOptions
:
[],
//
statusOptions: [],
// 日期范围
// 日期范围
dateRange
:
[],
dateRange
:
[],
// 查询参数
// 查询参数
queryParams
:
{
queryParams
:
{
page
Num
:
1
,
page
:
1
,
pageSize
:
10
,
rows
:
10
,
dictName
:
undefined
,
dictName
:
undefined
,
dictType
:
undefined
,
dictType
:
undefined
,
flag
:
undefined
flag
:
undefined
...
@@ -364,9 +387,9 @@ export default {
...
@@ -364,9 +387,9 @@ export default {
this
.
queryParams
=
{
...
param
}
this
.
queryParams
=
{
...
param
}
}
}
this
.
getList
()
this
.
getList
()
this
.
getDicts
(
dictCons
[
'NORMAL_DISABLE'
]).
then
(
response
=>
{
//
this.getDicts(dictCons['NORMAL_DISABLE']).then(response => {
this
.
statusOptions
=
response
.
data
//
this.statusOptions = response.data
})
//
})
optionselect
().
then
(
response
=>
{
optionselect
().
then
(
response
=>
{
this
.
options
=
response
.
data
this
.
options
=
response
.
data
})
})
...
@@ -419,9 +442,9 @@ export default {
...
@@ -419,9 +442,9 @@ export default {
})
})
},
},
// 字典状态字典翻译
// 字典状态字典翻译
statusFormat
(
row
,
column
)
{
//
statusFormat(row, column) {
return
this
.
selectDictLabel
(
this
.
statusOptions
,
row
.
flag
)
//
return this.selectDictLabel(this.statusOptions, row.flag)
},
//
},
// 取消按钮
// 取消按钮
cancel
()
{
cancel
()
{
this
.
open
=
false
this
.
open
=
false
...
@@ -442,7 +465,7 @@ export default {
...
@@ -442,7 +465,7 @@ export default {
},
},
/** 搜索按钮操作 */
/** 搜索按钮操作 */
handleQuery
()
{
handleQuery
()
{
this
.
queryParams
.
page
Num
=
1
this
.
queryParams
.
page
=
1
this
.
getList
()
this
.
getList
()
},
},
/** 重置按钮操作 */
/** 重置按钮操作 */
...
...
src/views/system/role/index.vue
View file @
c0e597e3
...
@@ -22,24 +22,15 @@
...
@@ -22,24 +22,15 @@
@
keyup
.
enter
.
native=
"handleQuery"
@
keyup
.
enter
.
native=
"handleQuery"
/>
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"角色状态"
prop=
"flag"
>
<el-select
v-model=
"queryParams.flag"
placeholder=
"请选择角色状态"
clearable
size=
"small"
style=
"width: 150px"
>
<el-option
v-for=
"dict in statusOptions"
:key=
"dict.dictValue"
:label=
"dict.dictLabel"
:value=
"dict.dictValue"
/>
</el-select>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
size=
"small"
@
click=
"handleQuery"
>
查询
</el-button>
<el-button
style=
"padding: 8px 7px;"
type=
"primary"
icon=
"el-icon-search"
size=
"small"
@
click=
"handleQuery"
>
查询
</el-button>
</el-form-item>
</el-form-item>
<div
style=
"float: right"
>
<div
style=
"float: right"
>
<el-form-item>
<el-form-item>
...
@@ -128,8 +119,8 @@
...
@@ -128,8 +119,8 @@
<pagination
<pagination
v-show=
"total>0"
v-show=
"total>0"
:total=
"total"
:total=
"total"
:page
.
sync=
"queryParams.page
Num
"
:page
.
sync=
"queryParams.page"
:limit
.
sync=
"queryParams.
pageSize
"
:limit
.
sync=
"queryParams.
rows
"
@
pagination=
"getList"
@
pagination=
"getList"
/>
/>
...
@@ -510,7 +501,7 @@ export default {
...
@@ -510,7 +501,7 @@ export default {
},
},
/** 查询按钮操作 */
/** 查询按钮操作 */
handleQuery
()
{
handleQuery
()
{
this
.
queryParams
.
page
Num
=
1
this
.
queryParams
.
page
=
1
this
.
getList
()
this
.
getList
()
},
},
/** 重置按钮操作 */
/** 重置按钮操作 */
...
...
src/views/system/user/index.vue
View file @
c0e597e3
...
@@ -22,22 +22,6 @@
...
@@ -22,22 +22,6 @@
style=
"width: 150px"
style=
"width: 150px"
/>
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"状态"
prop=
"flag"
>
<el-select
v-model=
"queryParams.flag"
placeholder=
"请选择用户状态"
clearable
size=
"small"
style=
"width: 150px"
>
<el-option
v-for=
"dict in statusOptions"
:key=
"dict.dictValue"
:label=
"dict.dictLabel"
:value=
"dict.dictValue"
/>
</el-select>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
style=
"padding: 8px 7px;"
icon=
"el-icon-search"
size=
"small"
@
click=
"handleQuery"
>
查询
</el-button>
<el-button
type=
"primary"
style=
"padding: 8px 7px;"
icon=
"el-icon-search"
size=
"small"
@
click=
"handleQuery"
>
查询
</el-button>
<el-button
style=
"padding: 8px 7px;"
icon=
"el-icon-refresh"
size=
"small"
@
click=
"resetQuery"
>
重置
</el-button>
<el-button
style=
"padding: 8px 7px;"
icon=
"el-icon-refresh"
size=
"small"
@
click=
"resetQuery"
>
重置
</el-button>
...
...
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