diff --git a/client/src/components/SchemaView.vue b/client/src/components/SchemaView.vue index accf08f..1e2f059 100644 --- a/client/src/components/SchemaView.vue +++ b/client/src/components/SchemaView.vue @@ -71,7 +71,7 @@
- + @@ -130,8 +130,8 @@
- - + +
@@ -187,8 +187,8 @@
- - + +
@@ -203,6 +203,7 @@
+
@@ -212,6 +213,7 @@ + + + + + + + diff --git a/client/src/components/email.vue b/client/src/components/email.vue index fc12479..1f3e0c7 100644 --- a/client/src/components/email.vue +++ b/client/src/components/email.vue @@ -91,7 +91,7 @@ import schemaModel from '@/api/schema' ` } - this.tinyMCEcontent = this.sendDataEmail + this.btn + this.tinyMCEcontent = this.sendDataEmail.replace(/{{NextTargetButton}}/g, this.btn) if (this.flag == false) { let response = await schemaModel.get(this.emailSchemaId).catch(error => { console.log(error) @@ -256,21 +256,15 @@ import schemaModel from '@/api/schema' let htmlContent; if(this.GetHtmlOfEditor === ''){ htmlContent = this.sendDataEmail + htmlContent = this.sendDataEmail.replace(/{{NextTargetButton}}/g, this.btn) } else { htmlContent = this.GetHtmlOfEditor } - if (this.flag == true) { this.emailForm.html = ` Email Proof -
` + htmlContent +` -

Customer Proof:

- ${this.btn} -

Comment: ${this.emailForm.Comment}


-

While we strongly you to take advantage of this time saving option, - your proof may still be fixed back to company name at: Toll Free Fax: 800-238-0082 - Local Fax: 716-773-2332

` +

Comment: ${this.emailForm.Comment}


` sendmailModal.post(this.emailForm) .then((res)=>{ this.loading = false @@ -285,15 +279,9 @@ import schemaModel from '@/api/schema' } else { this.formSchemaInstance.data[0].html = [] this.formSchemaInstance.data[0].html = ` Email Proof -
` + htmlContent +` -

Customer Proof:

- ${this.btn} -

Comment: ${this.formSchemaInstance.data.comment}


-

While we strongly you to take advantage of this time saving option, - your proof may still be fixed back to company name at: Toll Free Fax: 800-238-0082 - Local Fax: 716-773-2332

` +

Comment: ${this.formSchemaInstance.data.comment}


` console.log('this.formSchemaInstance.data', this.formSchemaInstance.data) sendmailModal.post(this.formSchemaInstance.data[0]) .then((res)=>{ diff --git a/client/src/components/emailTemplateCreate.vue b/client/src/components/emailTemplateCreate.vue new file mode 100644 index 0000000..e8e97a5 --- /dev/null +++ b/client/src/components/emailTemplateCreate.vue @@ -0,0 +1,120 @@ + + + + + + + + + + diff --git a/client/src/components/emailtemplate.vue b/client/src/components/emailtemplate.vue index c51bee2..0e2737f 100644 --- a/client/src/components/emailtemplate.vue +++ b/client/src/components/emailtemplate.vue @@ -1,23 +1,14 @@ @@ -29,6 +20,7 @@ import _ from 'lodash' export default { data () { return { + total: '', flag: false, updateTemplateid: '', newTemplate: true, @@ -63,20 +55,21 @@ export default { props: { type: 'text', size: 'large', - icon: 'ios-eye-outline' + icon: 'edit' }, domProps: { - title: 'view template' + title: 'Edit Emailtemplate' }, style: { + color: '#7DE144', marginRight: '3px', padding: '0px', - fontSize: '20px', - color: '#0052a9' + fontSize: '20px' }, on: { click: () => { - this.show(params) + console.log(params) + this.$router.push({name: 'editemailtemplate', params: {id: params.row.id}}) } } }, ''), @@ -111,6 +104,9 @@ export default { 'editor': (resolve) => { require(['@tinymce/tinymce-vue'], resolve) } }, methods: { + addNewEmailTemplate () { + this.$router.push({name: 'createemailtemplate'}) + }, saveTemplate () { let saveemailTemplateObj = { user: this.$store.state.user._id, @@ -182,6 +178,7 @@ export default { .then((res) => { this.flag = true this.data6 = res.data.data + this.total = res.data.data.length }) .catch((err) => { console.log(err) diff --git a/client/src/config/index.js b/client/src/config/index.js index 4e6434a..b53850a 100644 --- a/client/src/config/index.js +++ b/client/src/config/index.js @@ -29,7 +29,9 @@ var temp = { subscriptionUrl: 'https://api.' + process.env.domainKey + '/subscription/', getAllPermissionsUrl: 'https://api.' + process.env.domainKey + '/authldap/getallpermission/', setPermissionUrl: 'https://api.' + process.env.domainKey + '/authldap/setpermission', - ldapURL: 'https://api.' + process.env.domainKey + '/authldap/init' + ldapURL: 'https://api.' + process.env.domainKey + '/authldap/init', + usermodulerole: 'https://api.' + process.env.domainKey + '/subscription/user-module-role', + userdetails: 'https://api.' + process.env.domainKey + '/user/getuserdetails/' } if (process.env.NODE_ENV !== 'development') { temp = { @@ -54,7 +56,9 @@ if (process.env.NODE_ENV !== 'development') { subscriptionUrl: 'https://api.' + process.env.domainKey + '/subscription/', getAllPermissionsUrl: 'https://api.' + process.env.domainKey + '/authldap/getallpermission/', setPermissionUrl: 'https://api.' + process.env.domainKey + '/authldap/setpermission', - ldapURL: 'https://api.' + process.env.domainKey + '/authldap/init' + ldapURL: 'https://api.' + process.env.domainKey + '/authldap/init', + usermodulerole: 'https://api.' + process.env.domainKey + '/subscription/user-module-role', + userdetails: 'https://api.' + process.env.domainKey + '/user/getuserdetails/' } } export default temp diff --git a/client/src/pages/flow/List.vue b/client/src/pages/flow/List.vue index 979e34a..e34da6f 100644 --- a/client/src/pages/flow/List.vue +++ b/client/src/pages/flow/List.vue @@ -34,6 +34,10 @@