7 lines
4.8 KiB
JavaScript
7 lines
4.8 KiB
JavaScript
|
/*!
|
||
|
* 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-5d018cc8"],{"73f5":function(e,t,o){"use strict";o("b98f")},b98f:function(e,t,o){},fcd7:function(e,t,o){"use strict";o.r(t),o.d(t,"getList",(function(){return a})),o.d(t,"doDelete",(function(){return r})),o.d(t,"doAdd",(function(){return d})),o.d(t,"doEdit",(function(){return n})),o.d(t,"intentionExport",(function(){return s}));var i=o("b775"),l=o("f121");function a(e){return Object(i["default"])({url:"/intentionCustomer/select?page="+e.page+"&size="+e.size,method:"get",data:e})}function r(e){return Object(i["default"])({url:"/intentionCustomer/remove?customerId="+e.customerId,method:"post",data:e})}function d(e){return Object(i["default"])({url:"/intentionCustomer/insert",method:"post",data:e})}function n(e){return Object(i["default"])({url:"/intentionCustomer/update",method:"post",data:e})}function s(e){return l["baseURL"]+"/intentionCustomer/export"}},ff4d:function(e,t,o){"use strict";o.r(t);var i=o("f2bf");const l={class:"dialog-footer"};function a(e,t,o,a,r,d){const n=Object(i["resolveComponent"])("el-input"),s=Object(i["resolveComponent"])("el-form-item"),c=Object(i["resolveComponent"])("el-form"),f=Object(i["resolveComponent"])("el-button"),m=Object(i["resolveComponent"])("el-dialog");return Object(i["openBlock"])(),Object(i["createBlock"])(m,{modelValue:r.dialogFormVisible,"onUpdate:modelValue":t[5]||(t[5]=e=>r.dialogFormVisible=e),title:r.title,width:"500px",onClose:d.close},{default:Object(i["withCtx"])(()=>[Object(i["createVNode"])(c,{ref:"form",model:r.form,rules:e.rules,"label-width":"80px"},{default:Object(i["withCtx"])(()=>[Object(i["createVNode"])(s,{label:e.$t("staff.xm"),prop:"name"},{default:Object(i["withCtx"])(()=>[Object(i["createVNode"])(n,{modelValue:r.form.name,"onUpdate:modelValue":t[0]||(t[0]=e=>r.form.name=e),modelModifiers:{trim:!0},size:"small",autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label"]),Object(i["createVNode"])(s,{label:"手机号",prop:"phone"},{default:Object(i["withCtx"])(()=>[Object(i["createVNode"])(n,{modelValue:r.form.phone,"onUpdate:modelValue":t[1]||(t[1]=e=>r.form.phone=e),modelModifiers:{trim:!0},size:"small",autocomplete:"off"},null,8,["modelValue"])]),_:1}),Object(i["createVNode"])(s,{label:"公司",prop:"company"},{default:Object(i["withCtx"])(()=>[Object(i["createVNode"])(n,{modelValue:r.form.company,"onUpdate:modelValue":t[2]||(t[2]=e=>r.form.company=e),modelModifiers:{trim:!0},size:"small",autocomplete:"off"},null,8,["modelValue"])]),_:1}),Object(i["createVNode"])(s,{label:"职位",prop:"position"},{default:Object(i["withCtx"])(()=>[Object(i["createVNode"])(n,{modelValue:r.form.position,"onUpdate:modelValue":t[3]||(t[3]=e=>r.form.position=e),modelModifiers:{trim:!0},autocomplete:"off"},null,8,["modelValue"])]),_:1}),Object(i["createVNode"])(s,{label:e.$t("staff.yx"),prop:"email"},{default:Object(i["withCtx"])(()=>[Object(i["createVNode"])(n,{modelValue:r.form.email,"onUpdate:modelValue":t[4]||(t[4]=e=>r.form.email=e),modelModifiers:{trim:!0},autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["model","rules"]),Object(i["createElementVNode"])("div",l,[Object(i["createVNode"])(f,{type:"primary",size:"small",onClick:d.save},{default:Object(i["withCtx"])(()=>t[6]||(t[6]=[Object(i["createTextVNode"])("确 定")])),_:1},8,["onClick"]),Object(i["createVNode"])(f,{size:"small",onClick:d.close},{default:Object(i["withCtx"])(()=>t[7]||(t[7]=[Object(i["createTextVNode"])("取 消")])),_:1},8,["onClick"])])]),_:1},8,["modelValue","title","onClose"])}var r=o("fcd7"),d={name:"Add",data(){return{form:{id:"",name:"",phone:"",company:"",email:"",position:""},clearable:!0,title:"",dialogFormVisible:!1,diffData:{},ruleForm:[]}},created(){},methods:{showEdit(e){e?(this.title="编辑",this.menuId=e.id,this.ruleForm=Object.assign({},e),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")},getDiffData(){this.diffData={},Object.keys(this.form)
|