Commit 66b65a0f authored by 刘殿昕's avatar 刘殿昕

Merge branch 'ldx' into dev

parents 1c80b75a 9681e6dc
...@@ -22,7 +22,7 @@ export default { ...@@ -22,7 +22,7 @@ export default {
mounted() { mounted() {
this.aceEditor = ace.edit(this.$refs.ace, { this.aceEditor = ace.edit(this.$refs.ace, {
maxLines: 36, maxLines: 38,
minLines: 10, minLines: 10,
fontSize: 14, fontSize: 14,
mode: this.acemodePath, mode: this.acemodePath,
......
<template>
<div class="commodity">
<el-row>
<el-col :span="24">
<div class="com_title">水路货物周转量情况</div>
</el-col>
<el-col :span="12">
<div class="com_item">
<span class="com_item_title">提供机构:</span>
<span class="com_data">北京比格数据</span>
</div>
<div class="com_item">
<span class="com_item_title">发布时间:</span>
<span class="com_data">2020-03-12 18:31:12</span>
</div>
<div class="com_item">
<span class="com_item_title">更新时间:</span>
<span class="com_data">2020-03-12 18:31:12</span>
</div>
<div class="com_item">
<span class="com_item_title">数据领域:</span>
<span class="com_data">经济建设</span>
</div>
<div class="com_item">
<span class="com_item_title">服务类型:</span>
<span class="com_data">综合应用服务</span>
</div>
<div class="com_item">
<span class="com_item_title">资源摘要:</span>
<span
class="com_data"
>提供视频监控的空间分布展示和视频监控直播的服务提供视频监控的空间分布展示和视频监控直播的服务提供视频监控的空间分布展示和视频监控直播的服务</span>
</div>
<div class="com_item">
<span class="com_item_title">开放级别:</span>
<span class="com_data">
<el-tag size="small">共享</el-tag>
</span>
</div>
<div class="com_item">
<span class="com_item_title">浏览次数:</span>
<span class="com_data_view">99999</span>
<span class="com_item_title">获取次数:</span>
<span class="com_data_get">99999</span>
</div>
</el-col>
<el-col :span="12">
<div class="com_item">
<span class="com_item_title">规格:</span>
<span class="com_data">综合应用服务</span>
</div>
<div class="com_item">
<span class="com_item_title">规格说明:</span>
<span class="com_data">综合应用服务</span>
</div>
<div class="com_item">
<span class="com_item_title">购买方式:</span>
<span class="com_data">综合应用服务</span>
</div>
<div class="com_item">
<span class="com_item_title">购买时长:</span>
<span class="com_data">
<el-input-number v-model="num" @change="handleChange" size="small" :min="1" :max="10" label="描述文字"></el-input-number>
</span>
</div>
</el-col>
</el-row>
</div>
</template>
<script>
export default {
components: {},
data: () => ({
num: 1
}),
computed: {},
watch: {},
methods: {},
mounted() {}
};
</script>
<style scoped>
.commodity {
padding: 10px;
}
.com_title {
font-size: 22px;
}
.com_item {
font-size: 16px;
line-height: 26px;
margin-top: 10px;
color: #51ac14;
display: flex;
align-self: start;
}
.com_item_title {
width: 80px;
}
.com_data {
display: inline-block;
width: calc(100% - 90px);
color: #f1ac14;
}
.com_data_view {
color: #f1ac14;
margin-right: 10px;
}
.com_data_get {
color: #f1ac14;
}
</style>
...@@ -99,6 +99,7 @@ ...@@ -99,6 +99,7 @@
:label="item.label" :label="item.label"
:width="item.width" :width="item.width"
:align="item.align" :align="item.align"
:min-width="item.minWidth"
:render-header="item.require ? renderHeader : null" :render-header="item.require ? renderHeader : null"
> >
<template slot-scope="scope"> <template slot-scope="scope">
......
<template>
<div class="com_ex">
<block-radius>
<Commodity :datas="datas" />
</block-radius>
</div>
</template>
<script>
// @ is an alias to /src
import Commodity from "@/components/commodity.vue";
import BlockRadius from "@/components/block-radius";
export default {
components: {
Commodity,
BlockRadius
},
data: () => ({
datas: {
}
}),
mounted() {
},
methods: {}
};
</script>
<style scoped>
.com_ex {
margin-top: 100px;
padding: 20px;
}
</style>
\ No newline at end of file
...@@ -11,9 +11,9 @@ ...@@ -11,9 +11,9 @@
:searchShow="true" :searchShow="true"
:addRowBtn="addRowBtn" :addRowBtn="addRowBtn"
:autoAdd="false" :autoAdd="false"
:isDialog="true" :isDialog="false"
:isSelection="true" :isSelection="false"
:isIndex="true" :isIndex="false"
:confirmOptions="confirmOptions" :confirmOptions="confirmOptions"
:detailsUrl="detailsUrl" :detailsUrl="detailsUrl"
@primary-edit="editItem" @primary-edit="editItem"
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
:stripe="true" :stripe="true"
:pageSizeShow="true" :pageSizeShow="true"
:filterList="filterList" :filterList="filterList"
cellClassName="cell_width"
></ces-table> ></ces-table>
<h3>可编辑表格,供服务测试用</h3> <h3>可编辑表格,供服务测试用</h3>
<ces-table <ces-table
...@@ -74,7 +75,7 @@ import cesTable from "@/components/table-um"; ...@@ -74,7 +75,7 @@ import cesTable from "@/components/table-um";
export default { export default {
data: () => ({ data: () => ({
headers: [ headers: [
{ label: "服务url", prop: "date", type: "href", align: "left" }, { label: "服务url", prop: "date", type: "href", align: "left",minWidth: "50%" },
{ label: "服务名称", prop: "name", type: "href", align: "center" }, { label: "服务名称", prop: "name", type: "href", align: "center" },
{ label: "中文名", prop: "address", type: "href", align: "right" }, { label: "中文名", prop: "address", type: "href", align: "right" },
{ {
......
...@@ -171,14 +171,14 @@ ...@@ -171,14 +171,14 @@
</template> </template>
<script> <script>
import blockRadius from "@/components/block-radius"; import BlockRadius from "@/components/block-radius";
import cesTable from "@/components/table-um"; import CesTable from "@/components/table-um";
import codes from "@/components/codes"; import Codes from "@/components/codes";
export default { export default {
components: { components: {
blockRadius, BlockRadius,
cesTable, CesTable,
"v-apaas-code": codes "v-apaas-code": Codes
}, },
data: () => ({ data: () => ({
btnList: [ btnList: [
......
...@@ -85,7 +85,12 @@ export default new Router({ ...@@ -85,7 +85,12 @@ export default new Router({
{ {
path: "/example_topology", // 拓扑图实例 path: "/example_topology", // 拓扑图实例
name: "example_topology", name: "example_topology",
component: () => import("@/pages/example_topology"), component: () => import("@/pages/example_topology")
}, },
], {
path: "/example_commodity", // 商品详情实例
name: "example_commodity",
component: () => import("@/pages/example_commodity")
}
]
}); });
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