Commit 86ff5702 by 前端

Merge branch 'SAAS+V4.55.0-0730' of http://192.168.3.233:8090/saas_plus/dj-car-l…

…ife-system into SAAS+V4.55.0-0730
2 parents 53a8f0a8 6901c6c9
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
</el-form-item> </el-form-item>
<el-form-item label="" class="imgItem"> <el-form-item label="" class="imgItem">
<img class="img" v-for="(item, index) in infoForm.constructionImgList" @click=" <img class="img" v-for="(item, index) in infoForm.constructionImgList" @click="
handleEnlargeImg(infoForm.constructionImgList, 'customerPhoto') handleEnlargeImg(infoForm.constructionImgList, 'customerPhoto', index)
" :key="index" :src="item" alt=""> " :key="index" :src="item" alt="">
</el-form-item> </el-form-item>
</el-form> </el-form>
...@@ -74,10 +74,11 @@ export default { ...@@ -74,10 +74,11 @@ export default {
closeImgViewer() { closeImgViewer() {
this.imgVisible = false this.imgVisible = false
}, },
handleEnlargeImg(url, name) { handleEnlargeImg(url, name, index) {
this.imgVisible = !this.imgVisible this.imgVisible = !this.imgVisible
// this.imgList = url // this.imgList = url
console.log("url", url) console.log("url", url)
this.initialIndex = index
this.imgList = url this.imgList = url
this.imgUrlName = name this.imgUrlName = name
}, },
......
...@@ -265,24 +265,6 @@ ...@@ -265,24 +265,6 @@
</p> </p>
</div> </div>
<!-- <el-dialog :visible="imgVisible"
:before-close="handleEnlargeImg">
<el-carousel :autoplay="false"
arrow="always"
trigger="click"
height="695px"
:initial-index="index"
ref="carousel">
<el-carousel-item v-for="(item, index) in imgList"
:key="index"
class="carousel">
<img :src="item[imgUrlName]"
alt=""
class="carousel-img">
</el-carousel-item>
</el-carousel>
</el-dialog> -->
<el-image-viewer v-if="imgVisible" :on-close="closeImgViewer" :url-list="imgList" :initial-index="initialIndex" /> <el-image-viewer v-if="imgVisible" :on-close="closeImgViewer" :url-list="imgList" :initial-index="initialIndex" />
<!-- 标记退款 --> <!-- 标记退款 -->
...@@ -429,7 +411,8 @@ export default { ...@@ -429,7 +411,8 @@ export default {
this.imgVisible = !this.imgVisible this.imgVisible = !this.imgVisible
// this.imgList = url // this.imgList = url
console.log("url", url) console.log("url", url)
this.imgList = url.map((item) => item[name]) // this.imgList = url.map((item) => item[name])
this.imgList = url
this.imgUrlName = name this.imgUrlName = name
}, },
handleEnlargeFile(url) { handleEnlargeFile(url) {
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
</div> </div>
</div> </div>
<div class="d2-container-content"> <div class="d2-container-content">
<d2-table-header title="标签录音管理列表"> <d2-table-header title="录音标签管理列表">
<el-button size="small" type="primary" @click="exportTable"> <el-button size="small" type="primary" @click="exportTable">
导出 导出
</el-button> </el-button>
...@@ -196,7 +196,7 @@ export default { ...@@ -196,7 +196,7 @@ export default {
label: "质检时间", label: "质检时间",
name: "checkStart", name: "checkStart",
type: "datePicker", type: "datePicker",
isClear: false, isClear: true,
pickerOptions: "rangePickerOptions_30day2" pickerOptions: "rangePickerOptions_30day2"
}, },
{ {
...@@ -219,7 +219,7 @@ export default { ...@@ -219,7 +219,7 @@ export default {
}, },
{ {
confId: 1, confId: 1,
confValue: "未成交" confValue: "战败"
} }
], ],
brandList: [], brandList: [],
......
...@@ -50,7 +50,7 @@ export default { ...@@ -50,7 +50,7 @@ export default {
watch: { watch: {
yData: { yData: {
handler() { handler() {
this.chart.setOption(this.getChartSetOption()) this.chart.setOption(this.getChartSetOption(), { notMerge: true })
}, },
deep: true deep: true
} }
...@@ -58,7 +58,7 @@ export default { ...@@ -58,7 +58,7 @@ export default {
mounted() { mounted() {
this.client = this.$refs[this.id] this.client = this.$refs[this.id]
this.chart = echarts.init(this.client) this.chart = echarts.init(this.client)
this.chart.setOption(this.getChartSetOption()) this.chart.setOption(this.getChartSetOption(), { notMerge: true })
window.addEventListener("resize", this.resizeHandler) window.addEventListener("resize", this.resizeHandler)
}, },
methods: { methods: {
...@@ -66,7 +66,7 @@ export default { ...@@ -66,7 +66,7 @@ export default {
if (this.chart) { if (this.chart) {
this.chart.clear() this.chart.clear()
setTimeout(() => { setTimeout(() => {
this.chart.setOption(this.getChartSetOption()) this.chart.setOption(this.getChartSetOption(), { notMerge: true })
this.chart.resize() this.chart.resize()
}, 1000) }, 1000)
} }
...@@ -134,20 +134,14 @@ ${this.title}:${params[0].value} ...@@ -134,20 +134,14 @@ ${this.title}:${params[0].value}
}, },
yAxis: { yAxis: {
type: "value", type: "value",
splitLine: {
lineStyle: {
color: "#E7EBEF"
}
},
labelLine: {
show: true,
color: "#ffffff"
},
axisLabel: { axisLabel: {
show: false, show: false,
lineStyle: { color: "transparent"
color: "#fff" },
} axisLine: { show: false, color: "transparent" },
axisTick: { show: false, color: "transparent" },
splitLine: {
show: true // 根据截图隐藏网格线
} }
// splitNumber: 4 // splitNumber: 4
}, },
......
...@@ -143,14 +143,18 @@ export default { ...@@ -143,14 +143,18 @@ export default {
this.baseData.taskStatusOpt.find( this.baseData.taskStatusOpt.find(
(item) => item.confId === cellValue.taskStatus (item) => item.confId === cellValue.taskStatus
)?.confValue + )?.confValue +
(cellValue.taskStatus == 1 ? `(${cellValue.progress}%)` : "") (cellValue.taskStatus == 1
? `(${
cellValue.progress ? cellValue.progress.toFixed(2) : "0"
}%)`
: "")
) )
}, },
className: (cellValue) => { className: (cellValue) => {
return { return {
0: "ashSpot", 2: "ashSpot",
1: "orgenSpot", 1: "orgenSpot",
2: "greenSpot" 0: "greenSpot"
}[cellValue.taskStatus] }[cellValue.taskStatus]
} }
}, },
......
...@@ -106,7 +106,11 @@ ...@@ -106,7 +106,11 @@
></div> ></div>
<div>{{ ["进行中", "已结束"][scope.scope.taskStatus - 1] }}</div> <div>{{ ["进行中", "已结束"][scope.scope.taskStatus - 1] }}</div>
<div v-if="scope.scope.taskStatus == 1"> <div v-if="scope.scope.taskStatus == 1">
({{ scope.scope.progress * 100 }}%) ({{
scope.scope.progress
? (scope.scope.progress * 100).toFixed(2)
: "0"
}}%)
</div> </div>
</div> </div>
<div slot="penalty" slot-scope="scope"> <div slot="penalty" slot-scope="scope">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!