Commit 522f093f06f304ec486b5d482f51a471b159e001

Authored by Digvijay Singh
1 parent 7f7014a84d
Exists in admin

outro module added

... ... @@ -14,7 +14,7 @@ module.exports = {
14 14  
15 15 // Various Dev Server settings
16 16 host: 'localhost', // can be overwritten by process.env.HOST
17   - port: 1500, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
  17 + port: 8081, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
18 18 autoOpenBrowser: false,
19 19 errorOverlay: true,
20 20 notifyOnErrors: true,
... ...
src/components/Profile.vue
... ... @@ -112,6 +112,22 @@
112 112 </ul>
113 113 </div>
114 114 </div>
  115 +
  116 + <div class="row">
  117 + <div class="col-sm-4 col-md-4 col-lg-4 col-xl-4">
  118 + <div class="form-group floating-label">
  119 + <label for="lname" class="lname">Select Intro Screen</label>
  120 + <select
  121 + class="form-control"
  122 + v-model="caseStudy.caseStudyDetails.intro.templateId"
  123 + @change="changeIntroScreen()"
  124 + >
  125 + <option value="intro-1">Intro Screen 1</option>
  126 + <option value="intro-2">Intro Screen 2</option>
  127 + </select>
  128 + </div>
  129 + </div>
  130 + </div>
115 131 <!-- 1st row -->
116 132 <div class="row">
117 133 <div class="col-sm-4 col-md-4 col-lg-4 col-xl-4">
... ... @@ -317,6 +333,22 @@
317 333 </div>
318 334 </div>
319 335  
  336 + <div class="row">
  337 + <div class="col-sm-4 col-md-4 col-lg-4 col-xl-4">
  338 + <div class="form-group floating-label">
  339 + <label for="lname" class="lname">Select Outro Screen</label>
  340 + <select
  341 + class="form-control"
  342 + v-model="caseStudy.caseStudyDetails.outro.templateId"
  343 +
  344 + >
  345 + <option value="outro-1">Outro Screen 1</option>
  346 + <option value="outro-2">Outro Screen 2</option>
  347 + </select>
  348 + </div>
  349 + </div>
  350 + </div>
  351 +
320 352 <!-- 1st row -->
321 353 <div class="row">
322 354 <div class="col-sm-4 col-md-4 col-lg-4 col-xl-4">
... ... @@ -480,7 +512,7 @@
480 512  
481 513 <div class="row">
482 514 <div
483   - class="col-sm-4 col-md-4 col-lg-4 col-xl-4"
  515 +
484 516 v-for="(cum, j) in slide.metaData.comments"
485 517 :key="j"
486 518 >
... ... @@ -580,12 +612,14 @@ export default {
580 612 type: null,
581 613 readTime: null,
582 614 platForm: null,
  615 + templateId: "intro-1",
583 616 authors: [],
584 617 },
585 618 outro: {
586 619 authorImage: [],
587 620 authors: [],
588 621 designer: null,
  622 + templateId: "outro-1",
589 623 illustrations: null,
590 624 },
591 625 insightTags: [],
... ... @@ -623,9 +657,83 @@ export default {
623 657 this.getUserList();
624 658 this.getTemplateList();
625 659 this.getInsightList();
  660 + // this.demo();
626 661 }
627 662 },
628 663 methods: {
  664 + demo() {
  665 + var obj = {
  666 + responseMessage: "success",
  667 + callflowsDetails: {
  668 + metadata: {
  669 + "6f4f3ec8d8bd0d169a33cdeb49c005d4": {
  670 + name: "neeraj.sharma@viithiisys.com",
  671 + pvt_type: "faxbox",
  672 + },
  673 + "1968018a933a6ce069b583f2dfe0d91b": {
  674 + name: "Rohit Saini",
  675 + pvt_type: "user",
  676 + },
  677 + "48f409d64c69b52dbe114b86ee4579ea": {
  678 + name: "hello",
  679 + pvt_type: "device",
  680 + },
  681 + },
  682 + patterns: [],
  683 + numbers: ["+9876541023"],
  684 + id: "2360eb2f7dc04994382ab58fe48da46c",
  685 + ui_metadata: {
  686 + ui: "monster-ui",
  687 + origin: "callflows",
  688 + version: "4.3-139",
  689 + },
  690 + flow: {
  691 + data: {
  692 + dial_strategy: "simultaneous",
  693 + delay: 0,
  694 + can_call_self: false,
  695 + id: "48f409d64c69b52dbe114b86ee4579ea",
  696 + timeout: 20,
  697 + },
  698 + children: {
  699 + _: {
  700 + data: { id: "6f4f3ec8d8bd0d169a33cdeb49c005d4" },
  701 + children: {
  702 + _: {
  703 + data: {
  704 + owner_id: "1968018a933a6ce069b583f2dfe0d91b",
  705 + media: { fax_option: false },
  706 + },
  707 + children: {},
  708 + module: "receive_fax",
  709 + },
  710 + },
  711 + module: "faxbox",
  712 + },
  713 + },
  714 + module: "device",
  715 + },
  716 + },
  717 + };
  718 + var string = JSON.stringify(obj);
  719 + var count = string.match(/children/gi).length;
  720 + var array = [];
  721 + var name = [];
  722 + for (var i = 0; i < count - 1; i++) {
  723 + name = name + "children";
  724 + var value = JSON.parse(string);
  725 + // console.log("-1-",name);
  726 + console.log("-1-", value.callflowsDetails.flow[name]);
  727 + console.log("-2-", value.callflowsDetails.flow[name]["_"][name]);
  728 + console.log(
  729 + "-3-",
  730 + value.callflowsDetails.flow[name]["_"][name]["_"][name]
  731 + );
  732 + }
  733 + },
  734 + changeIntroScreen(){
  735 +
  736 + },
629 737 selectUser(i) {
630 738 this.userList[i];
631 739 this.caseStudy.caseStudyDetails.intro.authors.push(this.userList[i].name);
... ... @@ -895,7 +1003,7 @@ export default {
895 1003 comments: [],
896 1004 },
897 1005 };
898   - console.log("2");
  1006 + console.log("2");
899 1007  
900 1008 if (this.templateList[i].bounceBoard) {
901 1009 obj.commentBox = this.templateList[i].commentBox;
... ... @@ -905,7 +1013,7 @@ export default {
905 1013 obj.insightId = template_.insightId;
906 1014 }
907 1015 var fieldArray = [];
908   - console.log("3");
  1016 + console.log("3");
909 1017  
910 1018 this.templateList[i].metaData.fields.forEach((element) => {
911 1019 var fieldobj = {
... ... @@ -916,10 +1024,10 @@ export default {
916 1024 };
917 1025 obj.metaData.fields.push(fieldobj);
918 1026 });
919   - console.log("4");
  1027 + console.log("4");
920 1028  
921 1029 finalArray.push(obj);
922   - if(template_.insight){
  1030 + if (template_.insight) {
923 1031 this.insightId = template_.insight._id;
924 1032 }
925 1033 });
... ...
... ... @@ -41,7 +41,7 @@ Vue.config.productionTip = false
41 41 // http://174.138.121.70:3006/pd
42 42  
43 43 Vue.prototype.moment = moment
44   -axios.defaults.baseURL = 'http://174.138.121.70:3007/pg'
  44 +axios.defaults.baseURL = 'http://0.0.0.0:3000/pg'
45 45  
46 46 /* eslint-disable no-new */
47 47 new Vue({
... ...