| 1 |
- "use strict";(self["webpackChunkyos_manage"]=self["webpackChunkyos_manage"]||[]).push([[9395],{99395:function(e,t,o){o.r(t),o.d(t,{default:function(){return n}});var l=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("el-button",{attrs:{type:"text",size:"mini"},on:{click:e.onShow}},[e._v("编 辑")]),o("el-drawer",{attrs:{"append-to-body":"",title:"编辑规则",visible:e.dialogFormVisible,width:"500px"},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[o("el-form",{attrs:{size:"small",model:e.form,"label-position":"right","label-width":"140px"}},[o("el-form-item",{attrs:{label:"编码名称"}},[o("span",[e._v(e._s(e.form.notes))])]),o("el-form-item",{attrs:{label:"前置符"}},[o("el-input",{attrs:{autocomplete:"off"},model:{value:e.form.fixed,callback:function(t){e.$set(e.form,"fixed",t)},expression:"form.fixed"}})],1),o("el-form-item",{attrs:{label:"数值长度"}},[o("el-input",{attrs:{autocomplete:"off"},model:{value:e.form.numlength,callback:function(t){e.$set(e.form,"numlength",t)},expression:"form.numlength"}})],1),o("el-form-item",{attrs:{label:"时间格式"}},[o("el-input",{directives:[{name:"show",rawName:"v-show",value:1===e.form.numincludetime,expression:"form.numincludetime === 1"}],attrs:{autocomplete:"off"},model:{value:e.form.timeformat,callback:function(t){e.$set(e.form,"timeformat",t)},expression:"form.timeformat"}}),o("span",{directives:[{name:"show",rawName:"v-show",value:1!==e.form.numincludetime,expression:"form.numincludetime !== 1"}]},[e._v(e._s(e.form.timeformat))])],1),o("el-form-item",{attrs:{label:"是否包含时间信息"}},[o("el-checkbox",{attrs:{"true-label":1,"false-label":0},model:{value:e.form.numincludetime,callback:function(t){e.$set(e.form,"numincludetime",t)},expression:"form.numincludetime"}})],1),o("el-form-item",{attrs:{label:"当前序号"}},[o("span",[e._v(e._s(e.form.serialnum))])])],1),o("div",{staticClass:"fixed__btn__panel"},[o("el-button",{staticClass:"normal-btn-width",attrs:{size:"small"},on:{click:function(t){e.dialogFormVisible=!1}}},[e._v("取 消")]),o("el-button",{staticClass:"normal-btn-width",attrs:{size:"small",type:"primary"},on:{click:e.submit}},[e._v("确 定")])],1)],1)],1)},i=[],s={props:["data"],data(){return{dialogFormVisible:!1,form:{}}},methods:{onShow(){this.dialogFormVisible=!0,this.form=Object.assign({},this.form,this.data.data),console.log(this.form)},async submit(){const e=await this.$api.requested({classname:"webmanage.coderule.coderule",method:"modify_coderule",content:this.form});this.tool.showMessage(e,(e=>{this.dialogFormVisible=!1,this.$emit("onSuccess")}))}}},a=s,m=o(43736),r=(0,m.Z)(a,l,i,!1,null,null,null),n=r.exports}}]);
|