|
@@ -797,8 +797,31 @@ export default {
|
|
|
})
|
|
|
if(Ret !== 200) return
|
|
|
this.$message.success('保存成功')
|
|
|
+
|
|
|
+ this.setChartImage()
|
|
|
},
|
|
|
|
|
|
+ /* 关联图片 */
|
|
|
+ setChartImage() {
|
|
|
+ let svg = this.$refs.detailComponentRef.$refs.chartInfo.$refs.chartRef.chart.getSVG({
|
|
|
+ chart: {
|
|
|
+ width: 340,
|
|
|
+ height: 230,
|
|
|
+ },
|
|
|
+ });
|
|
|
+ let form = new FormData();
|
|
|
+ form.append("Img", svg);
|
|
|
+ this.setImageHandle(form);
|
|
|
+ },
|
|
|
+
|
|
|
+ async setImageHandle(form) {
|
|
|
+ let { Data } = await dataBaseInterface.uploadImgSvg(form);
|
|
|
+ await preDictEdbInterface.setImg({
|
|
|
+ EdbInfoId: this.select_id,
|
|
|
+ ImageUrl: Data.ResourceUrl,
|
|
|
+ });
|
|
|
+ },
|
|
|
+
|
|
|
/* 添加一级目录 */
|
|
|
addLevelOneHandle() {
|
|
|
this.dialog_title = '添加';
|
|
@@ -1624,7 +1647,7 @@ $mini-font: 12px; $normal-font: 14px;
|
|
|
.chart-img {
|
|
|
width: 100%;
|
|
|
height: 230px;
|
|
|
- object-fit: cover !important;
|
|
|
+ object-fit: fill !important;
|
|
|
cursor: pointer;
|
|
|
}
|
|
|
.item-bottom {
|