Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
T
ty-vue-ruoyi
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
CI / CD
CI / CD
流水线
日程
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
提交
Open sidebar
刘守彩
ty-vue-ruoyi
Commits
80d1193a
提交
80d1193a
authored
2月 26, 2024
作者:
刘守彩
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: add ty-table examples
上级
55efb362
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
32 行增加
和
47 行删除
+32
-47
ruoyi.js
src/utils/ruoyi.js
+1
-1
index.vue
src/views/monitor/logininfor/index.vue
+12
-15
index.vue
src/views/monitor/operlog/index.vue
+6
-10
index.vue
src/views/system/notice/index.vue
+6
-10
index.vue
src/views/system/user/index.vue
+7
-11
没有找到文件。
src/utils/ruoyi.js
浏览文件 @
80d1193a
...
...
@@ -58,7 +58,7 @@ export function resetForm(refName) {
// 添加日期范围
export
function
addDateRange
(
params
,
dateRange
,
propName
)
{
const
search
=
params
;
const
search
=
{
...
params
}
;
search
.
params
=
typeof
search
.
params
===
'object'
&&
search
.
params
!==
null
&&
...
...
src/views/monitor/logininfor/index.vue
浏览文件 @
80d1193a
...
...
@@ -107,13 +107,17 @@
<right-toolbar
:show-search
.
sync=
"showSearch"
@
queryTable=
"getList"
/>
</el-row>
<
el
-table
<
ty
-table
ref=
"tables"
v-loading=
"loading"
:data=
"list"
:default-sort=
"defaultSort"
@
selection-change=
"handleSelectionChange"
@
sort-change=
"handleSortChange"
:total=
"total"
:page
.
sync=
"queryParams.pageNum"
:limit
.
sync=
"queryParams.pageSize"
@
pagination=
"getList"
>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<el-table-column
label=
"访问编号"
align=
"center"
prop=
"infoId"
/>
...
...
@@ -171,15 +175,7 @@
<span>
{{
parseTime
(
scope
.
row
.
loginTime
)
}}
</span>
</
template
>
</el-table-column>
</el-table>
<pagination
v-show=
"total > 0"
:total=
"total"
:page
.
sync=
"queryParams.pageNum"
:limit
.
sync=
"queryParams.pageSize"
@
pagination=
"getList"
/>
</ty-table>
</div>
</template>
...
...
@@ -217,13 +213,13 @@ export default {
// 默认排序
defaultSort
:
{
prop
:
'loginTime'
,
order
:
'descending'
},
// 查询参数
queryParams
:
{
queryParams
:
this
.
$_setQuery
(
{
pageNum
:
1
,
pageSize
:
10
,
ipaddr
:
undefined
,
userName
:
undefined
,
status
:
undefined
}
ipaddr
:
''
,
userName
:
''
,
status
:
''
}
)
};
},
created
()
{
...
...
@@ -233,6 +229,7 @@ export default {
/** 查询登录日志列表 */
getList
()
{
this
.
loading
=
true
;
this
.
$_syncQueryUrl
(
this
.
queryParams
);
list
(
this
.
addDateRange
(
this
.
queryParams
,
this
.
dateRange
)).
then
(
(
response
)
=>
{
this
.
list
=
response
.
rows
;
...
...
src/views/monitor/operlog/index.vue
浏览文件 @
80d1193a
...
...
@@ -120,13 +120,17 @@
<right-toolbar
:show-search
.
sync=
"showSearch"
@
queryTable=
"getList"
/>
</el-row>
<
el
-table
<
ty
-table
ref=
"tables"
v-loading=
"loading"
:data=
"list"
:default-sort=
"defaultSort"
@
selection-change=
"handleSelectionChange"
@
sort-change=
"handleSortChange"
:total=
"total"
:page
.
sync=
"queryParams.pageNum"
:limit
.
sync=
"queryParams.pageSize"
@
pagination=
"getList"
>
<el-table-column
type=
"selection"
width=
"50"
align=
"center"
/>
<el-table-column
label=
"日志编号"
align=
"center"
prop=
"operId"
/>
...
...
@@ -214,15 +218,7 @@
>
</
template
>
</el-table-column>
</el-table>
<pagination
v-show=
"total > 0"
:total=
"total"
:page
.
sync=
"queryParams.pageNum"
:limit
.
sync=
"queryParams.pageSize"
@
pagination=
"getList"
/>
</ty-table>
<!-- 操作日志详细 -->
<el-dialog
...
...
src/views/system/notice/index.vue
浏览文件 @
80d1193a
...
...
@@ -82,10 +82,14 @@
<right-toolbar
:show-search
.
sync=
"showSearch"
@
queryTable=
"getList"
/>
</el-row>
<
el
-table
<
ty
-table
v-loading=
"loading"
:data=
"noticeList"
@
selection-change=
"handleSelectionChange"
:total=
"total"
:page
.
sync=
"queryParams.pageNum"
:limit
.
sync=
"queryParams.pageSize"
@
pagination=
"getList"
>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<el-table-column
...
...
@@ -159,15 +163,7 @@
>
<
/template
>
<
/el-table-column
>
<
/el-table
>
<
pagination
v
-
show
=
"total > 0"
:
total
=
"total"
:
page
.
sync
=
"queryParams.pageNum"
:
limit
.
sync
=
"queryParams.pageSize"
@
pagination
=
"getList"
/>
<
/ty-table
>
<!--
添加或修改公告对话框
-->
<
el
-
dialog
...
...
src/views/system/user/index.vue
浏览文件 @
80d1193a
...
...
@@ -151,10 +151,14 @@
/>
</el-row>
<
el
-table
<
ty
-table
v-loading=
"loading"
:data=
"userList"
@
selection-change=
"handleSelectionChange"
:total=
"total"
:page
.
sync=
"queryParams.pageNum"
:limit
.
sync=
"queryParams.pageSize"
@
pagination=
"getList"
>
<el-table-column
type=
"selection"
width=
"50"
align=
"center"
/>
<el-table-column
...
...
@@ -267,15 +271,7 @@
</el-dropdown>
</
template
>
</el-table-column>
</el-table>
<pagination
v-show=
"total > 0"
:total=
"total"
:page
.
sync=
"queryParams.pageNum"
:limit
.
sync=
"queryParams.pageSize"
@
pagination=
"getList"
/>
</ty-table>
</el-col>
</el-row>
...
...
@@ -454,7 +450,7 @@
>
<i
class=
"el-icon-upload"
/>
<div
class=
"el-upload__text"
>
将文件拖到此处,或
<em>
点击上传
</em></div>
<div
slot=
"tip"
class=
"
el-upload__tip text-center
"
>
<div
slot=
"tip"
class=
"
text-center el-upload__tip
"
>
<div
slot=
"tip"
class=
"el-upload__tip"
>
<el-checkbox
v-model=
"upload.updateSupport"
/>
是否更新已经存在的用户数据
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论