cldu il y a 1 mois
Parent
commit
8a1aace47f

BIN
src/assets/img/sand_new/blue_edit_icon.png


+ 13 - 13
src/views/sandbox_manage/common/customize.js

@@ -157,20 +157,20 @@ export default {
               stroke:
                 !linkItem.calculationMethod ||
                 !linkItem.calculationMethod.length
-                  ? "#0052D9"
-                  : this.$store.state.sand.styleConfig.borderColor,
+                  ? this.$store.state.sand.styleConfig.titleBorderColor
+                  : this.$store.state.sand.styleConfig.dataBorderColor,
               fill:
                 !linkItem.calculationMethod ||
                 !linkItem.calculationMethod.length
-                  ? "#0052D9"
-                  : this.$store.state.sand.styleConfig.backgroundColor,
+                  ? this.$store.state.sand.styleConfig.titleBackgoundColor
+                  : this.$store.state.sand.styleConfig.dataBackgroundColor,
             },
             text: {
               fill:
                 !linkItem.calculationMethod ||
                 !linkItem.calculationMethod.length
-                  ? "#FFFFFF"
-                  : this.$store.state.sand.styleConfig.color,
+                  ? this.$store.state.sand.styleConfig.titleTextColor 
+                  : this.$store.state.sand.styleConfig.dataTextColor,
             },
           },
           data: linkItem,
@@ -189,9 +189,9 @@ export default {
               source: {
                 cell: select_cell.id,
                 anchor: {
-                  name: 'center',
+                  name: select_cell.data && select_cell.data.key == 'text' ?  'right' : 'center',
                   args: {
-                    dx: '25%',
+                    dx: select_cell.data && select_cell.data.key == 'text' ? 0 : '25%',
                   },
                 },
               },
@@ -226,11 +226,11 @@ export default {
             type: "datanode-title",
             attrs: {
               body: {
-                stroke: "#0052D9",
-                fill: "#0052D9",
+                stroke: this.$store.state.sand.styleConfig.titleBorderColor,
+                fill: this.$store.state.sand.styleConfig.titleBackgoundColor,
               },
               text: {
-                fill: "#FFFFFF",
+                fill: this.$store.state.sand.styleConfig.titleTextColor ,
               },
             },
             data: linkItem,
@@ -268,7 +268,7 @@ export default {
                   "pointer-events": "none",
                 },
                 text: {
-                  fill: this.$store.state.sand.styleConfig.color,
+                  fill: this.$store.state.sand.styleConfig.dataTextColor,
                   text: item.label,
                   refWidth: 1,
                   refY: 10,
@@ -276,7 +276,7 @@ export default {
                   "pointer-events": "none",
                 },
                 value: {
-                  fill: this.$store.state.sand.styleConfig.color,
+                  fill: this.$store.state.sand.styleConfig.dataTextColor,
                   text: item.value,
                   refWidth: 1,
                   refX: "50%",

+ 6 - 3
src/views/sandbox_manage/common/events.js

@@ -249,10 +249,10 @@ export const bindKey = (graph,mindmapDataUseFun) => {
 }
 
 /* 右键事件 */
-export const contextEvent = (graph,key,mindmapDataUseFun) => {
+export const contextEvent = (graph,key,mindmapDataUseFun,that) => {
 	switch (key) {
 		case 'copy':
-			nodeCopyAndPaste(graph);
+			nodeCopyAndPaste(graph,that);
 			break;
 		case 'del': 
 			deleteNodes(graph,mindmapDataUseFun);
@@ -261,13 +261,16 @@ export const contextEvent = (graph,key,mindmapDataUseFun) => {
 }
 
 /* 复制粘贴节点 */
-const nodeCopyAndPaste = (graph) => {
+const nodeCopyAndPaste = (graph,that) => {
 	const select_cell = graph.getSelectedCells();
 	if (select_cell.length) {
 		graph.copy(select_cell);
 		const copy_cell = graph.paste({ offset: 30 });
 		graph.cleanSelection();
 		graph.select(copy_cell);
+		if(select_cell[0] && select_cell[0].data && select_cell[0].data.linkData && select_cell[0].data.linkData.length > 0){ //复制子数据节点
+			that && that.saveLink && that.saveLink(select_cell[0].data.linkData) //sandFlowNew/index.vue
+		}
 	}
 }
 

+ 6 - 1
src/views/sandbox_manage/common/gragh.js

@@ -91,7 +91,12 @@ export function myGraph (wrapper,mindmapDataUseFun,type='edit') {
 			vertexMovable:false,
 			vertexMovable:false,
 			vertexDeletable:false
-		}:{},
+		}:function(cellView){
+			if(cellView.cell.shape == 'mindmap-child-datanode-title' && cellView.cell.data && cellView.cell.data.calculationMethod && cellView.cell.data.calculationMethod.length > 0){
+			  return {nodeMovable:false};
+			}
+			return true
+		},
 		connecting: {
 			snap: true,
 			// 允许连接到空白位置

+ 12 - 12
src/views/sandbox_manage/common/mindmap.js

@@ -217,7 +217,7 @@ export default {
             ry: 4,
             width:132,
             height:28,
-            fill:'#0052D9',
+            fill:this.$store.state.sand.styleConfig.titleBackgoundColor,
             strokeWidth: 1,
             class: 'mindmap-child-datanode-title',
           },
@@ -853,11 +853,11 @@ export default {
               type: data.type,
               attrs:{
                 body: {
-                  stroke: data.type == 'datanode-title' ? '#0052D9' : 'transparent',
-                  fill: data.type == 'datanode-title' ? '#0052D9' :  'transparent',
+                  stroke: data.type == 'datanode-title' ? this.$store.state.sand.styleConfig.titleBorderColor : 'transparent',
+                  fill: data.type == 'datanode-title' ? this.$store.state.sand.styleConfig.titleBackgoundColor :  'transparent',
                 },
                 text:{
-                  fill:data.type == 'datanode-title' ? '#FFFFFF' :  'transparent',
+                  fill:data.type == 'datanode-title' ? this.$store.state.sand.styleConfig.titleTextColor  :  'transparent',
                 }
               },
               data:data.data,
@@ -879,12 +879,12 @@ export default {
                 type:'datanode-child',
                 attrs:{
                   body: {
-                    stroke: this.$store.state.sand.styleConfig.borderColor,
-                    fill: this.$store.state.sand.styleConfig.backgroundColor,
+                    stroke: this.$store.state.sand.styleConfig.dataBorderColor,
+                    fill: this.$store.state.sand.styleConfig.dataBackgroundColor,
                     'pointer-events': 'none',
                   },
                   text:{
-                    fill:this.$store.state.sand.styleConfig.color,
+                    fill:this.$store.state.sand.styleConfig.dataTextColor,
                     'pointer-events': 'none',
                   }
                 },
@@ -908,11 +908,11 @@ export default {
                 type: 'datanode-title',
                 attrs:{
                   body: {
-                    stroke: '#0052D9',
-                    fill: '#0052D9'
+                    stroke: this.$store.state.sand.styleConfig.titleBorderColor,
+                    fill: this.$store.state.sand.styleConfig.titleBackgoundColor
                   },
                   text:{
-                    fill:'#FFFFFF' 
+                    fill:this.$store.state.sand.styleConfig.titleTextColor 
                   }
                 },
                 data:data.data,
@@ -942,7 +942,7 @@ export default {
                       'pointer-events': 'none',
                     },
                     text:{
-                      fill:this.$store.state.sand.styleConfig.color,
+                      fill:this.$store.state.sand.styleConfig.dataTextColor,
                       text:v.label,
                       refWidth:1,
                       refY: 10,
@@ -950,7 +950,7 @@ export default {
                       'pointer-events': 'none',
                     },
                     value:{
-                      fill:this.$store.state.sand.styleConfig.color,
+                      fill:this.$store.state.sand.styleConfig.dataTextColor,
                       text:v.value,
                       refWidth:1,
                       refX:"50%",

+ 2 - 2
src/views/sandbox_manage/common/options.js

@@ -30,7 +30,7 @@ export const contextMenuOption = [
 export const calculateOption = [
 	{ label: bus.$i18nt ? bus.$i18nt.t('Edb.Detail.e_latest_date') : '最新日期',source: 98,fromEdbKey:98 },
 	{ label: bus.$i18nt ? bus.$i18nt.t('Edb.Detail.e_latest_value') : '最新值',source: 99,fromEdbKey:99 },
-	{ label: bus.$i18nt ? bus.$i18nt.t('Edb.CalculatesAll.to_month_quarter') : '累计值转月/季值',source: 1,fromEdbKey:5 },
+	{ label: bus.$i18nt ? bus.$i18nt.t('Edb.CalculatesAll.to_month_quarter') : '累计值转月/季值',source: 1,fromEdbKey:5,source2: 2},
 	{ label: bus.$i18nt ? bus.$i18nt.t('Edb.CalculatesAll.on_year') : '同比值',source: 3,fromEdbKey:6 },
 	{ label: bus.$i18nt ? bus.$i18nt.t('Edb.CalculatesAll.differ') : '同差值',source: 4,fromEdbKey:7 },
 	{ label: bus.$i18nt ? bus.$i18nt.t('Edb.CalculatesAll.rule_move_average') : 'N期移动均值',source: 5,fromEdbKey:8 },
@@ -41,7 +41,7 @@ export const calculateOption = [
 	{ label: bus.$i18nt ? bus.$i18nt.t('Edb.CalculatesAll.super_season') : '超季节性',source: 11,fromEdbKey:35 },
 	{ label: bus.$i18nt ? bus.$i18nt.t('Edb.CalculatesAll.annualized') : '年化值',source: 12,fromEdbKey:52 },
 	{ label: bus.$i18nt ? bus.$i18nt.t('Edb.CalculatesAll.frequency') : '降频',source: 9,fromEdbKey:51 },
-	{ label: bus.$i18nt ? bus.$i18nt.t('Edb.CalculatesAll.cumulate') : '累计值',source: 13,fromEdbKey:62 },
+	{ label: bus.$i18nt ? bus.$i18nt.t('Edb.CalculatesAll.cumulate') : '累计值',source: 13,fromEdbKey:62 ,source2: 14},
 	{ label: bus.$i18nt ? bus.$i18nt.t('Edb.CalculatesAll.ex_smooth') : '指数修匀',source: 15,fromEdbKey:'alpha' },
 	{ label: bus.$i18nt ? bus.$i18nt.t('Edb.CalculatesAll.day_mean') : '日均值',source: 16,fromEdbKey:75 },
 ]

+ 28 - 4
src/views/sandbox_manage/common/toolConfig.js

@@ -80,7 +80,13 @@ export const styleSettings=[
 		color:'#1841AA',
 		textColor:'#1841AA',
 		borderColor:'#1841AA',
-		lineColor:'#1841AA'
+		lineColor:'#1841AA',
+
+		dataBackgroundColor:'#FFFFFF',
+		dataBorderColor:'#0052D9',
+		titleBackgoundColor:'#1841AA',
+		titleBorderColor:'#1841AA',
+		titleTextColor:'#FFFFFF',
 	},
 	{
 		id:2,
@@ -88,7 +94,13 @@ export const styleSettings=[
 		color:'#FFFFFF',
 		textColor:'#1841AA',
 		borderColor:'#1841AA',
-		lineColor:'#1841AA'
+		lineColor:'#1841AA',
+
+		dataBackgroundColor:'#FFFFFF',
+		dataBorderColor:'#1841AA',
+		titleBackgoundColor:'#1841AA',
+		titleBorderColor:'#1841AA',
+		titleTextColor:'#FFFFFF',
 	},
 	{
 		id:3,
@@ -96,7 +108,13 @@ export const styleSettings=[
 		color:'#333333',
 		textColor:'#333333',
 		borderColor:'#333333',
-		lineColor:'#333333'
+		lineColor:'#333333',
+
+		dataBackgroundColor:'#FFFFFF',
+		dataBorderColor:'#333333',
+		titleBackgoundColor:'#333333',
+		titleBorderColor:'#333333',
+		titleTextColor:'#FFFFFF',
 	},
 	{
 		id:4,
@@ -104,6 +122,12 @@ export const styleSettings=[
 		color:'#AA3218',
 		textColor:'#AA3218',
 		borderColor:'#AA3218',
-		lineColor:'#AA3218'
+		lineColor:'#AA3218',
+
+		dataBackgroundColor:'#FFFFFF',
+		dataBorderColor:'#AA3218',
+		titleBackgoundColor:'#AA3218',
+		titleBorderColor:'#AA3218',
+		titleTextColor:'#FFFFFF',
 	}
 ]

+ 32 - 14
src/views/sandbox_manage/sandFlowNew/components/addLInkDia.vue

@@ -1,6 +1,7 @@
 <template>
-    <el-dialog :modal-append-to-body='false' :title="$t('SandboxManage.SandFlow.add_node_data')" :visible.sync="show" 
-    :close-on-click-modal="false" width="1000px" top="5vh" @close="cancelHandle">
+  <div>
+    <el-dialog v-dialogDrag :modal-append-to-body='false' :title="$t('SandboxManage.SandFlow.add_node_data')" :visible.sync="show" 
+    :close-on-click-modal="false" width="1000px" top="5vh" @close="cancelHandle" v-show="!dialogDisplayNone">
       <div class="add-link-box">
         <div class="link-box-option">
           <el-select v-model="addLinkSearchParams.linkType" placeholder="节点数据类型" style="width: 240px;" @change="changeLinkType">
@@ -121,7 +122,13 @@
                       :key="item.source" 
                       class="link-count-item" 
                       :class="{'link-count-item-un':!handleCountChoose(item),'link-count-item-on':handleCountChoose(item)}"
-                      @click="clickCountItem(item)">{{ item.label }}</li>
+                      @click="clickCountItem(item)">
+                      <span>{{ item.label }}</span>
+                      <img v-if="handleCountChoose(item) && item.source != 98 && item.source != 99"  
+                        src="~@/assets/img/sand_new/blue_edit_icon.png" 
+                        style="width: 13px;height: 13px;margin-left: 8px;" 
+                        @click.stop="handleEditCal(item)">
+                  </li>
               </ul>
               <div v-if="threeCalculation && threeCalculation.length > 0" class="calculate-result-wrap">
                  <div class="calculate-result-title">{{ $t('ETableChildren.calculate_result') }}</div>
@@ -176,7 +183,8 @@
           <el-button type="primary" style="width:120px;margin-left: 30px;" @click="saveLink">{{$t('Dialog.confirm_btn')}}</el-button>
         </div>
       </div>
-      <calculateEdb
+		</el-dialog>
+    <calculateEdb
        :isShow.sync="isOpenCalculationDia"
        :calculationItem="calculationItem"
        :activeLink="activeItem"
@@ -186,8 +194,9 @@
        @changeActiveEdb="handleChangeActiveEdb"
        @edbDelete="handleEdbDelete"
        @addCalculation="handleAddCalculation"
+       @handleCloseDialog="handleCloseDialog"
       ></calculateEdb>
-		</el-dialog>
+  </div>
 </template>
 
 <script>
@@ -218,7 +227,7 @@ import { calculateOption } from "../../common/options"
       /* 选中搜索指标 展开目录 选中指标 展示数据 */
       search_dataBaseId(newval) {
         if (newval) {
-          if(this.checkedLinkList.find(_=>_.Id == newval)){
+          if(this.linkListInShow.find(_=>_.Id == newval)){
                return this.$message.warning(this.$t('SandboxManage.SandFlow.data_already_exists'))
           }
           if(this.addLinkSearchParams.linkType==1){
@@ -233,6 +242,7 @@ import { calculateOption } from "../../common/options"
                 Type:this.addLinkSearchParams.linkType,
                 editing:false,
                 databaseType:search_obj.EdbInfoType, //0 普通指标 | 1 预测指标
+                // EdbType:search_obj.EdbType || 0,
                 detailParams:{
                   code:search_obj.UniqueCode,
                   id:search_obj.EdbInfoId,
@@ -353,10 +363,10 @@ import { calculateOption } from "../../common/options"
         threeCalculation:[],//三个一组
         isOpenCalculationDia:false,
         calculationItem:{},
+        dialogDisplayNone:false,
       }
     },
     methods: {
-      // -------------------------------添加链接
       handleThreeCalculation(){
         let i = this.checkedLinkList.findIndex(_=>_.RId == this.activeItem.RId);
         if(i < 0) return;
@@ -375,14 +385,18 @@ import { calculateOption } from "../../common/options"
         let i = this.checkedLinkList.findIndex(_=>_.RId == this.activeItem.RId);
         if(i < 0) return false;
         let arr = this.checkedLinkList[i].calculationMethod || [];
-        return arr.find(_=>_.source == item.source);
+        return arr.find(_=>_.source == item.source || _.source == item.source2);
+      },
+      handleEditCal(v){ //编辑状态
+          this.calculationItem = v;
+          this.isOpenCalculationDia = true;
+          this.dialogDisplayNone = true;
       },
       clickCountItem(item){
          let i = this.checkedLinkList.findIndex(_=>_.RId == this.activeItem.RId);
          if(i < 0) return;
          if(!this.checkedLinkList[i].calculationMethod) this.checkedLinkList[i].calculationMethod = [];
-
-         let isChoosed = this.checkedLinkList[i].calculationMethod.findIndex(_=>_.source == item.source);
+         let isChoosed = this.checkedLinkList[i].calculationMethod.findIndex(_=>_.source == item.source || _.source == item.source2);
          if(isChoosed >= 0){ //已经选中
           this.checkedLinkList[i].calculationMethod.splice(isChoosed,1)
          } else { //未选中
@@ -394,6 +408,7 @@ import { calculateOption } from "../../common/options"
               } else {
                 this.calculationItem = item;
                 this.isOpenCalculationDia = true;
+                this.dialogDisplayNone = true;
               }
         };
         this.handleThreeCalculation();
@@ -402,9 +417,8 @@ import { calculateOption } from "../../common/options"
         let i = this.checkedLinkList.findIndex(_=>_.RId == this.activeItem.RId);
         if(i < 0) return;
         if(!this.checkedLinkList[i].calculationMethod) this.checkedLinkList[i].calculationMethod = [];
-
-        let isChoosed = this.checkedLinkList[i].calculationMethod.findIndex(_=>_.source == item.source);
-        
+        let x = this.calculateOption.find(_=>item.source == _.source || item.source == _.source2);
+        let isChoosed = this.checkedLinkList[i].calculationMethod.findIndex(_=>_.source == x.source || _.source == x.source2);
         if(isChoosed >= 0) {
           this.checkedLinkList[i].calculationMethod.splice(isChoosed,1);
         }
@@ -561,6 +575,7 @@ import { calculateOption } from "../../common/options"
         this.activeItemRId = item.RId
         this.activeItem = item
         this.addLinkSearchParams.linkType=item.Type
+        this.handleLinkListInShow();
         if(item.Type==3){
           if(!config.noInfo){
             this.$message.info('研报类型的暂无回显')
@@ -706,6 +721,9 @@ import { calculateOption } from "../../common/options"
       saveLink(){
         this.$emit("saveLink", this.checkedLinkList);
       },
+      handleCloseDialog(){
+        this.dialogDisplayNone = false;
+      },
       cancelHandle(){
         this.linkListInShow = [];
         this.$emit("update:show", false);
@@ -751,7 +769,7 @@ import { calculateOption } from "../../common/options"
              }
              .link-count-item-on{
               border: 1px solid #0052D9;
-              color: #0052D9;
+              color: #666666;
               background: #ECF2FE;
              }
              .link-count-item-un{

+ 84 - 34
src/views/sandbox_manage/sandFlowNew/components/calculateEdb.vue

@@ -272,7 +272,7 @@
             >{{ $t("ETable.Btn.cancel_btn") }}</el-button
           >
           <el-popover width="300" trigger="hover" placement="right">
-            <div v-html="formulaTip.get(calculationItem.fromEdbKey)"></div>
+            <div v-html="formulaTipContent"></div>
             <el-button class="tips-btn" type="text" slot="reference">{{
               $t("Edb.formula_instru")
             }}</el-button>
@@ -362,20 +362,27 @@ export default {
     },
   },
   watch: {
-    isShow(newv) {
-      if (!newv) return;
-      this.formData.source = this.calculationItem.source;
-      this.edbList = _.cloneDeep(this.linkList);
-      this.edbActive = _.cloneDeep(this.activeLink);
-      this.selectEdbInfo = null;
-      this.linkClick(this.edbActive);
-    },
+      isShow(newv) {
+        if (!newv) return;
+        this.formData.source = +this.calculationItem.source;
+        this.edbList = _.cloneDeep(this.linkList);
+        this.edbActive = _.cloneDeep(this.activeLink);
+        this.selectEdbInfo = null;
+        this.linkClick(this.edbActive);
+        this.handleFormulaTipContent()
+      },
+      edbActive:{
+        deep:true,
+        handler(){
+          this.handleEditData();
+        },
+      }
   },
   data() {
     return {
       isCalculateDia: true,
       formData: {
-        source: "" + this.calculationItem.source,
+        source: + this.calculationItem.source,
         frequency: "",
         nNum: 1,
         moveType: 1,
@@ -387,6 +394,7 @@ export default {
       },
       formRules,
       formulaTip,
+      formulaTipContent:'',
 
       edbList: [], //指标标签列表
       edbActive: {}, //目前选中的标签
@@ -403,8 +411,47 @@ export default {
     };
   },
   methods: {
+    async handleEditData(){
+        await this.$nextTick();
+        let v = this.linkList.find(_=>_.Id == this.edbActive.Id);
+        if(!v || !v.calculationMethod || !v.calculationMethod.length) return this.clearFormValue();
+        let item = v.calculationMethod.find(_=>_.source == this.formData.source);
+        if(!item) return this.clearFormValue();
+        // 累计值有问题
+        //处理编辑数据
+        this.formData = {
+          source:+item.source,
+          frequency:item.frequency || '',
+          moveUnit:item.moveFrequency || '天',
+          moveType:item.moveType || 1,
+          calendarType:item.calendar || "公历",
+          nNum:1,
+          moveVal:'',
+          valueType:'期末值',
+          alphaValue:0,
+        };
+        const valueMap = {
+          22: "moveVal",
+          51: "valueType",
+          alpha: "alphaValue",
+        };
+        this.formData[[22,51,'alpha'].includes(this.calculationItem.fromEdbKey) ? valueMap[this.calculationItem.fromEdbKey] : 'nNum'] = +item.formula || item.formula;
+        
+        this.dateSelectForm = {
+          Type: 1,
+          MoveForward: item.moveForward || 0,
+        };
+        this.$refs.dateMoveWayRef.dateChangeArr = item.dateChange || [];
+    },
+    handleFormulaTipContent(){
+         this.formulaTipContent = this.formulaTip.get(this.calculationItem.fromEdbKey);
+         if(this.formData.source == 2) this.formulaTipContent = this.formulaTip.get(61); //积累季度
+         if(this.formData.source == 14) this.formulaTipContent = this.formulaTip.get(63); //年初至今计算
+    },
     handleRadioGroup() {
+      this.handleEditData()
       this.$refs.selectRef.targetTypeChange();
+      this.handleFormulaTipContent()
       this.selectEdbInfo = null;
       this.edbActive = null;
       let firstEdb = this.edbList[0];
@@ -430,7 +477,7 @@ export default {
 
       let params = {
         DataTime: "",
-        Source: source,
+        Source: +source,
         Frequency: frequency,
         Formula: valueMap[this.calculationItem.fromEdbKey]
           ? String(this.formData[valueMap[this.calculationItem.fromEdbKey]])
@@ -459,7 +506,7 @@ export default {
       let calculation = {
         fromEdbKey: this.calculationItem.fromEdbKey,
         label: this.calculationItem.label,
-        source: this.calculationItem.source,
+        source: +this.formData.source,
         value,
         calendar: params.Calendar,
         dateChange: params.DateChange,
@@ -612,31 +659,34 @@ export default {
     },
     cancelHandle() {
       this.initData();
+      this.$emit('handleCloseDialog')
       this.$emit("update:isShow", false);
     },
+    clearFormValue(){
+        this.formData = {
+          source: +this.formData.source,
+          frequency: "",
+          nNum: 1,
+          moveType: 1,
+          moveUnit: "天",
+          moveVal: "",
+          calendarType: "公历",
+          valueType: "期末值",
+          alphaValue: 0,
+        };
+        this.dateSelectForm = {
+          Type: 1,
+          MoveForward: 0,
+        };
+        this.$refs.dateMoveWayRef && this.$refs.dateMoveWayRef.initData();
+    },
     initData() {
-      this.search_edb = "";
-      this.selectEdbInfo = null;
-      this.formData = {
-        source: this.formData.source,
-        frequency: "",
-        nNum: 1,
-        moveType: 1,
-        moveUnit: "天",
-        moveVal: "",
-        calendarType: "公历",
-        valueType: "期末值",
-        alphaValue: 0,
-      };
-      this.edbList = [];
-      this.edbActive = {};
-      this.editingLabel = "";
-
-      this.dateSelectForm = {
-        Type: 1,
-        MoveForward: 0,
-      };
-      this.$refs.dateMoveWayRef && this.$refs.dateMoveWayRef.initData();
+        this.clearFormValue();
+        this.search_edb = "";
+        this.selectEdbInfo = null;
+        this.edbList = [];
+        this.edbActive = {};
+        this.editingLabel = "";
     },
   },
 };

+ 40 - 9
src/views/sandbox_manage/sandFlowNew/index.vue

@@ -840,7 +840,7 @@ import addLInkDia from './components/addLInkDia.vue';
 
         for (let i = 0; i < cells.length; i++) {
           const element = cells[i];
-          if(element.shape == 'mindmap-child-background-datanode') continue;
+          if(element.shape == 'mindmap-child-background-datanode' || element.shape == 'mindmap-grandchild-datanode') continue;
           if(element.shape.indexOf("edge") !=-1){
             element.setAttrs({
               line:{
@@ -848,14 +848,49 @@ import addLInkDia from './components/addLInkDia.vue';
               }
             })
           }
+          //添加数据节点样式特殊处理
+          if(element.shape == 'mindmap-child-datanode') {
+            element.setAttrs({
+              body: {
+                stroke:styleData.dataBorderColor,
+                fill:styleData.dataBackgroundColor,
+                },
+                text: {
+                  fill:styleData.dataTextColor,
+                },
+              });
+            continue;
+          } else if(element.shape == 'mindmap-child-datanode-title') {
+            element.setAttrs({
+              body: {
+                  stroke: styleData.titleBorderColor,
+                  fill: styleData.titleBackgoundColor,
+                },
+                text: {
+                  fill: styleData.titleTextColor,
+                },
+              });
+              continue;
+          } else if(element.shape == 'mindmap-grandchild-datanode') {
+            element.setAttrs({
+                  body: {
+                    fill: "transparent",
+                  },
+                  text: {
+                    fill: styleData.dataTextColor,
+                  },
+                  value: {
+                    fill: styleData.dataTextColor,
+                  },
+              });
+              continue;
+          }
+           //  普通节点样式调整
           if(element.data && element.data.key == 'text'){
             element.setAttrs({
               text:{
                 fill:styleData.textColor
               },
-              value:{
-                fill:styleData.textColor
-              },
             })
           }else{
             element.setAttrs({
@@ -866,9 +901,6 @@ import addLInkDia from './components/addLInkDia.vue';
               text:{
                 fill:styleData.color
               },
-              value:{
-                fill:styleData.color
-              },
             })
           }
         }
@@ -880,7 +912,7 @@ import addLInkDia from './components/addLInkDia.vue';
         }else if(key=="deleteLink"){
           this.deleteLink()
         }else{
-          contextEvent(this.graph, key,this.getMindmapDataUse);
+          contextEvent(this.graph, key,this.getMindmapDataUse,this);
         }
         this.hideContextMenu();
       },
@@ -934,7 +966,6 @@ import addLInkDia from './components/addLInkDia.vue';
 
         let childs = select_cell.getChildren() || [];
         if(childs && childs.length > 0) this.graph.removeCells(childs);
-        // select_cell.data.linkData=[];
         if(type == 2){
           if(!list || !list.length) return;
           const { id } = select_cell

+ 14 - 1
src/vuex/modules/sand.js

@@ -131,7 +131,14 @@ const sand = {
 			color:'#1841AA',
 			textColor:'#1841AA',
 			borderColor:'#1841AA',
-			lineColor:'#1841AA'
+			lineColor:'#1841AA',
+
+			dataBackgroundColor:'#FFFFFF',
+			dataBorderColor:'#1841AA',
+			dataTextColor:'#333333',
+			titleBackgoundColor:'#1841AA',
+			titleBorderColor:'#1841AA',
+			titleTextColor:'#FFFFFF',
 		},
 		toolStatus:{
 			nodeDisabled:true,
@@ -230,6 +237,12 @@ const sand = {
 			state.styleConfig.textColor = styleData.textColor
 			state.styleConfig.borderColor = styleData.borderColor
 			state.styleConfig.lineColor = styleData.lineColor
+
+			state.styleConfig.dataBackgroundColor = styleData.dataBackgroundColor
+			state.styleConfig.dataBorderColor = styleData.dataBorderColor
+			state.styleConfig.titleBackgoundColor = styleData.titleBackgoundColor
+			state.styleConfig.titleBorderColor = styleData.titleBorderColor
+			state.styleConfig.titleTextColor = styleData.titleTextColor
 		}
 	},
   actions: {