You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
8.7 KiB
1 line
8.7 KiB
5 months ago
|
webpackJsonp([30],{Ltpy:function(e,t){},d6dl:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("mvHQ"),n=a.n(r),l=a("Xxa5"),i=a.n(l),o=a("exGp"),s=a.n(o),c={data:function(){return{subForm:{help_phone:"",help_user_id:[],help_voice:""},subFormRules:{help_phone:{required:!0,validator:this.$reg.isTel,text:"通知人员手机号",trigger:"blur"},help_user_id:{required:!0,type:"array",message:"请选择公众号通知人员",trigger:"blur"},help_voice:{required:!0,type:"string",message:"请上传报警通知提示音",trigger:"blur"}},searchForm:{page:1,limit:10,nickName:"",phone:""},total:0,loading:!1,tableData:[],multipleSelection:[],showDialog:!1}},created:function(){this.getFormInfo()},methods:{getFormInfo:function(){var e=this;return s()(i.a.mark(function t(){var a,r,n,l;return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$api.notice.helpConfigInfo();case 2:if(a=t.sent,r=a.code,n=a.data,200===r){t.next=7;break}return t.abrupt("return");case 7:for(l in e.subForm)e.subForm[l]=n[l];case 8:case"end":return t.stop()}},t,e)}))()},toShowDialog:function(){var e=this;return s()(i.a.mark(function t(){return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e.searchForm.nickName="",t.next=3,e.getTableDataList();case 3:e.showDialog=!e.showDialog;case 4:case"end":return t.stop()}},t,e)}))()},resetForm:function(e){this.$refs[e].resetFields(),this.getTableDataList(1)},handleSizeChange:function(e){this.searchForm.limit=e,this.handleCurrentChange(1)},handleCurrentChange:function(e){this.searchForm.page=e,this.getTableDataList()},getTableDataList:function(e){var t=this;return s()(i.a.mark(function a(){var r,l,o,s;return i.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return e&&(t.searchForm.page=1),t.tableData=[],t.loading=!0,r=JSON.parse(n()(t.searchForm)),a.next=6,t.$api.custom.userList(r);case 6:if(l=a.sent,o=l.code,s=l.data,t.loading=!1,200===o){a.next=12;break}return a.abrupt("return");case 12:t.tableData=s.data,t.total=s.total;case 14:case"end":return a.stop()}},a,t)}))()},handleSelectionChange:function(e){this.multipleSelection=e},handleDialogConfirm:function(){var e=JSON.parse(n()(this.subForm.help_user_id)),t=e.length>0?e.map(function(e){return e.id}):[];this.multipleSelection.map(function(a){t.includes(a.id)||e.push(a)}),this.subForm.help_user_id=e,this.showDialog=!1},confirmDel:function(e){var t=this.subForm.help_user_id.findIndex(function(t){return t.id===e});this.subForm.help_user_id.splice(t,1)},getFile:function(e,t){var a=e.length-1;this.subForm[t]=e[a].url},submitForm:function(){var e=this;this.$refs.subForm.validate(function(t){if(t){var a=JSON.parse(n()(e.subForm));a.help_user_id=a.help_user_id.map(function(e){return e.id}),e.$api.notice.helpConfigUpate(a).then(function(t){200===t.code&&e.$message.success(e.$t("tips.successSub"))})}})}},filters:{handleFileName:function(e){var t="请上传报警通知提示音";return e&&(t=e.substring(e.lastIndexOf("/")+1)),t}}},u={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"lb-system-other"},[a("top-nav"),e._v(" "),a("div",{staticClass:"page-main"},[a("el-form",{ref:"subForm",attrs:{model:e.subForm,rules:e.subFormRules,"label-width":"140px"},nativeOn:{submit:function(e){e.preventDefault()}}},[a("el-form-item",{attrs:{label:"通知人员手机号",prop:"help_phone"}},[a("el-input",{attrs:{placeholder:"请输入通知人员手机号"},model:{value:e.subForm.help_phone,callback:function(t){e.$set(e.subForm,"help_phone",t)},expression:"subForm.help_phone"}}),e._v(" "),a("lb-tool-tips",[a("div",{staticClass:"mb-sm"},[e._v("\n "+e._s(e.$t("action.attendantName"))+"求救可直接通知平台指定人员,帮忙报警\n ")]),e._v("\n 启用短信模板后会给该手机号发送求救短信;请前往【系统设置】-【短信通知】配置短信模板")])],1),e._v(" "),a("el-form-item",{attrs:{label:"公众号通知人员",prop:"help_user_id"}},[a("el-tag",{staticClass:"cursor-pointer",attrs:{type:"primary"},on:{click:e.toS
|