1 line
6.1 KiB
JavaScript
1 line
6.1 KiB
JavaScript
|
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-a2a11b4c"],{2909:function(t,e,n){"use strict";function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function o(t){if(Array.isArray(t))return i(t)}n.d(e,"a",(function(){return s}));n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0"),n("a630");function a(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}n("fb6a"),n("b0c0"),n("ac1f"),n("00b4");function r(t,e){if(t){if("string"===typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}function l(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(t){return o(t)||a(t)||r(t)||l()}},7732:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"app-container"},[n("el-button",{attrs:{type:"primary"},on:{click:t.addUser}},[t._v("添加物资")]),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],attrs:{data:t.list,"element-loading-text":"Loading",border:"",fit:"","highlight-current-row":""}},[n("el-table-column",{attrs:{align:"center",label:"ID",width:"95"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s((t.currentPage-1)*t.page_size+e.$index+1)+" ")]}}])}),n("el-table-column",{attrs:{label:"名称",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(" "+t._s(e.row.name))])]}}])}),n("el-table-column",{attrs:{label:"操作",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{slot:"reference",title:"点击编辑物资",type:"primary",icon:"el-icon-edit",circle:"",size:"mini"},on:{click:function(n){return t.updateSource(e.row)}},slot:"reference"}),n("el-popconfirm",{attrs:{"confirm-button-text":"好的","cancel-button-text":"不用了",icon:"el-icon-info","icon-color":"red",title:"确定删除该物资吗?"},on:{onConfirm:function(n){return t.confirm(e.row)}}},[n("el-button",{attrs:{slot:"reference",title:"点击删除",size:"mini",type:"danger",icon:"el-icon-delete",circle:""},slot:"reference"})],1)]}}])})],1),n("div",{staticClass:"block"},[n("el-pagination",{attrs:{"current-page":t.currentPage,"page-sizes":[10,20,50],"page-size":t.page_size,layout:"total, sizes, prev, pager, next ",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1),n("el-dialog",{attrs:{title:"添加物资",visible:t.dialogVisible,width:"30%","before-close":t.handleClose},on:{"update:visible":function(e){t.dialogVisible=e}}},[n("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:t.params,"status-icon":"","label-width":"100px"}},[n("el-form-item",{attrs:{label:"名称",prop:"pass"}},[n("el-input",{model:{value:t.params.name,callback:function(e){t.$set(t.params,"name",e)},expression:"params.name"}})],1),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.submitForm("ruleForm")}}},[t._v("提交")])],1)],1)],1),n("el-dialog",{attrs:{title:"编辑物资",visible:t.editdialogVisible,width:"30%","before-close":t.handleClose},on:{"update:visible":function(e){t.editdialogVisible=e}}},[n("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:t.good,"status-icon":"","label-width":"100px"}},[n("el-form-item",{attrs:{label:"名称",prop:"pass"}},[n("el-input",{model:{value:t.good.name,callback:function(e){t.$set(t.good,"name",e)},expression:"good.name"}})],1),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.submitEditForm("ruleForm")}}},[t._v("提交")])],1)],1)],1)],1)},o=[],a=n("2909"),r=n("5530"),l=(n("498a"),n("5f87")),s=n("c24f"),c=n("b775");function u(t){return Object(c["
|