| 1 |
- !function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t=function(){return r};var n,r={},o=Object.prototype,a=o.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},l="function"==typeof Symbol?Symbol:{},u=l.iterator||"@@iterator",c=l.asyncIterator||"@@asyncIterator",f=l.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(n){s=function(e,t,n){return e[t]=n}}function d(e,t,n,r){var o=t&&t.prototype instanceof b?t:b,a=Object.create(o.prototype),l=new F(r||[]);return i(a,"_invoke",{value:E(e,n,l)}),a}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}r.wrap=d;var v="suspendedStart",h="suspendedYield",y="executing",g="completed",m={};function b(){}function x(){}function w(){}var _={};s(_,u,(function(){return this}));var k=Object.getPrototypeOf,L=k&&k(k(A([])));L&&L!==o&&a.call(L,u)&&(_=L);var O=w.prototype=b.prototype=Object.create(_);function C(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function j(t,n){function r(o,i,l,u){var c=p(t[o],t,i);if("throw"!==c.type){var f=c.arg,s=f.value;return s&&"object"==e(s)&&a.call(s,"__await")?n.resolve(s.__await).then((function(e){r("next",e,l,u)}),(function(e){r("throw",e,l,u)})):n.resolve(s).then((function(e){f.value=e,l(f)}),(function(e){return r("throw",e,l,u)}))}u(c.arg)}var o;i(this,"_invoke",{value:function(e,t){function a(){return new n((function(n,o){r(e,t,n,o)}))}return o=o?o.then(a,a):a()}})}function E(e,t,r){var o=v;return function(a,i){if(o===y)throw new Error("Generator is already running");if(o===g){if("throw"===a)throw i;return{value:n,done:!0}}for(r.method=a,r.arg=i;;){var l=r.delegate;if(l){var u=S(l,r);if(u){if(u===m)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===v)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=y;var c=p(e,t,r);if("normal"===c.type){if(o=r.done?g:h,c.arg===m)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=g,r.method="throw",r.arg=c.arg)}}}function S(e,t){var r=t.method,o=e.iterator[r];if(o===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=n,S(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var a=p(o,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,m;var i=a.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,m):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,m)}function z(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function U(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function F(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(z,this),this.reset(!0)}function A(t){if(t||""===t){var r=t[u];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function e(){for(;++o<t.length;)if(a.call(t,o))return e.value=t[o],e.done=!1,e;return e.value=n,e.done=!0,e};return i.next=i}}throw new TypeError(e(t)+" is not iterable")}return x.prototype=w,i(O,"constructor",{value:w,configurable:!0}),i(w,"constructor",{value:x,configurable:!0}),x.displayName=s(w,f,"GeneratorFunction"),r.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===x||"GeneratorFunction"===(t.displayName||t.name))},r.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,s(e,f,"GeneratorFunction")),e.prototype=Object.create(O),e},r.awrap=function(e){return{__await:e}},C(j.prototype),s(j.prototype,c,(function(){return this})),r.AsyncIterator=j,r.async=function(e,t,n,o,a){void 0===a&&(a=Promise);var i=new j(d(e,t,n,o),a);return r.isGeneratorFunction(t)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},C(O),s(O,f,"Generator"),s(O,u,(function(){return this})),s(O,"toString",(function(){return"[object Generator]"})),r.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},r.values=A,F.prototype={constructor:F,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(U),!e)for(var t in this)"t"===t.charAt(0)&&a.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=n)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,o){return l.type="throw",l.arg=e,t.next=r,o&&(t.method="next",t.arg=n),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],l=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=a.call(i,"catchLoc"),c=a.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),U(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;U(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:A(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=n),m}},r}function n(e,t,n,r,o,a,i){try{var l=e[a](i),u=l.value}catch(c){return void n(c)}l.done?t(u):Promise.resolve(u).then(r,o)}System.register(["./index-legacy-f44ab23b.js","./index-legacy-db54d967.js","./CusNavigation.vue_vue_type_style_index_0_scoped_5e63f475_lang-legacy-aeac0d75.js","./CusNavigation-legacy-868eec01.js","./ReloadOutlined-legacy-dace4f0f.js"],(function(e,r){"use strict";var o,a,i,l,u,c,f,s,d,p,v,h,y,g,m,b,x,w,_,k,L,O,C,j,E,S,z,U,F,A;return{setters:[function(e){o=e.d,a=e.i,i=e.y,l=e.l,u=e.q,c=e.r,f=e.o,s=e.b,d=e.w,p=e.C,v=e.c,h=e.x,y=e.s,g=e.F,m=e.J,b=e.G,x=e.e,w=e.H,_=e.B,k=e.a,L=e.f,O=e.D,C=e.S,j=e.t,E=e.p,S=e.j,z=e._},function(e){U=e.p},null,function(e){F=e.C},function(e){A=e.R}],execute:function(){var r=document.createElement("style");r.textContent="[data-v-b0004175] .ant-table-wrapper{height:0px;flex-grow:1}[data-v-b0004175] .ant-spin-nested-loading{height:100%}[data-v-b0004175] .ant-spin-container{height:100%;display:flex;flex-direction:column}[data-v-b0004175] .ant-table{flex-grow:1;height:0px}[data-v-b0004175] .ant-table-container{height:100%}[data-v-b0004175] .ant-table-body{overflow-y:auto!important;height:100%;border-bottom:1px solid #eee;border-right:1px solid #eee}[data-v-b0004175] .ant-table-body::-webkit-scrollbar{width:1px;height:8px;background:#0058FF}[data-v-b0004175] .ant-table-body::-webkit-scrollbar-track{width:1px;background:#eee}[data-v-b0004175] .ant-table-body::-webkit-scrollbar-thumb{width:1px;background:#0058FF}[data-v-b0004175] .ant-table-body::-webkit-scrollbar-thumb:hover{background:#0058FF}[data-v-b0004175] .ant-table-body::-webkit-scrollbar-corner{width:1px;background:#eee}.cus-forbidden[data-v-b0004175]:hover{cursor:not-allowed}\n",document.head.appendChild(r);var N=x("span",null,"~",-1),T=["onClick"],I=o({__name:"Add",emits:["onSuccess"],setup:function(e,r){var o=r.expose,k=r.emit,L=a(null),O=a(!1),C=a(!0),j=i([{key:void 0,info:void 0}]),E=function(){j.push({key:void 0,info:void 0})},S=function(){var e;console.log("change...."),null===(e=L.value)||void 0===e||e.validateFields(["enumOptions"]).then((function(e){console.log(e)}),(function(e){console.log(e)}))},z=a(""),F=function(){var e,r=(e=t().mark((function e(){var n,r;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:console.log("校验枚举项。。。"),n=0;case 2:if(!(n<j.length)){e.next=10;break}if(null!=(r=j[n]).key&&r.info){e.next=7;break}return z.value="cus-validator-show",e.abrupt("return",Promise.reject("枚举项出错, 请检查枚举项!"));case 7:n++,e.next=2;break;case 10:return z.value="",e.abrupt("return",Promise.resolve());case 12:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(o,a){var i=e.apply(t,r);function l(e){n(i,o,a,l,u,"next",e)}function u(e){n(i,o,a,l,u,"throw",e)}l(void 0)}))});return function(){return r.apply(this,arguments)}}(),A=i({id:void 0,code:void 0,productId:"",name:"123",title:"123456",type:"int",min:void 0,max:void 0,len:void 0,isArray:"0",remark:""}),I=function(e){var t;console.log("handleOK",e),null===(t=L.value)||void 0===t||t.validate().then((function(e){console.log(e);var t={isArray:"0"!=A.isArray,range:{}};if("int"==A.type||"float"==A.type)null!=A.min&&(t.range.min=A.min),A.max&&(t.range.max=A.max);else if("string"==A.type)A.len&&(t.range.len=A.len);else if("enum"==A.type)for(var n=0;n<j.length;n++){var r=j[n];t.range[r.key]=r.info}console.log(t);var o=JSON.stringify(t),a={id:A.id,code:A.code,productId:A.productId,name:A.name,title:A.title,type:A.type,define:o,remark:A.remark};console.log(a),function(e){var t="";t=C.value?"/model/add":"/model/edit",U({url:t,data:e},(function(e){console.log(e),_.info(e.msg),q(),k("onSuccess",e)}))}(a)}),(function(e){console.log(e)}))},P=function(){O.value=!0},q=function(){O.value=!1};return l((function(){console.log("onMounted")})),u((function(){console.log("onUnmounted")})),o({add:function(e){var t;C.value=!0,p(A,{productId:e}),null===(t=L.value)||void 0===t||t.clearValidate(),P(),A.isArray="0",A.type="int"},update:function(e){var t,n,r,o;if(C.value=!1,Object.assign(A,e),null===(t=L.value)||void 0===t||t.clearValidate(),A.isArray=null!==(n=e.define)&&void 0!==n&&n.isArray?"1":"0","int"==e.type||"float"==e.type)A.min=null===(r=e.define)||void 0===r||null===(r=r.range)||void 0===r?void 0:r.min,A.max=null===(o=e.define)||void 0===o||null===(o=o.range)||void 0===o?void 0:o.max;else if("string"==e.type){var a;A.len=null===(a=e.define)||void 0===a||null===(a=a.range)||void 0===a?void 0:a.len}else if("enum"==e.type){var i,l=null===(i=e.define)||void 0===i?void 0:i.range;for(var u in Object.keys(l).length>0&&j.splice(0),l)if(l.hasOwnProperty(u)){var c={key:u,info:l[u]};j.push(c)}}P()}}),function(e,t){var n=c("a-input"),r=c("a-form-item"),o=c("a-col"),a=c("a-select-option"),i=c("a-select"),l=c("a-input-number"),u=c("a-row"),p=c("a-textarea"),_=c("a-form"),k=c("a-modal");return f(),s(k,{wrapClassName:"cus-scroll",title:"添加产品功能",visible:O.value,"onUpdate:visible":t[9]||(t[9]=function(e){return O.value=e}),maskClosable:!1,width:680,bodyStyle:{height:"500px","overflow-y":"auto"},cancelText:"取消",okText:"确定",onOk:I},{default:d((function(){return[v(_,{ref_key:"formRef",ref:L,model:A,name:"basic","label-align":"left","label-col":{span:12},"wrapper-col":{span:20},autocomplete:"off",layout:"vertical"},{default:d((function(){return[v(u,{gutter:20},{default:d((function(){return[v(o,{span:12},{default:d((function(){return[v(r,{"wrapper-col":{offset:0,span:24},label:"功能编号",name:"code",rules:[{required:!0,message:"请输入模型编号!"}]},{default:d((function(){return[v(n,{size:"large",value:A.code,"onUpdate:value":t[0]||(t[0]=function(e){return A.code=e})},null,8,["value"])]})),_:1})]})),_:1}),v(o,{span:12},{default:d((function(){return[v(r,{"wrapper-col":{offset:0,span:24},label:"功能名称",name:"name",rules:[{required:!0,message:"请输入产品名称!"}]},{default:d((function(){return[v(n,{size:"large",value:A.name,"onUpdate:value":t[1]||(t[1]=function(e){return A.name=e})},null,8,["value"])]})),_:1})]})),_:1}),v(o,{span:12},{default:d((function(){return[v(r,{"wrapper-col":{offset:0,span:24},label:"标识符",name:"title",rules:[{required:!0,message:"请输入产品名称!"}]},{default:d((function(){return[v(n,{size:"large",value:A.title,"onUpdate:value":t[2]||(t[2]=function(e){return A.title=e})},null,8,["value"])]})),_:1})]})),_:1}),v(o,{span:12},{default:d((function(){return[v(r,{"wrapper-col":{offset:0,span:24},label:"数据类型",name:"type",rules:[{required:!0,message:"请输入数据类型!"}]},{default:d((function(){return[v(i,{size:"large",value:A.type,"onUpdate:value":t[3]||(t[3]=function(e){return A.type=e})},{default:d((function(){return[v(a,{value:"int"},{default:d((function(){return[h("整型")]})),_:1}),v(a,{value:"float"},{default:d((function(){return[h("浮点型")]})),_:1}),v(a,{value:"string"},{default:d((function(){return[h("字符串")]})),_:1}),v(a,{value:"enum"},{default:d((function(){return[h("枚举")]})),_:1})]})),_:1},8,["value"])]})),_:1})]})),_:1}),"int"==A.type||"float"==A.type?(f(),y(g,{key:0},[v(o,{span:12},{default:d((function(){return[v(r,{"wrapper-col":{offset:0,span:24},label:"最小值"},{default:d((function(){return[v(l,{value:A.min,"onUpdate:value":t[4]||(t[4]=function(e){return A.min=e}),style:{width:"100%"},size:"large",controls:!1},null,8,["value"])]})),_:1})]})),_:1}),v(o,{span:12},{default:d((function(){return[v(r,{"wrapper-col":{offset:0,span:24},label:"最大值"},{default:d((function(){return[v(l,{value:A.max,"onUpdate:value":t[5]||(t[5]=function(e){return A.max=e}),style:{width:"100%"},size:"large",controls:!1},null,8,["value"])]})),_:1})]})),_:1})],64)):"string"==A.type?(f(),s(o,{key:1,span:24},{default:d((function(){return[v(r,{"wrapper-col":{offset:0,span:24},label:"长度"},{default:d((function(){return[v(l,{value:A.len,"onUpdate:value":t[6]||(t[6]=function(e){return A.len=e}),style:{width:"100%"},size:"large",min:0,max:999,controls:!1},null,8,["value"])]})),_:1})]})),_:1})):"enum"==A.type?(f(),s(o,{key:2,span:24},{default:d((function(){return[v(r,{autoLink:!1,"wrapper-col":{offset:0,span:24},label:"枚举项",name:"enumOptions",rules:[{required:!0,validator:F}]},{default:d((function(){return[v(u,{class:m(z.value),gutter:[0,5]},{default:d((function(){return[(f(!0),y(g,null,b(j,(function(e){return f(),s(o,{span:24},{default:d((function(){return[v(u,{gutter:3,justify:"start"},{default:d((function(){return[v(o,{span:5},{default:d((function(){return[v(l,{value:e.key,"onUpdate:value":function(t){return e.key=t},style:{width:"100%"},size:"large",min:0,max:999,controls:!1,onChange:S},null,8,["value","onUpdate:value"])]})),_:2},1024),v(o,{span:1,style:{"text-align":"center",display:"flex","align-items":"center","justify-content":"center"}},{default:d((function(){return[N]})),_:1}),v(o,{span:j.length>1?16:18},{default:d((function(){return[v(n,{size:"large",value:e.info,"onUpdate:value":function(t){return e.info=t},onChange:S},null,8,["value","onUpdate:value"])]})),_:2},1032,["span"]),j.length>1?(f(),s(o,{key:0,span:2,style:{"text-align":"center",display:"flex","align-items":"center","justify-content":"center"}},{default:d((function(){return[x("a",{onClick:function(t){return function(e){var t=j.indexOf(e);t>-1&&j.splice(t,1),console.log(t)}(e)}},"删除",8,T)]})),_:2},1024)):w("",!0)]})),_:2},1024)]})),_:2},1024)})),256)),v(o,{span:24,style:{"margin-bottom":"0px","margin-top":"0px"}},{default:d((function(){return[x("a",{onClick:E},"添加枚举项")]})),_:1})]})),_:1},8,["class"])]})),_:1},8,["rules"])]})),_:1})):w("",!0)]})),_:1}),v(r,{"wrapper-col":{offset:0,span:24},label:"是否为数组",name:"isArray",rules:[{required:!0,message:"请输入产品名称!"}]},{default:d((function(){return[v(i,{size:"large",value:A.isArray,"onUpdate:value":t[7]||(t[7]=function(e){return A.isArray=e})},{default:d((function(){return[v(a,{value:"0"},{default:d((function(){return[h("否")]})),_:1}),v(a,{value:"1"},{default:d((function(){return[h("是")]})),_:1})]})),_:1},8,["value"])]})),_:1}),v(r,{"wrapper-col":{offset:0,span:24},label:"备注",name:"remark",rules:[{required:!1,message:"请输入产品模型备注!"}]},{default:d((function(){return[v(p,{value:A.remark,"onUpdate:value":t[8]||(t[8]=function(e){return A.remark=e}),placeholder:"请输入描述","allow-clear":""},null,8,["value"])]})),_:1})]})),_:1},8,["model"])]})),_:1},8,["visible"])}}}),P=x("div",null," 详情 ",-1),q=o({__name:"Detail",setup:function(e,t){var n=t.expose,r=a(!1),o=function(e){console.log(e),r.value=!1};return l((function(){})),n({show:function(){r.value=!0},hidden:function(){r.value=!1}}),function(e,t){var n=c("a-modal");return f(),s(n,{title:"产品功能",visible:r.value,"onUpdate:visible":t[0]||(t[0]=function(e){return r.value=e}),maskClosable:!1,width:480,cancelText:"取消",okText:"确定",onOk:o},{default:d((function(){return[P]})),_:1},8,["visible"])}}}),G=function(e){return E("data-v-b0004175"),e=e(),S(),e},R={class:"cus-animation",style:{height:"100%",width:"100%",padding:"16px 20px",display:"flex","flex-direction":"column"}},J={style:{display:"flex","justify-content":"space-between","align-items":"flex-end"}},W={style:{display:"flex"}},D=G((function(){return x("span",null,"添加",-1)})),H={key:0,style:{color:"green"}},V={key:1,style:{color:"red"}},Y={key:0},B={key:0},K=[G((function(){return x("span",null,"最小值:",-1)}))],M={key:1},Q=[G((function(){return x("span",null,"最大值:",-1)}))],X={key:2},Z=[G((function(){return x("span",null,"最大长度:",-1)}))],$={key:3},ee={key:1},te=["onClick"],ne=["onClick"],re=G((function(){return x("a",{style:{"margin-left":"26px"}},"删除",-1)}));e("default",z(o({__name:"Index",setup:function(e){var t=i({pageSize:10,current:1,size:"default",showSizeChanger:!0,showQuickJumper:!0,showTotal:function(e){return"共 ".concat(e," 条数据")},onChange:function(e,t){console.log("111",e,t),this.current=e,this.pageSize=t,u()}}),n=a([]),r=a(!1),o=i({size:20,page:1,sort:"code",order:"asc",keyWord:"",productId:""}),u=function(){r.value=!0,o.size=t.pageSize,o.page=t.current,o.productId=N.value,U({url:"/model/searchCommon",data:o},(function(e){console.log(e),t.total=e.total;for(var o=0;o<e.data.length;o++){var a=e.data[o];try{e.data[o].define=JSON.parse(a.define)}catch(i){console.log(i)}}n.value=e.data,r.value=!1}))},s=function(){t.current=1,u()},p=a(null),h=function(e){var t;console.log(e),null===(t=p.value)||void 0===t||t.add(N.value)},m=a(null),w=function(e){console.log(e),u()},E=a(null),S=i({x:1400}),z=k(),N=a("");return l((function(){var e;S.y=(null===(e=E.value)||void 0===e?void 0:e.clientHeight)-113,N.value=z.currentRoute.value.params.productId,u()})),function(e,a){var i=c("a-button"),l=c("a-tooltip"),k=c("a-input"),z=c("a-form-item"),N=c("a-form"),T=c("a-table-column"),P=c("a-popconfirm"),G=c("a-table");return f(),y(g,null,[x("div",R,[v(L(F),{gobackabled:"",title:"通用产品功能"}),x("div",J,[x("div",W,[v(i,{type:"primary",style:{"margin-right":"10px",background:"#0058FF"},onClick:h},{icon:d((function(){return[v(L(O))]})),default:d((function(){return[D]})),_:1}),v(N,{layout:"inline",model:o},{default:d((function(){return[v(z,null,{default:d((function(){return[v(k,{allowClear:"",value:o.keyWord,"onUpdate:value":a[0]||(a[0]=function(e){return o.keyWord=e}),placeholder:"请输入要查询的内容",style:{width:"280px"}},{suffix:d((function(){return[v(l,{title:"点击搜索",onClick:s},{default:d((function(){return[v(L(C),{style:{color:"rgba(0, 0, 0, 0.45)"}})]})),_:1})]})),_:1},8,["value"])]})),_:1})]})),_:1},8,["model"])]),x("div",null,[v(l,{onClick:u},{default:d((function(){return[v(L(A),{style:{"font-size":"16px"}})]})),_:1})])]),x("div",{ref_key:"table_container",ref:E,style:{"margin-top":"9px","border-top":"1px solid #eee",display:"flex","flex-direction":"column",overflow:"hidden",height:"0px","flex-grow":"1"}},[v(G,{"data-source":n.value,pagination:t,scroll:S,bordered:!0,loading:r.value,size:"middle"},{default:d((function(){return[v(T,{title:"序号",width:60,fixed:"left",align:"center"},{default:d((function(e){var t=e.index;return[x("div",null,j(t+1),1)]})),_:1}),v(T,{title:"编号","data-index":"code",width:80,fixed:"left",align:"center"}),v(T,{title:"名称","data-index":"name",width:180,fixed:"left",align:"left"}),v(T,{title:"标识符","data-index":"title",width:120,fixed:"left"}),v(T,{title:"数据类型","data-index":"type",width:120}),v(T,{title:"是否为数组",width:100},{default:d((function(e){var t,n=e.record;return[x("div",null,[null!==(t=n.define)&&void 0!==t&&t.isArray?(f(),y("span",H,"是")):(f(),y("span",V,"否"))])]})),_:1}),v(T,{title:"数据定义","data-index":"define",width:200},{default:d((function(e){var t,n,r=e.record;return[null!==(t=r.define)&&void 0!==t&&t.range?(f(),y("div",Y,[(f(!0),y(g,null,b(null===(n=r.define)||void 0===n?void 0:n.range,(function(e,t){return f(),y("div",{key:t},["min"==t?(f(),y("span",B,K)):"max"==t?(f(),y("span",M,Q)):"len"==t?(f(),y("span",X,Z)):(f(),y("span",$,[x("span",null,j(t)+":",1)])),x("span",null,j(e),1)])})),128))])):(f(),y("div",ee,"未定义"))]})),_:1}),v(T,{title:"描述","data-index":"remark","min-width":400}),v(T,{title:"创建时间","data-index":"createtime",width:200}),v(T,{title:"操作",width:200,fixed:"right"},{default:d((function(e){var t=e.record;return[x("div",null,[x("a",{onClick:function(e){return function(e){var t;console.log(e),null===(t=m.value)||void 0===t||t.show()}(t)}},"查看",8,te),x("a",{style:{"margin-left":"26px"},onClick:function(e){return function(e){var t;console.log(e),null===(t=p.value)||void 0===t||t.update(e)}(t)}},"编辑",8,ne),v(P,{title:"确定删除?",okText:"确定",cancelText:"取消",onConfirm:function(e){return function(e){console.log(e);var t={id:e.id};U({url:"/model/delete",data:t},(function(e){console.log(e),_.info(e.msg),u()}))}(t)}},{default:d((function(){return[re]})),_:2},1032,["onConfirm"])])]})),_:1})]})),_:1},8,["data-source","pagination","scroll","loading"])],512)]),v(I,{ref_key:"addRef",ref:p,onOnSuccess:w},null,512),v(q,{ref_key:"detailRef",ref:m,onOnSuccess:w},null,512)],64)}}}),[["__scopeId","data-v-b0004175"]]))}}}))}();
|