627-legacy.76c0b9e8.js 2.4 KB

1
  1. "use strict";(self["webpackChunkyos_manage"]=self["webpackChunkyos_manage"]||[]).push([[627],{50627:function(e,t,a){a.r(t),a.d(t,{default:function(){return p}});var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(t){return e.query_arealist(e.dialogVisible=!0)}}},[e._v("新 建 管 辖 范 围")]),a("el-dialog",{attrs:{title:"新建管辖区域","append-to-body":"",visible:e.dialogVisible,width:"400px"},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("el-cascader",{staticClass:"width-240",staticStyle:{width:"100%"},attrs:{options:e.arealist,size:"small",props:{checkStrictly:!0}},on:{change:e.cascaderChange},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}}),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"small"},on:{click:function(t){e.dialogVisible=!1}}},[e._v("取 消")]),a("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){return e.submit()}}},[e._v("确 定")])],1)],1)],1)},r=[],s=a(48534),i=a(95082),o=(a(35666),a(20629)),l={props:["data"],data:function(){return{dialogVisible:!1,value:[],arealist:[]}},computed:(0,i.Z)({},(0,o.Se)({dataToForm:"dataToForm"})),methods:{query_arealist:function(){var e=this;return(0,s.Z)(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$api.requested({classname:"system.tools",method:"query_arealist",content:{}});case 2:a=t.sent,e.arealist=e.tool.createMenu(a.data);case 4:case"end":return t.stop()}}),t)})))()},cascaderChange:function(e){console.log(e)},submit:function(){var e=this;return(0,s.Z)(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(0!==e.value.length){t.next=2;break}return t.abrupt("return",e.$message({message:"请选择省份",type:"warning"}));case 2:return t.next=4,e.$api.requested({id:"20221011144303",content:{sa_salearea_salescopeid:0,sa_saleareaid:e.dataToForm.sa_saleareaid,province:e.value[0],city:e.value[1]?e.value[1]:"",county:e.value[2]?e.value[2]:""}});case 4:a=t.sent,e.tool.showMessage(a,(function(){e.dialogVisible=!1,e.value="",e.$emit("onSuccess")}));case 6:case"end":return t.stop()}}),t)})))()}}},u=l,c=a(43736),d=(0,c.Z)(u,n,r,!1,null,null,null),p=d.exports}}]);