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

Merge branch 'ldx' into dev

parents c9c3b403 5d0dbb3c
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
</template> </template>
<script> <script>
import { graphic } from "echarts/lib/export";
export default { export default {
props: { props: {
data: { data: {
...@@ -11,9 +12,10 @@ export default { ...@@ -11,9 +12,10 @@ export default {
} }
}, },
data: () => ({ data: () => ({
navList: [] navList: [],
}), }),
mounted() {}, mounted() {
},
methods: { methods: {
dashboard() { dashboard() {
let self = this; let self = this;
...@@ -51,7 +53,7 @@ export default { ...@@ -51,7 +53,7 @@ export default {
max: 138, max: 138,
boundaryGap: ["0", "100"], boundaryGap: ["0", "100"],
startAngle: 220, startAngle: 220,
endAngle: -40, endAngle: -40
}, },
radiusAxis: { radiusAxis: {
type: "category", type: "category",
...@@ -66,23 +68,30 @@ export default { ...@@ -66,23 +68,30 @@ export default {
} }
}, },
polar: { polar: {
radius: "100%" radius: "110%"
}, },
series: [ series: [
{ {
type: "bar", type: "bar",
data: [,40], data: [, 40],
coordinateSystem: "polar", coordinateSystem: "polar",
barMaxWidth: 10, barMaxWidth: 10,
z: 1, z: 1,
name: "抢修项目", name: "B",
roundCap: true, roundCap: true,
color: "#1779ee", itemStyle: {
normal: {
color: new graphic.LinearGradient(0, 0, 0, 1, [
{ offset: 0, color: "#25bdb1" },
{ offset: 1, color: "#e7fdfc" }
])
}
},
barGap: "-100%" barGap: "-100%"
}, },
{ {
type: "bar", type: "bar",
data: [,100], data: [, 100],
z: 0, z: 0,
silent: true, silent: true,
coordinateSystem: "polar", coordinateSystem: "polar",
...@@ -94,7 +103,7 @@ export default { ...@@ -94,7 +103,7 @@ export default {
}, },
{ {
type: "gauge", type: "gauge",
radius: "55%", radius: "70%",
min: 0, //最小刻度 min: 0, //最小刻度
max: 100, //最大刻度 max: 100, //最大刻度
splitNumber: 10, //刻度数量 splitNumber: 10, //刻度数量
...@@ -117,16 +126,16 @@ export default { ...@@ -117,16 +126,16 @@ export default {
show: true, show: true,
splitNumber: 5, splitNumber: 5,
lineStyle: { lineStyle: {
color: "#468EFD", //用颜色渐变函数不起作用 color: "#a9aec0",
width: 1 width: 1
}, },
length: -8 length: 4
}, //刻度样式 }, //刻度样式
splitLine: { splitLine: {
show: true, show: true,
length: -10, length: 6,
lineStyle: { lineStyle: {
color: "#468EFD" //用颜色渐变函数不起作用 color: "#a9aec0"
} }
}, //分隔线样式 }, //分隔线样式
detail: { detail: {
...@@ -151,7 +160,7 @@ export default { ...@@ -151,7 +160,7 @@ export default {
} }
}, },
data: [,40] data: [, 40]
} }
] ]
}; };
......
This diff is collapsed.
...@@ -10,8 +10,8 @@ ...@@ -10,8 +10,8 @@
<el-row> <el-row>
<el-col :span="24" class="in_block"> <el-col :span="24" class="in_block">
<block-radius class="block left_1"> <block-radius class="block left_1">
<dashboard ref="left_1_l" class="left_1_l"></dashboard> <div ref="left_1_l" class="left_1_l"></div>
<div ref="left_1_r" class="left_1_r"></div> <dashboard ref="left_1_r" class="left_1_r"></dashboard>
</block-radius> </block-radius>
</el-col> </el-col>
<el-col :span="24" class="in_block"> <el-col :span="24" class="in_block">
...@@ -72,9 +72,7 @@ export default { ...@@ -72,9 +72,7 @@ export default {
data: () => ({ data: () => ({
navList: [] navList: []
}), }),
mounted() { mounted() {},
},
methods: {} methods: {}
}; };
</script> </script>
...@@ -82,7 +80,7 @@ export default { ...@@ -82,7 +80,7 @@ export default {
.in_analysis { .in_analysis {
padding: 0 10px 10px; padding: 0 10px 10px;
height: 100%; height: 100%;
min-width: 1000px; min-width: 1700px;
} }
.in_l { .in_l {
} }
...@@ -91,7 +89,7 @@ export default { ...@@ -91,7 +89,7 @@ export default {
.in_c { .in_c {
} }
.in_block { .in_block {
height: 300px; height: 280px;
padding: 10px; padding: 10px;
} }
.block { .block {
......
...@@ -75,10 +75,15 @@ ...@@ -75,10 +75,15 @@
@click="showMsgBox = false" @click="showMsgBox = false"
>收起评价</el-button> >收起评价</el-button>
<el-button <el-button
v-if=" orderDetail.approval_second_level == 1 && orderDetail.pay_status != -1" v-if="orderDetail.approval_second_level == 1 && orderDetail.pay_status != -1"
class="again" class="again"
@click="nextApply" @click="nextApply"
>再次申请</el-button> >再次申请</el-button>
<el-button
v-if="orderDetail.approval_first_level == 1 && orderDetail.approval_second_level == 0 && orderDetail.pay_status != -1"
class="again"
@click="cancelDetail"
>取消申请</el-button>
</div> </div>
</div> </div>
<div class="detail_title">{{ orderDetail.order_type == 1 ? "服务" : "应用"}}信息</div> <div class="detail_title">{{ orderDetail.order_type == 1 ? "服务" : "应用"}}信息</div>
...@@ -353,6 +358,24 @@ export default { ...@@ -353,6 +358,24 @@ export default {
path: "/shop/shop_car_apply", path: "/shop/shop_car_apply",
query: query query: query
}); });
},
cancelDetail() {
this.$api.user
.cancelOrder({ order_id: this.orderDetail.order_id })
.then(response => {
if (response.data.success == 1) {
this.$message({
message: "取消订单成功",
type: "success"
});
this.$router.push({ name: "orderList" });
} else {
this.$message({
message: "取消订单失败",
type: "error"
});
}
});
} }
} }
}; };
......
...@@ -403,7 +403,10 @@ export default { ...@@ -403,7 +403,10 @@ export default {
input.select(); input.select();
if (document.execCommand("copy")) { if (document.execCommand("copy")) {
document.execCommand("copy"); document.execCommand("copy");
console.log("复制成功"); this.$message({
message: "复制成功",
type: "success"
});
} }
document.body.removeChild(input); document.body.removeChild(input);
}, },
......
...@@ -34,7 +34,9 @@ const user = { ...@@ -34,7 +34,9 @@ const user = {
getOrderApproval(params) { getOrderApproval(params) {
return axios.get(`/apaas/serviceapp/v3/order/approval?apply_id=${params.apply_id}`); return axios.get(`/apaas/serviceapp/v3/order/approval?apply_id=${params.apply_id}`);
}, },
cancelOrder(params) {
return axios.get(`/order/cancel?order_id=${params.order_id}`);
},
// user info // user info
getNowUser() { getNowUser() {
......
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