|
@@ -76,46 +76,46 @@
|
|
<div v-if="item3.ttype == 1 && canEdit.indexOf(item3.type) !== -1 && etype == 'edit'"
|
|
<div v-if="item3.ttype == 1 && canEdit.indexOf(item3.type) !== -1 && etype == 'edit'"
|
|
class="edit_box">
|
|
class="edit_box">
|
|
<div v-if="item3.type == 1">
|
|
<div v-if="item3.type == 1">
|
|
- <choiceX :cJson="item3.json"></choiceX>
|
|
|
|
- <choiceDialog v-if="item3.type == 1 && checkC === `x${index1}-${index2}-${index3}`"
|
|
|
|
|
|
+ <choiceX :cJson="item3.json" @setJson="setJson" :index="`x${index1}-${index2}-${index3}`" :isOpen="item3.type == 1 && checkC === `x${index1}-${index2}-${index3}`"></choiceX>
|
|
|
|
+ <!-- <choiceDialog v-if="item3.type == 1 && checkC === `x${index1}-${index2}-${index3}`"
|
|
:cJson="cJson" @setJson="setJson">
|
|
:cJson="cJson" @setJson="setJson">
|
|
- </choiceDialog>
|
|
|
|
|
|
+ </choiceDialog> -->
|
|
</div>
|
|
</div>
|
|
<div v-if="item3.type == 3">
|
|
<div v-if="item3.type == 3">
|
|
- <gapX :cJson="item3.json"></gapX>
|
|
|
|
- <gapDialog v-if="item3.type == 3 && checkC === `x${index1}-${index2}-${index3}`"
|
|
|
|
|
|
+ <gapX :cJson="item3.json" @setJson="setJson" :index="`x${index1}-${index2}-${index3}`" :isOpen="item3.type == 3 && checkC === `x${index1}-${index2}-${index3}`"></gapX>
|
|
|
|
+ <!-- <gapDialog v-if="item3.type == 3 && checkC === `x${index1}-${index2}-${index3}`"
|
|
:cJson="cJson" @setJson="setJson">
|
|
:cJson="cJson" @setJson="setJson">
|
|
- </gapDialog>
|
|
|
|
|
|
+ </gapDialog> -->
|
|
</div>
|
|
</div>
|
|
<div v-if="item3.type == 5">
|
|
<div v-if="item3.type == 5">
|
|
- <fileX :cJson="item3.json"></fileX>
|
|
|
|
- <fileDialog v-if="item3.type == 5 && checkC === `x${index1}-${index2}-${index3}`"
|
|
|
|
|
|
+ <fileX :cJson="item3.json" @setJson="setJson" :index="`x${index1}-${index2}-${index3}`" :isOpen="item3.type == 5 && checkC === `x${index1}-${index2}-${index3}`"></fileX>
|
|
|
|
+ <!-- <fileDialog v-if="item3.type == 5 && checkC === `x${index1}-${index2}-${index3}`"
|
|
:cJson="cJson" @setJson="setJson">
|
|
:cJson="cJson" @setJson="setJson">
|
|
- </fileDialog>
|
|
|
|
|
|
+ </fileDialog> -->
|
|
</div>
|
|
</div>
|
|
<div v-if="item3.type == 6">
|
|
<div v-if="item3.type == 6">
|
|
- <courseX :cJson="item3.json"></courseX>
|
|
|
|
- <courseDialog v-if="item3.type == 6 && checkC === `x${index1}-${index2}-${index3}`"
|
|
|
|
|
|
+ <courseX :cJson="item3.json" @setJson="setJson" :index="`x${index1}-${index2}-${index3}`" :isOpen="item3.type == 6 && checkC === `x${index1}-${index2}-${index3}`"></courseX>
|
|
|
|
+ <!-- <courseDialog v-if="item3.type == 6 && checkC === `x${index1}-${index2}-${index3}`"
|
|
:cJson="cJson" @setJson="setJson">
|
|
:cJson="cJson" @setJson="setJson">
|
|
- </courseDialog>
|
|
|
|
|
|
+ </courseDialog> -->
|
|
</div>
|
|
</div>
|
|
<div v-if="item3.type == 7">
|
|
<div v-if="item3.type == 7">
|
|
- <evaX :cJson="item3.json"></evaX>
|
|
|
|
- <evaDialog v-if="item3.type == 7 && checkC === `x${index1}-${index2}-${index3}`"
|
|
|
|
|
|
+ <evaX :cJson="item3.json" @setJson="setJson" :index="`x${index1}-${index2}-${index3}`" :isOpen="item3.type == 7 && checkC === `x${index1}-${index2}-${index3}`"></evaX>
|
|
|
|
+ <!-- <evaDialog v-if="item3.type == 7 && checkC === `x${index1}-${index2}-${index3}`"
|
|
:cJson="cJson" @setJson="setJson">
|
|
:cJson="cJson" @setJson="setJson">
|
|
- </evaDialog>
|
|
|
|
|
|
+ </evaDialog> -->
|
|
</div>
|
|
</div>
|
|
<div v-if="item3.type == 8">
|
|
<div v-if="item3.type == 8">
|
|
- <timeX :cJson="item3.json"></timeX>
|
|
|
|
- <timeDialog v-if="item3.type == 8 && checkC === `x${index1}-${index2}-${index3}`"
|
|
|
|
|
|
+ <timeX :cJson="item3.json" @setJson="setJson" :index="`x${index1}-${index2}-${index3}`" :isOpen="item3.type == 8 && checkC === `x${index1}-${index2}-${index3}`"></timeX>
|
|
|
|
+ <!-- <timeDialog v-if="item3.type == 8 && checkC === `x${index1}-${index2}-${index3}`"
|
|
:cJson="cJson" @setJson="setJson">
|
|
:cJson="cJson" @setJson="setJson">
|
|
- </timeDialog>
|
|
|
|
|
|
+ </timeDialog> -->
|
|
</div>
|
|
</div>
|
|
<div v-if="item3.type == 11">
|
|
<div v-if="item3.type == 11">
|
|
- <courseX2 :cJson="item3.json"></courseX2>
|
|
|
|
- <courseDialog2 v-if="item3.type == 11 && checkC === `x${index1}-${index2}-${index3}`"
|
|
|
|
|
|
+ <courseX2 :cJson="item3.json" @setJson="setJson" :index="`x${index1}-${index2}-${index3}`" :isOpen="item3.type == 11 && checkC === `x${index1}-${index2}-${index3}`"></courseX2>
|
|
|
|
+ <!-- <courseDialog2 v-if="item3.type == 11 && checkC === `x${index1}-${index2}-${index3}`"
|
|
:cJson="cJson" @setJson="setJson">
|
|
:cJson="cJson" @setJson="setJson">
|
|
- </courseDialog2>
|
|
|
|
|
|
+ </courseDialog2>-->
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -123,78 +123,78 @@
|
|
<div v-else-if="item2.ttype == 1 && canEdit.indexOf(item2.type) !== -1 && etype == 'edit'"
|
|
<div v-else-if="item2.ttype == 1 && canEdit.indexOf(item2.type) !== -1 && etype == 'edit'"
|
|
class="edit_box">
|
|
class="edit_box">
|
|
<div v-if="item2.type == 1">
|
|
<div v-if="item2.type == 1">
|
|
- <choiceX :cJson="item2.json"></choiceX>
|
|
|
|
- <choiceDialog v-if="item2.type == 1 && checkC === `x${index1}-${index2}`" :cJson="cJson"
|
|
|
|
- @setJson="setJson"></choiceDialog>
|
|
|
|
|
|
+ <choiceX :cJson="item2.json" @setJson="setJson" :index="`x${index1}-${index2}`" :isOpen="item2.type == 1 && checkC === `x${index1}-${index2}`"></choiceX>
|
|
|
|
+ <!-- <choiceDialog v-if="item2.type == 1 && checkC === `x${index1}-${index2}`" :cJson="cJson"
|
|
|
|
+ @setJson="setJson"></choiceDialog> -->
|
|
</div>
|
|
</div>
|
|
<div v-else-if="item2.type == 3">
|
|
<div v-else-if="item2.type == 3">
|
|
- <gapX :cJson="item2.json"></gapX>
|
|
|
|
- <gapDialog v-if="item2.type == 3 && checkC === `x${index1}-${index2}`" :cJson="cJson"
|
|
|
|
- @setJson="setJson"></gapDialog>
|
|
|
|
|
|
+ <gapX :cJson="item2.json" @setJson="setJson" :index="`x${index1}-${index2}`" :isOpen="item2.type == 3 && checkC === `x${index1}-${index2}`"></gapX>
|
|
|
|
+ <!-- <gapDialog v-if="item2.type == 3 && checkC === `x${index1}-${index2}`" :cJson="cJson"
|
|
|
|
+ @setJson="setJson"></gapDialog> -->
|
|
</div>
|
|
</div>
|
|
<div v-else-if="item2.type == 5">
|
|
<div v-else-if="item2.type == 5">
|
|
- <fileX :cJson="item2.json"></fileX>
|
|
|
|
- <fileDialog v-if="item2.type == 5 && checkC === `x${index1}-${index2}`" :cJson="cJson"
|
|
|
|
- @setJson="setJson"></fileDialog>
|
|
|
|
|
|
+ <fileX :cJson="item2.json" @setJson="setJson" :index="`x${index1}-${index2}`" :isOpen="item2.type == 5 && checkC === `x${index1}-${index2}`"></fileX>
|
|
|
|
+ <!-- <fileDialog v-if="item2.type == 5 && checkC === `x${index1}-${index2}`" :cJson="cJson"
|
|
|
|
+ @setJson="setJson"></fileDialog> -->
|
|
</div>
|
|
</div>
|
|
<div v-else-if="item2.type == 6">
|
|
<div v-else-if="item2.type == 6">
|
|
- <courseX :cJson="item2.json"></courseX>
|
|
|
|
- <courseDialog v-if="item2.type == 6 && checkC === `x${index1}-${index2}`" :cJson="cJson"
|
|
|
|
- @setJson="setJson"></courseDialog>
|
|
|
|
|
|
+ <courseX :cJson="item2.json" @setJson="setJson" :index="`x${index1}-${index2}`" :isOpen="item2.type == 6 && checkC === `x${index1}-${index2}`"></courseX>
|
|
|
|
+ <!-- <courseDialog v-if="item2.type == 6 && checkC === `x${index1}-${index2}`" :cJson="cJson"
|
|
|
|
+ @setJson="setJson"></courseDialog> -->
|
|
</div>
|
|
</div>
|
|
<div v-else-if="item2.type == 7">
|
|
<div v-else-if="item2.type == 7">
|
|
- <evaX :cJson="item2.json"></evaX>
|
|
|
|
- <evaDialog v-if="item2.type == 7 && checkC === `x${index1}-${index2}`" :cJson="cJson"
|
|
|
|
- @setJson="setJson"></evaDialog>
|
|
|
|
|
|
+ <evaX :cJson="item2.json" @setJson="setJson" :index="`x${index1}-${index2}`" :isOpen="item2.type == 7 && checkC === `x${index1}-${index2}`"></evaX>
|
|
|
|
+ <!-- <evaDialog v-if="item2.type == 7 && checkC === `x${index1}-${index2}`" :cJson="cJson"
|
|
|
|
+ @setJson="setJson"></evaDialog> -->
|
|
</div>
|
|
</div>
|
|
<div v-else-if="item2.type == 8">
|
|
<div v-else-if="item2.type == 8">
|
|
- <timeX :cJson="item2.json"></timeX>
|
|
|
|
- <timeDialog v-if="item2.type == 8 && checkC === `x${index1}-${index2}`" :cJson="cJson"
|
|
|
|
- @setJson="setJson"></timeDialog>
|
|
|
|
|
|
+ <timeX :cJson="item2.json" @setJson="setJson" :index="`x${index1}-${index2}`" :isOpen="item2.type == 8 && checkC === `x${index1}-${index2}`"></timeX>
|
|
|
|
+ <!-- <timeDialog v-if="item2.type == 8 && checkC === `x${index1}-${index2}`" :cJson="cJson"
|
|
|
|
+ @setJson="setJson"></timeDialog> -->
|
|
</div>
|
|
</div>
|
|
<div v-else-if="item2.type == 11">
|
|
<div v-else-if="item2.type == 11">
|
|
- <courseX2 :cJson="item2.json"></courseX2>
|
|
|
|
- <courseDialog2 v-if="item2.type == 11 && checkC === `x${index1}-${index2}`" :cJson="cJson"
|
|
|
|
- @setJson="setJson"></courseDialog2>
|
|
|
|
|
|
+ <courseX2 :cJson="item2.json" @setJson="setJson" :index="`x${index1}-${index2}`" :isOpen="item2.type == 11 && checkC === `x${index1}-${index2}`"></courseX2>
|
|
|
|
+ <!-- <courseDialog2 v-if="item2.type == 11 && checkC === `x${index1}-${index2}`" :cJson="cJson"
|
|
|
|
+ @setJson="setJson"></courseDialog2> -->
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div v-else-if="item1.ttype == 1 && canEdit.indexOf(item1.type) !== -1 && etype == 'edit'" class="edit_box">
|
|
<div v-else-if="item1.ttype == 1 && canEdit.indexOf(item1.type) !== -1 && etype == 'edit'" class="edit_box">
|
|
<div v-if="item1.type == 1">
|
|
<div v-if="item1.type == 1">
|
|
- <choiceX :cJson="item1.json"></choiceX>
|
|
|
|
- <choiceDialog v-if="item1.type == 1 && checkC === `x${index1}`" :cJson="cJson" @setJson="setJson">
|
|
|
|
- </choiceDialog>
|
|
|
|
|
|
+ <choiceX :cJson="item1.json" @setJson="setJson" :index="`x${index1}`" :isOpen="item1.type == 1 && checkC === `x${index1}`"></choiceX>
|
|
|
|
+ <!-- <choiceDialog v-if="item1.type == 1 && checkC === `x${index1}`" :cJson="cJson" @setJson="setJson">
|
|
|
|
+ </choiceDialog> -->
|
|
</div>
|
|
</div>
|
|
<div v-else-if="item1.type == 3">
|
|
<div v-else-if="item1.type == 3">
|
|
- <gapX :cJson="item1.json"></gapX>
|
|
|
|
- <gapDialog v-if="item1.type == 3 && checkC === `x${index1}`" :cJson="cJson" @setJson="setJson">
|
|
|
|
- </gapDialog>
|
|
|
|
|
|
+ <gapX :cJson="item1.json" @setJson="setJson" :index="`x${index1}`" :isOpen="item1.type == 3 && checkC === `x${index1}`"></gapX>
|
|
|
|
+ <!-- <gapDialog v-if="item1.type == 3 && checkC === `x${index1}`" :cJson="cJson" @setJson="setJson">
|
|
|
|
+ </gapDialog> -->
|
|
</div>
|
|
</div>
|
|
<div v-else-if="item1.type == 5">
|
|
<div v-else-if="item1.type == 5">
|
|
- <fileX :cJson="item1.json"></fileX>
|
|
|
|
- <fileDialog v-if="item1.type == 5 && checkC === `x${index1}`" :cJson="cJson" @setJson="setJson">
|
|
|
|
- </fileDialog>
|
|
|
|
|
|
+ <fileX :cJson="item1.json" @setJson="setJson" :index="`x${index1}`" :isOpen="item1.type == 5 && checkC === `x${index1}`"></fileX>
|
|
|
|
+ <!-- <fileDialog v-if="item1.type == 5 && checkC === `x${index1}`" :cJson="cJson" @setJson="setJson">
|
|
|
|
+ </fileDialog> -->
|
|
</div>
|
|
</div>
|
|
<div v-else-if="item1.type == 6">
|
|
<div v-else-if="item1.type == 6">
|
|
- <courseX :cJson="item1.json"></courseX>
|
|
|
|
- <courseDialog v-if="item1.type == 6 && checkC === `x${index1}`" :cJson="cJson" @setJson="setJson">
|
|
|
|
- </courseDialog>
|
|
|
|
|
|
+ <courseX :cJson="item1.json" @setJson="setJson" :index="`x${index1}`" :isOpen="item1.type == 6 && checkC === `x${index1}`"></courseX>
|
|
|
|
+ <!-- <courseDialog v-if="item1.type == 6 && checkC === `x${index1}`" :cJson="cJson" @setJson="setJson">
|
|
|
|
+ </courseDialog> -->
|
|
</div>
|
|
</div>
|
|
<div v-else-if="item1.type == 7">
|
|
<div v-else-if="item1.type == 7">
|
|
- <evaX :cJson="item1.json"></evaX>
|
|
|
|
- <evaDialog v-if="item1.type == 7 && checkC === `x${index1}`" :cJson="cJson" @setJson="setJson">
|
|
|
|
- </evaDialog>
|
|
|
|
|
|
+ <evaX :cJson="item1.json" @setJson="setJson" :index="`x${index1}`" :isOpen="item1.type == 7 && checkC === `x${index1}`"></evaX>
|
|
|
|
+ <!-- <evaDialog v-if="item1.type == 7 && checkC === `x${index1}`" :cJson="cJson" @setJson="setJson">
|
|
|
|
+ </evaDialog> -->
|
|
</div>
|
|
</div>
|
|
<div v-else-if="item1.type == 8">
|
|
<div v-else-if="item1.type == 8">
|
|
- <timeX :cJson="item1.json"></timeX>
|
|
|
|
- <timeDialog v-if="item1.type == 8 && checkC === `x${index1}`" :cJson="cJson" @setJson="setJson">
|
|
|
|
- </timeDialog>
|
|
|
|
|
|
+ <timeX :cJson="item1.json" @setJson="setJson" :index="`x${index1}`" :isOpen="item1.type == 8 && checkC === `x${index1}`"></timeX>
|
|
|
|
+ <!-- <timeDialog v-if="item1.type == 8 && checkC === `x${index1}`" :cJson="cJson" @setJson="setJson">
|
|
|
|
+ </timeDialog> -->
|
|
</div>
|
|
</div>
|
|
<div v-else-if="item1.type == 11">
|
|
<div v-else-if="item1.type == 11">
|
|
- <courseX2 :cJson="item1.json"></courseX2>
|
|
|
|
- <courseDialog2 v-if="item1.type == 11 && checkC === `x${index1}`" :cJson="cJson" @setJson="setJson">
|
|
|
|
- </courseDialog2>
|
|
|
|
|
|
+ <courseX2 :cJson="item1.json" @setJson="setJson" :index="`x${index1}`" :isOpen="item1.type == 11 && checkC === `x${index1}`"></courseX2>
|
|
|
|
+ <!-- <courseDialog2 v-if="item1.type == 11 && checkC === `x${index1}`" :cJson="cJson" @setJson="setJson">
|
|
|
|
+ </courseDialog2> -->
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -377,9 +377,15 @@ export default {
|
|
// console.log(this.cJson);
|
|
// console.log(this.cJson);
|
|
this.$emit("update:cJson", cJson)
|
|
this.$emit("update:cJson", cJson)
|
|
},
|
|
},
|
|
- setJson(json) {
|
|
|
|
- let _index = this.checkC.replace("x", "").split("-");
|
|
|
|
- // this.cJson = json
|
|
|
|
|
|
+ setJson(json,index) {
|
|
|
|
+ let checkC = ""
|
|
|
|
+ if(index){
|
|
|
|
+ checkC = index
|
|
|
|
+ }else{
|
|
|
|
+ checkC = this.checkC
|
|
|
|
+ }
|
|
|
|
+ if(!checkC)return;
|
|
|
|
+ let _index = checkC.replace("x", "").split("-");
|
|
this.$emit("update:cJson", json)
|
|
this.$emit("update:cJson", json)
|
|
if (this.ctype == 1) {
|
|
if (this.ctype == 1) {
|
|
this.manualJson[_index[0]].json = json
|
|
this.manualJson[_index[0]].json = json
|