Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
V
vue-quasar-admin-dev
概览
Overview
Details
Activity
Cycle Analytics
版本库
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
问题
0
Issues
0
列表
Board
标记
里程碑
合并请求
0
Merge Requests
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
Snippets
成员
Members
Collapse sidebar
Close sidebar
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
吴超
vue-quasar-admin-dev
Commits
d553149b
Commit
d553149b
authored
Oct 31, 2025
by
周海峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分组
parent
25df482f
全部展开
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
94 行增加
和
4 行删除
+94
-4
src/pages/platformapplications/platformapplications.vue
+52
-4
src/pages/platformapplicationsGroup/platformapplicationsGroup.vue
+0
-0
src/router/routes.js
+5
-0
src/service/permission/platformapplicationsGroup.js
+37
-0
没有找到文件。
src/pages/platformapplications/platformapplications.vue
View file @
d553149b
...
@@ -70,6 +70,12 @@
...
@@ -70,6 +70,12 @@
<q-field
:count=
"255"
>
<q-field
:count=
"255"
>
<q-input
v-model=
"temp.title"
float-label=
"名称"
/>
<q-input
v-model=
"temp.title"
float-label=
"名称"
/>
</q-field>
</q-field>
<q-field>
<div
class=
"row no-wrap"
>
<q-select
class=
"col"
v-model=
"temp.groupCode"
float-label=
"应用分组"
radio
:options=
"applicationsGroupOptions"
/>
<q-btn
color=
"negative"
flat
round
dense
icon=
"add"
@
click=
"openAddApplicationsGroup"
/>
</div>
</q-field>
<q-field
:count=
"255"
>
<q-field
:count=
"255"
>
<q-input
v-model=
"temp.href"
float-label=
"连接"
/>
<q-input
v-model=
"temp.href"
float-label=
"连接"
/>
</q-field>
</q-field>
...
@@ -95,9 +101,9 @@
...
@@ -95,9 +101,9 @@
<q-input
v-model=
"temp.mailtype"
float-label=
"待办标识(待办唯一标识,需要给到对方系统)"
/>
<q-input
v-model=
"temp.mailtype"
float-label=
"待办标识(待办唯一标识,需要给到对方系统)"
/>
</q-field>
</q-field>
<q-field>
<q-field>
<q-input
v-model=
"temp.img"
float-label=
"
上传图标
"
disable
v-if=
"subtype=='edit'"
/>
<q-input
v-model=
"temp.img"
float-label=
"
图标路径
"
disable
v-if=
"subtype=='edit'"
/>
<q-uploader
<q-uploader
float-label=
"
图标路径
"
float-label=
"
上传图标
"
ref=
"attachmentUploader"
ref=
"attachmentUploader"
name=
"file"
name=
"file"
@
uploaded=
"attachmentUploaded"
@
uploaded=
"attachmentUploaded"
...
@@ -105,7 +111,6 @@
...
@@ -105,7 +111,6 @@
:url=
"uploadurl"
:url=
"uploadurl"
auto-expand
auto-expand
clearable
clearable
hide-upload-button
hide-upload-button
@
add=
"$refs['attachmentUploader'].upload()"
@
add=
"$refs['attachmentUploader'].upload()"
></q-uploader>
></q-uploader>
...
@@ -122,11 +127,12 @@
...
@@ -122,11 +127,12 @@
<
script
>
<
script
>
import
{
getPlatformApplicationsPagedList
,
saveapp
,
delapp
}
from
"@/service/permission/platformapplications"
;
import
{
getPlatformApplicationsPagedList
,
saveapp
,
delapp
}
from
"@/service/permission/platformapplications"
;
import
{
getApplicationsGroupList
,
addApplicationsGroup
,
updateApplicationsGroup
,
delApplicationsGroup
}
from
"@/service/permission/platformapplicationsGroup"
;
const
uploadpath
=
"http://nw.sy-metro.com:6104/uploadfileadmin/manager"
;
const
uploadpath
=
"http://nw.sy-metro.com:6104/uploadfileadmin/manager"
;
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
uploadurl
:
uploadpath
+
"
/znzl/file/upload/videoandimgurl?uploadPar=adv&"
,
uploadurl
:
"manager
/znzl/file/upload/videoandimgurl?uploadPar=adv&"
,
selectOptions
:[
selectOptions
:[
{
{
label
:
'启用'
,
label
:
'启用'
,
...
@@ -218,6 +224,7 @@
...
@@ -218,6 +224,7 @@
appidflag
:
true
,
appidflag
:
true
,
subtype
:
"add"
,
subtype
:
"add"
,
fileCount
:
0
,
fileCount
:
0
,
applicationsGroupOptions
:
[]
// 应用分组下拉选项
}
}
},
},
mounted
()
{
mounted
()
{
...
@@ -225,6 +232,9 @@
...
@@ -225,6 +232,9 @@
pagination
:
this
.
serverPagination
,
pagination
:
this
.
serverPagination
,
filter
:
this
.
filter
filter
:
this
.
filter
});
});
// 获取应用分组选项
this
.
getApplicationsGroupOptions
();
},
},
methods
:
{
methods
:
{
async
request
(
props
)
{
async
request
(
props
)
{
...
@@ -342,8 +352,46 @@
...
@@ -342,8 +352,46 @@
position
:
"top-right"
position
:
"top-right"
});
});
}
}
},
// 获取应用分组选项
async
getApplicationsGroupOptions
()
{
try
{
const
response
=
await
getApplicationsGroupList
({});
this
.
applicationsGroupOptions
=
response
.
data
.
data
.
map
(
group
=>
({
label
:
group
.
groupName
,
value
:
group
.
groupCode
}));
}
catch
(
error
)
{
console
.
error
(
"Failed to fetch applications group options:"
,
error
);
}
},
// 点击添加应用分组按钮
async
openAddApplicationsGroup
()
{
try
{
const
name
=
await
this
.
$q
.
dialog
({
title
:
'添加应用分组'
,
prompt
:
{
model
:
''
,
type
:
'text'
,
isValid
:
val
=>
val
&&
val
.
trim
().
length
>
0
},
ok
:
{
label
:
'添加'
,
push
:
true
},
cancel
:
{
label
:
'取消'
,
push
:
true
}
});
console
.
log
(
name
);
// `name` contains the input string in this Quasar version
if
(
name
)
{
const
groupName
=
name
;
// be defensive across versions
await
addApplicationsGroup
({
groupName
:
groupName
});
this
.
$q
.
notify
({
type
:
'positive'
,
message
:
'添加成功'
,
position
:
'bottom-right'
});
// refresh options
await
this
.
getApplicationsGroupOptions
();
}
}
catch
(
e
)
{
// user cancelled or error
}
}
},
},
},
}
}
</
script
>
</
script
>
...
...
src/pages/platformapplicationsGroup/platformapplicationsGroup.vue
0 → 100644
View file @
d553149b
差异被折叠。
点击展开。
src/router/routes.js
View file @
d553149b
...
@@ -155,6 +155,11 @@ const appRouter = [{
...
@@ -155,6 +155,11 @@ const appRouter = [{
name
:
'platformapplications'
,
name
:
'platformapplications'
,
component
:
()
=>
import
(
'pages/platformapplications/platformapplications.vue'
)
component
:
()
=>
import
(
'pages/platformapplications/platformapplications.vue'
)
},
},
{
path
:
'platformapplicationsGroup'
,
name
:
'platformapplicationsGroup'
,
component
:
()
=>
import
(
'pages/platformapplicationsGroup/platformapplicationsGroup.vue'
)
},
]
]
},
},
{
{
...
...
src/service/permission/platformapplicationsGroup.js
0 → 100644
View file @
d553149b
import
request
from
'@/libs/request'
export
function
getApplicationsGroupList
(
query
)
{
return
request
({
url
:
'/applicationsGroup/list'
,
method
:
'get'
,
params
:
query
})
}
export
function
addApplicationsGroup
(
data
)
{
return
request
({
url
:
'/applicationsGroup/add'
,
method
:
'post'
,
data
:
data
,
loading
:
"hourglass"
})
}
export
function
updateApplicationsGroup
(
data
)
{
return
request
({
url
:
'/applicationsGroup/update'
,
method
:
'post'
,
data
:
data
,
loading
:
"hourglass"
})
}
export
function
delApplicationsGroup
(
data
)
{
return
request
({
url
:
'/applicationsGroup/delete'
,
method
:
'post'
,
data
:
data
,
loading
:
"hourglass"
})
}
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论