7 lines
5.7 KiB
JavaScript
7 lines
5.7 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-7e7ae898"],{8841:function(e,t,a){"use strict";a.r(t);var i=a("f2bf");const n={class:"manage-container"};function o(e,t,a,o,c,l){const r=Object(i["resolveComponent"])("el-input"),d=Object(i["resolveComponent"])("el-form-item"),h=Object(i["resolveComponent"])("el-button"),s=Object(i["resolveComponent"])("vab-query-form"),u=Object(i["resolveComponent"])("el-form"),b=Object(i["resolveComponent"])("el-row"),j=Object(i["resolveComponent"])("el-table-column"),p=Object(i["resolveComponent"])("el-table"),g=Object(i["resolveComponent"])("el-pagination"),m=Object(i["resolveComponent"])("vab-query-form-right-panel"),O=Object(i["resolveDirective"])("loading");return Object(i["openBlock"])(),Object(i["createElementBlock"])("div",n,[Object(i["createVNode"])(b,null,{default:Object(i["withCtx"])(()=>[Object(i["createVNode"])(u,{ref:"form",model:e.form,"label-width":"80px"},{default:Object(i["withCtx"])(()=>[Object(i["createVNode"])(s,null,{default:Object(i["withCtx"])(()=>[Object(i["createVNode"])(d,{label:"班组名称"},{default:Object(i["withCtx"])(()=>[Object(i["createVNode"])(r,{modelValue:c.queryForm.name,"onUpdate:modelValue":t[0]||(t[0]=e=>c.queryForm.name=e),placeholder:"请输入班组名称"},null,8,["modelValue"])]),_:1}),Object(i["createVNode"])(h,{type:"primary",onClick:e.search},{default:Object(i["withCtx"])(()=>[Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.$t("defalult.cx")),1)]),_:1},8,["onClick"]),Object(i["createVNode"])(h,{type:"primary",onClick:e.search},{default:Object(i["withCtx"])(()=>[Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.$t("defalult.dc")),1)]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),Object(i["withDirectives"])((Object(i["openBlock"])(),Object(i["createBlock"])(p,{data:c.data,border:"",stripe:"",style:{width:"100%"}},{default:Object(i["withCtx"])(()=>[Object(i["createVNode"])(j,{prop:"jiedao",label:"班组编号",width:"120",align:"center"}),Object(i["createVNode"])(j,{prop:"shequ",label:"班组名称",width:"200",align:"center"}),Object(i["createVNode"])(j,{prop:"mingcheng",label:"班组类型",width:"200",align:"center"}),Object(i["createVNode"])(j,{prop:"guimo",label:"班组组号",width:"200",align:"center"}),Object(i["createVNode"])(j,{prop:"kaishi1",label:"班组组长",width:"200",align:"center"}),Object(i["createVNode"])(j,{prop:"jieshu1",label:"班组成员",width:"200",align:"center"}),Object(i["createVNode"])(j,{prop:"dangqian",label:"班组数量",width:"200",align:"center"}),Object(i["createVNode"])(j,{prop:"kaishi2",label:"归属部门",width:"200",align:"center"}),Object(i["createVNode"])(j,{prop:"jieshu2",label:"归属单位",width:"200",align:"center"}),Object(i["createVNode"])(j,{prop:"jieshu3",label:"班组描述",width:"200",align:"center"}),Object(i["createVNode"])(j,{prop:"jieshu3",label:"配备工程车辆",width:"200",align:"center"}),Object(i["createVNode"])(j,{fixed:"right",label:e.$t("defalult.cz"),align:"center"},{default:Object(i["withCtx"])(({row:t})=>[Object(i["createVNode"])(h,{type:"text",onClick:e=>l.handleDelete(t)},{default:Object(i["withCtx"])(()=>[Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.$t("defalult.sc")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])),[[O,c.listLoading]]),Object(i["createVNode"])(s,null,{default:Object(i["withCtx"])(()=>[Object(i["createVNode"])(m,null,{default:Object(i["withCtx"])(()=>[Object(i["createVNode"])(g,{background:c.background,"current-page":c.queryForm.page,layout:c.layout,"page-size":c.queryForm.size,total:c.total,onCurrentChange:l.handleCurrentChange,onSizeChange:l.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"])]),_:1})]),_:1})])}var c={name:"Index",components:{},data(){return{data:[{id:1,jiedao:"4565",shequ:"班组名称",mingcheng:"班组类型",guimo:"20",kaishi1:"张三",jieshu1:"李四,王五,赵六",dangqian:"3",kaishi2:"归属部门",jieshu2:"归属单位",jieshu3:"班组描述",jieshu4:"奔驰"},{id:2,jiedao:"65432",shequ:"班组名称",mingcheng:"班组类型",guimo:"20",kaishi1:"张三",jieshu1:"李四,王五,赵六",dangqian:"3",kaishi2:"归属部门",jieshu2:"归属单位",jieshu3:"班组描述",jieshu4:"奔驰"},{id:3,jiedao:"1234",shequ:"班组名称",mingcheng:"班组类型",guimo:"20",kaishi1:"张三",jieshu1:"李四,王五,赵六",dangqian:"3",kaishi2:"归属部门",jieshu2:"归属单位",jieshu3:"班组描述",jieshu4:"奔驰"}],lazy:!0,activeName:"first",layout:"total, sizes, prev, pager, next, jumper",total:0,input:"",textarea:"",list:[],background:!0,listLoading:!0,elementLoadingText:"正在加载...",queryForm:{page:1,size:20,name:""}}},computed:{height(){return 500}},created(){this.fetchData()},methods:{async fetchData(){this.listLoading=!0,setTimeout(()=>{this.listLoading=!1},500)},handleAdd(){this.$refs["edit"].showEdit()},handleEdit(e){this.$refs["edit"].showEdit(e)},handleQuery(){this.queryForm.page=1,this.fetchData()},handleSizeChange(e){this.queryForm.size=e,this.fetchData()},handleCurrentChange(e){this.queryForm.page=e,this.fetchData()},handleDelete(e){e.id&&this.$confirm("你确定要删除当前项吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{this.$message({type:"success",message:"删除成功"})}).catch(()=>{this.$message({type:"info",message:"已取消删除"})})}}},l=(a("e1be"),a("d959")),r=a.n(l);const d=r()(c,[["render",o],["__scopeId","data-v-2c352544"]]);t["default"]=d},a54c:function(e,t,a){},e1be:function(e,t,a){"use strict";a("a54c")}}]); |