@vipl520/dk-ui 1.0.17 → 1.0.19

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index.js +907 -428
  3. package/dist/index.min.js +7 -7
  4. package/dist/index.min.js.map +1 -1
  5. package/dist/index.min.mjs +7 -7
  6. package/dist/index.min.mjs.map +1 -1
  7. package/dist/index.mjs +907 -428
  8. package/dist/web-types.json +1 -1
  9. package/es/api/diy.d.ts +8 -0
  10. package/es/api/diy.mjs +64 -0
  11. package/es/api/diy.mjs.map +1 -0
  12. package/es/form/src/form.vue2.mjs +9 -0
  13. package/es/form/src/form.vue2.mjs.map +1 -1
  14. package/es/page-diy/index.d.ts +2 -0
  15. package/es/page-diy/src/components/DiyCloud.vue.d.ts +51 -0
  16. package/es/page-diy/src/components/DiyCloud.vue.mjs +413 -0
  17. package/es/page-diy/src/components/DiyCloud.vue.mjs.map +1 -0
  18. package/es/page-diy/src/page-diy.vue.d.ts +2 -0
  19. package/es/page-diy/src/page-diy.vue.mjs +28 -10
  20. package/es/page-diy/src/page-diy.vue.mjs.map +1 -1
  21. package/es/page-diy/style/cloud.css +1 -0
  22. package/es/page-diy/style/cloud.scss +100 -0
  23. package/es/page-diy/style/index.css +1 -1
  24. package/es/page-diy/style/index.scss +1 -0
  25. package/lib/api/diy.d.ts +8 -0
  26. package/lib/api/diy.js +73 -0
  27. package/lib/api/diy.js.map +1 -0
  28. package/lib/form/src/form.vue2.js +9 -0
  29. package/lib/form/src/form.vue2.js.map +1 -1
  30. package/lib/page-diy/index.d.ts +2 -0
  31. package/lib/page-diy/src/components/DiyCloud.vue.d.ts +51 -0
  32. package/lib/page-diy/src/components/DiyCloud.vue.js +417 -0
  33. package/lib/page-diy/src/components/DiyCloud.vue.js.map +1 -0
  34. package/lib/page-diy/src/page-diy.vue.d.ts +2 -0
  35. package/lib/page-diy/src/page-diy.vue.js +28 -10
  36. package/lib/page-diy/src/page-diy.vue.js.map +1 -1
  37. package/lib/page-diy/style/cloud.css +1 -0
  38. package/lib/page-diy/style/cloud.scss +100 -0
  39. package/lib/page-diy/style/index.css +1 -1
  40. package/lib/page-diy/style/index.scss +1 -0
  41. package/package.json +1 -1
@@ -0,0 +1,417 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var diy = require('../../../api/diy.js');
6
+ var vue = require('vue');
7
+ var _pluginVue_exportHelper = require('../../../_virtual/_plugin-vue_export-helper.js');
8
+
9
+ const _sfc_main = {
10
+ name: 'DiyCloud',
11
+ props: {
12
+ pageName: {
13
+ default: '',
14
+ type: String,
15
+ },
16
+ diyData: {
17
+ default: () => {
18
+ return {}
19
+ },
20
+ type: Object,
21
+ },
22
+ },
23
+ emits: ['submit'],
24
+ data() {
25
+ return {
26
+ total: 0,
27
+ pageSize: 12,
28
+ keyword: '',
29
+ search: {
30
+ state: '',
31
+ look: '',
32
+ },
33
+ chooseDiy: {},
34
+ page: 1,
35
+ formData: null,
36
+ site: {},
37
+ width: '800px',
38
+ list: [],
39
+ loading: true,
40
+ errMsg: '',
41
+ errCode: 0,
42
+ }
43
+ },
44
+ computed: {},
45
+ mounted() {
46
+ this.getDiyList();
47
+ this.getSiteMsg();
48
+ },
49
+ methods: {
50
+ submit() {
51
+ this.$confirm('确定选择此diy模板?', '提示', {
52
+ confirmButtonText: '确定',
53
+ cancelButtonText: '取消',
54
+ type: 'warning',
55
+ })
56
+ .then(() => {
57
+ diy.down(this.chooseDiy.id).then((res) => {
58
+ this.$emit('submit', res.data);
59
+ });
60
+ })
61
+ .catch(() => {});
62
+ },
63
+ onChooseDiy(item) {
64
+ this.chooseDiy = item;
65
+ },
66
+ getDiyList(page) {
67
+ this.page = page || this.page;
68
+ this.loading = true;
69
+ diy.getList(this.pageName, this.page, this.search, this.pageSize)
70
+ .then((res) => {
71
+ this.list = res.data;
72
+ this.total = res.msg;
73
+ this.loading = false;
74
+ })
75
+ .catch((res) => {
76
+ this.errMsg = res.msg;
77
+ this.errCode = -1;
78
+ this.loading = false;
79
+ });
80
+ },
81
+ getSiteMsg() {
82
+ diy.getSiteMsg().then((res) => {
83
+ this.site = res.data;
84
+ });
85
+ },
86
+ getDiyForm(id = 0) {
87
+ diy.getDiyForm(id, this.pageName, this.diyData)
88
+ .then((res) => {
89
+ console.log('getDiyForm', res);
90
+ this.formData = res.data;
91
+ this.width = '600px';
92
+ this.$refs.formRef.show();
93
+ })
94
+ .catch((res) => {
95
+ this.$message.error(res.msg);
96
+ });
97
+ },
98
+ getCheckForm() {
99
+ diy.getCheckForm(this.chooseDiy.id, this.chooseDiy.state)
100
+ .then((res) => {
101
+ this.formData = res.data;
102
+ this.width = '400px';
103
+ this.$refs.formRef.show();
104
+ })
105
+ .catch((res) => {
106
+ this.$message.error(res.msg);
107
+ });
108
+ },
109
+ delDiy() {
110
+ this.$confirm('确定要删除当前模板,删除后不可恢复?', '提示', {
111
+ confirmButtonText: '确定',
112
+ cancelButtonText: '取消',
113
+ type: 'warning',
114
+ })
115
+ .then(() => {
116
+ diy.delDiy(this.chooseDiy.id)
117
+ .then((res) => {
118
+ this.$message.success(res.msg);
119
+ this.getDiyList(1);
120
+ })
121
+ .catch((res) => {
122
+ this.$message.error(res.msg);
123
+ });
124
+ })
125
+ .catch(() => {});
126
+ },
127
+ onSubmit() {
128
+ this.getDiyList(0);
129
+ },
130
+ },
131
+ };
132
+
133
+ const _hoisted_1 = { class: "diy-cloud" };
134
+ const _hoisted_2 = { class: "diy-header" };
135
+ const _hoisted_3 = { class: "diy-search" };
136
+ const _hoisted_4 = { class: "diy-content" };
137
+ const _hoisted_5 = {
138
+ key: 0,
139
+ class: "cl"
140
+ };
141
+ const _hoisted_6 = ["onClick"];
142
+ const _hoisted_7 = {
143
+ key: 0,
144
+ class: "mask"
145
+ };
146
+ const _hoisted_8 = { class: "type" };
147
+ const _hoisted_9 = {
148
+ key: 1,
149
+ class: "tag-list"
150
+ };
151
+ const _hoisted_10 = {
152
+ key: 0,
153
+ class: "tag"
154
+ };
155
+ const _hoisted_11 = {
156
+ key: 1,
157
+ class: "tag"
158
+ };
159
+ const _hoisted_12 = { class: "title over" };
160
+ const _hoisted_13 = {
161
+ key: 1,
162
+ style: {"display":"flex","align-items":"center","justify-content":"center","height":"500px"}
163
+ };
164
+ const _hoisted_14 = { class: "diy-footer" };
165
+
166
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
167
+ const _component_el_option = vue.resolveComponent("el-option");
168
+ const _component_el_select = vue.resolveComponent("el-select");
169
+ const _component_el_button = vue.resolveComponent("el-button");
170
+ const _component_el_input = vue.resolveComponent("el-input");
171
+ const _component_el_image = vue.resolveComponent("el-image");
172
+ const _component_el_tag = vue.resolveComponent("el-tag");
173
+ const _component_van_icon = vue.resolveComponent("van-icon");
174
+ const _component_el_empty = vue.resolveComponent("el-empty");
175
+ const _component_el_pagination = vue.resolveComponent("el-pagination");
176
+ const _component_dk_form = vue.resolveComponent("dk-form");
177
+ const _directive_loading = vue.resolveDirective("loading");
178
+
179
+ return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
180
+ vue.createElementVNode("div", _hoisted_2, [
181
+ vue.createElementVNode("div", _hoisted_3, [
182
+ vue.createVNode(_component_el_select, {
183
+ modelValue: $data.search.state,
184
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (($data.search.state) = $event)),
185
+ placeholder: "状态"
186
+ }, {
187
+ default: vue.withCtx(() => [
188
+ vue.createVNode(_component_el_option, {
189
+ label: "全部状态",
190
+ value: ""
191
+ }),
192
+ ($data.site.level > 0)
193
+ ? (vue.openBlock(), vue.createBlock(_component_el_option, {
194
+ key: 0,
195
+ label: "未通过",
196
+ value: "-1"
197
+ }))
198
+ : vue.createCommentVNode("v-if", true),
199
+ ($data.site.level > 0)
200
+ ? (vue.openBlock(), vue.createBlock(_component_el_option, {
201
+ key: 1,
202
+ label: "未审核",
203
+ value: "0"
204
+ }))
205
+ : vue.createCommentVNode("v-if", true),
206
+ vue.createVNode(_component_el_option, {
207
+ label: "已审核",
208
+ value: "1"
209
+ }),
210
+ vue.createVNode(_component_el_option, {
211
+ label: "已推荐",
212
+ value: "2"
213
+ })
214
+ ]),
215
+ _: 1 /* STABLE */
216
+ }, 8 /* PROPS */, ["modelValue"]),
217
+ vue.createVNode(_component_el_select, {
218
+ modelValue: $data.search.look,
219
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = $event => (($data.search.look) = $event)),
220
+ placeholder: "查看",
221
+ class: "u-m-l-10"
222
+ }, {
223
+ default: vue.withCtx(() => [
224
+ vue.createVNode(_component_el_option, {
225
+ label: "全部模板",
226
+ value: ""
227
+ }),
228
+ vue.createVNode(_component_el_option, {
229
+ label: "我的模板",
230
+ value: "me"
231
+ }),
232
+ vue.createVNode(_component_el_option, {
233
+ label: "他人模板",
234
+ value: "other"
235
+ })
236
+ ]),
237
+ _: 1 /* STABLE */
238
+ }, 8 /* PROPS */, ["modelValue"]),
239
+ vue.createVNode(_component_el_input, {
240
+ modelValue: $data.search['name like'],
241
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = $event => (($data.search['name like']) = $event)),
242
+ placeholder: "请输入模板名称",
243
+ clearable: "",
244
+ onClear: _cache[4] || (_cache[4] = $event => ($options.getDiyList(0)))
245
+ }, {
246
+ append: vue.withCtx(() => [
247
+ vue.createVNode(_component_el_button, {
248
+ icon: "Search",
249
+ onClick: _cache[2] || (_cache[2] = $event => ($options.getDiyList(1)))
250
+ })
251
+ ]),
252
+ _: 1 /* STABLE */
253
+ }, 8 /* PROPS */, ["modelValue"])
254
+ ]),
255
+ vue.createElementVNode("div", null, [
256
+ ($data.site.level > 0)
257
+ ? (vue.openBlock(), vue.createBlock(_component_el_button, {
258
+ key: 0,
259
+ type: "warning",
260
+ disabled: !$data.chooseDiy.id,
261
+ onClick: $options.getCheckForm
262
+ }, {
263
+ default: vue.withCtx(() => [
264
+ vue.createTextVNode("审核 ")
265
+ ]),
266
+ _: 1 /* STABLE */
267
+ }, 8 /* PROPS */, ["disabled", "onClick"]))
268
+ : vue.createCommentVNode("v-if", true),
269
+ ($data.site.level > 1)
270
+ ? (vue.openBlock(), vue.createBlock(_component_el_button, {
271
+ key: 1,
272
+ type: "danger",
273
+ disabled: !$data.chooseDiy.id,
274
+ onClick: $options.delDiy
275
+ }, {
276
+ default: vue.withCtx(() => [
277
+ vue.createTextVNode("删除")
278
+ ]),
279
+ _: 1 /* STABLE */
280
+ }, 8 /* PROPS */, ["disabled", "onClick"]))
281
+ : vue.createCommentVNode("v-if", true),
282
+ ($data.site.level > 0 || $data.site.site_id === $data.chooseDiy.site_id)
283
+ ? (vue.openBlock(), vue.createBlock(_component_el_button, {
284
+ key: 2,
285
+ type: "info",
286
+ disabled: !$data.chooseDiy.id,
287
+ onClick: _cache[5] || (_cache[5] = $event => ($options.getDiyForm($data.chooseDiy.id)))
288
+ }, {
289
+ default: vue.withCtx(() => [
290
+ vue.createTextVNode("编辑 ")
291
+ ]),
292
+ _: 1 /* STABLE */
293
+ }, 8 /* PROPS */, ["disabled"]))
294
+ : vue.createCommentVNode("v-if", true),
295
+ vue.createVNode(_component_el_button, {
296
+ type: "primary",
297
+ icon: "Upload",
298
+ onClick: _cache[6] || (_cache[6] = $event => ($options.getDiyForm()))
299
+ }, {
300
+ default: vue.withCtx(() => [
301
+ vue.createTextVNode("上传新模板")
302
+ ]),
303
+ _: 1 /* STABLE */
304
+ })
305
+ ])
306
+ ]),
307
+ vue.createCommentVNode("-------------模板列表------------------------"),
308
+ vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", _hoisted_4, [
309
+ (!$data.loading && $data.list.length > 0)
310
+ ? (vue.openBlock(), vue.createElementBlock("ul", _hoisted_5, [
311
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($data.list, (item, key) => {
312
+ return (vue.openBlock(), vue.createElementBlock("li", {
313
+ key: key,
314
+ class: vue.normalizeClass({ choose: $data.chooseDiy.id === item.id }),
315
+ onClick: $event => ($options.onChooseDiy(item))
316
+ }, [
317
+ vue.createVNode(_component_el_image, {
318
+ src: item.cover_image,
319
+ class: "cover",
320
+ fit: "contain"
321
+ }, null, 8 /* PROPS */, ["src"]),
322
+ (item.state <= 0)
323
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7))
324
+ : vue.createCommentVNode("v-if", true),
325
+ vue.createElementVNode("div", _hoisted_8, [
326
+ (item.state === '0')
327
+ ? (vue.openBlock(), vue.createBlock(_component_el_tag, {
328
+ key: 0,
329
+ effect: "dark"
330
+ }, {
331
+ default: vue.withCtx(() => [
332
+ vue.createTextVNode("审核中")
333
+ ]),
334
+ _: 1 /* STABLE */
335
+ }))
336
+ : vue.createCommentVNode("v-if", true),
337
+ (item.state === '-1')
338
+ ? (vue.openBlock(), vue.createBlock(_component_el_tag, {
339
+ key: 1,
340
+ type: "danger",
341
+ effect: "dark"
342
+ }, {
343
+ default: vue.withCtx(() => [
344
+ vue.createTextVNode("审核未通过")
345
+ ]),
346
+ _: 1 /* STABLE */
347
+ }))
348
+ : vue.createCommentVNode("v-if", true)
349
+ ]),
350
+ (item.state > 0)
351
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_9, [
352
+ (item.state >= 2)
353
+ ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_10, [
354
+ vue.createVNode(_component_van_icon, { name: "good-job" }),
355
+ vue.createTextVNode("推荐")
356
+ ]))
357
+ : vue.createCommentVNode("v-if", true),
358
+ (item.down_count > 100)
359
+ ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_11, [
360
+ vue.createVNode(_component_van_icon, { name: "fire" }),
361
+ vue.createTextVNode("热门")
362
+ ]))
363
+ : vue.createCommentVNode("v-if", true)
364
+ ]))
365
+ : vue.createCommentVNode("v-if", true),
366
+ vue.createElementVNode("div", _hoisted_12, vue.toDisplayString(item.name), 1 /* TEXT */)
367
+ ], 10 /* CLASS, PROPS */, _hoisted_6))
368
+ }), 128 /* KEYED_FRAGMENT */))
369
+ ]))
370
+ : (vue.openBlock(), vue.createElementBlock("div", _hoisted_13, [
371
+ ($data.errCode === 0)
372
+ ? (vue.openBlock(), vue.createBlock(_component_el_empty, {
373
+ key: 0,
374
+ description: "当前还没模板,点击右上角上传自己的模板吧"
375
+ }))
376
+ : (vue.openBlock(), vue.createBlock(_component_el_empty, {
377
+ key: 1,
378
+ description: $data.errMsg
379
+ }, null, 8 /* PROPS */, ["description"]))
380
+ ])),
381
+ vue.createVNode(_component_el_pagination, {
382
+ background: "",
383
+ layout: "total,prev, pager, next",
384
+ total: $data.total,
385
+ "current-page": $data.page,
386
+ "page-size": $data.pageSize,
387
+ "hide-on-single-page": "",
388
+ onCurrentChange: $options.getDiyList
389
+ }, null, 8 /* PROPS */, ["total", "current-page", "page-size", "onCurrentChange"])
390
+ ])), [
391
+ [_directive_loading, $data.loading]
392
+ ]),
393
+ vue.createElementVNode("div", _hoisted_14, [
394
+ vue.createVNode(_component_el_button, {
395
+ type: "primary",
396
+ style: {"width":"300px"},
397
+ disabled: !$data.chooseDiy.id,
398
+ onClick: $options.submit
399
+ }, {
400
+ default: vue.withCtx(() => [
401
+ vue.createTextVNode("确定")
402
+ ]),
403
+ _: 1 /* STABLE */
404
+ }, 8 /* PROPS */, ["disabled", "onClick"])
405
+ ]),
406
+ vue.createVNode(_component_dk_form, {
407
+ ref: "formRef",
408
+ "is-dialog": true,
409
+ "form-data": $data.formData,
410
+ onSubmit: $options.onSubmit
411
+ }, null, 8 /* PROPS */, ["form-data", "onSubmit"])
412
+ ]))
413
+ }
414
+ var DiyCloud = /*#__PURE__*/_pluginVue_exportHelper.default(_sfc_main, [['render',_sfc_render],['__file',"E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\components\\DiyCloud.vue"]]);
415
+
416
+ exports.default = DiyCloud;
417
+ //# sourceMappingURL=DiyCloud.vue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DiyCloud.vue.js","sources":["../../../../src/page-diy/src/components/DiyCloud.vue"],"sourcesContent":["<template>\n <div class=\"diy-cloud\">\n <div class=\"diy-header\">\n <div class=\"diy-search\">\n <el-select v-model=\"search.state\" placeholder=\"状态\">\n <el-option label=\"全部状态\" value=\"\" />\n <el-option v-if=\"site.level > 0\" label=\"未通过\" value=\"-1\" />\n <el-option v-if=\"site.level > 0\" label=\"未审核\" value=\"0\" />\n <el-option label=\"已审核\" value=\"1\" />\n <el-option label=\"已推荐\" value=\"2\" />\n </el-select>\n <el-select v-model=\"search.look\" placeholder=\"查看\" class=\"u-m-l-10\">\n <el-option label=\"全部模板\" value=\"\" />\n <el-option label=\"我的模板\" value=\"me\" />\n <el-option label=\"他人模板\" value=\"other\" />\n </el-select>\n <el-input v-model=\"search['name like']\" placeholder=\"请输入模板名称\" clearable @clear=\"getDiyList(0)\">\n <template #append>\n <el-button icon=\"Search\" @click=\"getDiyList(1)\" />\n </template>\n </el-input>\n </div>\n <div>\n <el-button v-if=\"site.level > 0\" type=\"warning\" :disabled=\"!chooseDiy.id\" @click=\"getCheckForm\"\n >审核\n </el-button>\n <el-button v-if=\"site.level > 1\" type=\"danger\" :disabled=\"!chooseDiy.id\" @click=\"delDiy\">删除</el-button>\n <el-button\n v-if=\"site.level > 0 || site.site_id === chooseDiy.site_id\"\n type=\"info\"\n :disabled=\"!chooseDiy.id\"\n @click=\"getDiyForm(chooseDiy.id)\"\n >编辑\n </el-button>\n <el-button type=\"primary\" icon=\"Upload\" @click=\"getDiyForm()\">上传新模板</el-button>\n </div>\n </div>\n <!---------------模板列表-------------------------->\n <div v-loading=\"loading\" class=\"diy-content\">\n <ul v-if=\"!loading && list.length > 0\" class=\"cl\">\n <li\n v-for=\"(item, key) in list\"\n :key=\"key\"\n :class=\"{ choose: chooseDiy.id === item.id }\"\n @click=\"onChooseDiy(item)\"\n >\n <el-image :src=\"item.cover_image\" class=\"cover\" fit=\"contain\" />\n <div v-if=\"item.state <= 0\" class=\"mask\" />\n <div class=\"type\">\n <el-tag v-if=\"item.state === '0'\" effect=\"dark\">审核中</el-tag>\n <el-tag v-if=\"item.state === '-1'\" type=\"danger\" effect=\"dark\">审核未通过</el-tag>\n </div>\n <div v-if=\"item.state > 0\" class=\"tag-list\">\n <span v-if=\"item.state >= 2\" class=\"tag\"><van-icon name=\"good-job\" />推荐</span>\n <span v-if=\"item.down_count > 100\" class=\"tag\"><van-icon name=\"fire\" />热门</span>\n </div>\n <div class=\"title over\">{{ item.name }}</div>\n </li>\n </ul>\n <div v-else style=\"display: flex; align-items: center; justify-content: center; height: 500px\">\n <el-empty v-if=\"errCode === 0\" description=\"当前还没模板,点击右上角上传自己的模板吧\" />\n <el-empty v-else :description=\"errMsg\" />\n </div>\n <el-pagination\n background\n layout=\"total,prev, pager, next\"\n :total=\"total\"\n :current-page=\"page\"\n :page-size=\"pageSize\"\n hide-on-single-page\n @current-change=\"getDiyList\"\n />\n </div>\n <div class=\"diy-footer\">\n <el-button type=\"primary\" style=\"width: 300px\" :disabled=\"!chooseDiy.id\" @click=\"submit\">确定</el-button>\n </div>\n <dk-form ref=\"formRef\" :is-dialog=\"true\" :form-data=\"formData\" @submit=\"onSubmit\" />\n </div>\n</template>\n\n<script>\nimport { getList, down, getDiyForm, getSiteMsg, getCheckForm, delDiy } from '../../../api/diy'\nexport default {\n name: 'DiyCloud',\n props: {\n pageName: {\n default: '',\n type: String,\n },\n diyData: {\n default: () => {\n return {}\n },\n type: Object,\n },\n },\n emits: ['submit'],\n data() {\n return {\n total: 0,\n pageSize: 12,\n keyword: '',\n search: {\n state: '',\n look: '',\n },\n chooseDiy: {},\n page: 1,\n formData: null,\n site: {},\n width: '800px',\n list: [],\n loading: true,\n errMsg: '',\n errCode: 0,\n }\n },\n computed: {},\n mounted() {\n this.getDiyList()\n this.getSiteMsg()\n },\n methods: {\n submit() {\n this.$confirm('确定选择此diy模板?', '提示', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n type: 'warning',\n })\n .then(() => {\n down(this.chooseDiy.id).then((res) => {\n this.$emit('submit', res.data)\n })\n })\n .catch(() => {})\n },\n onChooseDiy(item) {\n this.chooseDiy = item\n },\n getDiyList(page) {\n this.page = page || this.page\n this.loading = true\n getList(this.pageName, this.page, this.search, this.pageSize)\n .then((res) => {\n this.list = res.data\n this.total = res.msg\n this.loading = false\n })\n .catch((res) => {\n this.errMsg = res.msg\n this.errCode = -1\n this.loading = false\n })\n },\n getSiteMsg() {\n getSiteMsg().then((res) => {\n this.site = res.data\n })\n },\n getDiyForm(id = 0) {\n getDiyForm(id, this.pageName, this.diyData)\n .then((res) => {\n console.log('getDiyForm', res)\n this.formData = res.data\n this.width = '600px'\n this.$refs.formRef.show()\n })\n .catch((res) => {\n this.$message.error(res.msg)\n })\n },\n getCheckForm() {\n getCheckForm(this.chooseDiy.id, this.chooseDiy.state)\n .then((res) => {\n this.formData = res.data\n this.width = '400px'\n this.$refs.formRef.show()\n })\n .catch((res) => {\n this.$message.error(res.msg)\n })\n },\n delDiy() {\n this.$confirm('确定要删除当前模板,删除后不可恢复?', '提示', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n type: 'warning',\n })\n .then(() => {\n delDiy(this.chooseDiy.id)\n .then((res) => {\n this.$message.success(res.msg)\n this.getDiyList(1)\n })\n .catch((res) => {\n this.$message.error(res.msg)\n })\n })\n .catch(() => {})\n },\n onSubmit() {\n this.getDiyList(0)\n },\n },\n}\n</script>\n"],"names":["down","getList","getSiteMsg","getDiyForm","getCheckForm","delDiy","_openBlock","_createElementBlock","_createElementVNode","_createVNode","_createBlock","_createCommentVNode","_withDirectives","_Fragment","_renderList","_toDisplayString"],"mappings":";;;;;;;;AAkFA,MAAK,SAAU,GAAA;AACb,EAAA,IAAI,EAAE,UAAU;AAChB,EAAA,KAAK,EAAE;AACL,IAAA,QAAQ,EAAE;MACR,OAAO,EAAE,EAAE;MACX,IAAI,EAAE,MAAM;KACb;AACD,IAAA,OAAO,EAAE;MACP,OAAO,EAAE,MAAM;AACb,QAAA,OAAO,EAAC;OACT;MACD,IAAI,EAAE,MAAM;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BAAA,EAAA;;AAAvB,kBAAA,WAAW,EAAE,KAAM,CAAA,MAAA;;;MAEvCD,eAQE,CAAA,wBAAA,EAAA;AAPA,QAAA,UAAU,EAAV,EAAU;AACV,QAAA,MAAM,EAAC,yBAAyB;AAC/B,QAAA,KAAK,EAAE,KAAK,CAAA,KAAA;AACZ,QAAA,cAAY,EAAE,KAAI,CAAA,IAAA;AAClB,QAAA,WAAS,EAAE,KAAQ,CAAA,QAAA;AACpB,QAAA,qBAAmB,EAAnB,EAAmB;AAClB,QAAA,eAAc,EAAE,QAAU,CAAA,UAAA;;;2BAhCf,KAAO,CAAA,OAAA,CAAA;;AAmCvB,IAAAD,sBAAA,CAEM,OAFN,WAEM,EAAA;MADJC,eAAuG,CAAA,oBAAA,EAAA;AAA5F,QAAA,IAAI,EAAC,SAAS;AAAC,QAAA,KAAoB,EAApB,CAAoB,OAAA,CAAA,OAAA,CAAA;QAAE,QAAQ,EAAA,CAAG,KAAS,CAAA,SAAA,CAAC,EAAE;AAAG,QAAA,OAAK,EAAE,QAAM,CAAA,MAAA;;6BAAE,MAAE;8BAAF,IAAE,CAAA;;;;;IAE7FA,eAAoF,CAAA,kBAAA,EAAA;AAA3E,MAAA,GAAG,EAAC,SAAS;AAAE,MAAA,WAAS,EAAE,IAAI;AAAG,MAAA,WAAS,EAAE,KAAQ,CAAA,QAAA;AAAG,MAAA,QAAM,EAAE,QAAQ,CAAA,QAAA;;;;;;;;"}
@@ -83,6 +83,8 @@ declare const _default: import("vue").DefineComponent<{
83
83
  previewFc(): void;
84
84
  getPageConfig(): {};
85
85
  setPageConfig(pageConfig: any): void;
86
+ showDiyCloud(pageName: any): void;
87
+ downCloudConfig(config: any): void;
86
88
  getRule(): any;
87
89
  getJson(): string;
88
90
  setRule(rules: any): void;
@@ -17,6 +17,7 @@ var elementPlus = require('element-plus');
17
17
  var props = require('./props.js');
18
18
  var index$3 = require('./views/min/index.js');
19
19
  var index$2 = require('./views/web/index.js');
20
+ var DiyCloud = require('./components/DiyCloud.vue.js');
20
21
  var _pluginVue_exportHelper = require('../../_virtual/_plugin-vue_export-helper.js');
21
22
  var form = require('./utils/form.js');
22
23
  var dkSetting = require('./config/base/dkSetting.js');
@@ -41,6 +42,7 @@ form.designerForm.register({
41
42
  const _sfc_main = vue.defineComponent({
42
43
  name: 'DkPageDiy',
43
44
  components: {
45
+ DiyCloud: DiyCloud.default,
44
46
  draggable,
45
47
  PreviewPhone: PreviewPhone.default,
46
48
  DragForm: form.designerForm.$form(),
@@ -439,6 +441,18 @@ const _sfc_main = vue.defineComponent({
439
441
  }
440
442
  data.dkPageForm.api.coverValue(pageConfig);
441
443
  },
444
+ // 显示云端DIY
445
+ showDiyCloud(pageName) {
446
+ console.log('123');
447
+ const diyData = methods.get();
448
+ data.diyCloud.pageName = pageName;
449
+ data.diyCloud.show = true;
450
+ data.diyCloud.diy_data = diyData;
451
+ },
452
+ downCloudConfig(config) {
453
+ methods.set(config);
454
+ data.diyCloud.show = false;
455
+ },
442
456
  getRule() {
443
457
  return methods.parseRule(deepextend.deepCopy(data.dragForm.api.rule[0].children))
444
458
  },
@@ -1086,6 +1100,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
1086
1100
  const _component_el_tab_pane = vue.resolveComponent("el-tab-pane");
1087
1101
  const _component_el_tabs = vue.resolveComponent("el-tabs");
1088
1102
  const _component_el_dialog = vue.resolveComponent("el-dialog");
1103
+ const _component_diy_cloud = vue.resolveComponent("diy-cloud");
1104
+ const _component_dk_dialog = vue.resolveComponent("dk-dialog");
1089
1105
  const _directive_loading = vue.resolveDirective("loading");
1090
1106
 
1091
1107
  return (vue.openBlock(), vue.createBlock(_component_el_container, { class: "_fc-designer dk-page-diy" }, {
@@ -1347,24 +1363,26 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
1347
1363
  ]),
1348
1364
  _: 1 /* STABLE */
1349
1365
  }, 8 /* PROPS */, ["visible"]),
1350
- vue.createVNode(_component_el_dialog, {
1351
- visible: _ctx.diyCloud.show,
1352
- "onUpdate:visible": _cache[18] || (_cache[18] = $event => ((_ctx.diyCloud.show) = $event)),
1366
+ vue.createVNode(_component_dk_dialog, {
1367
+ modelValue: _ctx.diyCloud.show,
1368
+ "onUpdate:modelValue": _cache[18] || (_cache[18] = $event => ((_ctx.diyCloud.show) = $event)),
1353
1369
  width: "1200px",
1354
1370
  "append-to-body": "",
1355
1371
  title: "DIY模板市场",
1356
1372
  top: "10vh"
1357
1373
  }, {
1358
1374
  default: vue.withCtx(() => [
1359
- vue.createCommentVNode(" <diy-cloud"),
1360
- vue.createCommentVNode(" v-if=\"diyCloud.show\""),
1361
- vue.createCommentVNode(" :page-name=\"diyCloud.pageName\""),
1362
- vue.createCommentVNode(" :diy-data=\"diyCloud.diy_data\""),
1363
- vue.createCommentVNode(" @submit=\"downCloudConfig\""),
1364
- vue.createCommentVNode(" />")
1375
+ (_ctx.diyCloud.show)
1376
+ ? (vue.openBlock(), vue.createBlock(_component_diy_cloud, {
1377
+ key: 0,
1378
+ "page-name": _ctx.diyCloud.pageName,
1379
+ "diy-data": _ctx.diyCloud.diy_data,
1380
+ onSubmit: _ctx.downCloudConfig
1381
+ }, null, 8 /* PROPS */, ["page-name", "diy-data", "onSubmit"]))
1382
+ : vue.createCommentVNode("v-if", true)
1365
1383
  ]),
1366
1384
  _: 1 /* STABLE */
1367
- }, 8 /* PROPS */, ["visible"])
1385
+ }, 8 /* PROPS */, ["modelValue"])
1368
1386
  ]),
1369
1387
  _: 3 /* FORWARDED */
1370
1388
  }))