WokerTask/public/admin/assets/edit.2486509f.js

2 lines
16 KiB
JavaScript
Raw Normal View History

2023-12-27 14:06:33 +08:00
import{_ as oe}from"./index.1e16e898.js";import{T as ne,x as de,a3 as me,y as se,I as re,B as pe,C as ie,O as _e,F as ce,M as Fe,N as be,P as fe,G as Ve,H as Be,w as Ee,D as ve}from"./element-plus.10e48c93.js";import{_ as ye}from"./index.vue_vue_type_script_setup_true_lang.17266fa4.js";import{f as S,b as Ae}from"./index.8604d989.js";import{u as Ce,a as De}from"./vue-router.9f65afb1.js";import{t as ke,g as ge}from"./code.ab06ceec.js";import{a as we}from"./useDictOptions.0cd6f35c.js";import{a as Ue}from"./dict.f873732c.js";import{m as he}from"./menu.4009a065.js";import{_ as qe}from"./relations-add.vue_vue_type_script_setup_true_lang.6d80232b.js";import{l as L}from"./lodash.08438971.js";import{d as K,r as j,$ as z,s as G,o as i,c as B,U as e,L as u,u as o,k as $e,a as d,T as v,a7 as A,K as E,R as c,Q as $,n as xe,t as H,w as Re}from"./@vue.51d7f2d8.js";import"./@vueuse.ec90c285.js";import"./@element-plus.c80b8015.js";import"./lodash-es.29c53eac.js";import"./dayjs.e873ead7.js";import"./@amap.8a62addd.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./axios.105476b3.js";import"./pinia.56356cb7.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.7ac6f233.js";import"./color.44a05936.js";import"./clone.0afcbf90.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.86067895.js";import"./ms.a9ae1d6d.js";import"./nprogress.f73355d0.js";import"./vue-clipboard3.dca5bca3.js";import"./clipboard.16e4491b.js";import"./echarts.ac57a99a.js";import"./zrender.d54ce080.js";import"./tslib.60310f1a.js";import"./highlight.js.dba6fa1b.js";import"./@highlightjs.40d5feba.js";import"./index.49a85b68.js";import"./index.vue_vue_type_style_index_0_scoped_95d1884e_lang.0fc4c9f8.js";const Te={class:"code-edit"},Ie={class:"w-80"},Ne={class:"w-80"},Pe={class:"w-80"},Oe={class:"w-80"},Se=d("div",{class:"form-tips"},"\u6307\u5B9A\u6811\u8868\u7684\u4E3B\u8981ID\uFF0C\u4E00\u822C\u4E3A\u4E3B\u952E",-1),Le=d("div",{class:"form-tips"},"\u6307\u5B9A\u6811\u8868\u7684\u7236ID\uFF0C\u6BD4\u5982\uFF1Aparent_id",-1),je={class:"w-80"},ze=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),Ge={class:"w-80"},He=d("div",{class:"form-tips"},"\u751F\u6210\u6587\u4EF6\u6240\u5728\u6A21\u5757",-1),Ke={class:"w-80"},Me=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),Qe={class:"w-80"},We=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),Je={class:"mt-4"},Xe=K({name:"tableEdit"}),jl=K({...Xe,setup(Ye){const M=Ce(),Q=De(),g=j("column"),w=j(!1),x=[{name:"\u4E00\u5BF9\u4E00",value:"has_one"},{name:"\u4E00\u5BF9\u591A",value:"has_many"}],t=z({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 R=G(),h=G(),T=z({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,trigger:"change"}],["delete.name"]:[{required:!0,message:"\u8BF7\u9009\u62E9\u5220\u9664\u5B57\u6BB5"}]}),I=async(p,a,f)=>{var F,_;w.value=!0,await x