Commit 61870034 authored by 刘殿昕's avatar 刘殿昕

Merge branch 'ldx' into dev

parents 5f674a4a 9b7c2ed3
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
"build": "node build/build.js" "build": "node build/build.js"
}, },
"dependencies": { "dependencies": {
"@antv/g6": "^3.4.8",
"@fortawesome/fontawesome-free": "^5.8.0", "@fortawesome/fontawesome-free": "^5.8.0",
"ace-builds": "^1.4.11", "ace-builds": "^1.4.11",
"babel-polyfill": "^6.26.0", "babel-polyfill": "^6.26.0",
......
...@@ -9,12 +9,9 @@ ...@@ -9,12 +9,9 @@
<script> <script>
import ace from "ace-builds"; import ace from "ace-builds";
import "ace-builds/webpack-resolver"; // 在 webpack 环境中使用必须要导入 import "ace-builds/webpack-resolver"; // 在 webpack 环境中使用必须要导入
import "ace-builds/src-noconflict/mode-yaml"; // 默认设置的语言模式
import "ace-builds/src-noconflict/mode-json"; // 默认设置的语言模式 import "ace-builds/src-noconflict/mode-json"; // 默认设置的语言模式
import yaml from "json2yaml"; //json转yaml
import json from "js-yaml"; //yaml转json
export default { export default {
props: ["items", "acemodePath"], props: ["url"],
data() { data() {
return { return {
aceEditor: null, aceEditor: null,
...@@ -33,27 +30,22 @@ export default { ...@@ -33,27 +30,22 @@ export default {
tabSize: 4, tabSize: 4,
highlightActiveLine: false highlightActiveLine: false
}); });
this.getValue();
if (this.acemodePath == "ace/mode/yaml") {
var obj = yaml.stringify(this.items);
this.aceEditor.getSession().setValue(obj);
} else if (this.acemodePath == "ace/mode/json") {
this.aceEditor
.getSession()
.setValue(JSON.stringify(this.items, null, "\t"));
}
}, },
watch: {}, watch: {},
methods: { methods: {
// updatechild: function() { getValue() {
// json.load(this.aceEditor.getSession().getValue()); this.$http
// console.log(json.load(this.aceEditor.getSession().getValue())); .get(this.url)
// }, .then(response => {
parentHandleclick: function() { this.aceEditor.setValue(JSON.stringify(response.data, null, "\t"));
this.$emit( })
"jsonyamlvalue", .catch(function(response) {
json.load(this.aceEditor.getSession().getValue()) console.log(response);
); });
},
parentHandleclick() {
this.$emit("getEditValue", this.aceEditor.getValue());
} }
} }
}; };
......
...@@ -69,6 +69,7 @@ ...@@ -69,6 +69,7 @@
:empty-text="emptyText" :empty-text="emptyText"
:stripe="stripe" :stripe="stripe"
row-key="id" row-key="id"
:show-header="showHeader"
default-expand-all default-expand-all
:tree-props="{ children: 'children', hasChildren: 'hasChildren' }" :tree-props="{ children: 'children', hasChildren: 'hasChildren' }"
ref="cesTable" ref="cesTable"
...@@ -153,9 +154,7 @@ ...@@ -153,9 +154,7 @@
trigger="hover" trigger="hover"
:content="scope.row[item.prop]" :content="scope.row[item.prop]"
> >
<span slot="reference" class="overlit">{{ <div slot="reference" class="overlit">{{scope.row[item.prop]}}</div>
scope.row[item.prop]
}}</span>
</el-popover> </el-popover>
<!-- others --> <!-- others -->
<span v-else>{{ scope.row[item.prop] }}</span> <span v-else>{{ scope.row[item.prop] }}</span>
...@@ -336,6 +335,10 @@ export default { ...@@ -336,6 +335,10 @@ export default {
type: Array, type: Array,
default: null, default: null,
}, },
showHeader: {
type: Boolean,
default: true
}
}, },
data() { data() {
return { return {
...@@ -512,6 +515,7 @@ export default { ...@@ -512,6 +515,7 @@ export default {
} }
this.selectedTabsPage.push(newRow); this.selectedTabsPage.push(newRow);
}, },
// get now table data
getTableData() { getTableData() {
return this.selectedTabsPage; return this.selectedTabsPage;
}, },
......
This diff is collapsed.
<template> <template>
<div> <div>
<div v-if="!needCropper"> <div v-if="type != 'copper'">
<el-upload <el-upload
action="ssurl" action="ssurl"
:file-list="fileArray" :file-list="fileArray"
...@@ -53,10 +53,6 @@ export default { ...@@ -53,10 +53,6 @@ export default {
type: Number, type: Number,
default: 1 default: 1
}, },
needCropper: {
type: Boolean,
default: false
},
list: { list: {
type: Array, type: Array,
default: [] default: []
......
<template> <template>
<div class="code-main"> <div class="code-main">
<v-apaas-code></v-apaas-code> <v-apaas-code url="/static/data.json"></v-apaas-code>
</div> </div>
</template> </template>
...@@ -36,4 +36,7 @@ export default { ...@@ -36,4 +36,7 @@ export default {
</script> </script>
<style scoped> <style scoped>
.code-main {
margin-top: 100px;
}
</style> </style>
\ No newline at end of file
<template>
<div class="topo_ex">
<Topology :datas="datas" />
</div>
</template>
<script>
// @ is an alias to /src
import Topology from "@/components/topology.vue";
export default {
components: {
Topology
},
data: () => ({
datas: {}
}),
mounted() {
this.getData();
},
methods: {
getData() {
let url = "./static/antv.json";
this.$http
.get(url)
.then(response => {
this.datas = response.data.elements;
})
.catch(function(response) {
this.error = true;
});
},
}
};
</script>
<style scoped>
.topo_ex {
margin-top: 100px;
}
</style>
\ No newline at end of file
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
<upload-file <upload-file
:multiple="false" :multiple="false"
:max="4" :max="4"
:needCropper="true"
type="cropper" type="cropper"
:readOnly="false" :readOnly="false"
:list="imgList" :list="imgList"
...@@ -14,7 +13,6 @@ ...@@ -14,7 +13,6 @@
<upload-file <upload-file
:multiple="false" :multiple="false"
:max="4" :max="4"
:needCropper="false"
type="picture" type="picture"
:readOnly="false" :readOnly="false"
fit="fill" fit="fill"
...@@ -25,7 +23,6 @@ ...@@ -25,7 +23,6 @@
<upload-file <upload-file
:multiple="false" :multiple="false"
:max="4" :max="4"
:needCropper="false"
type="mp3" type="mp3"
:readOnly="false" :readOnly="false"
fit="fill" fit="fill"
......
...@@ -2,7 +2,9 @@ ...@@ -2,7 +2,9 @@
<div class="fwcs"> <div class="fwcs">
<el-breadcrumb separator="/" class="bread_crumb"> <el-breadcrumb separator="/" class="bread_crumb">
<el-breadcrumb-item :to="{ path: '/fwzc' }">服务注册</el-breadcrumb-item> <el-breadcrumb-item :to="{ path: '/fwzc' }">服务注册</el-breadcrumb-item>
<el-breadcrumb-item>服务测试</el-breadcrumb-item> <el-breadcrumb-item v-if="!jcxxtx">服务测试</el-breadcrumb-item>
<el-breadcrumb-item v-else :to="{ path: '/fwzc' }">服务测试</el-breadcrumb-item>
<el-breadcrumb-item v-if="jcxxtx">基础信息填写</el-breadcrumb-item>
</el-breadcrumb> </el-breadcrumb>
<block-radius> <block-radius>
<el-row> <el-row>
...@@ -14,6 +16,17 @@ ...@@ -14,6 +16,17 @@
>{{ item.text }}</el-button> >{{ item.text }}</el-button>
</el-row> </el-row>
<div class="gray_line"></div> <div class="gray_line"></div>
<div v-if="activeBtn == 4">
<div class="sqxx_title">服务类型:</div>
<el-select v-model="zhyyVal" placeholder="请选择" class="zhyy_select">
<el-option
v-for="item in optionsZhyy"
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
</el-select>
</div>
<div class="fwcs_fwdz">服务地址:</div> <div class="fwcs_fwdz">服务地址:</div>
<div class="fwcs_fwdz_inner"> <div class="fwcs_fwdz_inner">
<el-input placeholder="请输入内容" v-model="input3" class="input-with-select"> <el-input placeholder="请输入内容" v-model="input3" class="input-with-select">
...@@ -26,7 +39,7 @@ ...@@ -26,7 +39,7 @@
></el-option> ></el-option>
</el-select> </el-select>
</el-input> </el-input>
<el-button v-if="activeBtn == 0" @click="clickFwcs()" class="fwcs_btn_fwcs">服务测试</el-button> <el-button v-if="activeBtn == 0 || activeBtn == 4" @click="clickFwcs()" class="fwcs_btn_fwcs">服务测试</el-button>
</div> </div>
<div v-if="activeBtn == 0"> <div v-if="activeBtn == 0">
<el-tabs v-model="activeName" class="fwcs_tabs" @tab-click="clickTab"> <el-tabs v-model="activeName" class="fwcs_tabs" @tab-click="clickTab">
...@@ -94,58 +107,63 @@ ...@@ -94,58 +107,63 @@
</div> </div>
</div> </div>
</block-radius> </block-radius>
<block-radius v-if="activeBtn == 0 && resultShow"> <block-radius v-if="resultShow">
<div class="sjfw_qqcstx">请求参数信息填写:</div> <div v-if="activeBtn == 0">
<ces-table <div class="sjfw_qqcstx">请求参数信息填写:</div>
ref="fwcs_sjfw_qqcs" <ces-table
size="mini" ref="fwcs_sjfw_qqcs"
:border="true" size="mini"
:headers="sjfw_qqcstx" :border="true"
url="qqcstx" :headers="sjfw_qqcstx"
:searchShow="false" url="qqcstx"
:addRowBtn="false" :searchShow="false"
:autoAdd="false" :addRowBtn="false"
:isDialog="false" :autoAdd="false"
:isSelection="false" :isDialog="false"
:isIndex="true" :isSelection="false"
:radius="true" :isIndex="true"
:emptyText="emptyText" :radius="true"
:stripe="false" :emptyText="emptyText"
:paginationShow="false" :stripe="false"
:pageSizeShow="false" :paginationShow="false"
headerCellClassName="th_pink" :pageSizeShow="false"
></ces-table> headerCellClassName="th_pink"
<div class="sjfw_fhcstx">返回参数信息填写:</div> ></ces-table>
<ces-table <div class="sjfw_fhcstx">返回参数信息填写:</div>
ref="fwcs_sjfw_fhcs" <ces-table
size="mini" ref="fwcs_sjfw_fhcs"
:border="true" size="mini"
:headers="sjfw_fhcstx" :border="true"
url="fhcstx" :headers="sjfw_fhcstx"
:searchShow="false" url="fhcstx"
:addRowBtn="false" :searchShow="false"
:autoAdd="false" :addRowBtn="false"
:isDialog="false" :autoAdd="false"
:isSelection="false" :isDialog="false"
:isIndex="true" :isSelection="false"
:radius="true" :isIndex="true"
:emptyText="emptyText" :radius="true"
:stripe="false" :emptyText="emptyText"
:paginationShow="false" :stripe="false"
:pageSizeShow="false" :paginationShow="false"
headerCellClassName="th_pink" :pageSizeShow="false"
></ces-table> headerCellClassName="th_pink"
<div class="btn_footer"> ></ces-table>
<el-button class="reset" @click="resetSjfw">重置</el-button>
<el-button class="next" @click="nextJcxx">下一步</el-button>
</div> </div>
</block-radius> <div v-else-if="activeBtn == 1 || activeBtn == 4">
<block-radius v-if="activeBtn == 1 && resultShow"> <div class="skfw_csfwxx">测试服务信息:</div>
<div class="skfw_csfwxx">测试服务信息:</div> <div class="test_succ">
<div class="test_succ"> <div v-if="skfwResult" class="skcs_jg">
<div>测试成功</div> <img src="../assets/imgs/test_icon_success.png" class="skcs_jg_img" />&nbsp;测试成功
</div>
<div v-else class="skcs_jg">
<img src="../assets/imgs/test_icon_error.png" class="skcs_jg_img" />&nbsp;测试失败
</div>
<div></div>
</div>
</div> </div>
<div class="btn_footer"> <div class="btn_footer">
<el-button class="reset" v-if="activeBtn == 0" @click="resetSjfw">重置</el-button>
<el-button class="next" @click="nextJcxx">下一步</el-button> <el-button class="next" @click="nextJcxx">下一步</el-button>
</div> </div>
</block-radius> </block-radius>
...@@ -222,12 +240,22 @@ export default { ...@@ -222,12 +240,22 @@ export default {
"OGS(WMTS)", "OGS(WMTS)",
"OGS(WFS)", "OGS(WFS)",
"OGS(WCS)" "OGS(WCS)"
] ],
skfwResult: false,
optionsZhyy: [
{ label: "模型算法类", value: 0 },
{ label: "查询验证类", value: 1 },
{ label: "流程类", value: 2 },
{ label: "应用类", value: 3 },
],
zhyyVal: 0,
jcxxtx: false
}), }),
computed: {}, computed: {},
watch: {}, watch: {},
methods: { methods: {
clickBtn(val) { clickBtn(val) {
this.resultShow = false;
this.activeBtn = val; this.activeBtn = val;
}, },
clickFwcs() { clickFwcs() {
...@@ -238,7 +266,9 @@ export default { ...@@ -238,7 +266,9 @@ export default {
console.log(this.$refs.fwcs_sjfw_qq.getTableData()); console.log(this.$refs.fwcs_sjfw_qq.getTableData());
}, },
resetSjfw() {}, resetSjfw() {},
nextJcxx() {}, nextJcxx() {
this.jcxxtx = true;
}
}, },
mounted() {} mounted() {}
}; };
...@@ -346,6 +376,21 @@ export default { ...@@ -346,6 +376,21 @@ export default {
width: 100%; width: 100%;
margin: 0 auto; margin: 0 auto;
} }
.skcs_jg {
height: 100px;
display: flex;
align-items: center;
justify-content: center;
color: #0f2683;
font-size: 20px;
}
.skcs_jg_img {
position: relative;
top: 3px;
}
.zhyy_select {
width: 70%;
}
</style> </style>
<style> <style>
.bread_crumb .el-breadcrumb__inner { .bread_crumb .el-breadcrumb__inner {
......
...@@ -55,6 +55,11 @@ export default new Router({ ...@@ -55,6 +55,11 @@ export default new Router({
path: "/example_icon", // svg 实例 path: "/example_icon", // svg 实例
name: "example_icon", name: "example_icon",
component: () => import("@/pages/example_icon") component: () => import("@/pages/example_icon")
},
{
path: "/example_topology", // 拓扑图实例
name: "example_topology",
component: () => import("@/pages/example_topology")
} }
] ]
}); });
This diff is collapsed.
...@@ -382,7 +382,7 @@ ...@@ -382,7 +382,7 @@
{ {
"id": 3, "id": 3,
"unicode": "2016-05-01", "unicode": "2016-05-01",
"type": "ssdNW", "type": "ssdNWssdNWssdNWssdNWssdNWssdNWssdNW",
"name": "王小虎", "name": "王小虎",
"explanation": "上海市普陀区金沙江路 1519 弄", "explanation": "上海市普陀区金沙江路 1519 弄",
"children": [ "children": [
......
<svg id="图层_1" data-name="图层 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 22"><defs><style>.cls-1{fill:#a1b1f6;}.cls-2{fill:#495feb;}</style></defs><title>ic_画板 17</title><rect class="cls-1" x="4.22" y="4.22" width="13.56" height="13.56" transform="translate(-4.56 11) rotate(-45)"/><path class="cls-2" d="M11,2.83,19.17,11,11,19.17,2.83,11,11,2.83M11,0,0,11,11,22,22,11,11,0Z"/></svg>
\ No newline at end of file
<svg id="图层_1" data-name="图层 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><defs><style>.cls-1{fill:#a1b1f6;}.cls-2{fill:#495feb;}</style></defs><title>ic_画板 15</title><path class="cls-1" d="M10,19a9,9,0,1,1,9-9A9,9,0,0,1,10,19Z"/><path class="cls-2" d="M10,2a8,8,0,1,1-8,8,8,8,0,0,1,8-8m0-2A10,10,0,1,0,20,10,10,10,0,0,0,10,0Z"/></svg>
\ No newline at end of file
<svg id="图层_1" data-name="图层 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 19.05"><defs><style>.cls-1{fill:#a1b1f6;}.cls-2{fill:#495feb;}</style></defs><title>ic_画板 16</title><polygon class="cls-1" points="1.73 18.05 11 2 20.27 18.05 1.73 18.05"/><path class="cls-2" d="M11,4l7.54,13.05H3.46L11,4m0-4L0,19.05H22L11,0Z"/></svg>
\ No newline at end of file
<svg id="图层_1" data-name="图层 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18"><defs><style>.cls-1{fill:#a1b1f6;}.cls-2{fill:#495feb;}</style></defs><title>ic_画板 14</title><rect class="cls-1" x="1" y="1" width="16" height="16"/><path class="cls-2" d="M16,2V16H2V2H16m2-2H0V18H18V0Z"/></svg>
\ No newline at end of file
<svg id="图层_1" data-name="图层 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 20.92"><defs><style>.cls-1{fill:#a1b1f6;}.cls-2{fill:#495feb;}</style></defs><title>ic_画板 18</title><polygon class="cls-1" points="4.93 19.92 1.18 8.37 11 1.24 20.82 8.37 17.07 19.92 4.93 19.92"/><path class="cls-2" d="M11,2.47l8.65,6.28-3.3,10.17H5.65L2.35,8.76,11,2.47M11,0,0,8,4.2,20.92H17.8L22,8,11,0Z"/></svg>
\ No newline at end of file
This diff is collapsed.
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