{"version":3,"sources":["webpack:///./src/views/tenants/tenantsView/wx-message_templateEdit.vue?fe9f","webpack:///./src/views/tenants/tenantsView/wx-message_templateEdit.vue?b2b0","webpack:///./src/views/tenants/tenantsView/wx-message_templateEdit.vue?8311","webpack:///./src/views/tenants/tenantsView/wx-message_templateEdit.vue","webpack:///./src/views/tenants/tenantsView/wx-message_templateEdit.vue?0e68","webpack:///./src/JS/Bus.ts"],"names":["render","_vm","this","_h","$createElement","_c","_self","style","messageTemplate","ActionName","staticClass","ref","attrs","mtRules","_l","value","name","mIndex","key","_v","_s","_e","model","callback","$$v","$set","expression","on","selectMtCategory","cate","TypeId","temp_name","data","dValue","dName","dIndex","$event","addFansName","inputType","GetOnkeyup","GetMaxLength","emojiGroup","index","emoji","eName","eIndex","stopPropagation","addEmoji","slot","colorEdges","appTypeCode","skipUrl","skipUrlType","customUrlIsTotal","linkDialogVisible","miniprogram","staticStyle","submitMessage","modifyIndex","backStep","cancelData","linkType","class","currentLinkTab","selectLinkType","formSearchKeywords","linkTypeList","formItem","formName","selectedLinkIndex","item","staticRenderFns","mtCategory","loading","GetAppData","template_name","required","message","trigger","min","max","appid","pagepath","emojiRes","formList","selectVal","links","h5List","val","oldVal","$emit","newTemplate","oldTemplate","localStorage","setItem","JSON","stringify","template_category","clickLinkIndex","Aid","TenantID","GetCustomEmoji","getItem","parse","propMessageObj","propModifyIndex","console","log","parseInt","TypeID","that","Bus","$off","$on","obj","pageElement","removeItem","emojiText","submitData","$refs","validate","valid","dname","_this","first","remark","params","Input","Name","Value","res","ErrorCode","output","$message","error","ErrorMessage","dataName","color","$store","state","TencentInfoStore","typeCode","immediate","deep","components","component","bus"],"mappings":"qMAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,MAAuC,UAAhCN,EAAIO,gBAAgBC,WAAqB,4BAA4B,gBAAiB,CAAER,E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AAV,kB,+BAkBU,QAAV,kB,wCACU,QAAV,kB,yCACU,QAAV,kB,6BAoBD,QAFC,eAAM,kBAAmB,CAAEC,WAAW,EAAMC,MAAM,K,0BAIlD,MAED,QADC,eAAM,cAAe,CAAED,WAAW,EAAOC,MAAM,K,4BAO/C,MAMU,QAAV,kB,kCA/EH,UAHC,eAAU,CACTC,WAAY,MA+Pb,G,QCpjBqb,I,wBCQlbC,EAAY,eACd,EACAjJ,EACAuE,GACA,EACA,KACA,WACA,MAIa,aAAA0E,E,6CCnBf,yBAA+qB,EAAG,G,kCCAlrB,gBAGMC,EAAM,IAAI,aAED","file":"js/chunk-af2a1da0.578ed1e7.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{style:(_vm.messageTemplate.ActionName=='CREATE'?'height: calc(100% - 35px)':'height: 100%')},[(_vm.messageTemplate)?[_c('el-scrollbar',{staticClass:\"temlateedit-scrollbar\"},[_c('el-form',{ref:\"messageTemplate\",staticClass:\"message-edit-form\",attrs:{\"model\":_vm.messageTemplate,\"rules\":_vm.mtRules,\"label-width\":\"100px\"}},[_vm._l((_vm.messageTemplate),function(value,name,mIndex){return [(name=='template_id')?_c('el-form-item',{key:mIndex,attrs:{\"label\":\"模板ID\"}},[_c('div',[_vm._v(_vm._s(value))])]):_vm._e(),(name=='template_name')?[_c('el-form-item',{key:mIndex,attrs:{\"label\":\"模板名称\",\"prop\":name}},[_c('el-input',{attrs:{\"placeholder\":\"请填写模板名称,不超过20个字\"},model:{value:(_vm.messageTemplate.template_name),callback:function ($$v) {_vm.$set(_vm.messageTemplate, \"template_name\", $$v)},expression:\"messageTemplate.template_name\"}})],1),_c('el-form-item',{key:'mc' + mIndex,attrs:{\"label\":\"模板分组\"}},[_c('el-select',{on:{\"change\":_vm.selectMtCategory},model:{value:(_vm.messageTemplate.TypeId),callback:function ($$v) {_vm.$set(_vm.messageTemplate, \"TypeId\", $$v)},expression:\"messageTemplate.TypeId\"}},_vm._l((_vm.propMessageCategory),function(cate){return _c('el-option',{key:cate.TypeId,attrs:{\"label\":cate.temp_name,\"value\":cate.TypeId}})}),1)],1)]:_vm._e(),(name=='template_title')?[_c('el-form-item',{key:mIndex,attrs:{\"label\":\"模板标题\"}},[_c('div',[_vm._v(_vm._s(value))])]),_c('div',{key:'md' + mIndex},[_c('el-form',{staticClass:\"mt-data-form\",attrs:{\"model\":_vm.messageTemplate.data,\"label-width\":\"100px\"}},_vm._l((_vm.messageTemplate.data),function(dValue,dName,dIndex){return _c('div',{key:'messageData' + dIndex},[(dValue.isInput)?_c('div',{staticClass:\"mtd-item\"},[(dName=='first')?_c('el-form-item',{attrs:{\"label\":\"详细内容\"}},[_c('el-input',{attrs:{\"type\":\"textarea\"},model:{value:(dValue.value),callback:function ($$v) {_vm.$set(dValue, \"value\", $$v)},expression:\"dValue.value\"}}),_c('div',{staticClass:\"addFansName\",on:{\"click\":function($event){return _vm.addFansName(dName)}}},[_vm._v(\"[粉丝昵称]\")])],1):_vm._e(),(dName!='first' && dName!='remark')?_c('el-form-item',{attrs:{\"label\":dName}},[(dValue.inputType=='textarea')?_c('el-input',{attrs:{\"placeholder\":\"请输入内容\",\"type\":\"textarea\",\"rows\":\"5\"},model:{value:(dValue.value),callback:function ($$v) {_vm.$set(dValue, \"value\", $$v)},expression:\"dValue.value\"}}):_c('el-input',{attrs:{\"onkeyup\":_vm.GetOnkeyup(dValue.inputType),\"maxLength\":_vm.GetMaxLength(dValue.inputType),\"placeholder\":\"请输入内容\",\"show-word-limit\":\"\"},model:{value:(dValue.value),callback:function ($$v) {_vm.$set(dValue, \"value\", $$v)},expression:\"dValue.value\"}})],1):_vm._e(),(dName=='remark')?_c('el-form-item',{attrs:{\"label\":\"备注\"}},[_c('el-input',{attrs:{\"type\":\"textarea\"},model:{value:(dValue.value),callback:function ($$v) {_vm.$set(dValue, \"value\", $$v)},expression:\"dValue.value\"}}),_c('div',{staticClass:\"addFansName\",on:{\"click\":function($event){return _vm.addFansName(dName)}}},[_vm._v(\"[粉丝昵称]\")])],1):_vm._e(),_c('div',{staticClass:\"emoji-group\"},[_c('el-popover',{attrs:{\"placement\":\"top-start\",\"width\":\"330\",\"trigger\":\"hover\"}},[_c('el-scrollbar',{staticClass:\"emoji-scrollbar\"},[_c('ul',[_vm._l((_vm.emojiRes),function(emojiGroup,name,index){return [_c('li',{key:index},[_c('div',{staticClass:\"emoji-h3\"},[_vm._v(_vm._s(name))]),_c('ul',{staticClass:\"emoji-ul\"},_vm._l((emojiGroup),function(emoji,eName,eIndex){return _c('li',{key:eIndex,attrs:{\"title\":eName},on:{\"click\":function($event){$event.stopPropagation();return _vm.addEmoji([dName,emoji])}}},[_vm._v(_vm._s(emoji))])}),0)])]})],2)]),_c('el-button',{attrs:{\"slot\":\"reference\"},slot:\"reference\"},[_c('i',{staticClass:\"cms cms-emoji\"})])],1)],1),_c('div',{staticClass:\"color-wrap\"},[_c('el-color-picker',{on:{\"change\":function($event){return _vm.colorEdges(dName)}},model:{value:(dValue.color),callback:function ($$v) {_vm.$set(dValue, \"color\", $$v)},expression:\"dValue.color\"}})],1)],1):_c('div',[_vm._v(_vm._s(dName))])])}),0)],1)]:_vm._e(),(name=='url')?_c('el-form-item',{key:mIndex,attrs:{\"label\":\"跳转地址\"}},[_c('el-radio-group',{model:{value:(_vm.messageTemplate.skipUrl),callback:function ($$v) {_vm.$set(_vm.messageTemplate, \"skipUrl\", $$v)},expression:\"messageTemplate.skipUrl\"}},[_c('el-radio',{attrs:{\"label\":\"0\"}},[_vm._v(\"无\")]),(_vm.messageTemplate.appTypeCode!='TypeCode_006')?_c('el-radio',{attrs:{\"label\":\"html5\"}},[_vm._v(\"跳转页面\")]):_vm._e(),(_vm.messageTemplate.appTypeCode!='TypeCode_006')?_c('el-radio',{attrs:{\"label\":\"applet\"}},[_vm._v(\"跳转小程序\")]):_vm._e()],1),(_vm.messageTemplate.skipUrl=='html5')?_c('div',[_c('div',[_c('el-select',{model:{value:(_vm.messageTemplate.skipUrlType),callback:function ($$v) {_vm.$set(_vm.messageTemplate, \"skipUrlType\", $$v)},expression:\"messageTemplate.skipUrlType\"}},[_c('el-option',{attrs:{\"label\":\"自定义链接地址\",\"value\":\"customUrl\"}}),_c('el-option',{attrs:{\"label\":\"已有链接地址(开发中)\",\"value\":\"cmsUrl\",\"disabled\":\"disabled\"}})],1)],1),(_vm.messageTemplate.skipUrlType=='customUrl')?_c('div',[_c('el-input',{attrs:{\"placeholder\":\"\"},model:{value:(_vm.messageTemplate.Url),callback:function ($$v) {_vm.$set(_vm.messageTemplate, \"Url\", $$v)},expression:\"messageTemplate.Url\"}}),_c('el-checkbox',{model:{value:(_vm.customUrlIsTotal),callback:function ($$v) {_vm.customUrlIsTotal=$$v},expression:\"customUrlIsTotal\"}},[_vm._v(\"统计阅读人数\")]),_c('el-tooltip',{staticClass:\"item\",attrs:{\"effect\":\"dark\",\"placement\":\"bottom-end\"}},[_c('div',{attrs:{\"slot\":\"content\"},slot:\"content\"},[_vm._v(\"\\n 当需要统计阅读人数时,\\n \"),_c('br'),_vm._v(\"粉丝点击该模板消息打开链接地址时需要获取用户授权信息,\\n \"),_c('br'),_vm._v(\"用户允许授权后进入链接地址页面。\\n \")]),_c('div',{staticClass:\"tooltips tooltips-default\"},[_vm._v(\"?\")])])],1):_vm._e(),(_vm.messageTemplate.skipUrlType=='cmsUrl')?_c('div',{staticClass:\"btn btn-primary\",on:{\"click\":function($event){_vm.linkDialogVisible=true}}},[_vm._v(\"选择链接地址\")]):_vm._e()]):_vm._e(),(_vm.messageTemplate.skipUrl=='applet')?[_c('ul',{staticClass:\"applet-info\"},[_c('li',[_c('el-form-item',{attrs:{\"label\":\"小程序appid\",\"inline-message\":true,\"prop\":\"miniprogram.appid\"}},[_c('el-input',{attrs:{\"placeholder\":\"请填写正确的appid\"},model:{value:(_vm.messageTemplate.miniprogram.appid),callback:function ($$v) {_vm.$set(_vm.messageTemplate.miniprogram, \"appid\", $$v)},expression:\"messageTemplate.miniprogram.appid\"}})],1),_c('el-popover',{staticClass:\"custom-popover\",attrs:{\"placement\":\"top-start\",\"width\":\"200\",\"trigger\":\"hover\"}},[_c('div',[_vm._v(\"粉丝点击模板消息会跳到该小程序,该小程序必须与当前公众号是绑定关联关系,暂不支持小游戏。\")]),_c('el-button',{attrs:{\"slot\":\"reference\"},slot:\"reference\"},[_c('i',{staticClass:\"cms cms-wenhao\"})])],1)],1),_c('li',[_c('el-form-item',{attrs:{\"label\":\"页面路径\",\"prop\":\"miniprogram.pagepath\",\"inline-message\":true}},[_c('el-input',{attrs:{\"placeholder\":\"请填写正确的appid\"},model:{value:(_vm.messageTemplate.miniprogram.pagepath),callback:function ($$v) {_vm.$set(_vm.messageTemplate.miniprogram, \"pagepath\", $$v)},expression:\"messageTemplate.miniprogram.pagepath\"}})],1),_c('el-popover',{staticClass:\"custom-popover\",attrs:{\"placement\":\"top-start\",\"width\":\"200\",\"trigger\":\"hover\"}},[_c('div',[_vm._v(\"粉丝点击模板消息会跳到该小程序,该小程序必须与当前公众号是绑定关联关系,暂不支持小游戏。\")]),_c('el-button',{attrs:{\"slot\":\"reference\"},slot:\"reference\"},[_c('i',{staticClass:\"cms cms-wenhao\"})])],1)],1),_c('li',[_c('el-form-item',{attrs:{\"label\":\"备用页面路径\"}},[_c('el-input',{attrs:{\"placeholder\":\"请填写完整的URL\"},model:{value:(_vm.messageTemplate.miniprogram.pagepath2),callback:function ($$v) {_vm.$set(_vm.messageTemplate.miniprogram, \"pagepath2\", $$v)},expression:\"messageTemplate.miniprogram.pagepath2\"}})],1),_c('el-popover',{staticClass:\"custom-popover\",attrs:{\"placement\":\"top-start\",\"width\":\"200\",\"trigger\":\"hover\"}},[_c('div',[_vm._v(\"粉丝点击模板消息会跳到该小程序,该小程序必须与当前公众号是绑定关联关系,暂不支持小游戏。\")]),_c('el-button',{attrs:{\"slot\":\"reference\"},slot:\"reference\"},[_c('i',{staticClass:\"cms cms-wenhao\"})])],1)],1)])]:_vm._e()],2):_vm._e()]})],2)],1)]:_vm._e(),_c('div',{staticClass:\"steps-btns\"},[_c('button',{staticClass:\"btn btn-primary\",staticStyle:{\"margin-right\":\"15px\"},on:{\"click\":function($event){return _vm.submitMessage(['messageList', _vm.messageTemplate, _vm.modifyIndex])}}},[_vm._v(\"保存\")]),(_vm.messageTemplate.ActionName=='CREATE')?_c('button',{staticClass:\"btn btn-default light\",staticStyle:{\"margin-right\":\"15px\"},on:{\"click\":function($event){return _vm.backStep('templateList')}}},[_vm._v(\"上一步\")]):_vm._e(),_c('button',{staticClass:\"btn btn-default light\",attrs:{\"icon\":\"el-icon-close\"},on:{\"click\":_vm.cancelData}},[_vm._v(\"取消\")])]),_c('el-dialog',{attrs:{\"visible\":_vm.linkDialogVisible,\"width\":\"60%\",\"show-close\":false,\"custom-class\":\"mte-dialog\"},on:{\"update:visible\":function($event){_vm.linkDialogVisible=$event}}},[_c('div',{staticClass:\"link-dialog-title\",attrs:{\"slot\":\"title\"},slot:\"title\"},[_c('ul',_vm._l((_vm.linkTypeList),function(linkType,index){return _c('li',{key:index,class:_vm.currentLinkTab==index?'active':'',on:{\"click\":function($event){return _vm.selectLinkType(index)}}},[_vm._v(_vm._s(linkType))])}),0),(_vm.currentLinkTab==0)?_c('div',{staticClass:\"search-box\"},[_c('el-input',{attrs:{\"placeholder\":\"搜索智能表单名称\"},model:{value:(_vm.formSearchKeywords),callback:function ($$v) {_vm.formSearchKeywords=$$v},expression:\"formSearchKeywords\"}},[_c('i',{staticClass:\"el-input__icon el-icon-search\",attrs:{\"slot\":\"prefix\"},slot:\"prefix\"})]),_c('router-link',{staticClass:\"btn btn-primary\",staticStyle:{\"margin-left\":\"10px\"},attrs:{\"to\":\"/markting/smartForm/index\"}},[_vm._v(\"新建智能表单\")])],1):_vm._e(),(_vm.currentLinkTab==1)?_c('div',{staticClass:\"search-box\"},[_c('el-input',{attrs:{\"placeholder\":\"搜索裂变名称\"},model:{value:(_vm.formSearchKeywords),callback:function ($$v) {_vm.formSearchKeywords=$$v},expression:\"formSearchKeywords\"}},[_c('i',{staticClass:\"el-input__icon el-icon-search\",attrs:{\"slot\":\"prefix\"},slot:\"prefix\"})]),_c('router-link',{staticClass:\"btn btn-primary\",staticStyle:{\"margin-left\":\"10px\"},attrs:{\"to\":\"/markting/h5Fission/h5Fission\"}},[_vm._v(\"新建H5裂变\")])],1):_vm._e()]),_c('div',[_c('ul',{staticClass:\"custom-popover form-title-ul\"},[_c('li',[_vm._v(_vm._s(_vm.linkTypeList[_vm.currentLinkTab])+\"名称\")]),_c('li',[_vm._v(\"\\n 推广渠道地址\\n \"),_c('el-popover',{attrs:{\"placement\":\"top-start\",\"width\":\"200\",\"trigger\":\"hover\"}},[_c('div',[_vm._v(\"推广渠道地址,即该表单已有的推广渠道地址,选择后,用户可打开该地址\")]),_c('el-button',{attrs:{\"slot\":\"reference\"},slot:\"reference\"},[_c('i',{staticClass:\"cms cms-wenhao\"})])],1)],1)]),_c('el-scrollbar',{staticStyle:{\"height\":\"48vh\"}},[(_vm.currentLinkTab==0)?_c('ul',{staticClass:\"form-list-ul\"},_vm._l((_vm.formList),function(formItem,index){return _c('li',{key:'form'+index},[_c('div',[_c('el-radio',{attrs:{\"label\":formItem.formName},model:{value:(_vm.selectedLinkIndex),callback:function ($$v) {_vm.selectedLinkIndex=$$v},expression:\"selectedLinkIndex\"}},[_vm._v(_vm._s(' '))])],1),_c('div',[_c('el-select',{attrs:{\"placeholder\":\"选择地址\"},model:{value:(formItem.selectVal),callback:function ($$v) {_vm.$set(formItem, \"selectVal\", $$v)},expression:\"formItem.selectVal\"}},_vm._l((formItem.links),function(item){return _c('el-option',{key:item,attrs:{\"label\":item,\"value\":item}})}),1)],1)])}),0):_vm._e()]),_c('div',{staticClass:\"links-dialog-btns\"},[_c('span',[_vm._v(\"共10条 \")]),_c('button',{staticClass:\"btn btn-primary\",attrs:{\"icon\":\"el-icon-check\"}},[_vm._v(\"确定\")]),_c('button',{staticClass:\"btn btn-default light\",attrs:{\"icon\":\"el-icon-close\"},on:{\"click\":function($event){_vm.linkDialogVisible=false}}},[_vm._v(\"取消\")])])],1)])],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport { Component, Provide, Vue, Watch, Prop } from \"vue-property-decorator\";\r\nimport HttpClient from \"@/API/HttpClient\";\r\nimport { getCookie } from \"@/JS/cookie\"; //使用getCookie方法\r\nimport httpApi from \"@/API/Tenant/Weixin\";\r\nimport Bus from \"@/JS/Bus\";\r\n@Component({\r\n components: {}\r\n})\r\nexport default class extends Vue {\r\n @Prop() private propMessageCategory: any;\r\n @Prop() private propMessageObj!: any;\r\n @Prop() private propModifyIndex!: any;\r\n @Provide() messageTemplate: any = \"\";\r\n @Provide() mtCategory: string = \"未分组\";\r\n @Provide() customUrlIsTotal: boolean = true;\r\n @Provide() loading: boolean = false;\r\n @Provide() GetAppData: any = [];\r\n @Provide() mtRules: any = {\r\n template_name: [\r\n { required: true, message: \"请输入活动名称\", trigger: \"blur\" },\r\n { min: 3, max: 20, message: \"长度在 3 到 5 个字符\", trigger: \"blur\" }\r\n ],\r\n miniprogram: {\r\n appid: [{ required: true, message: \"小程序ID不能为空\", trigger: \"blur\" }],\r\n pagepath: [{ required: true, message: \"路径不能为空\", trigger: \"blur\" }]\r\n }\r\n };\r\n @Provide() emojiRes: any = {};\r\n @Provide() linkDialogVisible: boolean = false;\r\n @Provide() currentLinkTab: number = 0;\r\n @Provide() linkTypeList: any = [\"智能表单\"]; //\"H5裂变\", \"疯狂砍价\", \"人人拼团\"\r\n @Provide() formList: any = [\r\n {\r\n formName: \"智能表单A\",\r\n selectVal: \"默认地址\",\r\n links: [\r\n \"默认地址\",\r\n \"https://h5.xiaodashi.com/activity/form/69?formId=308&carry=f87f0755f02f1ca31069462b63b3e3c2\"\r\n ]\r\n },\r\n {\r\n formName: \"智能表单B\",\r\n selectVal: \"默认地址\",\r\n links: [\r\n \"默认地址\",\r\n \"https://h5.xiaodashi.com/activity/form/69?formId=308&carry=f87f0755f02f1ca31069462b63b3e3c2\"\r\n ]\r\n }\r\n ];\r\n @Provide() selectedLinkIndex: number = -1;\r\n @Provide() formSearchKeywords: string = \"\";\r\n @Provide() h5List: any = [\r\n {\r\n formName: \"H5裂变A\",\r\n selectVal: \"默认地址\",\r\n links: [\r\n \"默认地址\",\r\n \"https://h5.xiaodashi.com/activity/form/69?formId=308&carry=f87f0755f02f1ca31069462b63b3e3c2\"\r\n ]\r\n },\r\n {\r\n formName: \"H5裂变B\",\r\n selectVal: \"默认地址\",\r\n links: [\r\n \"默认地址\",\r\n \"https://h5.xiaodashi.com/activity/form/69?formId=308&carry=f87f0755f02f1ca31069462b63b3e3c2\"\r\n ]\r\n }\r\n ];\r\n @Watch(\"messageTemplate\", { immediate: true, deep: true })\r\n // 监听公众号类型\r\n get tencentCode() {\r\n return this.$store.state.TencentInfoStore.typeCode;\r\n }\r\n @Watch(\"tencentCode\", { immediate: false, deep: true })\r\n ontencentCode(val: string, oldVal: string) {\r\n // console.log(\"监听公众号类型: \");\r\n //console.log(val);\r\n //console.log(oldVal);\r\n this.$emit(\"cancelData\");\r\n this.backStep(\"messageList\");\r\n }\r\n onMessageTemplateChange(newTemplate: any, oldTemplate: any) {\r\n if (newTemplate != \"\") {\r\n localStorage.setItem(\"wxTemplate\", JSON.stringify(newTemplate));\r\n }\r\n }\r\n @Provide() modifyIndex: string = \"\";\r\n /** 选择模板分类 */\r\n selectMtCategory() {\r\n this.messageTemplate.template_category = this.mtCategory;\r\n }\r\n /** 选择链接类型 */\r\n selectLinkType(clickLinkIndex: number) {\r\n this.currentLinkTab = clickLinkIndex;\r\n }\r\n created() {\r\n let Aid = getCookie(\"Aid\");\r\n let TenantID = getCookie(\"TenantID\");\r\n if (!TenantID) {\r\n TenantID = \"0\";\r\n }\r\n this.GetAppData = {\r\n TenantID: TenantID,\r\n Aid: Aid\r\n };\r\n this.GetCustomEmoji();\r\n if (localStorage.getItem(\"wxTemplate\")) {\r\n this.messageTemplate = JSON.parse(localStorage.getItem(\"wxTemplate\") as any);\r\n } else {\r\n this.propMessageObj.miniprogram = JSON.parse(\r\n this.propMessageObj.miniprogram\r\n );\r\n this.messageTemplate = JSON.parse(JSON.stringify(this.propMessageObj));\r\n localStorage.setItem(\"wxTemplate\", JSON.stringify(this.propMessageObj));\r\n\r\n if (localStorage.getItem(\"modifyIndex\")) {\r\n this.modifyIndex = localStorage.getItem(\"modifyIndex\") as string;\r\n } else {\r\n this.modifyIndex = JSON.parse(JSON.stringify(this.propModifyIndex));\r\n localStorage.setItem(\r\n \"modifyIndex\",\r\n JSON.stringify(this.propModifyIndex)\r\n );\r\n }\r\n console.log(\"接收到的模板消息\");\r\n console.log(this.messageTemplate);\r\n //this.messageTemplate.TypeId = 0;\r\n this.messageTemplate.TypeId = parseInt(this.propMessageObj.TypeID);\r\n var that = this;\r\n Bus.$off(\"switchAccountFn\");\r\n Bus.$on(\"switchAccountFn\", (obj: any) => {\r\n that.GetAppData.Aid = obj.Aid;\r\n that.$emit(\"cancelData\");\r\n that.backStep(\"messageList\");\r\n });\r\n }\r\n }\r\n /** 上一步,取消 */\r\n backStep(pageElement: string) {\r\n localStorage.removeItem(\"wxTemplate\");\r\n this.$emit(\"pageEl\", [pageElement, -1]);\r\n }\r\n addEmoji(emojiText: any) {\r\n this.messageTemplate.data[emojiText[0]].value += emojiText[1];\r\n }\r\n /*取消保存 */\r\n cancelData() {\r\n this.$emit(\"cancelData\");\r\n this.backStep(\"messageList\");\r\n }\r\n /** 提交模板消息 */\r\n async submitMessage(submitData: any) {\r\n (this.$refs[\"messageTemplate\"] as any).validate(async (valid: any) => {\r\n if (valid) {\r\n //console.log(this.messageTemplate);\r\n // console.log(this.mtCategory);\r\n //保存数据\r\n this.$emit(\"messageData\", submitData);\r\n } else {\r\n console.log(\"error submit!!\");\r\n return false;\r\n }\r\n });\r\n }\r\n addFansName(dname: string) {\r\n let _this = this;\r\n dname == \"first\"\r\n ? (_this.messageTemplate.data.first.value += \"[粉丝昵称]\")\r\n : (_this.messageTemplate.data.remark.value += \"[粉丝昵称]\");\r\n }\r\n /*查询表情列表 */\r\n //加载表情\r\n async GetCustomEmoji() {\r\n let params: any = {\r\n Input: [\r\n {\r\n Name: \"AppEmotionDTO\",\r\n Value: {\r\n TenantID: this.GetAppData.TenantID\r\n } //消息模板类型\r\n }\r\n ]\r\n };\r\n //console.log(params);\r\n var res: any = await httpApi.GetCustomEmoji(params);\r\n //console.log(res);\r\n if (res.ErrorCode == 0) {\r\n this.emojiRes = res.output[0].value;\r\n } else {\r\n this.$message.error(\"取列表失败:\" + res.ErrorMessage);\r\n }\r\n }\r\n /*验证正则 */\r\n GetOnkeyup(key: string) {\r\n switch (key) {\r\n case \"letter\":\r\n return \"value=value.replace(/[^a-zA-Z]/g,'')\";\r\n case \"symbol\":\r\n return \"this.value=this.value.replace(/[^~!@#$%^&*()_+{}<>?.]+/,'');\";\r\n case \"character_string\":\r\n return \"value=value.replace(/[^a-zA-Z0-9]/g,'')\";\r\n case \"time\":\r\n return \"\";\r\n case \"date\":\r\n return \"\";\r\n case \"amount\":\r\n return \"this.value=this.value.replace(/[^0-9.]+/,'');\";\r\n case \"phone_number\":\r\n return \"this.value=this.value.replace(/[^0-9-]+/,'');\";\r\n case \"car_number\":\r\n return \"this.value=this.value.replace(/[^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-Z0-9]{4,5}[A-Z0-9挂学警港澳]{1}]/g,'')\";\r\n case \"name\":\r\n return \"value=value.replace(/[^a-zA-Z\\u4E00-\\u9FA5]/g,'')\";\r\n case \"phrase\":\r\n return \"value=value.replace(/[^\\u4E00-\\u9FA5]/g,'')\";\r\n case \"thing\":\r\n return \"value=value.replace(/[^a-zA-Z\\u4E00-\\u9FA5]/g,'')\";\r\n case \"number\":\r\n return \"this.value=this.value.replace(/[^d]/g,'')\";\r\n default:\r\n return \"\";\r\n }\r\n }\r\n GetMaxLength(key: string) {\r\n switch (key) {\r\n case \"letter\":\r\n return 32;\r\n case \"symbol\":\r\n return 5;\r\n case \"character_string\":\r\n return 32;\r\n case \"time\":\r\n return 20;\r\n case \"date\":\r\n return 20;\r\n case \"amount\":\r\n return 11;\r\n case \"phone_number\":\r\n return 17;\r\n case \"car_number\":\r\n return 8;\r\n case \"name\":\r\n return 10;\r\n case \"phrase\":\r\n return 5;\r\n case \"thing\":\r\n return 20;\r\n case \"number\":\r\n return 32;\r\n default:\r\n return \"\";\r\n }\r\n }\r\n\r\n /** 颜色边界 */\r\n colorEdges(dataName:string){\r\n if(this.messageTemplate.data[dataName].color == null){\r\n this.messageTemplate.data[dataName].color = '#333';\r\n }\r\n }\r\n}\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--13-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./wx-message_templateEdit.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--13-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./wx-message_templateEdit.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./wx-message_templateEdit.vue?vue&type=template&id=02992d7c&scoped=true&\"\nimport script from \"./wx-message_templateEdit.vue?vue&type=script&lang=ts&\"\nexport * from \"./wx-message_templateEdit.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./wx-message_templateEdit.vue?vue&type=style&index=0&id=02992d7c&lang=less&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"02992d7c\",\n null\n \n)\n\nexport default component.exports","import mod from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--10-oneOf-1-0!../../../../node_modules/css-loader/index.js??ref--10-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--10-oneOf-1-2!../../../../node_modules/less-loader/dist/cjs.js??ref--10-oneOf-1-3!../../../../node_modules/style-resources-loader/lib/index.js??ref--10-oneOf-1-4!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./wx-message_templateEdit.vue?vue&type=style&index=0&id=02992d7c&lang=less&scoped=true&\"; export default mod; export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--10-oneOf-1-0!../../../../node_modules/css-loader/index.js??ref--10-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--10-oneOf-1-2!../../../../node_modules/less-loader/dist/cjs.js??ref--10-oneOf-1-3!../../../../node_modules/style-resources-loader/lib/index.js??ref--10-oneOf-1-4!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./wx-message_templateEdit.vue?vue&type=style&index=0&id=02992d7c&lang=less&scoped=true&\"","import Vue from 'vue';\r\n\r\n// 使用 Event Bus\r\nconst bus = new Vue();\r\n\r\nexport default bus;\r\n"],"sourceRoot":""}