Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
founder_vue
Overview
Overview
Details
Activity
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
常超
founder_vue
Commits
72b9a09c
Commit
72b9a09c
authored
Jul 15, 2022
by
hd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 接口联调
parent
25f6aec8
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
77 additions
and
162 deletions
+77
-162
src/api/rwgl.js
+9
-0
src/views/rwddzx/components/ptCxForm_components.vue
+4
-6
src/views/rwddzx/ddrz/index.vue
+1
-93
src/views/rwddzx/rwgl/editRwglrwxx.vue
+17
-11
src/views/rwddzx/rwgl/index.vue
+4
-4
src/views/rwddzx/zxqgl/index.vue
+42
-48
No files found.
src/api/rwgl.js
View file @
72b9a09c
...
...
@@ -25,3 +25,11 @@ export const executionMxjcldd = params =>
// 查看日志
export
const
getMxjclfwrzsjList
=
params
=>
post
(
`
${
base
.
alyIP
}
/wjcyxgkzx/getMxjclfwrzsjList`
,
params
);
// 执行器管理 修改
export
const
updateZxqgl
=
params
=>
post
(
`
${
base
.
alyIP
}
/wjcyxgkzx/updateZxqgl`
,
params
);
// 执行器管理 删除
export
const
deleteZxqgl
=
params
=>
post
(
`
${
base
.
alyIP
}
/wjcyxgkzx/deleteZxqgl`
,
params
);
\ No newline at end of file
src/views/rwddzx/components/ptCxForm_components.vue
View file @
72b9a09c
...
...
@@ -1031,15 +1031,13 @@ export default {
},
// 获取数据
getList
()
{
console
.
log
(
this
.
propQueryField
,
this
.
formData
)
let
obj
=
{}
for
(
let
i
=
0
;
i
<
this
.
propQueryField
.
length
;
i
++
)
{
// obj[this.propQueryField[i].id]
console
.
log
(
this
.
propQueryField
[
i
].
id
)
if
(
this
.
$route
.
query
.
rwid
)
{
this
.
formData
.
rwid
=
this
.
$route
.
query
.
rwid
}
this
.
toQueryRequest
(
this
.
formData
).
then
(
res
=>
{
console
.
log
(
res
)
if
(
res
.
success
)
{
this
.
tableData
=
res
.
data
.
rows
}
})
},
handleCurrentChange
(
val
)
{
...
...
src/views/rwddzx/ddrz/index.vue
View file @
72b9a09c
...
...
@@ -159,99 +159,7 @@ export default {
disabled
:
false
,
},
],
tableData
:
[
{
rwid
:
"0"
,
ddsj
:
"2021-12-5 15:10:25"
,
ddjg
:
"1"
,
ddbz
:
"调度成功"
,
zxsj
:
"2021-12-5 15:10:25"
,
zxjg
:
"1"
,
zxbz
:
"调度成功"
,
},
{
rwid
:
"1"
,
ddsj
:
"2021-12-2 10:30:20"
,
ddjg
:
"1"
,
ddbz
:
"调度成功"
,
zxsj
:
"2021-12-2 10:30:20"
,
zxjg
:
"1"
,
zxbz
:
"调度成功"
,
},
{
rwid
:
"2"
,
ddsj
:
"2021-11-30 11:29:20"
,
ddjg
:
"1"
,
ddbz
:
"调度成功"
,
zxsj
:
"2021-11-30 11:29:20"
,
zxjg
:
"1"
,
zxbz
:
""
,
},
{
rwid
:
"3"
,
ddsj
:
"2021-11-28 17:40:20"
,
ddjg
:
"1"
,
ddbz
:
"调度成功"
,
zxsj
:
"2021-11-28 17:40:20"
,
zxjg
:
"1"
,
zxbz
:
"调度成功"
,
},
{
rwid
:
"4"
,
ddsj
:
"2021-11-25 10:30:20"
,
ddjg
:
"1"
,
ddbz
:
"调度成功"
,
zxsj
:
"2021-11-25 10:30:20"
,
zxjg
:
"1"
,
zxbz
:
""
,
},
{
rwid
:
"5"
,
ddsj
:
"2021-11-25 10:30:20"
,
ddjg
:
"1"
,
ddbz
:
"调度成功"
,
zxsj
:
"2021-11-25 10:30:20"
,
zxjg
:
"1"
,
zxbz
:
"调度成功"
,
},
{
rwid
:
"6"
,
ddsj
:
"2021-11-23 17:29:20"
,
ddjg
:
"1"
,
ddbz
:
"调度成功"
,
zxsj
:
"2021-11-23 17:29:20"
,
zxjg
:
"1"
,
zxbz
:
"调度成功"
,
},
{
rwid
:
"7"
,
ddsj
:
"2021-11-20 17:29:20"
,
ddjg
:
"1"
,
ddbz
:
"调度成功"
,
zxsj
:
"2021-11-20 17:29:20"
,
zxjg
:
"1"
,
zxbz
:
"调度成功"
,
},
{
rwid
:
"8"
,
ddsj
:
"2021-11-12 14:29:20"
,
ddjg
:
"1"
,
ddbz
:
"调度成功"
,
zxsj
:
"2021-11-12 14:29:20"
,
zxjg
:
"1"
,
zxbz
:
"调度成功"
,
},
{
rwid
:
"9"
,
ddsj
:
"2021-11-11 14:29:20"
,
ddjg
:
"1"
,
ddbz
:
"调度成功"
,
zxsj
:
"2021-11-11 14:29:20"
,
zxjg
:
"1"
,
zxbz
:
"调度成功"
,
},
],
tableData
:
[],
};
},
created
()
{
...
...
src/views/rwddzx/rwgl/editRwglrwxx.vue
View file @
72b9a09c
...
...
@@ -21,7 +21,6 @@
<
script
>
import
formCompontent
from
"../components/form.vue"
;
import
{
getMxjclddByRwid
,
updateMxjcldd
}
from
'@/api/rwgl'
import
{
resolve
}
from
"path"
;
export
default
{
name
:
"editRwglrwxx"
,
components
:
{
...
...
@@ -67,7 +66,7 @@ export default {
},
{
name
:
"JobHanlder:"
,
id
:
"job
hanl
der"
,
id
:
"job
Hlan
der"
,
type
:
"text"
,
value
:
""
,
prop
:
"checkEmpty"
,
...
...
@@ -143,15 +142,17 @@ export default {
};
},
created
()
{
this
.
$store
.
commit
(
"user/SET_Breadcrumb"
,
this
.
Menu
);
if
(
this
.
$route
.
query
.
glxxzjbh
)
{
this
.
glxxzjbh
=
this
.
$route
.
query
.
glxxzjbh
;
}
if
(
this
.
$route
.
query
.
xxzjbh
)
{
this
.
title
=
"修改阵地从业人员信息"
;
this
.
xxzjbh
=
this
.
$route
.
query
.
xxzjbh
;
this
.
getshuju
();
}
// if (this.$route.query.glxxzjbh) {
// this.glxxzjbh = this.$route.query.glxxzjbh;
// }
// if (this.$route.query.xxzjbh) {
// this.title = "修改阵地从业人员信息";
// this.xxzjbh = this.$route.query.xxzjbh;
// // this.getshuju();
// }
// this.getInit()
},
mounted
()
{
this
.
getInit
()
...
...
@@ -163,13 +164,18 @@ export default {
this
.
formLabelAlign
=
res
},
getObj
()
{
return
new
Promise
((
resolve
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
getMxjclddByRwid
({
rwid
:
this
.
$route
.
query
.
rwid
}).
then
(
res
=>
{
if
(
res
.
success
)
{
resolve
(
res
.
data
.
mxjcldd
);
}
else
{
reject
(
res
.
data
)
}
}).
catch
(
err
=>
{
console
.
log
(
err
)
reject
(
err
)
})
})
},
...
...
src/views/rwddzx/rwgl/index.vue
View file @
72b9a09c
...
...
@@ -210,9 +210,9 @@ export default {
queryLog
(
data
)
{
this
.
$router
.
push
({
path
:
"/ddrz"
,
//
query: {
// xxzjbh: data.row.xxzjbh,
//
},
query
:
{
rwid
:
data
.
row
.
rwid
},
});
},
//注册节点
...
...
@@ -273,7 +273,7 @@ export default {
},
});
}
else
{
updateMxjcldd
({
Api
.
updateMxjcldd
({
rwid
:
data
.
row
.
rwid
,
state
:
1
}).
then
(
res
=>
{
...
...
src/views/rwddzx/zxqgl/index.vue
View file @
72b9a09c
...
...
@@ -20,6 +20,7 @@
@
dele=
"dele"
@
toOnline=
"toOnline"
@
selectionChange=
"selectionChange"
cxUrl=
"/wjcyxgkzx/getZxqglList"
></right-content>
<!-- 编辑 -->
<el-dialog
...
...
@@ -32,25 +33,25 @@
<el-row
style=
"margin-top: 20px"
>
<el-col
:span=
"20"
:offset=
"2"
>
<el-form-item
label=
"AppName:"
>
<el-input
v-model=
"ckForm.app
n
ame"
></el-input>
<el-input
v-model=
"ckForm.app
N
ame"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"20"
:offset=
"2"
>
<el-form-item
label=
"名称:"
>
<el-input
v-model=
"ckForm.
othername
"
></el-input>
<el-input
v-model=
"ckForm.
mc
"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"20"
:offset=
"2"
>
<el-form-item
label=
"注册方式:"
>
<el-radio-group
v-model=
"ckForm.
resource
"
>
<el-radio
label=
"
自动注册"
>
</el-radio>
<el-radio
label=
"
手动录入"
>
</el-radio>
<el-radio-group
v-model=
"ckForm.
zcfs
"
>
<el-radio
label=
"
0"
>
自动注册
</el-radio>
<el-radio
label=
"
1"
>
手动录入
</el-radio>
</el-radio-group>
</el-form-item>
</el-col>
<el-col
:span=
"20"
:offset=
"2"
>
<el-form-item
label=
"注册地址:"
>
<el-input
type=
"textarea"
v-model=
"ckForm.
onlineAddress
"
></el-input>
<el-input
type=
"textarea"
v-model=
"ckForm.
xsdz
"
></el-input>
</el-form-item>
</el-col>
</el-row>
...
...
@@ -65,6 +66,7 @@
<
script
>
import
rightContent
from
"../components/ptCxForm_components.vue"
;
import
*
as
Api
from
'@/api/rwgl'
export
default
{
name
:
"zxqgl"
,
components
:
{
...
...
@@ -75,15 +77,15 @@ export default {
header
:
"任务调度中心"
,
pageBs
:
"zxqgl"
,
cxFormData
:
{
app
n
ame
:
""
,
othername
:
""
,
app
N
ame
:
""
,
mc
:
""
,
limit
:
10
,
page
:
1
,
},
cxQueryField
:
[
{
name
:
"AppName"
,
id
:
"app
n
ame"
,
id
:
"app
N
ame"
,
type
:
"text"
,
value
:
""
,
placeholder
:
"请输入AppName"
,
...
...
@@ -91,7 +93,7 @@ export default {
},
{
name
:
"名称"
,
id
:
"
othername
"
,
id
:
"
mc
"
,
type
:
"text"
,
value
:
""
,
placeholder
:
"请输入名称"
,
...
...
@@ -101,22 +103,22 @@ export default {
cxDefaultFormThead
:
[
{
label
:
"AppName"
,
prop
:
"app
n
ame"
,
prop
:
"app
N
ame"
,
width
:
"200"
,
},
{
label
:
"名称"
,
prop
:
"
othername
"
,
prop
:
"
mc
"
,
width
:
"200"
,
},
{
label
:
"注册方式"
,
prop
:
"zcfs"
,
prop
:
"zcfs
Str
"
,
width
:
"200"
,
},
{
label
:
"Online机器地址"
,
prop
:
"
onlineAddress
"
,
prop
:
"
xsdz
"
,
toOnline
:
true
,
width
:
"200"
,
},
...
...
@@ -131,36 +133,15 @@ export default {
disabled
:
false
,
},
],
tableData
:[
{
id
:
'0'
,
appname
:
'aapp-dfdsaf-creare-sdafasd'
,
othername
:
'生成数据执行器'
,
zcfs
:
'手动录入'
,
onlineAddress
:
'http://172.20.1.242:8080/,http://172.20.1.242:8080/'
,
},
{
id
:
'1'
,
appname
:
'aapp-dfdsaf-creare-sdafasd'
,
othername
:
'生成数据执行器'
,
zcfs
:
'手动录入'
,
onlineAddress
:
'http://172.20.1.242:8080/,http://172.20.1.242:8080/'
,
},
{
id
:
'2'
,
appname
:
'aapp-dfdsaf-creare-sdafasd'
,
othername
:
'生成数据执行器'
,
zcfs
:
'手动录入'
,
onlineAddress
:
'http://172.20.1.242:8080/,http://172.20.1.242:8080/'
,
},
],
tableData
:[],
selectArr
:
[],
actuatorVisiable
:
false
,
ckForm
:
{
appname
:
""
,
othername
:
""
,
resource
:
""
,
onlineAddress
:
""
,
appName
:
""
,
mc
:
""
,
zcfs
:
""
,
xsdz
:
""
,
appId
:
""
},
fileArr
:
[],
zdXxzjbh
:
""
,
...
...
@@ -168,6 +149,7 @@ export default {
},
created
()
{
this
.
$store
.
commit
(
"user/SET_Menu"
,
this
.
Menu
);
},
methods
:
{
edit
(
scope
)
{
...
...
@@ -178,19 +160,22 @@ export default {
this
.
actuatorVisiable
=
true
},
dele
(
scope
)
{
var
self
=
this
;
this
.
$confirm
(
"此操作将永久删除该文件, 是否继续?"
,
"提示"
,
{
this
.
$confirm
(
"此操作将永久删除, 是否继续?"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
,
})
.
then
(()
=>
{
self
.
tableData
=
self
.
tableData
.
filter
(
el
=>
el
.
id
!=
scope
.
row
.
id
)
console
.
log
(
self
.
tableData
,
' self.tableData self.tableData'
)
// self.tableData = self.tableData.filter(el=>el.id != scope.row.id)
Api
.
deleteZxqgl
({
appId
:
scope
.
row
.
appId
}).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
$message
({
type
:
"success"
,
message
:
"已成功删除"
,
});
type
:
'success'
,
message
:
'已成功删除!'
})
window
.
location
.
reload
()
}
})
})
.
catch
(()
=>
{
this
.
$message
({
...
...
@@ -215,7 +200,16 @@ export default {
this
.
selectArr
=
scope
;
},
submitCKD
()
{
Api
.
updateZxqgl
(
this
.
ckForm
).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
actuatorVisiable
=
false
this
.
$message
({
type
:
'success'
,
message
:
'修改成功!'
})
window
.
location
.
reload
()
}
})
},
//查看Online机器地址
toOnline
(
data
){
...
...
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