@ajaxjs/ui 1.6.5 → 1.6.7
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.
- package/dist/ajaxjs-ui.cjs.js +3 -3
- package/dist/ajaxjs-ui.es.js +7 -7
- package/dist/ajaxjs-ui.umd.js +3 -3
- package/dist/types/index.d.ts +233 -0
- package/package.json +1 -1
package/dist/ajaxjs-ui.es.js
CHANGED
|
@@ -13433,18 +13433,18 @@ const DataDict = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_rende
|
|
|
13433
13433
|
del(s) {
|
|
13434
13434
|
if (confirm("确定删除?")) {
|
|
13435
13435
|
let i = "http://localhost:8301/scheduled/remove/" + s;
|
|
13436
|
-
|
|
13436
|
+
xhr_fetch.post(i, {}, (c) => {
|
|
13437
13437
|
c && c.status == 1 && (alert("删除成功"), location.reload());
|
|
13438
13438
|
});
|
|
13439
13439
|
}
|
|
13440
13440
|
},
|
|
13441
13441
|
pause(s) {
|
|
13442
|
-
|
|
13442
|
+
xhr_fetch.post("http://localhost:8301/scheduled/pause/" + s, {}, (i) => {
|
|
13443
13443
|
i && i.status == 1 && (alert("暂停成功"), location.reload());
|
|
13444
13444
|
});
|
|
13445
13445
|
},
|
|
13446
13446
|
resume(s) {
|
|
13447
|
-
|
|
13447
|
+
xhr_fetch.post("http://localhost:8301/scheduled/resume/" + s, {}, (i) => {
|
|
13448
13448
|
i && i.status == 1 && (alert("恢复成功"), location.reload());
|
|
13449
13449
|
});
|
|
13450
13450
|
}
|
|
@@ -19494,7 +19494,7 @@ const ConfigTable = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_re
|
|
|
19494
19494
|
* 获取单个数据
|
|
19495
19495
|
*/
|
|
19496
19496
|
getDataBase(s) {
|
|
19497
|
-
|
|
19497
|
+
xhr_fetch.get(`${window.config.dsApiRoot}/common_api/ds_widget_config/${this.id}?allow=1`, (i) => {
|
|
19498
19498
|
let c = i.data;
|
|
19499
19499
|
c ? (this.name = c.name, this.datasourceId = c.datasourceId || 0, this.datasourceName = c.datasourceName || 0, this.tableName = c.tableName || 0, this.cfg = c.config, s && s(c), this.$refs.LivePerview.cfg = this.cfg) : this.$Message.warning("获取配置失败");
|
|
19500
19500
|
});
|
|
@@ -19513,9 +19513,9 @@ const ConfigTable = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_re
|
|
|
19513
19513
|
config: JSON.stringify(s, null, 1),
|
|
19514
19514
|
type: this.widgetType
|
|
19515
19515
|
};
|
|
19516
|
-
this.id ? (i.id = this.id,
|
|
19516
|
+
this.id ? (i.id = this.id, xhr_fetch.put(`${window.config.dsApiRoot}/common_api/ds_widget_config`, i, (c) => {
|
|
19517
19517
|
c.status ? this.$Message.success("修改成功") : this.$Message.warning(c.message);
|
|
19518
|
-
})) :
|
|
19518
|
+
})) : xhr_fetch.post(`${window.config.dsApiRoot}/common_api/ds_widget_config`, i, (c) => {
|
|
19519
19519
|
c.status ? (this.$Message.success("创建成功"), setTimeout(() => this.id = c.data.newlyId, 800)) : this.$Message.warning(c.message);
|
|
19520
19520
|
});
|
|
19521
19521
|
},
|
|
@@ -21757,7 +21757,7 @@ function _sfc_render(s, i, c, t, p, C) {
|
|
|
21757
21757
|
_: 1
|
|
21758
21758
|
}, 512);
|
|
21759
21759
|
}
|
|
21760
|
-
const FormInfo = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-d2273c52"]]), admin = { HomePage, Login }, system = { Article, DataDict, Schedule, ArticleEdit }, shop = { Transaction }, IAM = { App, LoginLog, Tenant, Token, User }, ConfigWdiget = { ListMgr, ListInfo, FormMgr, FormInfo };
|
|
21760
|
+
const FormInfo = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-d2273c52"]]), admin = { HomePage, Login }, system = { Article, DataDict, Schedule, ArticleEdit }, shop = { Transaction }, IAM = { App, LoginLog, Tenant, Token, User }, ConfigWdiget = { ListMgr, ListInfo, FormMgr, FormInfo, ListLoader };
|
|
21761
21761
|
export {
|
|
21762
21762
|
ConfigWdiget,
|
|
21763
21763
|
HtmlEditor,
|