moreShopAdmin/build/admin/assets/edit.ca303f1f.js

2 lines
17 KiB
JavaScript
Raw Normal View History

2024-07-19 17:44:41 +08:00
import{_ as Fe}from"./index.6fa1701d.js";import{Q as fe,x as Ee,G as Ve,H as Be,R as ye,y as ve,L as Ce,C as he,D as Ae,M as De,B as ke,J as ge,K as we,N as Ue,w as qe,F as xe}from"./element-plus.7b9d0c0d.js";import{_ as Re}from"./index.vue_vue_type_script_setup_true_lang.ab7008c1.js";import{f as Q,b as $e}from"./index.887947f5.js";import{u as Ie,a as Te}from"./vue-router.101084e3.js";import{t as Ne,g as Pe}from"./code.0bc8b3c9.js";import{a as Le}from"./useDictOptions.1e75c240.js";import{d as Oe}from"./dict.f4ad9983.js";import{m as Qe}from"./menu.b73a75b1.js";import{_ as Se}from"./relations-add.vue_vue_type_script_setup_true_lang.2ba5613b.js";import{l as S}from"./lodash.9dc701ad.js";import{d as H,r as j,Z as K,s as z,b as C,o as _,c as B,U as e,L as a,u as o,j as je,a as d,T as v,a9 as h,K as y,R as c,Q as R,n as Ke,t as G,w as ze}from"./@vue.18505fe0.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.7347fedc.js";import"./axios.4607972f.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./pinia.a969beab.js";import"./css-color-function.bb8c34b2.js";import"./color.fbd63fe8.js";import"./clone.31a3aa2c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./nprogress.0d2736b7.js";import"./vue-clipboard3.7d5a7a5d.js";import"./clipboard.860a1cea.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.eff6b85b.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";const Ge={class:"code-edit"},He={class:"w-80"},Je={class:"w-80"},Me={class:"w-80"},We={class:"w-80"},Ze=d("span",{class:"ml-2"},"\u5FC5\u586B",-1),Xe=d("span",{class:"ml-2"},"\u63D2\u5165",-1),Ye=d("span",{class:"ml-2"},"\u7F16\u8F91",-1),el=d("span",{class:"ml-2"},"\u5217\u8868",-1),ll=d("span",{class:"ml-2"},"\u67E5\u8BE2",-1),ul=d("div",{class:"form-tips"},"\u6307\u5B9A\u6811\u8868\u7684\u4E3B\u8981ID\uFF0C\u4E00\u822C\u4E3A\u4E3B\u952E",-1),al=d("div",{class:"form-tips"},"\u6307\u5B9A\u6811\u8868\u7684\u7236ID\uFF0C\u6BD4\u5982\uFF1Aparent_id",-1),tl={class:"w-80"},ol=d("div",{class:"form-tips"},[d("div",null," \u4F8B\uFF1A\u586B\u5199test,\u751F\u6210\u6587\u4EF6\u63CF\u8FF0\u4E3Atest\u63A7\u5236\u5668(test\u903B\u8F91/test\u6A21\u578B) ")],-1),nl={class:"w-80"},dl=d("div",{class:"form-tips"},"\u751F\u6210\u6587\u4EF6\u6240\u5728\u6A21\u5757",-1),sl={class:"w-80"},ml=d("div",{class:"form-tips"},[d("div",null," \u4F8B\uFF1A\u586B\u5199test,\u5219\u5728app/\u6A21\u5757\u540D/controller/test\u4E0B\u751F\u6210\u63A7\u5236\u5668 ")],-1),rl={class:"w-80"},il=d("div",{class:"form-tips"}," \u81EA\u52A8\u6784\u5EFA\uFF1A\u81EA\u52A8\u6267\u884C\u751F\u6210\u83DC\u5355sql\u3002\u624B\u52A8\u6DFB\u52A0\uFF1A\u81EA\u884C\u6DFB\u52A0\u83DC\u5355\u3002 ",-1),_l={class:"mt-4"},pl=H({name:"tableEdit"}),lu=H({...pl,setup(cl){const J=Ie(),M=Te(),g=j("column"),w=j(!1),$=[{name:"\u4E00\u5BF9\u4E00",value:"has_one"},{name:"\u4E00\u5BF9\u591A",value:"has_many"}],t=K({id:"",table_name:"",table_comment:"",author:"",remark:"",template_type:0,generate_type:0,module_name:"",class_dir:"",class_comment:"",table_column:[],menu:{pid:0,name:"",type:0},tree:{tree_id:0,tree_pid:0,tree_name:0},delete:{name:"",type:0},relations:[]});let U=0;const I=z(),q=z(),T=K({table_name:[{required:!0,message:"\u8BF7\u8F93\u5165\u8868\u540D\u79F0"}],table_comment:[{required:!0,message:"\u8BF7\u8F93\u5165\u8868\u63CF\u8FF0"}],module_name:[{required:!0,message:"\u8BF7\u8F93\u5165\u6A21\u5757\u540D"}],generate_type:[{required:!0,trigger:"change"}],template_type:[{required:!0,trigger:"change"}],["menu.pid"]:[{required:!0,message:"\u8BF7\u9009\u62E9\u7236\u7EA7\u83DC\u5355"}],["menu.name"]:[{required:!0,message:"\u8BF7\u8F93\u5165\u83DC\u5355\u540D\u79F0"}],["delete.type"]:[{required:!0,tr