Sfoglia il codice sorgente

adm:feat > 修改总览保存添加关系,自动计算回显

shaun-sheep 4 anni fa
parent
commit
6ad1a692a2

+ 3 - 3
src/components/relation/overview/Modal/RelationMaintain.vue

@@ -406,14 +406,14 @@
       //查询原末端回显数据
       handleSourceQuery() {
         let param = {
-          Filters: `ProjectId='${this.projectId}';CalcName='${this.RelationTypeName}'`
+          filters: `projectId='${this.projectId}';calcName='${this.RelationTypeName}'`
         }
         sourceQuery(param, res => {
           this.value = []
           this.setValue = []
-          res.Content && res.Content.forEach(({SourceType}) => this.value.push(SourceType))
+          res.content && res.content.forEach(({sourceType}) => this.value.push(sourceType))
           //启动计算
-          res.Content && res.Content.forEach(({SourceType}) => this.setValue.push(SourceType))
+          res.content && res.content.forEach(({sourceType}) => this.setValue.push(sourceType))
           // this.setOriginOption = this.oraginOption.forEach(i => this.setValue.includes(i.value))
           this.changeVal(this.value)
           this.setValue && this.handleSetValue()

+ 2 - 2
src/components/relation/overview/Modal/getCascader.vue

@@ -143,7 +143,7 @@ export default {
         })
       })
       Promise.all([promise1, promise2, promise3]).then((res) => {
-        let allData = res[0], data = res[1], arr = res[2].Content
+        let allData = res[0], data = res[1], arr = res[2].content
         this.options = this.formatOptions(allData.content)
         if (!this.all) {
           this.content = data.content.map(t => {
@@ -156,7 +156,7 @@ export default {
         }
         if (arr) {
           this.value = []
-          arr.forEach(({ SourceType }) => this.value.push(SourceType))
+          arr.forEach(({ sourceType }) => this.value.push(sourceType))
           this.oraginOption = this.options.filter(i => this.value.includes(i.code))
           this.endOptions = this.options.filter(i => !this.value.includes(i.code))
         }

+ 1 - 1
src/components/relation/overview/Modal/setCascader.vue

@@ -148,7 +148,7 @@ export default {
         }
         if (arr) {
           this.value = []
-          arr.forEach(({ SourceType }) => this.value.push(SourceType))
+          arr.forEach(({ sourceType }) => this.value.push(sourceType))
           this.endOptions = this.options.filter(i => !this.value.includes(i.code))
         }
       })