Commit 72b9a09c by hd

feat: 接口联调

parent 25f6aec8
......@@ -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
......@@ -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) {
......
......@@ -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() {
......
......@@ -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: "jobhanlder",
id: "jobHlander",
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)
})
})
},
......
......@@ -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 => {
......
......@@ -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.appname"></el-input>
<el-input v-model="ckForm.appName"></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: {
appname: "",
othername: "",
appName: "",
mc : "",
limit: 10,
page: 1,
},
cxQueryField: [
{
name: "AppName",
id: "appname",
id: "appName",
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: "appname",
prop: "appName",
width: "200",
},
{
label: "名称",
prop: "othername",
prop: "mc",
width: "200",
},
{
label: "注册方式",
prop: "zcfs",
prop: "zcfsStr",
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){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment