/*!
 *  build: vue-admin-beautiful 
 *  vue-admin-beautiful author: chuzhixin 1204505056@qq.com 
 *  vue-admin-beautiful QQ Group(QQ群): 972435319、1139183756 
 *  time: 2024-10-10 11:14:28
 */
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-a616fb1c"],{"23ba":function(e,t,o){"use strict";o.r(t),o.d(t,"getList",(function(){return l})),o.d(t,"doDelete",(function(){return a})),o.d(t,"remove",(function(){return i})),o.d(t,"doAdd",(function(){return n}));var r=o("b775");function l(e){let t="?page="+e.page+"&size="+e.size;return void 0!=e.name&&""!=e.name&&(t+="&name="+e.name),Object(r["default"])({url:"/iot/project/group/select"+t,method:"get",data:e})}function a(e){return Object(r["default"])({url:"/iot/project/group/remove?groupId="+e.groupId,method:"post",data:e})}function i(e){return Object(r["default"])({url:"/iot/project/group/remove?groupId="+e.groupId,method:"post",data:e})}function n(e){return Object(r["default"])({url:"/iot/project/group/saveOrUpdate",method:"post",data:e})}},"535d":function(e,t,o){e.exports={"menu-color":"hsla(0,0%,27%,.95)","menu-color-active":"hsla(208,100%,55%,.95)","menu-background":"#fff","gallery-second-menu-background":"#fff"}},cae4:function(e,t,o){"use strict";o("535d")},cfcd:function(e,t,o){"use strict";o.r(t);var r=o("f2bf");const l={class:"dialog-footer"};function a(e,t,o,a,i,n){const c=Object(r["resolveComponent"])("el-input"),s=Object(r["resolveComponent"])("el-form-item"),d=Object(r["resolveComponent"])("el-form"),u=Object(r["resolveComponent"])("el-button"),m=Object(r["resolveComponent"])("el-dialog");return Object(r["openBlock"])(),Object(r["createBlock"])(m,{modelValue:i.dialogFormVisible,"onUpdate:modelValue":t[1]||(t[1]=e=>i.dialogFormVisible=e),title:i.title,width:"500px",onClose:n.close},{default:Object(r["withCtx"])(()=>[Object(r["createVNode"])(d,{ref:"form",model:i.form,rules:i.rules,"label-width":"80px","label-position":"left"},{default:Object(r["withCtx"])(()=>[Object(r["createVNode"])(s,{label:e.$t("grouping.zmc"),prop:"name"},{default:Object(r["withCtx"])(()=>[Object(r["createVNode"])(c,{modelValue:i.form.name,"onUpdate:modelValue":t[0]||(t[0]=e=>i.form.name=e),modelModifiers:{trim:!0},size:"small",autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["model","rules"]),Object(r["createElementVNode"])("div",l,[Object(r["createVNode"])(u,{type:"primary",size:"small",onClick:n.save},{default:Object(r["withCtx"])(()=>t[2]||(t[2]=[Object(r["createTextVNode"])("确 定")])),_:1},8,["onClick"]),Object(r["createVNode"])(u,{size:"small",onClick:n.close},{default:Object(r["withCtx"])(()=>t[3]||(t[3]=[Object(r["createTextVNode"])("取 消")])),_:1},8,["onClick"])])]),_:1},8,["modelValue","title","onClose"])}var i=o("23ba"),n={name:"GroupEdit",data(){return{form:{id:"",name:""},rules:{name:[{required:!0,trigger:"blur",message:"请输入组名称"}]},roleData:[],clearable:!0,roleId:"",parentData:[],title:"",dialogFormVisible:!1}},created(){},methods:{showEdit(e){e?(this.title="编辑项目组",this.form=Object.assign({},e)):this.title="添加项目组",this.dialogFormVisible=!0},close(){this.$refs["form"].resetFields(),this.form=this.$options.data().form,this.dialogFormVisible=!1,this.$emit("fetch-data")},save(){this.$refs["form"].validate(async e=>{if(!e)return!1;{const{msg:e}=await Object(i["doAdd"])(this.form);this.$notify({title:e,type:"success"}),this.$refs["form"].resetFields(),this.dialogFormVisible=!1,this.$parent.fetchData()}})}}},c=(o("cae4"),o("d959")),s=o.n(c);const d=s()(n,[["render",a]]);t["default"]=d}}]);