gds-plus-design-vue 1.2.72 → 1.2.73

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (99) hide show
  1. package/lib/{addPermission.f2eb7564.mjs → addPermission.1eb97ee3.mjs} +25 -25
  2. package/lib/{addPermission.e559c495.js → addPermission.5bfc7e11.js} +1 -1
  3. package/lib/{approvalModel.2b97fdf8.js → approvalModel.63fa8914.js} +1 -1
  4. package/lib/{approvalModel.7b3cb5c5.mjs → approvalModel.c09cbf86.mjs} +2 -2
  5. package/lib/{attribute.4f814780.mjs → attribute.88d41b0f.mjs} +26 -26
  6. package/lib/{attribute.7b4971f5.js → attribute.919cb93e.js} +1 -1
  7. package/lib/{components.globalheader.5418b5ec.js → components.globalheader.28b38c3a.js} +1 -1
  8. package/lib/{components.globalheader.bc91e6fe.mjs → components.globalheader.9471ef9d.mjs} +1 -1
  9. package/lib/components.middleware.7b760b95.mjs +148 -0
  10. package/lib/components.middleware.b2e156ea.js +1 -0
  11. package/lib/{components.modaltitle.d7ef34cb.js → components.modaltitle.179b6da1.js} +1 -1
  12. package/lib/{components.modaltitle.4f454200.mjs → components.modaltitle.2c1011c5.mjs} +2 -2
  13. package/lib/{components.sidenavmenu.47d7f44a.mjs → components.sidenavmenu.91e996c4.mjs} +8 -8
  14. package/lib/{components.sidenavmenu.1f0bbfca.js → components.sidenavmenu.a3de1659.js} +1 -1
  15. package/lib/{components.table.d016f609.js → components.table.a0ac819e.js} +1 -1
  16. package/lib/{components.table.389ab22a.mjs → components.table.d79f5fa3.mjs} +4 -4
  17. package/lib/{components.viewformdetails.1236a66e.mjs → components.viewformdetails.4e40579f.mjs} +41 -25
  18. package/lib/components.viewformdetails.6e66cc83.js +1 -0
  19. package/lib/{createFile.526dd6db.js → createFile.94329169.js} +1 -1
  20. package/lib/{createFile.c8d65b52.mjs → createFile.ca811a30.mjs} +25 -25
  21. package/lib/{extendedAttributes.e6b11c68.mjs → extendedAttributes.a3ee9bde.mjs} +25 -25
  22. package/lib/{extendedAttributes.bfff1926.js → extendedAttributes.b1107f6c.js} +1 -1
  23. package/lib/{fileSearch.e849491c.js → fileSearch.4722ac3b.js} +1 -1
  24. package/lib/{fileSearch.423b64a3.mjs → fileSearch.d7abc086.mjs} +25 -25
  25. package/lib/{flow.designer.85d0054b.js → flow.designer.7d58bc2c.js} +1 -1
  26. package/lib/{flow.designer.5feba43c.mjs → flow.designer.b066df02.mjs} +1 -1
  27. package/lib/{flow.list.82131d80.mjs → flow.list.a9afdd93.mjs} +2 -2
  28. package/lib/{flow.list.e001d91a.js → flow.list.d288de5e.js} +1 -1
  29. package/lib/{form.build.33cc213e.mjs → form.build.16110b90.mjs} +20 -16
  30. package/lib/form.build.5461409b.js +1 -0
  31. package/lib/{form.designer.build.7dc12e87.mjs → form.designer.build.2bd26973.mjs} +24 -38
  32. package/lib/{form.designer.build.2bcc355d.js → form.designer.build.67b316e1.js} +1 -1
  33. package/lib/{formFiled.5a1c8f7f.mjs → formFiled.3763ebff.mjs} +5 -5
  34. package/lib/{formFiled.40284ed9.js → formFiled.ef26328d.js} +1 -1
  35. package/lib/gd-initial.js +1 -1
  36. package/lib/gd-initial.mjs +25 -25
  37. package/lib/{index.340d6f00.mjs → index.606ef358.mjs} +789 -782
  38. package/lib/index.fe18e32c.js +8 -0
  39. package/lib/layoutBlocks.0784592a.mjs +570 -0
  40. package/lib/layoutBlocks.1b71d988.js +1 -0
  41. package/lib/{layouts.1852e8e4.mjs → layouts.915931be.mjs} +2 -2
  42. package/lib/{layouts.2030bf01.js → layouts.ae25c583.js} +1 -1
  43. package/lib/{main.1551de4d.js → main.0326119e.js} +1 -1
  44. package/lib/{main.b2314767.mjs → main.034638bb.mjs} +1 -1
  45. package/lib/{main.1611bb43.js → main.44d72b90.js} +1 -1
  46. package/lib/{main.12118407.mjs → main.44efe912.mjs} +25 -25
  47. package/lib/{main.fcb67463.js → main.47957168.js} +1 -1
  48. package/lib/{main.48dc325f.mjs → main.adcedcee.mjs} +1 -1
  49. package/lib/{manage.1bc511ff.mjs → manage.63cd038d.mjs} +26 -26
  50. package/lib/{manage.eb0a6c8c.js → manage.80871daf.js} +1 -1
  51. package/lib/{mobile.designer.componentstree.9439895e.mjs → mobile.designer.componentstree.70fd4c93.mjs} +1 -1
  52. package/lib/{mobile.designer.componentstree.365945a3.js → mobile.designer.componentstree.f4a901e4.js} +1 -1
  53. package/lib/{moveFile.3dc1dc37.mjs → moveFile.b66805f8.mjs} +25 -25
  54. package/lib/{moveFile.f70bbff7.js → moveFile.d79f7fd9.js} +1 -1
  55. package/lib/{page.build.ae61a39b.mjs → page.build.09137386.mjs} +1 -1
  56. package/lib/{page.build.7ac1ee9b.js → page.build.1b771761.js} +1 -1
  57. package/lib/{page.designer.componentstree.74a3a114.js → page.designer.componentstree.341908b2.js} +1 -1
  58. package/lib/{page.designer.componentstree.cdabec2d.mjs → page.designer.componentstree.a256ff7a.mjs} +1 -1
  59. package/lib/{page.designer.page.821f8994.mjs → page.designer.page.559113a9.mjs} +39 -35
  60. package/lib/page.designer.page.d2d6b614.js +1 -0
  61. package/lib/{result.a87217ae.mjs → result.16da7693.mjs} +25 -25
  62. package/lib/{result.4d4039ea.js → result.9cb6c2f1.js} +1 -1
  63. package/lib/{router.config.a09f29e7.js → router.config.1e67a1c3.js} +1 -1
  64. package/lib/{router.config.f0ad16fd.mjs → router.config.70680261.mjs} +5 -5
  65. package/lib/{solution.approvalflow.eb1c0607.mjs → solution.approvalflow.8572122d.mjs} +1 -1
  66. package/lib/{solution.approvalflow.79da028c.js → solution.approvalflow.cce2f064.js} +1 -1
  67. package/lib/{solution.processflow.62936f1c.mjs → solution.processflow.a52fd47c.mjs} +1 -1
  68. package/lib/{solution.processflow.aa1e808b.js → solution.processflow.bfa4897c.js} +1 -1
  69. package/lib/{solution.workflow.85de0ae5.mjs → solution.workflow.2530073b.mjs} +1 -1
  70. package/lib/{solution.workflow.0ed2cb24.js → solution.workflow.59e0e697.js} +1 -1
  71. package/lib/style.css +2 -2
  72. package/lib/{system.duplicatechecking.46e182d7.mjs → system.duplicatechecking.a0da805e.mjs} +1 -1
  73. package/lib/{system.duplicatechecking.a217fc52.js → system.duplicatechecking.bef2b20c.js} +1 -1
  74. package/lib/system.notice.72e0615f.js +1 -0
  75. package/lib/{system.notice.51880df6.mjs → system.notice.da2c944c.mjs} +219 -216
  76. package/lib/{system.noticereceived.55f276ab.mjs → system.noticereceived.30dab7d1.mjs} +1 -1
  77. package/lib/{system.noticereceived.0b79642e.js → system.noticereceived.54c17b73.js} +1 -1
  78. package/lib/{system.user.254bbe85.mjs → system.user.a1ff367b.mjs} +1 -1
  79. package/lib/{system.user.475d7391.js → system.user.bff7cc2f.js} +1 -1
  80. package/lib/{versionControl.97590ce8.js → versionControl.47cc1330.js} +1 -1
  81. package/lib/{versionControl.d1b2b0da.mjs → versionControl.6cd18867.mjs} +31 -31
  82. package/lib/{versionEdit.c51606e4.mjs → versionEdit.910d2e2f.mjs} +25 -25
  83. package/lib/{versionEdit.f710d0bb.js → versionEdit.977faa93.js} +1 -1
  84. package/lib/{view.build.9976c958.mjs → view.build.20e9aec0.mjs} +6 -6
  85. package/lib/{view.build.5789a6eb.js → view.build.a48a14b0.js} +1 -1
  86. package/lib/{viewList.6e181715.js → viewList.71f866da.js} +1 -1
  87. package/lib/{viewList.3ca52f0c.mjs → viewList.a4909732.mjs} +9 -9
  88. package/package.json +1 -1
  89. package/lib/components.middleware.24511f17.mjs +0 -148
  90. package/lib/components.middleware.64b6a988.js +0 -1
  91. package/lib/components.viewformdetails.328c8642.js +0 -1
  92. package/lib/drawerContainer.790b0ee6.mjs +0 -163
  93. package/lib/drawerContainer.c971d22d.js +0 -1
  94. package/lib/form.build.19f0c882.js +0 -1
  95. package/lib/index.07adebf0.js +0 -8
  96. package/lib/layoutBlocks.756e4b57.js +0 -1
  97. package/lib/layoutBlocks.816b49a7.mjs +0 -413
  98. package/lib/page.designer.page.654634aa.js +0 -1
  99. package/lib/system.notice.2090c130.js +0 -1
@@ -1,148 +0,0 @@
1
- import { o as r } from "./http.syscodegenerateconfigmanage.6d2e5da0.mjs";
2
- import { d } from "./http.main.aefea27d.mjs";
3
- import { F as m } from "./form.build.33cc213e.mjs";
4
- import { n as c } from "./components.chartbi.7356b244.mjs";
5
- const h = {
6
- name: "GdMiddleware",
7
- data() {
8
- return {
9
- isRelevance: !1,
10
- tableData: {},
11
- tableId: "",
12
- detail: {},
13
- fieldData: [],
14
- formList: [],
15
- visible: !1
16
- };
17
- },
18
- computed: {
19
- componentItem() {
20
- const t = this.$importViewFiles();
21
- let e = `../views/main/${this.tableData.tablename}/editForm.vue`, i = t[e];
22
- return i ? i.default : m;
23
- }
24
- },
25
- methods: {
26
- invokeFun({ ref: t = "editForm", functionName: e, data: i, time: n = 50 }) {
27
- return new Promise((a, s) => {
28
- this.$nextTick(() => {
29
- setTimeout(() => {
30
- const o = this.$refs[t];
31
- if (!o) {
32
- a({ code: 404, message: "\u672A\u627E\u5230\u5BF9\u5E94\u5143\u7D20" });
33
- return;
34
- }
35
- e && o[e] ? (o[e](i), a({ code: 200 })) : a({ code: 404, message: "\u672A\u627E\u5230\u65B9\u6CD5" });
36
- }, n);
37
- });
38
- });
39
- },
40
- initAdd(t) {
41
- let e = this;
42
- return this.tableId = t.tableId, this.isRelevance = t.isRelevance ? t.isRelevance : !1, new Promise((i, n) => {
43
- Promise.all([e.baseTableData(), e.getLoadData()]).then((a) => {
44
- e.visible = !0;
45
- let s = {
46
- title: t.title ? t.title : this.$i18nt("gd.https.quickActions", "\u5FEB\u6377\u64CD\u4F5C")
47
- };
48
- e.$nextTick(() => {
49
- setTimeout(() => {
50
- e.openForm(s);
51
- }, 0), setTimeout(() => {
52
- i({ res: a, invokeFun: this.invokeFun });
53
- }, 20);
54
- });
55
- });
56
- });
57
- },
58
- init(t) {
59
- this.tableId = t.tableId || t.tableid, this.detail = t.data[0], this.isRelevance = t.isRelevance ? t.isRelevance : !1;
60
- let e = this;
61
- return new Promise((i, n) => {
62
- t.data.length == 0 ? (e.$nextTick(() => {
63
- setTimeout(() => {
64
- e.$message.error(e.$i18nt("gd.https.noData", "\u672A\u67E5\u8BE2\u5230\u5BF9\u5E94\u6570\u636E"));
65
- }, 0);
66
- }), i()) : Promise.all([e.baseTableData(), e.getLoadData()]).then((a) => {
67
- if (this.formList.length > 0) {
68
- e.visible = !0;
69
- let s = {
70
- title: this.$i18nt("gd.https.quickActions", "\u5FEB\u6377\u64CD\u4F5C"),
71
- id: e.detail.id
72
- };
73
- e.$nextTick(() => {
74
- setTimeout(() => {
75
- e.openForm(s);
76
- }, 0);
77
- });
78
- } else
79
- e.$nextTick(() => {
80
- setTimeout(() => {
81
- e.$message.error(e.$i18nt("gd.https.noDataForm", "\u672A\u67E5\u8BE2\u5230\u5BF9\u5E94\u8868\u5355\u6570\u636E"));
82
- }, 10);
83
- });
84
- i();
85
- });
86
- });
87
- },
88
- openForm(t) {
89
- if (this.$refs.editForm) {
90
- const e = this.formList.filter((i) => i.type === 1)[0];
91
- this.$refs.editForm.setFormRecord(e).then((i) => {
92
- this.$nextTick(() => {
93
- setTimeout(() => {
94
- this.$refs.editForm.open(t);
95
- }, 10);
96
- });
97
- });
98
- } else
99
- setTimeout(() => {
100
- this.openForm(t);
101
- }, 200);
102
- },
103
- baseTableData() {
104
- return d({ tableId: this.tableId }).then((t) => {
105
- if (t.success) {
106
- if (t.data.formlist.length == 0)
107
- return t.data;
108
- this.formList = t.data.formlist, this.tableData = t.data.table;
109
- }
110
- return t;
111
- });
112
- },
113
- getLoadData() {
114
- return r({
115
- codeGenId: this.tableId
116
- }).then((t) => (this.fieldData = t.data, t.data));
117
- },
118
- relationOk(t) {
119
- this.$emit("ok", t);
120
- },
121
- handleSubmit(t) {
122
- this.$emit("ok");
123
- },
124
- closed() {
125
- this.$emit("closed"), this.visible = !1;
126
- }
127
- }
128
- };
129
- var f = function() {
130
- var e = this, i = e._self._c;
131
- return i("div", [e.visible ? i(e.componentItem, { ref: "editForm", tag: "component", attrs: { fieldData: e.fieldData, isRelevance: e.isRelevance, tableData: e.tableData }, on: { ok: e.handleSubmit, closed: e.closed, relationOk: e.relationOk } }) : e._e()], 1);
132
- }, u = [], b = /* @__PURE__ */ c(
133
- h,
134
- f,
135
- u,
136
- !1,
137
- null,
138
- "8ea96143",
139
- null,
140
- null
141
- );
142
- const l = b.exports;
143
- l.install = function(t) {
144
- t.component(l.name, l);
145
- };
146
- export {
147
- l as G
148
- };
@@ -1 +0,0 @@
1
- "use strict";const l=require("./http.syscodegenerateconfigmanage.840f1136.js"),d=require("./http.main.2f8a6936.js"),m=require("./form.build.19f0c882.js"),c=require("./components.chartbi.13a8a7b5.js");const h={name:"GdMiddleware",data(){return{isRelevance:!1,tableData:{},tableId:"",detail:{},fieldData:[],formList:[],visible:!1}},computed:{componentItem(){const t=this.$importViewFiles();let e=`../views/main/${this.tableData.tablename}/editForm.vue`,i=t[e];return i?i.default:m.FormDesigner}},methods:{invokeFun({ref:t="editForm",functionName:e,data:i,time:o=50}){return new Promise((a,s)=>{this.$nextTick(()=>{setTimeout(()=>{const r=this.$refs[t];if(!r){a({code:404,message:"\u672A\u627E\u5230\u5BF9\u5E94\u5143\u7D20"});return}e&&r[e]?(r[e](i),a({code:200})):a({code:404,message:"\u672A\u627E\u5230\u65B9\u6CD5"})},o)})})},initAdd(t){let e=this;return this.tableId=t.tableId,this.isRelevance=t.isRelevance?t.isRelevance:!1,new Promise((i,o)=>{Promise.all([e.baseTableData(),e.getLoadData()]).then(a=>{e.visible=!0;let s={title:t.title?t.title:this.$i18nt("gd.https.quickActions","\u5FEB\u6377\u64CD\u4F5C")};e.$nextTick(()=>{setTimeout(()=>{e.openForm(s)},0),setTimeout(()=>{i({res:a,invokeFun:this.invokeFun})},20)})})})},init(t){this.tableId=t.tableId||t.tableid,this.detail=t.data[0],this.isRelevance=t.isRelevance?t.isRelevance:!1;let e=this;return new Promise((i,o)=>{t.data.length==0?(e.$nextTick(()=>{setTimeout(()=>{e.$message.error(e.$i18nt("gd.https.noData","\u672A\u67E5\u8BE2\u5230\u5BF9\u5E94\u6570\u636E"))},0)}),i()):Promise.all([e.baseTableData(),e.getLoadData()]).then(a=>{if(this.formList.length>0){e.visible=!0;let s={title:this.$i18nt("gd.https.quickActions","\u5FEB\u6377\u64CD\u4F5C"),id:e.detail.id};e.$nextTick(()=>{setTimeout(()=>{e.openForm(s)},0)})}else e.$nextTick(()=>{setTimeout(()=>{e.$message.error(e.$i18nt("gd.https.noDataForm","\u672A\u67E5\u8BE2\u5230\u5BF9\u5E94\u8868\u5355\u6570\u636E"))},10)});i()})})},openForm(t){if(this.$refs.editForm){const e=this.formList.filter(i=>i.type===1)[0];this.$refs.editForm.setFormRecord(e).then(i=>{this.$nextTick(()=>{setTimeout(()=>{this.$refs.editForm.open(t)},10)})})}else setTimeout(()=>{this.openForm(t)},200)},baseTableData(){return d.baseTableData({tableId:this.tableId}).then(t=>{if(t.success){if(t.data.formlist.length==0)return t.data;this.formList=t.data.formlist,this.tableData=t.data.table}return t})},getLoadData(){return l.onlineFormGetCodeGenerateList({codeGenId:this.tableId}).then(t=>(this.fieldData=t.data,t.data))},relationOk(t){this.$emit("ok",t)},handleSubmit(t){this.$emit("ok")},closed(){this.$emit("closed"),this.visible=!1}}};var u=function(){var e=this,i=e._self._c;return i("div",[e.visible?i(e.componentItem,{ref:"editForm",tag:"component",attrs:{fieldData:e.fieldData,isRelevance:e.isRelevance,tableData:e.tableData},on:{ok:e.handleSubmit,closed:e.closed,relationOk:e.relationOk}}):e._e()],1)},f=[],b=c.normalizeComponent(h,u,f,!1,null,"8ea96143",null,null);const n=b.exports;n.install=function(t){t.component(n.name,n)};exports.GDpackage=n;
@@ -1 +0,0 @@
1
- "use strict";const r=require("./components.chartbi.13a8a7b5.js"),l=require("./utils.util.js.c0ba699b.js"),d=require("./http.main.2f8a6936.js"),p=require("./http.loginmanage.326984c3.js"),f=require("./http.syscodegenerateconfigmanage.840f1136.js"),y=require("./form.build.19f0c882.js"),g=require("./http.codegeneratemanage.e3db2f09.js"),C=require("./system.notice.2090c130.js"),b={props:{record:{type:Object,default:()=>({})},recordoperations:{type:Object,default:()=>({})},develop:{type:[Number,String],default:1},openMode:{type:[String,Number],default:1},height:{type:Number,default:100},foreign:{type:Object,default:()=>({})},disabledRowId:{type:Array,default:()=>[]},istable:{type:Boolean,default:!1}},data(){return{statu:!1,viewRecord:{},formList:[],tableData:{},sysViewList:[],personalViewList:[],sysViewButtons:[],selectedRowKeys:[],selectedRows:[],defaultViewId:0,excludeButtons:[],fieldData:[],tableDataSource:[],componentList:[],lineQuickView:t=>{const e="baseQuickView";return this[e]===void 0&&this.func===void 0?new Promise(i=>i(t)):this[e](t)}}},computed:{componentForm(){const t=this.$importViewFiles();let i=`../views/main/${this.options.table.tableName||this.options.table.tablename}/editForm.vue`;const s=t[i];return s?s.default:y.FormDesigner},viewList(){return this.sysViewList.concat(this.personalViewList)},formCode(){return this.options.form.id},options(){return this.record.options},...r.mapGetters(["tableLists"])},methods:{showLoading(){this.statu=!0,this.$refs.table.showLoading()},hideLoading(t=1500){this.$refs.table.hideLoading(t),setTimeout(()=>{this.statu=!1},t)},add(t){this.baseAdd()},edit(t){this.baseEdit()},del(t){this.baseDel()},deactivateData(){this.baseEnable(0)},enableData(){this.baseEnable()},assign(t){this.baseAssign(t)},batchUpdate(t){this.baseBatchUpdate()},teamSharing(t){this.baseTeamSharing(t)},statusChange(){this.baseStatusChange()},importData(){this.baseImportData()},exportData(t){this.baseExportData(t)},open(t){this.$nextTick(()=>{setTimeout(()=>{if(this.$refs.editForm){if(!(this.tableData.isvirtualtable===1)){this.$refs.editForm.open(t);return}this.openVirtual(t)}else console.log("err:\u8868\u5355\u672A\u52A0\u8F7D\uFF0C\u8BF7\u7B49\u5F85\u52A0\u8F7D\u5B8C\u6210\uFF01")},0)})},openVirtual(t){let e=new Map;this.fieldData.filter(s=>["fk","user"].includes(s.effecttype)).forEach(s=>{Object.keys(t).includes(s.columnname);const o=`name${s.fkentityname}${s.columnname}`;if(Object.keys(t).includes(o)){const a=t[`${s.columnname}id`],c=a||new Date().getTime();e.set(`${s.columnname}`,c),e.set(`${s.columnname}name`,t[o])}}),this.$refs.editForm.openDisplay(Object.assign({},t,Object.fromEntries(e)))},refresh(t=!0){this.$refs.table?this.$refs.table.refresh(t):console.log("err:\u89C6\u56FE\u672A\u52A0\u8F7D\uFF0C\u8BF7\u7B49\u5F85\u52A0\u8F7D\u5B8C\u6210\uFF01")},init(){this.record.hasLoad&&this.record.hasLoad(this.record.key),Promise.all([this.baseGetTableView(),this.baseGetPersonalView(!0),this.baseGetLoadData()]).then(t=>{this.$nextTick(()=>{setTimeout(()=>{this.$refs.table&&(this.$refs.table.init({fieldData:this.fieldData,tableData:this.tableData,sysViewList:this.sysViewList,personalViewList:this.personalViewList,defaultViewId:this.defaultViewId}),this.$refs.table.baseCustomComponents(this.componentList));let e=this.formList.filter(i=>i.id===this.formCode)[0];e||(e=this.formList.filter(i=>i.type===1)[0]),this.$refs.editForm&&e&&this.$refs.editForm.setFormRecord(e),this.beaseLoadComplete()},0)})})},onChangeBtn(t){this.sysViewButtons=t},onChangeView(t){this.viewRecord=t},onChangeData(t){this.tableDataSource=[...t],this.$emit("changeData",t)},onChangeSelect(t,e){this.selectedRowKeys=t,this.selectedRows=e,this.$emit("onChangeSelect",t,e);const i="baseChangeSelect";this[i]&&this[i](t,e)},beaseLoadComplete(){const t="onLoadCompleted";this[t]===void 0&&this.func===void 0||this[t]&&this[t]()},baseGetTableView(){const t=this.tableLists.filter(e=>{const i=this.options.table.tableName||this.options.table.tablename;return e.tablename.toLowerCase()===i.toLowerCase()})[0];return t?d.baseTableData({tableId:t.id}).then(e=>(e.code===200?(e.data.viewlist.map(i=>(i.mode=1,i)),this.formList=e.data.formlist,this.tableData=e.data.table,this.sysViewList=e.data.viewlist):this.$message.error(e.message),e)):(console.log("\u6570\u636E\u9519\u8BEF,\u8868\u4E0D\u5B58\u5728"),new Promise((e,i)=>{e({})}))},baseGetPersonalView(t){if(t&&this.openMode!=1)return new Promise((i,s)=>{i()});const e=this.tableLists.filter(i=>{const s=this.options.table.tableName||this.options.table.tablename;return i.tablename.toLowerCase()===s.toLowerCase()})[0];return e===void 0?(console.log("\u8868\u4E0D\u5B58\u5728"),new Promise((i,s)=>{i()})):d.basePersonalData({tableId:e.id}).then(i=>{if(i.code===200){const s=this.options.layoutConfig!==void 0?this.options.layoutConfig:!1;this.defaultViewId=s?0:i.data.defaultqueryid,this.personalViewList=i.data.savedquerylist}else console.log(i.message);return i.data})},baseGetLoadData(){const t=this.tableLists.filter(e=>{const i=this.options.table.tableName||this.options.table.tablename;return e.tablename.toLowerCase()===i.toLowerCase()})[0];return t?f.onlineFormGetCodeGenerateList({codeGenId:t.id}).then(e=>{e.code===200&&(this.fieldData=JSON.parse(JSON.stringify(e.data)),this.$emit("fieldData",e.data))}):(console.log("\u6570\u636E\u9519\u8BEF,\u8868\u4E0D\u5B58\u5728"),new Promise((e,i)=>{e({})}))},baseAdd(){this.$nextTick(()=>{setTimeout(()=>{this.$refs.editForm?this.$refs.editForm.open({title:this.$i18nt("gd.https.add","\u65B0\u589E")}):console.log("err:\u8868\u5355\u672A\u52A0\u8F7D\uFF0C\u8BF7\u7B49\u5F85\u52A0\u8F7D\u5B8C\u6210\uFF01")},0)})},baseEdit(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}let t={title:this.$i18nt("gd.https.edit","\u7F16\u8F91")};this.openMode==3?Object.assign(t,{data:this.selectedRows[0]}):Object.assign(t,{id:this.selectedRowKeys[0]}),this.open(t)},baseCopyData(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}const t=this.tableDataSource.filter(e=>this.selectedRowKeys.includes(e.id))[0];this.$refs.editForm.openCopyData({title:this.$i18nt("gd.advancedFind.anotherSave","\u53E6\u5B58\u4E3A"),data:t})},baseDel(){this.$refs.table.baseDel()},baseEnable(t=1){return this.$refs.table.baseEnable(t)},baseRelationOk(t){this.$refs.table.baseRelationOk(t)},baseBatchUpdate(){this.$refs.table.baseBatchUpdate()},baseTeamSharing(t){this.$refs.table.baseTeamSharing(t)},baseStatusChange(){this.$refs.table.baseStatusChange()},baseAssign(t){this.$refs.table.baseAssign(t)},baseImportData(){this.$refs.table.baseImportData()},baseExportData(t){this.$refs.table.baseExportData(t)},baseGetParentFormData(t){if(this.openMode!=3)return new Promise((i,s)=>{i({})});let e=t===void 0?!1:t;return this.record.getFormAllData(e,!0).then(i=>i)},baseRelationRefresh(t=!0,e,i={}){this.openMode==3&&this.record.refresh(t,e,i)},baseBtnsStatus(t){this.$refs.table.baseBtnsStatus(t)},baseForceShowBtns(t){this.$refs.table.baseForceShowBtns(t)},baseComponentsInit(t){this.$refs.table.baseComponentsInit(t)},baseSetTableData(t){this.$refs.table.baseSetTableData(t)},getDictionary(t){return this.$options.filters.dictData(t)},baseTriggerFilter(t){this.$refs.table.baseTriggerFilter(t)},beseDoComponentEvent(t){const e=t.key?t.key:"",i=t.functionName?t.functionName:"",s=t.data?t.data:null,o=t.callback?t.callback:!1,h=t.callback?t.callback:this.record.key,a=t.callbackFunction?t.callbackFunction:"";this.record.doEvent&&this.record.doEvent({key:e,functionName:i,data:s,source:this.record,callback:o,callbackComponents:h,callbackFunction:a})},baseGetComponentData(t,e="key"){return this.record.getComponentData?this.record.getComponentData(t,e):null},doEvent(t){const e=t.item.functionName||t.item.functionname,i=t.key?t:t.item;if(this[e]===void 0){console.log("\u8BF7\u5B9A\u4E49 "+e+" \u65B9\u6CD5");return}this.showLoading(),this[e]&&this[e](i),this.hideLoading()},executeEvent(t){const e=t.functionName?t.functionName:"";e&&this[e]!==void 0?this.$nextTick(()=>{setTimeout(()=>{this[e](t)},100)}):console.log("\u6267\u884C\u9519\u8BEF")}},created(){this.init(),this.develop==2&&(this.record.executeEvent=this.executeEvent)},beforeDestroy(){this.sysViewList=[],this.personalViewList=[],this.selectedRows=[],this.sysViewButtons=[],this.fieldData=[],this.componentList=[],this.tableDataSource=[]}};const D={mixins:[b],methods:{}};var L=function(){var e=this,i=e._self._c;return i("div",[i("gd-view-build-designer",{ref:"table",attrs:{record:e.record,develop:e.develop,openMode:e.openMode,height:e.height,foreign:e.foreign,disabledRowId:e.disabledRowId,excludeButtons:e.excludeButtons,lineQuickView:e.lineQuickView},on:{baseOpen:e.open,changeBtn:e.onChangeBtn,changeView:e.onChangeView,changeData:e.onChangeData,changeSelect:e.onChangeSelect,doEvent:e.doEvent}}),i(e.componentForm,{ref:"editForm",tag:"component",attrs:{fieldData:e.fieldData,tableData:e.tableData,recordRelation:e.record,openMode:e.openMode},on:{ok:e.refresh,relationOk:e.baseRelationOk}})],1)},I=[],k=r.normalizeComponent(D,L,I,!1,null,"ca0b408e",null,null);const _=k.exports;const x={name:"GdViewFormDetails",props:{modalAppendToBody:{type:Boolean,default:!0},appendToBody:{type:Boolean,default:!0}},data(){return{record:"",query:{},openType:"",modeType:"",popupType:"dialog",iframeUri:"",showPopup:!1,statu:!1}},computed:{hig(){return`${this.screenHeight}px`},istyle(){return`width:100%;overflow:hidden;height:${this.hig};`},...r.mapGetters(["primaryColor","screenHeight"])},components:{PopupDetails:()=>Promise.resolve().then(()=>P),ViewDetails:()=>Promise.resolve().then(()=>G)},methods:{open(t,e=!1){console.log(t),this.record=t;const i=l.getParamsQuery(t);this.query=i,this.modeType=e?this.modeType:i.mode_type?i.mode_type:"",this.openType=e?this.openType:i.open_type?i.open_type:"popup";const s=this.query.redirect_uri?this.query.redirect_uri:"";if(this.modeType==="request"){this.getRequestDetail();return}if(["authorize_view","authorize_form","authorize_details"].includes(this.modeType)){this.getAuthorizeCode();return}if(this.openType==="iframe"){this.getIframeUri(s);return}if(["redirect_self","redirect_blank"].includes(this.openType)){this.goRedirectUri(s);return}this.showPopup=!0,this.$nextTick(()=>{setTimeout(()=>{const o=`${this.openType}Details`;this.$refs[o]&&this.$refs[o].init()},0)})},getRequestDetail(){if(this.statu)return;const t=this.query.request_url?this.query.request_url:"";if(t==="")return;const e=decodeURIComponent(t),i=e.indexOf("?")===-1?e:e.slice(0,e.indexOf("?")),s=l.getParamsQuery(e);this.statu=!0,d.post(i,s).then(o=>{if(this.statu=!1,o.code!==200){this.$message.error(o.message);return}if(["redirect_self","redirect_blank"].includes(this.openType)){this.goRedirectUri(o.data),this.beaseLoadComplete();return}if(["iframe"].includes(this.openType)){this.getIframeUri(o.data),this.beaseLoadComplete();return}this.open(o.data,!0)})},getAuthorizeCode(){const t=this.query.code?this.query.code:"";if(t){this.Logout().then(e=>{this.getCode(t)});return}this.oauthAuthorize()},oauthAuthorize(){const t=this.query.client_id?this.query.client_id:"";this.query.response_type&&this.query.response_type,p.oauthAuthorize({client_id:t,response_type:"code"}).then(e=>{if(e.code!==200){this.$message.error(e.message);return}const i=this.query.redirect_uri?this.query.redirect_uri:"";if(i==="")return;const s=decodeURIComponent(i);s.indexOf("?")===-1||s.slice(0,s.indexOf("?"));const o=s.indexOf("?")===-1?[]:s.slice(s.indexOf("?")+1).split("&").map(n=>n.split("=")).map(([n,q])=>({key:n,value:q})).concat([{key:"code",value:e.data.code}]);if(["redirect_self","redirect_blank"].includes(this.openType)){this.oauthAuthorizeRedirect(o);return}const h=this.modeType.replace("authorize_","");let a=`?authorize_type=${this.modeType}&mode_type=${h}`,c=`?authorize_type=${this.modeType}&mode_type=${h}&open_type=view`;for(let n=0;n<o.length;n++)a+=`&${o[n].key}=${o[n].value}`,o[n].key!=="open_type"&&(c+=`&${o[n].key}=${o[n].value}`);const m=encodeURIComponent(s.slice(0,s.indexOf("?"))+c);a+=a===""?`?redirect_uri=${m}`:`&redirect_uri=${m}`,this.query.complete_request&&(a+=`&complete_request=${this.query.complete_request}`);const T=l.getParamsQuery(a);this.query=T,this.showPopup=!0,this.$nextTick(()=>{setTimeout(()=>{const n=`${this.openType}Details`;this.$refs[n]&&this.$refs[n].init()},0)})})},oauthAuthorizeRedirect(t){let e="";for(let s=0;s<t.length;s++)e+=`${s===0?"?":"&"}${t[s].key}=${t[s].value}`;const i=this.openType==="redirect_self"?"_self":this.openType==="redirect_blank"?"_blank":"_self";window.open(`${url}${e}`,i)},getCode(t){p.oauthCodeLogin({code:t}).then(e=>{if(e.code!==200){this.$message.error(e.message);return}this.loginSuccess(e.data),this.loginOther()})},goRedirectUri(t){if(t==="")return;const e=decodeURIComponent(t),i=this.openType==="redirect_self"?"_self":this.openType==="redirect_blank"?"_blank":"";window.open(e,i)},getIframeUri(t){t!==""&&(this.iframeUri=decodeURIComponent(t))},beaseLoadComplete(){const t=this.query.complete_request?this.query.complete_request:"";if(t==="")return;const e=decodeURIComponent(t),i=e.indexOf("?")===-1?e:e.slice(0,e.indexOf("?")),s=l.getParamsQuery(e);d.post(i,s)},loginSuccess(t){Vue.ls.set("ACCESS_TOKEN",t.accesstoken),this.$store.commit("SET_TOKEN",t.accesstoken);let e="";for(let i in this.query)["authorize_view","authorize_form","authorize_details"].includes(i)?e+=`${e===""?"?":"&"}${i}=${this.query[i].replace("authorize_","")}`:e+=`${e===""?"?":"&"}${i}=${this.query[i]}`;this.open(e,!0)},loginOther(){this.dictTypeData().then(e=>{});const t=new BroadcastChannel("gd-channel-msg");t.postMessage({type:"login",data:{gdTagName:window.gdTagName}}),t.close()},close(){this.modeType="",this.openType="",this.$nextTick(()=>{setTimeout(()=>{this.$emit("close")},300)})},doEvent(t){const e=`${this.openType}Details`;this.$refs[e]&&this.$refs[e].doEvent&&this.$refs[e].doEvent(t)},...r.mapActions(["Logout","dictTypeData"])}};var F=function(){var e=this,i=e._self._c;return i("div",{staticClass:"gd-vf-details"},[e.showPopup&&e.openType==="popup"?i("PopupDetails",{ref:"popupDetails",attrs:{record:e.record,query:e.query,modalAppendToBody:e.modalAppendToBody,appendToBody:e.appendToBody},on:{ok:function(s){return e.$emit("ok")},beaseLoadComplete:function(s){return e.$emit("beaseLoadComplete")},closed:e.close}}):e.openType==="view"?i("ViewDetails",{ref:"viewDetails",attrs:{record:e.record,query:e.query},on:{ok:function(s){return e.$emit("ok")},closed:e.close,onChangeBtn:s=>e.$emit("changeBtn",s),beaseLoadComplete:function(s){return e.$emit("beaseLoadComplete")}}}):e.openType==="iframe"?i("iframe",{style:e.istyle,attrs:{id:"iframe",height:e.hig,src:e.iframeUri,frameBorder:"0"}}):e._e()],1)},B=[],O=r.normalizeComponent(x,F,B,!1,null,"127122b3",null,null);const u=O.exports;u.install=function(t){t.component(u.name,u)};const S={props:{record:{type:String,default:""},query:{type:Object,default:()=>{}},modalAppendToBody:{type:Boolean,default:!0},appendToBody:{type:Boolean,default:!0}},data(){return{modeType:"",popupMode:"drawer",fullscreen:!1,confirmLoading:!1,visible:!1,width:"80%",iframeUri:"",sysViewButtons:[]}},components:{ViewItem:()=>Promise.resolve().then(()=>v),FormItem:()=>Promise.resolve().then(()=>$),DetailsItem:()=>Promise.resolve().then(()=>w)},computed:{urls(){return this.iframeUri.indexOf("?")===-1?this.iframeUri:this.iframeUri.slice(0,this.iframeUri.indexOf("?"))},title(){return""},hig(){return`${this.height-24}px`},istyle(){return`width:100%;overflow:hidden;height:${this.hig};`},height(){return this.popupMode==="drawer"?this.screenHeight-48:this.fullscreen?this.screenHeight-72:this.screenHeight-230},...r.mapGetters(["formMode","screenHeight"])},methods:{onChangeBtn(t){this.sysViewButtons=t},init(){const t=this.query.popup_wid?this.query.popup_wid:"80%",e=this.query.popup_fullscreen?this.query.popup_fullscreen:"";this.width=isNaN(Number(t))?t:Number(t)+"px",this.fullscreen=e==="true";let i=this.query.popup_type?this.query.popup_type:"drawer";i==="followSystem"&&(i=this.formMode),this.popupMode=i,this.modeType=this.query.mode_type?this.query.mode_type:"form";let s=this.query.redirect_uri?decodeURIComponent(this.query.redirect_uri):"";this.iframeUri=s,console.log(this.iframeUri),this.visible=!0,this.query.open_type&&this.query.open_type!=="popup"&&(this.modeType=this.query.open_type),this.modeType==="iframe"&&window.addEventListener("message",this.monitorIframe),this.$nextTick(()=>{const o=`${this.modeType}Item`;this.$refs[o]&&this.$refs[o].init()})},toggleFullscreen(){this.fullscreen=!this.fullscreen},closed(){this.modeType="",this.fullscreen=!1,this.visible=!1,this.$emit("closed")},doEvent(t){if(this.modeType==="iframe"){document.getElementById("gd-view-iframe").contentWindow.postMessage({data:JSON.stringify(t),eventType:"btn-click"},this.urls);return}const e=`${this.modeType}Item`;this.$refs[e]&&this.$refs[e].doEvent(t)},monitorIframe(t){if(t.data.eventType==="form-btn"){this.onChangeBtn(t.data.data&&l.isJson(t.data.data)?JSON.parse(t.data.data):[]);return}if(t.data.eventType==="load-complete"){this.beaseLoadComplete();return}t.data.eventType==="close-drawer"&&this.closed()},beaseLoadComplete(t){console.log(this.query);const e=this.query.complete_request?this.query.complete_request:"";if(e==="")return;const i=decodeURIComponent(e),s=i.indexOf("?")===-1?i:i.slice(0,i.indexOf("?")),o=l.getParamsQuery(i);d.post(s,o)}},beforeDestory(){window.removeEventListener("message",this.monitorIframe)}};var V=function(){var e=this,i=e._self._c;return i("div",[e.popupMode==="dialog"?i("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:e.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:e.fullscreen,visible:e.visible,width:e.width,center:!0,"close-on-click-modal":!1,"append-to-body":e.appendToBody,"modal-append-to-body":e.modalAppendToBody,top:"80px","show-close":!1},on:{"update:visible":function(s){e.visible=s},closed:e.closed}},[i("gd-modal-title",{attrs:{slot:"title",title:e.title,fullscreen:e.fullscreen,buttons:e.sysViewButtons,confirmLoading:e.confirmLoading,emitFun:!0,showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.toggleFullscreen,close:e.closed},slot:"title"}),e.visible?i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],staticStyle:{"min-height":"30vh"}},[e.modeType==="view"?i("ViewItem",{ref:"viewItem",attrs:{query:e.query,height:e.height}}):e.modeType==="form"?i("FormItem",{ref:"formItem",attrs:{query:e.query,height:e.height},on:{onChangeBtn:e.onChangeBtn,closed:e.closed,ok:function(s){return e.$emit("ok")},beaseLoadComplete:function(s){return e.$emit("beaseLoadComplete")}}}):e.modeType==="details"?i("DetailsItem",{ref:"detailsItem",attrs:{query:e.query,height:e.height}}):e.modeType==="iframe"?i("iframe",{style:e.istyle,attrs:{id:"gd-view-iframe",height:e.hig,src:e.iframeUri,frameBorder:"0"}}):e._e()],1):e._e()],1):i("el-drawer",{attrs:{visible:e.visible,"close-on-press-escape":!1,"append-to-body":e.appendToBody,"modal-append-to-body":e.modalAppendToBody,size:e.width,"custom-class":"gd-drawer-form","show-close":!1},on:{"update:visible":function(s){e.visible=s}}},[i("gd-modal-title",{attrs:{slot:"title",title:e.title,fullscreen:e.fullscreen,buttons:e.sysViewButtons,confirmLoading:e.confirmLoading,emitFun:!0,showFullscreen:!1,showClose:!0},on:{changeEvent:e.doEvent,close:e.closed},slot:"title"}),e.visible?i("div",{staticStyle:{height:"100%"}},[e.modeType==="view"?i("ViewItem",{ref:"viewItem",attrs:{query:e.query,height:e.height}}):e.modeType==="form"?i("FormItem",{ref:"formItem",attrs:{query:e.query,height:e.height},on:{onChangeBtn:e.onChangeBtn,closed:e.closed,ok:function(s){return e.$emit("ok")},beaseLoadComplete:function(s){return e.$emit("beaseLoadComplete")}}}):e.modeType==="details"?i("DetailsItem",{ref:"detailsItem",attrs:{query:e.query,height:e.height}}):e.modeType==="iframe"?i("iframe",{style:e.istyle,attrs:{id:"gd-view-iframe",height:e.hig,src:e.iframeUri,frameBorder:"0"}}):e._e()],1):e._e()],1)],1)},R=[],N=r.normalizeComponent(S,V,R,!1,null,"1aaea733",null,null);const E=N.exports,P=Object.freeze(Object.defineProperty({__proto__:null,default:E},Symbol.toStringTag,{value:"Module"}));const j={props:{record:{type:String,default:""},query:{type:Object,default:()=>{}}},data(){return{modeType:""}},components:{ViewItem:()=>Promise.resolve().then(()=>v),FormItem:()=>Promise.resolve().then(()=>$),DetailsItem:()=>Promise.resolve().then(()=>w)},computed:{height(){return this.screenHeight-72},...r.mapGetters(["screenHeight"])},methods:{init(){this.modeType=this.query.mode_type?this.query.mode_type:"form",this.visible=!0,this.$nextTick(()=>{const t=`${this.modeType}Item`;this.$refs[t]&&this.$refs[t].init()})},doEvent(t){const e=`${this.modeType}Item`;this.$refs[e]&&this.$refs[e].doEvent&&this.$refs[e].doEvent(t)}}};var U=function(){var e=this,i=e._self._c;return i("div",[e.modeType==="view"?i("ViewItem",{ref:"viewItem",attrs:{query:e.query,height:e.height}}):e.modeType==="form"?i("FormItem",{ref:"formItem",attrs:{query:e.query,height:e.height,modeType:"component"},on:{ok:function(s){return e.$emit("ok")},onChangeBtn:s=>e.$emit("onChangeBtn",s),closed:function(s){return e.$emit("closed")},beaseLoadComplete:function(s){return e.$emit("beaseLoadComplete")}}}):e.modeType==="details"?i("DetailsItem",{ref:"detailsItem",attrs:{query:e.query,height:e.height}}):e._e()],1)},M=[],z=r.normalizeComponent(j,U,M,!1,null,"dd2e4515",null,null);const A=z.exports,G=Object.freeze(Object.defineProperty({__proto__:null,default:A},Symbol.toStringTag,{value:"Module"}));const H={props:{height:{type:Number,default:600},query:{type:Object,default:()=>{}}},data(){return{record:{},openMode:1,viewId:"",tableId:"",formId:"",show:!1,confirmLoading:!1}},computed:{table(){const t=this.tableLists.filter(e=>e.id===this.tableId)[0];return t||{}},getHeight(){return this.height-24},componentItem(){const t=this.$importViewFiles();let e=`../views/main/${this.table.tablename}/index.vue`,i=t[e];return i?i.default:_},...r.mapGetters(["tableLists"])},methods:{init(){this.viewId=this.query.view_id?Number(this.query.view_id):"",this.tableId=this.query.table_id?Number(this.query.table_id):"",this.formId=this.query.form_id?Number(this.query.form_id):"",this.tableId!==""&&this.getAllTable().then(t=>{this.record={options:{table:this.table,form:{id:this.formId},view:{id:this.viewId},viewWeights:"1"}},this.$nextTick(()=>{setTimeout(()=>{this.show=!0},0)})})},getAllTable(){return this.tableLists.length>0?new Promise(t=>{t()}):g.codeGenerateInformationList({busName:""}).then(t=>(t.success&&this.TableLists(t.data),t.data))}}};var Q=function(){var e=this,i=e._self._c;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],staticStyle:{"min-height":"300px"}},[e.show?i(e.componentItem,{ref:"lookuptable",tag:"component",attrs:{record:e.record,height:e.getHeight,develop:2,openMode:e.openMode}}):e._e()],1)},K=[],J=r.normalizeComponent(H,Q,K,!1,null,"5b928d29",null,null);const W=J.exports,v=Object.freeze(Object.defineProperty({__proto__:null,default:W},Symbol.toStringTag,{value:"Module"}));const X={props:{query:{type:Object,default:()=>{}},modeType:{type:String,default:"component"}},data(){return{record:{},openMode:1,tableId:"",formId:"",show:!1,formData:{},fieldData:{},sysViewButtons:[],confirmLoading:!1}},computed:{table(){const t=this.tableLists.filter(e=>e.id===this.tableId)[0];return t||{}},getHeight(){return this.height-24},componentItem(){const t=this.$importViewFiles();let e=`../views/main/${this.table.tablename}/editForm.vue`,i=t[e];return i?i.default:y.FormDesigner},...r.mapGetters(["tableLists"])},methods:{beaseLoadComplete(t){console.log(this.query),this.$emit("beaseLoadComplete");const e=this.query.complete_request?this.query.complete_request:"";if(e==="")return;const i=decodeURIComponent(e),s=i.indexOf("?")===-1?i:i.slice(0,i.indexOf("?")),o=l.getParamsQuery(i);d.post(s,o)},onChangeBtn(t){this.sysViewButtons=t,this.$emit("onChangeBtn",t)},init(){this.confirmLoading=!0,this.tableId=this.query.table_id?Number(this.query.table_id):"",this.formId=this.query.form_id?Number(this.query.form_id):"",this.id=this.query.id?Number(this.query.id):"",this.tableId!==""&&Promise.all([this.sysFormDetails(),this.getLoadData(),this.getAllTable()]).then(t=>{this.record={options:{table:this.table,form:{id:this.formId}}},this.show=!0,this.confirmLoading=!1,this.$nextTick(()=>{setTimeout(()=>{this.$refs.editForm&&this.$refs.editForm.setFormRecord(this.formData).then(()=>{this.$refs.editForm.open({id:this.id,title:""})})},0)})})},getLoadData(){return f.onlineFormGetCodeGenerateList({codeGenId:this.tableId}).then(t=>(this.fieldData=t.data,t.data))},sysFormDetails(){return d.baseTableData({tableId:this.tableId}).then(t=>{if(t.code===200){const e=t.data.formlist.filter(i=>i.id===this.formId)[0];console.log(e),this.formData=e}return t.data})},getAllTable(){return this.tableLists.length>0?new Promise(t=>{t()}):g.codeGenerateInformationList({busName:""}).then(t=>(t.success&&this.TableLists(t.data),t.data))},doEvent(t){this.$refs.editForm&&this.$refs.editForm.doEvent(t)},closed(){console.log("\u5173\u95ED"),this.$emit("closed")},...r.mapActions(["TableLists"])}};var Y=function(){var e=this,i=e._self._c;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],staticStyle:{"min-height":"300px",height:"100%"}},[e.show?i(e.componentItem,{ref:"editForm",tag:"component",attrs:{recordRelation:e.record,openMode:e.openMode,tableData:e.table,fieldData:e.fieldData,modeType:e.modeType},on:{onChangeBtn:e.onChangeBtn,closed:e.closed,ok:function(s){return e.$emit("ok")},onLoadCompleted:e.beaseLoadComplete}}):e._e()],1)},Z=[],ee=r.normalizeComponent(X,Y,Z,!1,null,"b8e777c7",null,null);const te=ee.exports,$=Object.freeze(Object.defineProperty({__proto__:null,default:te},Symbol.toStringTag,{value:"Module"}));const ie={props:{query:{type:Object,default:()=>{}}},data(){return{dictCode:"messagetype",messageType:"",componentItem:""}},computed:{componentForm(){return this.componentItem==="GdNoticeDetails"?C.noticeItem:""}},methods:{onLoadCompleted(){const t=this.query.complete_request?this.query.complete_request:"";if(t==="")return;const e=decodeURIComponent(t),i=e.indexOf("?")===-1?e:e.slice(0,e.indexOf("?")),s=l.getParamsQuery(e);d.post(i,s)},init(){if(this.messageType=this.query.message_type?this.query.message_type:"",this.messageType==="")return;const e=this.getDictionary(this.dictCode).filter(s=>s.code===this.messageType)[0];if(!e)return;const i=this.query.id?this.query.id:"";this.componentItem=e.remark,this.$nextTick(()=>{setTimeout(()=>{this.$refs.editForm&&this.$refs.editForm.open({id:i})},0)})},getDictionary(t){return this.$options.filters.dictData(t)}}};var se=function(){var e=this,i=e._self._c;return e.componentForm?i(e.componentForm,{ref:"editForm",tag:"component",attrs:{modeType:"component"},on:{onLoadCompleted:e.onLoadCompleted}}):e._e()},oe=[],re=r.normalizeComponent(ie,se,oe,!1,null,"2e905682",null,null);const ne=re.exports,w=Object.freeze(Object.defineProperty({__proto__:null,default:ne},Symbol.toStringTag,{value:"Module"}));exports.GDpackage=u;exports.ViewTable=_;exports.viewMixins=b;
@@ -1,163 +0,0 @@
1
- import { g as o } from "./page.build.ae61a39b.mjs";
2
- import { n as l } from "./components.chartbi.7356b244.mjs";
3
- import "./form.designer.build.7dc12e87.mjs";
4
- import "vue";
5
- import "./http.main.aefea27d.mjs";
6
- import "./page.designer.componentstree.cdabec2d.mjs";
7
- import "./mobile.designer.componentstree.9439895e.mjs";
8
- import "./components.table.389ab22a.mjs";
9
- import "./utils.util.js.333daba2.mjs";
10
- import "./utils.datepicker.js.5549a741.mjs";
11
- import "./components.form.8047a9c3.mjs";
12
- import "./http.filemanage.c0de21d6.mjs";
13
- import "./http.tabledevelopment.3dcb3e97.mjs";
14
- import "./http.codegeneratemanage.b123bab3.mjs";
15
- import "./http.duplicatechecking.9b79ce21.mjs";
16
- import "./http.menumanage.3060f4c7.mjs";
17
- import "./utils.echarts.js.d1bb8ac6.mjs";
18
- const r = {
19
- props: {
20
- record: {
21
- type: Object,
22
- required: !0
23
- },
24
- develop: {
25
- type: [Number, String],
26
- default: 1
27
- },
28
- isFlexLayout: {
29
- type: Boolean,
30
- default: !1
31
- }
32
- },
33
- data() {
34
- return {
35
- visible: !1,
36
- show: !1,
37
- statuVisible: !0
38
- };
39
- },
40
- computed: {
41
- getVisible() {
42
- return this.options.particle === "component" ? !0 : this.visible;
43
- },
44
- options() {
45
- return this.record.options;
46
- },
47
- astyle() {
48
- const s = this.options.top ? this.options.top : "0", t = this.options.right ? this.options.right : "12", i = isNaN(Number(s)) ? s : Number(s) + "px", n = isNaN(Number(t)) ? t : Number(t) + "px", e = this.record.css, c = {
49
- fontSize: e.fontSize,
50
- color: e.color,
51
- lineHeight: e.lineHeight
52
- };
53
- return `${o(c)}top:calc(${i} + var(--dialog-head));right:${n};`;
54
- },
55
- fstyle() {
56
- return `${o(this.options)}${o(this.record.css)}${this.iconStyle}`;
57
- },
58
- cstyle() {
59
- const s = this.options.openWidth ? this.options.openWidth : "45";
60
- return `${o({
61
- flexWidth: s,
62
- flexUnit: this.options.openUnit
63
- })}${o(this.record.css)}`;
64
- },
65
- iconStyle() {
66
- return `${this.record.customCss ? this.record.customCss : ""}`;
67
- },
68
- mstyle() {
69
- const s = this.options.wrapperClosable ? "cursor: pointer;" : "", t = this.options.hasModal ? "background:rgba(0,0,0,.1);" : "";
70
- return `${s}${t}`;
71
- },
72
- getIcon() {
73
- const s = this.options.openIcon ? this.options.openIcon : "gd-icon-youjiantou_huaban", t = this.options.closeIcon ? this.options.closeIcon : "gd-icon-zuojiantou_huaban";
74
- return this.visible ? t : s;
75
- },
76
- getCloseIcon() {
77
- return this.options.closeIcon ? this.options.closeIcon : "gd-icon-zuojiantou_huaban";
78
- },
79
- cistyle() {
80
- const s = this.options.top ? this.options.top : "20", t = isNaN(Number(s)) ? s : Number(s) + "px", i = this.options.openWidth ? this.options.openWidth : "45", n = this.options.openUnit ? this.options.openUnit : "%", e = this.options.positionMode === "fixed" && this.options.positioning === "absolute" ? "10%" : "0px";
81
- return `top:calc(${t} + var(--dialog-head) + ${e} );right:calc(${i}${n} - 15px);`;
82
- },
83
- istyle() {
84
- const s = this.record.css, t = {
85
- fontSize: s.fontSize,
86
- color: s.color,
87
- fontWeight: s.fontWeight
88
- };
89
- return `${o(t)}`;
90
- },
91
- gclass() {
92
- return this.record.customClass ? `${this.record.customClass}` : "";
93
- }
94
- },
95
- methods: {
96
- setVisibility(s) {
97
- const t = s.data === "1";
98
- this.statuVisible = t;
99
- },
100
- mengClose() {
101
- this.options.wrapperClosable && this.selIcon();
102
- },
103
- selIconAbsolute() {
104
- this.visible = !this.visible;
105
- },
106
- selIcon() {
107
- if (this.visible = !this.visible, this.options.particle === "popup" && this.options.positionMode === "absolute")
108
- return;
109
- const s = this.options.openWidth ? this.options.openWidth : "45", t = this.options.openUnit ? this.options.openUnit : "%";
110
- let i = "";
111
- this.visible && this.options.positioning === "fixed" && (i = `${s}${t}`), this.record.changeVisible && this.record.changeVisible({ data: this.record, visible: this.visible, wid: i });
112
- },
113
- open() {
114
- this.visible = !0;
115
- },
116
- closed(s) {
117
- this.visible = !1;
118
- },
119
- isDefaultVisible() {
120
- this.$nextTick(() => {
121
- setTimeout(() => {
122
- const s = this.options.defaultVisible !== void 0 ? this.options.defaultVisible : 0;
123
- this.develop === 2 && s === 1 && this.options.particle === "component" && this.options.positionMode === "fixed" ? this.selIcon() : this.develop === 2 && s === 1 && this.options.particle === "popup" && this.options.positionMode === "absolute" && this.selIconAbsolute();
124
- }, 200);
125
- });
126
- },
127
- init() {
128
- this.$nextTick(() => {
129
- setTimeout(() => {
130
- this.options.open = this.open, this.options.closed = this.closed;
131
- }, 100), setTimeout(() => {
132
- this.isDefaultVisible();
133
- }, 200), setTimeout(() => {
134
- this.show = !0;
135
- }, 300);
136
- });
137
- },
138
- executeEvent(s) {
139
- const t = s.functionName ? s.functionName : "";
140
- t && this[t] !== void 0 ? this[t](s) : console.log("\u6267\u884C\u9519\u8BEF");
141
- }
142
- },
143
- mounted() {
144
- this.record.executeEvent = this.executeEvent, this.record.setVisibility = this.setVisibility, this.init();
145
- }
146
- };
147
- var p = function() {
148
- var t = this, i = t._self._c;
149
- return i("div", { staticClass: "gd-drawer-container" }, [t.options.particle === "popup" && t.options.positionMode === "absolute" && t.statuVisible ? i("div", { staticClass: "drawer-container-absolute", style: t.astyle }, [t.show ? i("i", { staticClass: "gd-icons", class: t.getIcon, style: t.istyle, on: { click: t.selIcon } }) : t._e()]) : t._e(), i("div", { directives: [{ name: "show", rawName: "v-show", value: t.getVisible, expression: "getVisible" }], class: t.gclass }, [t.options.particle === "component" && t.options.positionMode === "fixed" && t.statuVisible ? i("div", { staticClass: "drawer-container-fixed", style: t.fstyle }, [i("i", { staticClass: "gd-icons", class: t.getIcon, style: t.istyle, on: { click: t.selIcon } })]) : t._e(), t.options.particle === "popup" ? [i("div", { directives: [{ name: "show", rawName: "v-show", value: t.visible, expression: "visible" }], staticClass: "drawer-content", style: t.cstyle }, [t._t("drcontainContent")], 2), t.options.positionMode === "absolute" ? i("div", { staticClass: "drawer-content-meng", style: t.mstyle, on: { click: t.mengClose } }) : t._e(), t.options.positionMode === "absolute" && t.options.showClose || t.options.positionMode === "fixed" && t.options.positioning === "absolute" ? i("div", { staticClass: "drawer-content-close", style: t.cistyle }, [i("i", { staticClass: "gd-icons", class: t.getCloseIcon, style: t.istyle, on: { click: t.selIcon } })]) : t._e()] : t._e()], 2)]);
150
- }, a = [], h = /* @__PURE__ */ l(
151
- r,
152
- p,
153
- a,
154
- !1,
155
- null,
156
- "e4577efd",
157
- null,
158
- null
159
- );
160
- const W = h.exports;
161
- export {
162
- W as default
163
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./page.build.7ac1ee9b.js"),r=require("./components.chartbi.13a8a7b5.js");require("./form.designer.build.2bcc355d.js");require("vue");require("./http.main.2f8a6936.js");require("./page.designer.componentstree.74a3a114.js");require("./mobile.designer.componentstree.365945a3.js");require("./components.table.d016f609.js");require("./utils.util.js.c0ba699b.js");require("./utils.datepicker.js.0a5a699e.js");require("./components.form.14ed3374.js");require("./http.filemanage.7e6e3e1a.js");require("./http.tabledevelopment.a880bb76.js");require("./http.codegeneratemanage.e3db2f09.js");require("./http.duplicatechecking.ee5c414c.js");require("./http.menumanage.6d740f2c.js");require("./utils.echarts.js.461a74e7.js");const l={props:{record:{type:Object,required:!0},develop:{type:[Number,String],default:1},isFlexLayout:{type:Boolean,default:!1}},data(){return{visible:!1,show:!1,statuVisible:!0}},computed:{getVisible(){return this.options.particle==="component"?!0:this.visible},options(){return this.record.options},astyle(){const s=this.options.top?this.options.top:"0",t=this.options.right?this.options.right:"12",e=isNaN(Number(s))?s:Number(s)+"px",n=isNaN(Number(t))?t:Number(t)+"px",o=this.record.css,c={fontSize:o.fontSize,color:o.color,lineHeight:o.lineHeight};return`${i.getCss(c)}top:calc(${e} + var(--dialog-head));right:${n};`},fstyle(){return`${i.getCss(this.options)}${i.getCss(this.record.css)}${this.iconStyle}`},cstyle(){const s=this.options.openWidth?this.options.openWidth:"45";return`${i.getCss({flexWidth:s,flexUnit:this.options.openUnit})}${i.getCss(this.record.css)}`},iconStyle(){return`${this.record.customCss?this.record.customCss:""}`},mstyle(){const s=this.options.wrapperClosable?"cursor: pointer;":"",t=this.options.hasModal?"background:rgba(0,0,0,.1);":"";return`${s}${t}`},getIcon(){const s=this.options.openIcon?this.options.openIcon:"gd-icon-youjiantou_huaban",t=this.options.closeIcon?this.options.closeIcon:"gd-icon-zuojiantou_huaban";return this.visible?t:s},getCloseIcon(){return this.options.closeIcon?this.options.closeIcon:"gd-icon-zuojiantou_huaban"},cistyle(){const s=this.options.top?this.options.top:"20",t=isNaN(Number(s))?s:Number(s)+"px",e=this.options.openWidth?this.options.openWidth:"45",n=this.options.openUnit?this.options.openUnit:"%",o=this.options.positionMode==="fixed"&&this.options.positioning==="absolute"?"10%":"0px";return`top:calc(${t} + var(--dialog-head) + ${o} );right:calc(${e}${n} - 15px);`},istyle(){const s=this.record.css,t={fontSize:s.fontSize,color:s.color,fontWeight:s.fontWeight};return`${i.getCss(t)}`},gclass(){return this.record.customClass?`${this.record.customClass}`:""}},methods:{setVisibility(s){const t=s.data==="1";this.statuVisible=t},mengClose(){this.options.wrapperClosable&&this.selIcon()},selIconAbsolute(){this.visible=!this.visible},selIcon(){if(this.visible=!this.visible,this.options.particle==="popup"&&this.options.positionMode==="absolute")return;const s=this.options.openWidth?this.options.openWidth:"45",t=this.options.openUnit?this.options.openUnit:"%";let e="";this.visible&&this.options.positioning==="fixed"&&(e=`${s}${t}`),this.record.changeVisible&&this.record.changeVisible({data:this.record,visible:this.visible,wid:e})},open(){this.visible=!0},closed(s){this.visible=!1},isDefaultVisible(){this.$nextTick(()=>{setTimeout(()=>{const s=this.options.defaultVisible!==void 0?this.options.defaultVisible:0;this.develop===2&&s===1&&this.options.particle==="component"&&this.options.positionMode==="fixed"?this.selIcon():this.develop===2&&s===1&&this.options.particle==="popup"&&this.options.positionMode==="absolute"&&this.selIconAbsolute()},200)})},init(){this.$nextTick(()=>{setTimeout(()=>{this.options.open=this.open,this.options.closed=this.closed},100),setTimeout(()=>{this.isDefaultVisible()},200),setTimeout(()=>{this.show=!0},300)})},executeEvent(s){const t=s.functionName?s.functionName:"";t&&this[t]!==void 0?this[t](s):console.log("\u6267\u884C\u9519\u8BEF")}},mounted(){this.record.executeEvent=this.executeEvent,this.record.setVisibility=this.setVisibility,this.init()}};var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"gd-drawer-container"},[t.options.particle==="popup"&&t.options.positionMode==="absolute"&&t.statuVisible?e("div",{staticClass:"drawer-container-absolute",style:t.astyle},[t.show?e("i",{staticClass:"gd-icons",class:t.getIcon,style:t.istyle,on:{click:t.selIcon}}):t._e()]):t._e(),e("div",{directives:[{name:"show",rawName:"v-show",value:t.getVisible,expression:"getVisible"}],class:t.gclass},[t.options.particle==="component"&&t.options.positionMode==="fixed"&&t.statuVisible?e("div",{staticClass:"drawer-container-fixed",style:t.fstyle},[e("i",{staticClass:"gd-icons",class:t.getIcon,style:t.istyle,on:{click:t.selIcon}})]):t._e(),t.options.particle==="popup"?[e("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"drawer-content",style:t.cstyle},[t._t("drcontainContent")],2),t.options.positionMode==="absolute"?e("div",{staticClass:"drawer-content-meng",style:t.mstyle,on:{click:t.mengClose}}):t._e(),t.options.positionMode==="absolute"&&t.options.showClose||t.options.positionMode==="fixed"&&t.options.positioning==="absolute"?e("div",{staticClass:"drawer-content-close",style:t.cistyle},[e("i",{staticClass:"gd-icons",class:t.getCloseIcon,style:t.istyle,on:{click:t.selIcon}})]):t._e()]:t._e()],2)])},p=[],h=r.normalizeComponent(l,a,p,!1,null,"e4577efd",null,null);const u=h.exports;exports.default=u;
@@ -1 +0,0 @@
1
- "use strict";const o=require("./components.chartbi.13a8a7b5.js"),i={props:{modeType:{type:String,default:"editForm"},fieldData:{type:Array,default:()=>[]},tableData:{type:Object,default:()=>({})},recordRelation:{type:Object,default:()=>({})},openMode:{type:[String,Number],default:1},isRelevance:{type:Boolean,default:!1}},data(){return{protoFormData:{},statu:!1,visible:!1,id:"",record:null,confirmLoading:!1,parameterData:{},formRecord:{},formRecordSource:{},formData:{},sysViewButtons:[],allField:[],excludeButtons:[],componentList:[]}},computed:{options(){return this.formData.options}},methods:{showLoading(){this.statu=!0,this.$refs.form.showLoading()},hideLoading(e=1500){this.$refs.form.hideLoading(e),setTimeout(()=>{this.statu=!1},e)},save(e){this.id===""?this.baseAdd():this.baseEdit()},saveClose(e){this.id===""?this.baseAdd(1):this.baseEdit(1)},saveAdd(e){this.baseAdd(3)},deactivateData(){this.baseEnable(0)},enableData(){this.baseEnable()},assign(e){this.baseAssign(e)},teamSharing(e){this.baseTeamSharing(e)},setFormRecord(e){return new Promise(t=>{this.$nextTick(()=>{setTimeout(async()=>{const s=this.$refs.form;s||t(!1),s.baseCustomComponents&&s.baseCustomComponents(this.componentList);const a=await s.setFormRecord(e),r=JSON.parse(JSON.stringify(a));this.protoFormData=Object.assign({},r),this.formRecordSource=r.formRecordSource,this.formData=r.formData,this.allField=r.allField,this.sysViewButtons=r.sysViewButtons,t(!0)},100)})})},open(e){this.visible=!0,this.record=e,this.$refs.form.open(e)},openDisplay(e,t="open"){if(t==="refresh"){this.$refs.form.setDisplayId(e);return}this.visible=!0,this.record=e,this.$refs.form.openDisplay(e)},openCopyData(e){this.visible=!0,this.record=e,this.$refs.form.openCopyData(e)},onChangeParameter(e){this.parameterData=e},onChangeId(e){this.id=e},onChangeBtn(e){this.sysViewButtons=e,this.$emit("onChangeBtn",e)},getFormAllData(e=!0,t=!1){return this.$refs.form.getFormAllData(e,t).then(s=>s)},refresh(e=!0,t){this.$refs.form.refresh(e,t)},baseRelationRefresh(e=!0,t,s={}){this.$refs.form.baseViewRefreshFrom(e,t,s)},beaseLoadComplete(e){this.$emit("onLoadCompleted",e);const t=e==="changeStage"?"onChangeStage":"onLoadCompleted";this[t]===void 0&&this.func===void 0||this[t]&&this[t](e)},baseAdd(e=2){return this.$refs.form.baseAdd(e)},baseEdit(e=2){return this.$refs.form.baseEdit(e)},baseEnable(e=1){return this.$refs.form.baseEnable(e)},baseAssign(e){this.$refs.form.baseAssign(e)},baseTeamSharing(e){this.$refs.form.baseTeamSharing(e)},baseSetError(e){this.$refs.form.baseSetError(e)},baseSetVal(e,t=!0){this.$refs.form.baseSetVal(e,t)},baseSetEssential(e){this.$refs.form.baseSetEssential(e)},baseSetVisibility(e){this.$refs.form.baseSetVisibility(e)},baseSetDefaultsVal(e,t=!0){this.$refs.form.baseSetDefaultsVal(e,t)},baseSetLocking(e){this.$refs.form.baseSetLocking(e)},baseSetEmpty(e,t=!0){this.$refs.form.baseSetEmpty(e,t)},baseClearValidate(e){this.$refs.form.baseClearValidate(e)},baseResetFields(){this.$refs.form.baseResetFields()},baseSetData(e,t=!0){this.$refs.form.baseSetData(e,t)},baseChange(e){let t=this.allField.filter(a=>a.options.columnName==e.options.columnName)[0];const s="onChange";this[s]===void 0&&this.func===void 0||this.$nextTick(()=>{setTimeout(()=>{this[s]&&this[s]({value:t?this.parameterData[e.options.columnName]:null,item:e})},0)})},baseDisableALL(){this.$refs.form.baseDisableALL()},baseGetItemList(e){return this.$refs.form.baseGetItemList(e).then(t=>t)},baseMountData(e){this.$refs.form.baseMountData(e)},baseParserData(e){return this.$refs.form.baseParserData(e)},baseBtnsStatus(e){this.$refs.form.baseBtnsStatus(e)},baseForceShowBtns(e){this.$refs.form.baseForceShowBtns(e)},baseComponentsInit(e){this.$refs.form.baseComponentsInit(e)},baseClosed(){this.$refs.form.closed()},baseAddFlowAgain(){return this.$refs.form.baseAddFlowAgain()},baseDisableAdvance(e){this.$refs.form.baseDisableAdvance(e)},baseSetTitlePrefix(e){this.$refs.form.baseSetTitlePrefix(e)},closed(){this.visible=!1,this.$emit("closed")},doEvent(e){const t=e.item.functionName||e.item.functionname,s=e.key?e:e.item;if(this[t]===void 0){console.log("\u8BF7\u5B9A\u4E49 "+t+" \u65B9\u6CD5");return}this.showLoading(),this[t]&&this[t](s),this.hideLoading()}},beforeDestroy(){this.protoFormData={},this.formRecord={},this.formRecordSource={},this.formData={},this.allField=[]}};const n={name:"GdFormBuildDesigner",mixins:[i]};var f=function(){var t=this,s=t._self._c;return s("gd-form-build",{ref:"form",attrs:{modeType:t.modeType,fieldData:t.fieldData,tableData:t.tableData,recordRelation:t.recordRelation,openMode:t.openMode,excludeButtons:t.excludeButtons,isRelevance:t.isRelevance},on:{doEvent:t.doEvent,change:t.baseChange,changeParameter:t.onChangeParameter,changeId:t.onChangeId,changeBtn:t.onChangeBtn,closed:t.closed,relationOk:a=>t.$emit("relationOk",a),ok:function(a){return t.$emit("ok")},onLoadCompleted:t.beaseLoadComplete}})},h=[],m=o.normalizeComponent(n,f,h,!1,null,"52dfaf58",null,null);const l=m.exports;exports.FormDesigner=l;exports.formMixins=i;