Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
so-manage-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
smart-operation
so-manage-ui
Commits
47340c01
Commit
47340c01
authored
Jul 04, 2023
by
张俊
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
https://cloud.wodcloud.com/git/smart-operation/so-manage-ui
into dev
parents
85b0c4af
2239de58
Changes
13
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
518 additions
and
759 deletions
+518
-759
src/components/login-by-account.vue
src/components/login-by-account.vue
+1
-3
src/page/main/authority/organization/directory-form.vue
src/page/main/authority/organization/directory-form.vue
+1
-1
src/page/main/authority/organization/index.vue
src/page/main/authority/organization/index.vue
+32
-426
src/page/main/authority/organization/org-detail/index.vue
src/page/main/authority/organization/org-detail/index.vue
+1
-1
src/page/main/authority/organization/org-form.vue
src/page/main/authority/organization/org-form.vue
+1
-12
src/page/main/authority/organization/org-user/org-account-form.vue
...main/authority/organization/org-user/org-account-form.vue
+1
-1
src/page/main/authority/organization/platform-user/index.vue
src/page/main/authority/organization/platform-user/index.vue
+1
-1
src/page/main/authority/organization/tree.vue
src/page/main/authority/organization/tree.vue
+4
-8
src/page/main/forewarning/indicator-config/edit/index.vue
src/page/main/forewarning/indicator-config/edit/index.vue
+3
-2
src/page/main/forewarning/indicator-config/modules/add-form.vue
...ge/main/forewarning/indicator-config/modules/add-form.vue
+36
-283
src/page/main/forewarning/indicator-config/modules/interface.js
...ge/main/forewarning/indicator-config/modules/interface.js
+1
-1
src/page/main/forewarning/indicator-config/modules/warning-scope.vue
...in/forewarning/indicator-config/modules/warning-scope.vue
+418
-0
src/page/main/forewarning/list/index.vue
src/page/main/forewarning/list/index.vue
+18
-20
No files found.
src/components/login-by-account.vue
View file @
47340c01
...
...
@@ -120,9 +120,7 @@ const login = () => {
ElMessage
.
error
(
data
.
data
);
}
})
.
catch
((
error
)
=>
{
console
.
log
(
error
);
});
.
catch
((
error
)
=>
{});
};
const
getUserInfo
=
()
=>
{
return
axios
.
get
(
`/v1/api/user/getUserInfo`
);
...
...
src/page/main/authority/organization/directory-form.vue
View file @
47340c01
...
...
@@ -77,7 +77,7 @@ const treeProps = {
disabled
:
"
disabled
"
,
};
const
getOrgTree
=
()
=>
{
axios
.
get
(
`/
apaas/system/v5
/org/tree`
).
then
((
res
)
=>
{
axios
.
get
(
`/
v1/api
/org/tree`
).
then
((
res
)
=>
{
if
(
res
.
data
.
code
==
200
)
{
const
orgDataTemp
=
res
.
data
.
data
||
[];
orgDataTemp
.
shift
();
...
...
src/page/main/authority/organization/index.vue
View file @
47340c01
This diff is collapsed.
Click to expand it.
src/page/main/authority/organization/org-detail/index.vue
View file @
47340c01
...
...
@@ -149,7 +149,7 @@ const formatFile = (url) => {
const
getDetail
=
()
=>
{
axios
.
get
(
`/
apaas/system/v5
/org/detail?organization_id=
${
route
.
query
.
id
}
&key_word=&state=&limit=&page=&data_type=1`
)
.
get
(
`/
v1/api
/org/detail?organization_id=
${
route
.
query
.
id
}
&key_word=&state=&limit=&page=&data_type=1`
)
.
then
((
res
)
=>
{
if
(
res
.
data
.
code
==
200
)
{
const
detail
=
res
.
data
.
data
.
org_info
;
...
...
src/page/main/authority/organization/org-form.vue
View file @
47340c01
...
...
@@ -22,16 +22,6 @@
<el-form-item
label=
"组织介绍"
prop=
"description"
>
<el-input
type=
"textarea"
:rows=
"3"
v-model=
"orgForm.description"
maxlength=
"300"
show-word-limit
/>
</el-form-item>
<el-form-item
label=
"组织附件"
prop=
"logo"
>
<bg-upload
v-model=
"orgForm.attachment"
customTips
:limit=
"3"
:fileTypes=
"['zip', 'rar', 'doc', 'docx', 'xlsx', 'xls', 'png', 'jpg']"
:otherInfo=
"'最多可上传三个附件,可上传zip,rar,doc,docx,xlsx,xls,png,jpg,可上传营业执照和相关协议文件等'"
>
<span>
将文件拖到此处,或 点击上传
</span>
</bg-upload>
</el-form-item>
</el-form>
</
template
>
...
...
@@ -51,7 +41,6 @@ const orgForm = reactive({
name
:
""
,
organization_code
:
""
,
description
:
""
,
attachment
:
[],
});
const
checkCode
=
(
rule
,
value
,
callback
)
=>
{
...
...
@@ -115,7 +104,7 @@ const treeProps = {
disabled
:
"
disabled
"
,
};
const
getOrgTree
=
()
=>
{
axios
.
get
(
`/
apaas/system/v5
/org/tree`
).
then
((
res
)
=>
{
axios
.
get
(
`/
v1/api
/org/tree`
).
then
((
res
)
=>
{
if
(
res
.
data
.
code
==
200
)
{
const
orgDataTemp
=
res
.
data
.
data
||
[];
orgDataTemp
.
shift
();
...
...
src/page/main/authority/organization/org-user/org-account-form.vue
View file @
47340c01
...
...
@@ -198,7 +198,7 @@ const treeProps = {
value
:
"
organization_id
"
,
};
const
getOrgTree
=
()
=>
{
axios
.
get
(
`/
apaas/system/v5
/org/tree`
).
then
((
res
)
=>
{
axios
.
get
(
`/
v1/api
/org/tree`
).
then
((
res
)
=>
{
if
(
res
.
data
.
code
==
200
)
{
orgData
.
value
=
res
.
data
.
data
||
[];
}
else
{
...
...
src/page/main/authority/organization/platform-user/index.vue
View file @
47340c01
...
...
@@ -211,7 +211,7 @@ const cancel = () => {
};
const
getOrgTree
=
()
=>
{
axios
.
get
(
`/
apaas/system/v5
/org/tree`
).
then
((
res
)
=>
{
axios
.
get
(
`/
v1/api
/org/tree`
).
then
((
res
)
=>
{
if
(
res
.
data
.
code
==
200
)
{
orgId
.
value
=
res
.
data
.
data
[
0
].
organization_id
;
}
else
{
...
...
src/page/main/authority/organization/tree.vue
View file @
47340c01
...
...
@@ -20,10 +20,7 @@
@click.stop="showAction($event, data, node)">
<bg-icon
class=
"tree-more"
icon=
"#bg-ic-s-more"
></bg-icon>
</span>
<span
v-else
class=
"tree-action-box"
@
click.stop=
"showAction($event, data, node)"
>
<span
v-else
class=
"tree-action-box"
@
click.stop=
"showAction($event, data, node)"
>
<bg-icon
class=
"tree-more"
icon=
"#bg-ic-s-more"
></bg-icon>
</span>
</div>
...
...
@@ -141,8 +138,8 @@
</template>
<
script
setup
>
import
{
re
active
,
toRefs
,
ref
,
computed
,
onBeforeMount
,
onBeforeUnmount
,
watch
,
nextTick
}
from
"
vue
"
;
import
{
useRoute
,
useRouter
}
from
"
vue-router
"
;
import
{
re
f
,
onBeforeMount
,
onBeforeUnmount
,
nextTick
}
from
"
vue
"
;
import
{
useRoute
}
from
"
vue-router
"
;
import
axios
from
"
@/request/http.js
"
;
import
{
ElMessage
}
from
"
element-plus
"
;
const
route
=
useRoute
();
...
...
@@ -174,10 +171,9 @@ const defaultProps = {
};
const
getOrgTree
=
(
data
)
=>
{
axios
.
get
(
`/
apaas/system/v5
/org/tree`
).
then
((
res
)
=>
{
axios
.
get
(
`/
v1/api
/org/tree`
).
then
((
res
)
=>
{
if
(
res
.
data
.
code
==
200
)
{
orgData
.
value
=
res
.
data
.
data
||
[];
console
.
log
(
route
.
query
.
id
);
if
(
route
.
query
.
id
)
{
searchItem
(
orgData
.
value
,
route
.
query
.
id
);
data
=
selectNodeObj
.
value
;
...
...
src/page/main/forewarning/indicator-config/edit/index.vue
View file @
47340c01
...
...
@@ -29,7 +29,9 @@ const add_form = ref(null);
const
SaveSubmit
=
async
()
=>
{
let
res
=
await
add_form
.
value
.
Submit
();
if
(
!
res
)
return
;
Save
(
res
,
{
id
,
class_id
});
Save
(
res
,
{
id
,
class_id
},
()
=>
{
Cancle
();
});
};
const
Cancle
=
()
=>
{
router
.
go
(
-
1
);
...
...
@@ -43,7 +45,6 @@ const getInfoData = () => {
})
.
then
((
res
)
=>
{
if
(
res
.
data
.
code
==
200
)
{
console
.
log
(
res
.
data
.
data
);
let
res_d
=
res
.
data
.
data
;
infoData
.
value
=
{
name
:
res_d
.
metric_name
,
...
...
src/page/main/forewarning/indicator-config/modules/add-form.vue
View file @
47340c01
This diff is collapsed.
Click to expand it.
src/page/main/forewarning/indicator-config/modules/interface.js
View file @
47340c01
...
...
@@ -2,7 +2,7 @@ import { ElMessage } from "element-plus";
import
axios
from
"
@/request/http.js
"
;
const
setParams
=
(
res
,
{
id
,
class_id
})
=>
{
let
params
=
{
class_id
,
class_id
:
+
class_id
,
metric_name
:
res
.
name
,
expr
:
res
.
indicator_expression
,
alert_range
:
res
.
warningScopeRows
.
map
((
e
)
=>
{
...
...
src/page/main/forewarning/indicator-config/modules/warning-scope.vue
0 → 100644
View file @
47340c01
This diff is collapsed.
Click to expand it.
src/page/main/forewarning/list/index.vue
View file @
47340c01
...
...
@@ -155,26 +155,24 @@
v-model=
"closeWarningDialog"
width=
"400px"
:before-close=
"cancelCloseWarningDialog"
>
<div
style=
"padding-top: 20px"
>
<el-form
ref=
"closeForm"
:model=
"closeFormData"
:rules=
"closeRules"
label-width=
"80px"
class=
"bg_form"
>
<el-form-item
label=
"关闭备注"
prop=
"close_notes"
>
<el-input
v-model=
"closeFormData.close_notes"
type=
"textarea"
:autosize=
"{ minRows: 2 }"
show-word-limit
maxlength=
"30"
resize=
"vertical"
placeholder=
"请输入内容"
></el-input>
</el-form-item>
<el-form-item
label=
""
class=
"no-el-label"
prop=
"close_remind"
style=
"margin-bottom: 0px"
>
<el-checkbox
v-model=
"closeFormData.close_remind"
>
<div>
三天内将不再自动推送该告警信息给处置人员,
</div>
<div>
可手动推送,但告警数据依然会出现
</div>
</el-checkbox>
</el-form-item>
</el-form>
</div>
<el-form
ref=
"closeForm"
:model=
"closeFormData"
:rules=
"closeRules"
label-width=
"80px"
class=
"bg_form"
>
<el-form-item
label=
"关闭备注"
prop=
"close_notes"
>
<el-input
v-model=
"closeFormData.close_notes"
type=
"textarea"
:autosize=
"{ minRows: 2 }"
show-word-limit
maxlength=
"30"
resize=
"vertical"
placeholder=
"请输入内容"
></el-input>
</el-form-item>
<el-form-item
label=
""
class=
"no-el-label"
prop=
"close_remind"
style=
"margin-bottom: 0px"
>
<el-checkbox
v-model=
"closeFormData.close_remind"
>
<div>
三天内将不再自动推送该告警信息给处置人员,
</div>
<div>
可手动推送,但告警数据依然会出现
</div>
</el-checkbox>
</el-form-item>
</el-form>
<
template
v-slot:footer
>
<div
class=
"apaas_button"
>
<el-button
type=
"default"
@
click=
"cancelCloseWarningDialog"
>
取消
</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