element-less 0.0.74 → 0.0.76
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/element-less.cjs +1 -1
- package/element-less.iife.js +1 -1
- package/element-less.js +1 -1
- package/element-less.umd.cjs +1 -1
- package/{index-BkcWYzI_.js → index-1dIcv_Dm.js} +171 -132
- package/{index-DjrC26ts.cjs → index-Dcm9lTIN.cjs} +1 -1
- package/{inner-Ba84wZRD.js → inner-CqdvLUls.js} +1 -1
- package/{inner-0Qwbn1gV.cjs → inner-dU08mCER.cjs} +1 -1
- package/{innerItem-vGvvhSD8.cjs → innerItem-CMTlTlAf.cjs} +1 -1
- package/{innerItem-5Au5l5Jf.js → innerItem-CX6bP73Z.js} +1 -1
- package/{mode-csharp-C2oUrQH_.cjs → mode-csharp-B3njQ7xA.cjs} +1 -1
- package/{mode-csharp-DpcfdC7v.js → mode-csharp-bvhfjmkN.js} +1 -1
- package/{mode-css-DaOZ-Kyt.cjs → mode-css-CKaOW2nk.cjs} +1 -1
- package/{mode-css-Bw3HxevP.js → mode-css-Du96e5I3.js} +1 -1
- package/{mode-javascript-B4nfmHwI.js → mode-javascript-Cw223pBf.js} +1 -1
- package/{mode-javascript-BW2Gtk1B.cjs → mode-javascript-DNfjdr-2.cjs} +1 -1
- package/{mode-json-Dj69lfnz.cjs → mode-json--zPl5ren.cjs} +1 -1
- package/{mode-json-B_6Rc56R.js → mode-json-BJlmxTEK.js} +1 -1
- package/{mode-mysql-D25NsOyA.js → mode-mysql-DKyMActE.js} +1 -1
- package/{mode-mysql-CGxHP8j2.cjs → mode-mysql-SIFyobPf.cjs} +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
|
@@ -31349,7 +31349,7 @@ const useFormValidation = (props2, attrs) => {
|
|
|
31349
31349
|
};
|
|
31350
31350
|
function useSelect(props2 = {}, defaultEmits, formNode, componentName) {
|
|
31351
31351
|
const { setValue } = useProps(props2);
|
|
31352
|
-
const { $codeField, $messageField, $dataField, $success } = utils.getApiConfig();
|
|
31352
|
+
const { $codeField: $codeField2, $messageField: $messageField2, $dataField: $dataField2, $success: $success2 } = utils.getApiConfig();
|
|
31353
31353
|
const {
|
|
31354
31354
|
currModelValue,
|
|
31355
31355
|
returnModelValue
|
|
@@ -31660,16 +31660,16 @@ function useSelect(props2 = {}, defaultEmits, formNode, componentName) {
|
|
|
31660
31660
|
let currUrl = ((_b = props2.url) == null ? void 0 : _b.replacePowerUrl()) ?? "";
|
|
31661
31661
|
return new Promise((resolve2, reject) => {
|
|
31662
31662
|
currUrl.postWithCancel(queryData, readDataCancel).then((res) => {
|
|
31663
|
-
if (res[$
|
|
31663
|
+
if (res[$codeField2] == $success2) {
|
|
31664
31664
|
options2.length = 0;
|
|
31665
|
-
const resData = res[$
|
|
31665
|
+
const resData = res[$dataField2];
|
|
31666
31666
|
initData(resData);
|
|
31667
31667
|
initSelectValue();
|
|
31668
31668
|
initAbsendData();
|
|
31669
31669
|
initSelectIndex();
|
|
31670
31670
|
defaultEmits("readdataed", options2);
|
|
31671
31671
|
} else {
|
|
31672
|
-
ProxyElsMessage.error(res[$
|
|
31672
|
+
ProxyElsMessage.error(res[$messageField2]);
|
|
31673
31673
|
}
|
|
31674
31674
|
remoteLoading.value = false;
|
|
31675
31675
|
resolve2(true);
|
|
@@ -31806,7 +31806,7 @@ function useSelect(props2 = {}, defaultEmits, formNode, componentName) {
|
|
|
31806
31806
|
};
|
|
31807
31807
|
}
|
|
31808
31808
|
function useTree(props2 = {}, dataTree, defaultEmits, componentName) {
|
|
31809
|
-
const { $codeField, $messageField, $dataField, $success } = utils.getApiConfig();
|
|
31809
|
+
const { $codeField: $codeField2, $messageField: $messageField2, $dataField: $dataField2, $success: $success2 } = utils.getApiConfig();
|
|
31810
31810
|
const {
|
|
31811
31811
|
currModelValue,
|
|
31812
31812
|
returnModelValue
|
|
@@ -32091,13 +32091,13 @@ function useTree(props2 = {}, dataTree, defaultEmits, componentName) {
|
|
|
32091
32091
|
}
|
|
32092
32092
|
remoteLoading.value = true;
|
|
32093
32093
|
currUrl.post({}).then((res) => {
|
|
32094
|
-
if (res[$
|
|
32095
|
-
optionData.value = res[$
|
|
32094
|
+
if (res[$codeField2] == $success2) {
|
|
32095
|
+
optionData.value = res[$dataField2];
|
|
32096
32096
|
options2.value = [];
|
|
32097
32097
|
toTreeData();
|
|
32098
32098
|
initSelectValue();
|
|
32099
32099
|
} else {
|
|
32100
|
-
ProxyElsMessage.error(res[$
|
|
32100
|
+
ProxyElsMessage.error(res[$messageField2]);
|
|
32101
32101
|
}
|
|
32102
32102
|
remoteLoading.value = false;
|
|
32103
32103
|
resolve2(true);
|
|
@@ -40860,7 +40860,7 @@ const _sfc_main$1_ = /* @__PURE__ */ defineComponent({
|
|
|
40860
40860
|
var _a;
|
|
40861
40861
|
return ((_a = container == null ? void 0 : container.$transferParams) == null ? void 0 : _a.value) || {};
|
|
40862
40862
|
});
|
|
40863
|
-
const { $codeField, $messageField, $dataField, $success } = utils.getApiConfig();
|
|
40863
|
+
const { $codeField: $codeField2, $messageField: $messageField2, $dataField: $dataField2, $success: $success2 } = utils.getApiConfig();
|
|
40864
40864
|
const { $idField, $actionField } = utils.getMenuConfig();
|
|
40865
40865
|
const { $pageDataField, $menuField, $pageSizeField, $currentPageField, $totalField, $pageCountField, $avgDayField } = utils.getTableConfig();
|
|
40866
40866
|
const { getValue: getValue2, setValue, attrProps } = useProps(props2);
|
|
@@ -41557,8 +41557,8 @@ const _sfc_main$1_ = /* @__PURE__ */ defineComponent({
|
|
|
41557
41557
|
tableData.forEach((ele) => {
|
|
41558
41558
|
ele.saveDataLoading = false;
|
|
41559
41559
|
});
|
|
41560
|
-
if (res[$
|
|
41561
|
-
ElMessage.error(res[$
|
|
41560
|
+
if (res[$codeField2] != "0") {
|
|
41561
|
+
ElMessage.error(res[$messageField2]);
|
|
41562
41562
|
} else {
|
|
41563
41563
|
if (!res.EventActionData) {
|
|
41564
41564
|
ElMessage.success("保存成功");
|
|
@@ -41663,8 +41663,8 @@ const _sfc_main$1_ = /* @__PURE__ */ defineComponent({
|
|
|
41663
41663
|
}
|
|
41664
41664
|
function handleTableRowMoveHere(url) {
|
|
41665
41665
|
url.post({ selectID: sortSelectRow[dataKey.value], moveID: rowData[dataKey.value] }).then((res) => {
|
|
41666
|
-
if (!res || res[$
|
|
41667
|
-
ElMessage.error(res[$
|
|
41666
|
+
if (!res || res[$codeField2] != "0") {
|
|
41667
|
+
ElMessage.error(res[$messageField2]);
|
|
41668
41668
|
} else {
|
|
41669
41669
|
ElMessage.success("移动成功");
|
|
41670
41670
|
readData();
|
|
@@ -41673,8 +41673,8 @@ const _sfc_main$1_ = /* @__PURE__ */ defineComponent({
|
|
|
41673
41673
|
}
|
|
41674
41674
|
function handleTableRowExchangeMove(url) {
|
|
41675
41675
|
url.post({ selectID: sortSelectRow[dataKey.value], moveID: rowData[dataKey.value] }).then((res) => {
|
|
41676
|
-
if (!res || res[$
|
|
41677
|
-
ElMessage.error(res[$
|
|
41676
|
+
if (!res || res[$codeField2] != "0") {
|
|
41677
|
+
ElMessage.error(res[$messageField2]);
|
|
41678
41678
|
} else {
|
|
41679
41679
|
ElMessage.success("移动成功");
|
|
41680
41680
|
readData();
|
|
@@ -41924,19 +41924,19 @@ const _sfc_main$1_ = /* @__PURE__ */ defineComponent({
|
|
|
41924
41924
|
let currQueryData = utils.getQueryParameters(searchQueryData);
|
|
41925
41925
|
const requestUrl = props2.url.setPowerPublicQuery().setTransferParams(transferParams.value);
|
|
41926
41926
|
return requestUrl.postWithCancel(currQueryData, readDataCancel).then((res) => {
|
|
41927
|
-
if (res[$
|
|
41928
|
-
if (res[$
|
|
41927
|
+
if (res[$codeField2] === $success2) {
|
|
41928
|
+
if (res[$dataField2][$pageSizeField] != void 0) {
|
|
41929
41929
|
sourceTableData.length = 0;
|
|
41930
|
-
sourceTableData.push(...res[$
|
|
41930
|
+
sourceTableData.push(...res[$dataField2][$pageDataField]);
|
|
41931
41931
|
if (!props2.isClientPage) {
|
|
41932
|
-
currPageSize.value = res[$
|
|
41932
|
+
currPageSize.value = res[$dataField2][$pageSizeField];
|
|
41933
41933
|
}
|
|
41934
|
-
currPageIndex.value = res[$
|
|
41935
|
-
currRecourdCount.value = res[$
|
|
41936
|
-
currPageTotal.value = res[$
|
|
41934
|
+
currPageIndex.value = res[$dataField2][$currentPageField] + 1;
|
|
41935
|
+
currRecourdCount.value = res[$dataField2][$totalField];
|
|
41936
|
+
currPageTotal.value = res[$dataField2][$pageCountField];
|
|
41937
41937
|
} else {
|
|
41938
41938
|
sourceTableData.length = 0;
|
|
41939
|
-
sourceTableData.push(...res[$
|
|
41939
|
+
sourceTableData.push(...res[$dataField2]);
|
|
41940
41940
|
}
|
|
41941
41941
|
if (props2.isClientSearch || props2.isClientPage) {
|
|
41942
41942
|
clientTableData();
|
|
@@ -41945,11 +41945,11 @@ const _sfc_main$1_ = /* @__PURE__ */ defineComponent({
|
|
|
41945
41945
|
tableData.push(...sourceTableData);
|
|
41946
41946
|
}
|
|
41947
41947
|
editSourceTableData = utils.cloneObj(sourceTableData);
|
|
41948
|
-
if ($avgDayField && res[$
|
|
41949
|
-
provideData.avgDay = res[$
|
|
41948
|
+
if ($avgDayField && res[$dataField2][$avgDayField]) {
|
|
41949
|
+
provideData.avgDay = res[$dataField2][$avgDayField];
|
|
41950
41950
|
}
|
|
41951
41951
|
} else {
|
|
41952
|
-
ElMessage.error(res[$
|
|
41952
|
+
ElMessage.error(res[$messageField2]);
|
|
41953
41953
|
}
|
|
41954
41954
|
dataLoading.value = false;
|
|
41955
41955
|
if (props2.afterReadData) {
|
|
@@ -42373,12 +42373,12 @@ const _sfc_main$1_ = /* @__PURE__ */ defineComponent({
|
|
|
42373
42373
|
background: "rgba(0, 0, 0, 0.7)"
|
|
42374
42374
|
});
|
|
42375
42375
|
currUrl.post(currQueryData).then((res) => {
|
|
42376
|
-
if (res[$
|
|
42376
|
+
if (res[$codeField2] === "0") {
|
|
42377
42377
|
tableData.length = 0;
|
|
42378
|
-
if (res[$
|
|
42379
|
-
tableData.push(...res[$
|
|
42378
|
+
if (res[$dataField2][$pageSizeField] != void 0) {
|
|
42379
|
+
tableData.push(...res[$dataField2][$pageDataField]);
|
|
42380
42380
|
} else {
|
|
42381
|
-
tableData.push(...res[$
|
|
42381
|
+
tableData.push(...res[$dataField2]);
|
|
42382
42382
|
}
|
|
42383
42383
|
nextTick(() => {
|
|
42384
42384
|
exportDataHtml();
|
|
@@ -42387,7 +42387,7 @@ const _sfc_main$1_ = /* @__PURE__ */ defineComponent({
|
|
|
42387
42387
|
});
|
|
42388
42388
|
} else {
|
|
42389
42389
|
exportLoading.close();
|
|
42390
|
-
ElMessage.error(res[$
|
|
42390
|
+
ElMessage.error(res[$messageField2]);
|
|
42391
42391
|
}
|
|
42392
42392
|
}).catch((action) => {
|
|
42393
42393
|
exportLoading.close();
|
|
@@ -43295,7 +43295,7 @@ const _sfc_main$1X = /* @__PURE__ */ defineComponent({
|
|
|
43295
43295
|
const emits2 = __emit;
|
|
43296
43296
|
const props2 = __props;
|
|
43297
43297
|
const { setValue, attrProps } = useProps(props2);
|
|
43298
|
-
const { $codeField, $messageField, $dataField, $success } = utils.getApiConfig();
|
|
43298
|
+
const { $codeField: $codeField2, $messageField: $messageField2, $dataField: $dataField2, $success: $success2 } = utils.getApiConfig();
|
|
43299
43299
|
const searchKey = ref("");
|
|
43300
43300
|
const isCollapse = ref(props2.collapse);
|
|
43301
43301
|
let hiddenMenuIds = ref([]);
|
|
@@ -43398,12 +43398,12 @@ const _sfc_main$1X = /* @__PURE__ */ defineComponent({
|
|
|
43398
43398
|
function readData() {
|
|
43399
43399
|
if (props2.url) {
|
|
43400
43400
|
props2.url.post({}).then((res) => {
|
|
43401
|
-
if (res[$
|
|
43401
|
+
if (res[$codeField2] == $success2) {
|
|
43402
43402
|
optionData.length = 0;
|
|
43403
|
-
optionData.push(...res[$
|
|
43403
|
+
optionData.push(...res[$dataField2]);
|
|
43404
43404
|
converToData();
|
|
43405
43405
|
} else {
|
|
43406
|
-
ElMessage.error(res[$
|
|
43406
|
+
ElMessage.error(res[$messageField2]);
|
|
43407
43407
|
}
|
|
43408
43408
|
});
|
|
43409
43409
|
}
|
|
@@ -44104,10 +44104,10 @@ class Autocomplete extends TBaseFormItem {
|
|
|
44104
44104
|
pcRender() {
|
|
44105
44105
|
var _a;
|
|
44106
44106
|
const {
|
|
44107
|
-
$codeField,
|
|
44108
|
-
$messageField,
|
|
44109
|
-
$dataField,
|
|
44110
|
-
$success
|
|
44107
|
+
$codeField: $codeField2,
|
|
44108
|
+
$messageField: $messageField2,
|
|
44109
|
+
$dataField: $dataField2,
|
|
44110
|
+
$success: $success2
|
|
44111
44111
|
} = utils.getApiConfig();
|
|
44112
44112
|
const queryMethod = (searchValue, cb) => {
|
|
44113
44113
|
if (this._props.fetchSuggestions) {
|
|
@@ -44128,11 +44128,11 @@ class Autocomplete extends TBaseFormItem {
|
|
|
44128
44128
|
return new Promise((resolve2) => {
|
|
44129
44129
|
if (this._props.url) {
|
|
44130
44130
|
this._props.url.post(this.queryData).then((res) => {
|
|
44131
|
-
if (res[$
|
|
44131
|
+
if (res[$codeField2] == $success2) {
|
|
44132
44132
|
this.tableData.length = 0;
|
|
44133
|
-
this.tableData.push(...res[$
|
|
44133
|
+
this.tableData.push(...res[$dataField2]);
|
|
44134
44134
|
} else {
|
|
44135
|
-
ProxyElsMessage.error(res[$
|
|
44135
|
+
ProxyElsMessage.error(res[$messageField2]);
|
|
44136
44136
|
}
|
|
44137
44137
|
});
|
|
44138
44138
|
} else {
|
|
@@ -44474,7 +44474,7 @@ const _sfc_main$1P = /* @__PURE__ */ defineComponent({
|
|
|
44474
44474
|
emits: ["update:modelValue"],
|
|
44475
44475
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
44476
44476
|
const emits2 = __emit;
|
|
44477
|
-
const { $codeField, $success } = utils.getApiConfig();
|
|
44477
|
+
const { $codeField: $codeField2, $success: $success2 } = utils.getApiConfig();
|
|
44478
44478
|
const slots = useSlots();
|
|
44479
44479
|
const props2 = __props;
|
|
44480
44480
|
const { getValue: getValue2 } = useProps(props2);
|
|
@@ -44517,7 +44517,7 @@ const _sfc_main$1P = /* @__PURE__ */ defineComponent({
|
|
|
44517
44517
|
if (action === "confirm") {
|
|
44518
44518
|
if (props2.confirm) {
|
|
44519
44519
|
props2.confirm().then((res) => {
|
|
44520
|
-
if (res === true || res[$
|
|
44520
|
+
if (res === true || res[$codeField2] == $success2) {
|
|
44521
44521
|
resolve2(true);
|
|
44522
44522
|
} else {
|
|
44523
44523
|
resolve2(false);
|
|
@@ -44529,7 +44529,7 @@ const _sfc_main$1P = /* @__PURE__ */ defineComponent({
|
|
|
44529
44529
|
} else {
|
|
44530
44530
|
if (props2.cancel) {
|
|
44531
44531
|
props2.cancel().then((res) => {
|
|
44532
|
-
if (res === true || res[$
|
|
44532
|
+
if (res === true || res[$codeField2] == $success2) {
|
|
44533
44533
|
resolve2(true);
|
|
44534
44534
|
} else {
|
|
44535
44535
|
resolve2(false);
|
|
@@ -44551,7 +44551,7 @@ const _sfc_main$1P = /* @__PURE__ */ defineComponent({
|
|
|
44551
44551
|
if (props2.cancel) {
|
|
44552
44552
|
cancelLoading.value = true;
|
|
44553
44553
|
props2.cancel().then((res) => {
|
|
44554
|
-
if (res === true || res[$
|
|
44554
|
+
if (res === true || res[$codeField2] == $success2) {
|
|
44555
44555
|
dialogVisible.value = false;
|
|
44556
44556
|
}
|
|
44557
44557
|
cancelLoading.value = false;
|
|
@@ -44564,7 +44564,7 @@ const _sfc_main$1P = /* @__PURE__ */ defineComponent({
|
|
|
44564
44564
|
if (props2.confirm) {
|
|
44565
44565
|
confirmLoading.value = true;
|
|
44566
44566
|
props2.confirm().then((res) => {
|
|
44567
|
-
if (res === true || res[$
|
|
44567
|
+
if (res === true || res[$codeField2] == $success2) {
|
|
44568
44568
|
dialogVisible.value = false;
|
|
44569
44569
|
}
|
|
44570
44570
|
confirmLoading.value = false;
|
|
@@ -44719,7 +44719,7 @@ const _sfc_main$1O = /* @__PURE__ */ defineComponent({
|
|
|
44719
44719
|
const emits2 = __emit;
|
|
44720
44720
|
const slots = useSlots();
|
|
44721
44721
|
const props2 = __props;
|
|
44722
|
-
const { $codeField, $success } = utils.getApiConfig();
|
|
44722
|
+
const { $codeField: $codeField2, $success: $success2 } = utils.getApiConfig();
|
|
44723
44723
|
const cancelLoading = ref(false);
|
|
44724
44724
|
const confirmLoading = ref(false);
|
|
44725
44725
|
const tagID = "less_drawer_" + utils.shortid();
|
|
@@ -44745,7 +44745,7 @@ const _sfc_main$1O = /* @__PURE__ */ defineComponent({
|
|
|
44745
44745
|
if (props2.cancel) {
|
|
44746
44746
|
cancelLoading.value = true;
|
|
44747
44747
|
props2.cancel().then((res) => {
|
|
44748
|
-
if (res === true || res[$
|
|
44748
|
+
if (res === true || res[$codeField2] == $success2) {
|
|
44749
44749
|
drawerVisible.value = false;
|
|
44750
44750
|
}
|
|
44751
44751
|
cancelLoading.value = false;
|
|
@@ -44758,7 +44758,7 @@ const _sfc_main$1O = /* @__PURE__ */ defineComponent({
|
|
|
44758
44758
|
if (props2.confirm) {
|
|
44759
44759
|
confirmLoading.value = true;
|
|
44760
44760
|
props2.confirm().then((res) => {
|
|
44761
|
-
if (res === true || res[$
|
|
44761
|
+
if (res === true || res[$codeField2] == $success2) {
|
|
44762
44762
|
drawerVisible.value = false;
|
|
44763
44763
|
}
|
|
44764
44764
|
confirmLoading.value = false;
|
|
@@ -45363,7 +45363,7 @@ let Upload$2 = class Upload extends TBaseFormItem {
|
|
|
45363
45363
|
__publicField(this, "handleSuccess", (res, file, fileList) => {
|
|
45364
45364
|
const apiConfig = utils.getApiConfig();
|
|
45365
45365
|
const {
|
|
45366
|
-
$dataField,
|
|
45366
|
+
$dataField: $dataField2,
|
|
45367
45367
|
$pathField,
|
|
45368
45368
|
$md5Field
|
|
45369
45369
|
} = utils.getUploadConfig();
|
|
@@ -45379,8 +45379,8 @@ let Upload$2 = class Upload extends TBaseFormItem {
|
|
|
45379
45379
|
file.message = "上传成功";
|
|
45380
45380
|
let currUrl = "";
|
|
45381
45381
|
let currRes = res[apiConfig.$dataField];
|
|
45382
|
-
if ($
|
|
45383
|
-
currRes = res[apiConfig.$dataField][$
|
|
45382
|
+
if ($dataField2) {
|
|
45383
|
+
currRes = res[apiConfig.$dataField][$dataField2];
|
|
45384
45384
|
}
|
|
45385
45385
|
currUrl = currRes[$pathField];
|
|
45386
45386
|
if (this._props.hasMd5Parameter) {
|
|
@@ -48387,7 +48387,7 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
|
|
|
48387
48387
|
const getFormLabelPosition = getValue2("getFormLabelPosition", () => "");
|
|
48388
48388
|
const getFormLabelWidth = getValue2("getFormLabelWidth", () => "");
|
|
48389
48389
|
const getFormLabelSuffix = getValue2("getFormLabelSuffix", () => "");
|
|
48390
|
-
const { $codeField, $messageField, $dataField, $success } = utils.getApiConfig();
|
|
48390
|
+
const { $codeField: $codeField2, $messageField: $messageField2, $dataField: $dataField2, $success: $success2 } = utils.getApiConfig();
|
|
48391
48391
|
const modelValue = useModel$1(__props, "modelValue");
|
|
48392
48392
|
const loading = ref(false);
|
|
48393
48393
|
const sseAbort = ref(null);
|
|
@@ -48476,14 +48476,14 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
|
|
|
48476
48476
|
}
|
|
48477
48477
|
function handleResponse(res) {
|
|
48478
48478
|
const append2 = props2.requestMethod === "SSE";
|
|
48479
|
-
if (res && res[$
|
|
48480
|
-
if (res[$
|
|
48481
|
-
ProxyElsMessage.error(res[$
|
|
48479
|
+
if (res && res[$codeField2] !== void 0) {
|
|
48480
|
+
if (res[$codeField2] != $success2) {
|
|
48481
|
+
ProxyElsMessage.error(res[$messageField2]);
|
|
48482
48482
|
setResult(res, "error", append2);
|
|
48483
48483
|
emit("error", res);
|
|
48484
48484
|
return;
|
|
48485
48485
|
}
|
|
48486
|
-
const data = res[$
|
|
48486
|
+
const data = res[$dataField2];
|
|
48487
48487
|
applyResult(data);
|
|
48488
48488
|
setResult(res, "success", append2);
|
|
48489
48489
|
emit("success", data);
|
|
@@ -48497,7 +48497,7 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
|
|
|
48497
48497
|
}
|
|
48498
48498
|
function extractErrorMessage(err) {
|
|
48499
48499
|
var _a, _b, _c;
|
|
48500
|
-
return ((_a = err == null ? void 0 : err.data) == null ? void 0 : _a[$
|
|
48500
|
+
return ((_a = err == null ? void 0 : err.data) == null ? void 0 : _a[$messageField2]) || ((_c = (_b = err == null ? void 0 : err.response) == null ? void 0 : _b.data) == null ? void 0 : _c[$messageField2]) || (err == null ? void 0 : err.message) || "请求失败";
|
|
48501
48501
|
}
|
|
48502
48502
|
function normalizeError(err) {
|
|
48503
48503
|
var _a;
|
|
@@ -74029,7 +74029,7 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
|
74029
74029
|
const { setContainer } = useProps(props2);
|
|
74030
74030
|
const tagID = "els-container" + utils.shortid();
|
|
74031
74031
|
const { ctx } = getCurrentInstance();
|
|
74032
|
-
const { $codeField, $messageField, $success, $eventData } = utils.getApiConfig();
|
|
74032
|
+
const { $codeField: $codeField2, $messageField: $messageField2, $success: $success2, $eventData } = utils.getApiConfig();
|
|
74033
74033
|
const { $actionTypeField, $confirmField, $confirmPasswordField, $urlField, $nameField } = utils.getMenuConfig();
|
|
74034
74034
|
const elsPageStore = ref({
|
|
74035
74035
|
validates: [],
|
|
@@ -74325,7 +74325,7 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
|
74325
74325
|
menu.IsLoading = false;
|
|
74326
74326
|
resolve2({ menu, res: true });
|
|
74327
74327
|
if (!res) return;
|
|
74328
|
-
if (res[$
|
|
74328
|
+
if (res[$codeField2] == "0") {
|
|
74329
74329
|
var currUrl = res.Data;
|
|
74330
74330
|
if (currUrl.indexOf("txt") > -1) {
|
|
74331
74331
|
utils.downLoadTxt(currUrl);
|
|
@@ -74333,7 +74333,7 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
|
74333
74333
|
window.location.href = currUrl;
|
|
74334
74334
|
}
|
|
74335
74335
|
} else {
|
|
74336
|
-
ElMessage.error(res[$
|
|
74336
|
+
ElMessage.error(res[$messageField2]);
|
|
74337
74337
|
}
|
|
74338
74338
|
});
|
|
74339
74339
|
} else {
|
|
@@ -74359,11 +74359,11 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
|
74359
74359
|
if (!res) {
|
|
74360
74360
|
return;
|
|
74361
74361
|
}
|
|
74362
|
-
if (!res[$eventData.data] && res[$
|
|
74363
|
-
ElMessage.success(res[$
|
|
74362
|
+
if (!res[$eventData.data] && res[$codeField2] == $success2) {
|
|
74363
|
+
ElMessage.success(res[$messageField2]);
|
|
74364
74364
|
return;
|
|
74365
|
-
} else if (!res[$eventData.data] && res[$
|
|
74366
|
-
ElMessage.error(res[$
|
|
74365
|
+
} else if (!res[$eventData.data] && res[$codeField2] != $success2) {
|
|
74366
|
+
ElMessage.error(res[$messageField2]);
|
|
74367
74367
|
return;
|
|
74368
74368
|
}
|
|
74369
74369
|
res[$eventData.data].forEach((action) => {
|
|
@@ -75055,7 +75055,7 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
75055
75055
|
emits: /* @__PURE__ */ mergeModels(["removeItem"], ["update:children"]),
|
|
75056
75056
|
setup(__props, { emit: __emit }) {
|
|
75057
75057
|
const DynamicDesignerInnerItem = defineAsyncComponent(() => {
|
|
75058
|
-
return import("./innerItem-
|
|
75058
|
+
return import("./innerItem-CX6bP73Z.js");
|
|
75059
75059
|
});
|
|
75060
75060
|
const { getValue: getValue2 } = useProps();
|
|
75061
75061
|
const tagID = getValue2("tagID");
|
|
@@ -75523,7 +75523,7 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
|
75523
75523
|
props: designerProps,
|
|
75524
75524
|
emits: ["update:modelValue", "update:templateValue"],
|
|
75525
75525
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
75526
|
-
const { $codeField, $messageField, $success } = utils.getApiConfig();
|
|
75526
|
+
const { $codeField: $codeField2, $messageField: $messageField2, $success: $success2 } = utils.getApiConfig();
|
|
75527
75527
|
const props2 = __props;
|
|
75528
75528
|
const emits2 = __emit;
|
|
75529
75529
|
const { setValue, formNodeProps } = useProps(props2);
|
|
@@ -75752,7 +75752,7 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
|
75752
75752
|
data: JSON.stringify(data)
|
|
75753
75753
|
}).then((res) => {
|
|
75754
75754
|
var _a, _b, _c;
|
|
75755
|
-
if (res[$
|
|
75755
|
+
if (res[$codeField2] == $success2) {
|
|
75756
75756
|
if ((_a = res.Data) == null ? void 0 : _a.ID) {
|
|
75757
75757
|
data.id = (_b = res.Data) == null ? void 0 : _b.ID;
|
|
75758
75758
|
data.componentType.id = (_c = res.Data) == null ? void 0 : _c.ID;
|
|
@@ -75776,7 +75776,7 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
|
75776
75776
|
currComponentTypes.value.push(data.componentType);
|
|
75777
75777
|
resolve2(true);
|
|
75778
75778
|
} else {
|
|
75779
|
-
ProxyElsMessage.warning(res[$
|
|
75779
|
+
ProxyElsMessage.warning(res[$messageField2]);
|
|
75780
75780
|
resolve2(false);
|
|
75781
75781
|
}
|
|
75782
75782
|
}).catch((res) => {
|
|
@@ -76093,10 +76093,10 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
|
76093
76093
|
emits: ["update:modelValue"],
|
|
76094
76094
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
76095
76095
|
const DynamicRenderInner = defineAsyncComponent(() => {
|
|
76096
|
-
return import("./inner-
|
|
76096
|
+
return import("./inner-CqdvLUls.js").then((n) => n.i);
|
|
76097
76097
|
});
|
|
76098
76098
|
const DynamicRenderForm = defineAsyncComponent(() => {
|
|
76099
|
-
return import("./inner-
|
|
76099
|
+
return import("./inner-CqdvLUls.js").then((n) => n.f);
|
|
76100
76100
|
});
|
|
76101
76101
|
const props2 = __props;
|
|
76102
76102
|
const { getValue: getValue2, setValue, formNodeProps } = useProps(props2);
|
|
@@ -76336,10 +76336,10 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
76336
76336
|
emits: ["update:modelValue"],
|
|
76337
76337
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
76338
76338
|
const DynamicRenderInnerAsync = defineAsyncComponent(() => {
|
|
76339
|
-
return import("./inner-
|
|
76339
|
+
return import("./inner-CqdvLUls.js").then((n) => n.i);
|
|
76340
76340
|
});
|
|
76341
76341
|
const DynamicRenderFormAsync = defineAsyncComponent(() => {
|
|
76342
|
-
return import("./inner-
|
|
76342
|
+
return import("./inner-CqdvLUls.js").then((n) => n.f);
|
|
76343
76343
|
});
|
|
76344
76344
|
const props2 = __props;
|
|
76345
76345
|
const { getValue: getValue2, setValue, formNodeProps } = useProps(props2);
|
|
@@ -79584,6 +79584,7 @@ const designerViewProps = buildProps({
|
|
|
79584
79584
|
default: () => []
|
|
79585
79585
|
}
|
|
79586
79586
|
});
|
|
79587
|
+
const { $codeField, $messageField, $success, $dataField } = utils.getApiConfig();
|
|
79587
79588
|
const AI_SYSTEM_PROMPT = `你是一个低代码表单配置生成器。根据用户描述,输出符合以下格式的 JSON 数组。只输出 JSON,不要有任何额外文字、注释或代码块标记。
|
|
79588
79589
|
|
|
79589
79590
|
# 节点结构
|
|
@@ -80062,17 +80063,22 @@ Table 表格适合需要用户编辑多行数据的场景,isEdit:true 开启
|
|
|
80062
80063
|
]
|
|
80063
80064
|
\`\`\``;
|
|
80064
80065
|
async function callAI(url, userPrompt, options2) {
|
|
80065
|
-
var _a, _b, _c;
|
|
80066
80066
|
const sys = (options2 == null ? void 0 : options2.systemPrompt) || AI_SYSTEM_PROMPT;
|
|
80067
80067
|
const body = (options2 == null ? void 0 : options2.buildRequest) ? options2.buildRequest(sys, userPrompt) : { system: sys, user: userPrompt };
|
|
80068
|
-
const res = await
|
|
80069
|
-
|
|
80070
|
-
|
|
80071
|
-
|
|
80072
|
-
}
|
|
80073
|
-
|
|
80074
|
-
|
|
80075
|
-
|
|
80068
|
+
const res = await url.post(body);
|
|
80069
|
+
if (res[$codeField] != $success) {
|
|
80070
|
+
ProxyElsMessage.warning(`${res[$messageField]}`);
|
|
80071
|
+
return [];
|
|
80072
|
+
}
|
|
80073
|
+
let text = (options2 == null ? void 0 : options2.pickResponse) ? options2.pickResponse(res[$dataField]) : res[$dataField];
|
|
80074
|
+
text = text.replace(/^```(?:json)?\s*/i, "").replace(/\s*```\s*$/, "").trim();
|
|
80075
|
+
try {
|
|
80076
|
+
const data = JSON.parse(text);
|
|
80077
|
+
return Array.isArray(data) ? data : [data];
|
|
80078
|
+
} catch {
|
|
80079
|
+
ProxyElsMessage.warning("AI 返回格式无效,请重试");
|
|
80080
|
+
return [];
|
|
80081
|
+
}
|
|
80076
80082
|
}
|
|
80077
80083
|
const useDesign = defineStore("dynamic-design", () => {
|
|
80078
80084
|
const queue = ref([]);
|
|
@@ -80979,6 +80985,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
80979
80985
|
const aiGenerating = ref(false);
|
|
80980
80986
|
const showAiDialog = ref(false);
|
|
80981
80987
|
const aiTargetNode = ref(null);
|
|
80988
|
+
const aiOverwrite = ref("overwrite");
|
|
80982
80989
|
function handleAiGenerate(targetNode) {
|
|
80983
80990
|
aiTargetNode.value = targetNode;
|
|
80984
80991
|
showAiDialog.value = true;
|
|
@@ -80987,7 +80994,9 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
80987
80994
|
if (!aiPrompt.value.trim()) return;
|
|
80988
80995
|
aiGenerating.value = true;
|
|
80989
80996
|
try {
|
|
80990
|
-
const
|
|
80997
|
+
const currChildren = aiTargetNode.value ? aiTargetNode.value.children : renderData.value;
|
|
80998
|
+
const existingJson = aiOverwrite.value !== "overwrite" && currChildren.length ? "\n\n当前已有配置(请在此基础上修改,返回完整的修改后配置):\n" + JSON.stringify(utils.cloneObj(currChildren)) : "";
|
|
80999
|
+
const nodes = await callAI(props2.aiUrl, aiPrompt.value + existingJson, {
|
|
80991
81000
|
systemPrompt: props2.aiSystemPrompt,
|
|
80992
81001
|
buildRequest: props2.aiBuildRequest,
|
|
80993
81002
|
pickResponse: props2.aiPickResponse
|
|
@@ -80996,9 +81005,10 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
80996
81005
|
dynamicHandler.initConfig(processed);
|
|
80997
81006
|
dynamicHandler.initConfigType(processed);
|
|
80998
81007
|
if (aiTargetNode.value) {
|
|
81008
|
+
if (aiOverwrite.value !== "append") aiTargetNode.value.children.length = 0;
|
|
80999
81009
|
aiTargetNode.value.children.push(...processed);
|
|
81000
81010
|
} else {
|
|
81001
|
-
renderData.value.length = 0;
|
|
81011
|
+
if (aiOverwrite.value !== "append") renderData.value.length = 0;
|
|
81002
81012
|
renderData.value.push(...processed);
|
|
81003
81013
|
}
|
|
81004
81014
|
showAiDialog.value = false;
|
|
@@ -81059,6 +81069,8 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
81059
81069
|
const _component_els_dialog = resolveComponent("els-dialog");
|
|
81060
81070
|
const _component_els_menu_context = resolveComponent("els-menu-context");
|
|
81061
81071
|
const _component_el_input = resolveComponent("el-input");
|
|
81072
|
+
const _component_el_radio = resolveComponent("el-radio");
|
|
81073
|
+
const _component_el_radio_group = resolveComponent("el-radio-group");
|
|
81062
81074
|
const _component_el_dialog = resolveComponent("el-dialog");
|
|
81063
81075
|
return openBlock(), createElementBlock(Fragment$1, null, [
|
|
81064
81076
|
createElementVNode("div", mergeProps({
|
|
@@ -81407,13 +81419,13 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
81407
81419
|
}, {
|
|
81408
81420
|
default: withCtx(() => [
|
|
81409
81421
|
createVNode(_component_els_option, null, {
|
|
81410
|
-
default: withCtx(() => [..._cache[
|
|
81422
|
+
default: withCtx(() => [..._cache[26] || (_cache[26] = [
|
|
81411
81423
|
createTextVNode("PC", -1)
|
|
81412
81424
|
])]),
|
|
81413
81425
|
_: 1
|
|
81414
81426
|
}),
|
|
81415
81427
|
createVNode(_component_els_option, null, {
|
|
81416
|
-
default: withCtx(() => [..._cache[
|
|
81428
|
+
default: withCtx(() => [..._cache[27] || (_cache[27] = [
|
|
81417
81429
|
createTextVNode("H5", -1)
|
|
81418
81430
|
])]),
|
|
81419
81431
|
_: 1
|
|
@@ -81435,7 +81447,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
81435
81447
|
]),
|
|
81436
81448
|
_: 1
|
|
81437
81449
|
}),
|
|
81438
|
-
_cache[
|
|
81450
|
+
_cache[28] || (_cache[28] = createTextVNode("返回 ", -1))
|
|
81439
81451
|
]),
|
|
81440
81452
|
_: 1
|
|
81441
81453
|
})) : createCommentVNode("", true),
|
|
@@ -81451,7 +81463,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
81451
81463
|
]),
|
|
81452
81464
|
_: 1
|
|
81453
81465
|
}),
|
|
81454
|
-
_cache[
|
|
81466
|
+
_cache[29] || (_cache[29] = createTextVNode("清空 ", -1))
|
|
81455
81467
|
]),
|
|
81456
81468
|
_: 1
|
|
81457
81469
|
})) : createCommentVNode("", true),
|
|
@@ -81467,7 +81479,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
81467
81479
|
]),
|
|
81468
81480
|
_: 1
|
|
81469
81481
|
}),
|
|
81470
|
-
_cache[
|
|
81482
|
+
_cache[30] || (_cache[30] = createTextVNode("AI生成 ", -1))
|
|
81471
81483
|
]),
|
|
81472
81484
|
_: 1
|
|
81473
81485
|
})) : createCommentVNode("", true),
|
|
@@ -81503,7 +81515,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
81503
81515
|
]),
|
|
81504
81516
|
_: 1
|
|
81505
81517
|
}),
|
|
81506
|
-
_cache[
|
|
81518
|
+
_cache[31] || (_cache[31] = createTextVNode("预览 ", -1))
|
|
81507
81519
|
]),
|
|
81508
81520
|
_: 1
|
|
81509
81521
|
})) : createCommentVNode("", true),
|
|
@@ -81519,7 +81531,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
81519
81531
|
]),
|
|
81520
81532
|
_: 1
|
|
81521
81533
|
}),
|
|
81522
|
-
_cache[
|
|
81534
|
+
_cache[32] || (_cache[32] = createTextVNode("保存 ", -1))
|
|
81523
81535
|
]),
|
|
81524
81536
|
_: 1
|
|
81525
81537
|
})) : createCommentVNode("", true)
|
|
@@ -81548,7 +81560,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
81548
81560
|
})
|
|
81549
81561
|
]),
|
|
81550
81562
|
createElementVNode("div", _hoisted_15$2, [
|
|
81551
|
-
_cache[
|
|
81563
|
+
_cache[34] || (_cache[34] = createElementVNode("div", null, "页面已有Form表单", -1)),
|
|
81552
81564
|
createElementVNode("div", null, [
|
|
81553
81565
|
createVNode(_component_el_button, {
|
|
81554
81566
|
type: "info",
|
|
@@ -81556,7 +81568,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
81556
81568
|
startCreate.value = true;
|
|
81557
81569
|
})
|
|
81558
81570
|
}, {
|
|
81559
|
-
default: withCtx(() => [..._cache[
|
|
81571
|
+
default: withCtx(() => [..._cache[33] || (_cache[33] = [
|
|
81560
81572
|
createTextVNode("直接进入", -1)
|
|
81561
81573
|
])]),
|
|
81562
81574
|
_: 1
|
|
@@ -81577,13 +81589,13 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
81577
81589
|
})
|
|
81578
81590
|
]),
|
|
81579
81591
|
createElementVNode("div", _hoisted_17$1, [
|
|
81580
|
-
_cache[
|
|
81592
|
+
_cache[36] || (_cache[36] = createElementVNode("div", null, " 没有Form表单创建一个 ", -1)),
|
|
81581
81593
|
createElementVNode("div", null, [
|
|
81582
81594
|
createVNode(_component_el_button, {
|
|
81583
81595
|
type: "primary",
|
|
81584
81596
|
onClick: createRootForm
|
|
81585
81597
|
}, {
|
|
81586
|
-
default: withCtx(() => [..._cache[
|
|
81598
|
+
default: withCtx(() => [..._cache[35] || (_cache[35] = [
|
|
81587
81599
|
createTextVNode("创建表单", -1)
|
|
81588
81600
|
])]),
|
|
81589
81601
|
_: 1
|
|
@@ -81606,7 +81618,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
81606
81618
|
renderData: renderData.value
|
|
81607
81619
|
}, null, 8, ["type", "renderData"])),
|
|
81608
81620
|
!renderData.value.length || renderData.value.length && renderData.value[0].componentType === "Form" && !renderData.value[0].children.length ? (openBlock(), createBlock(_component_el_empty, { key: 2 }, {
|
|
81609
|
-
description: withCtx(() => [..._cache[
|
|
81621
|
+
description: withCtx(() => [..._cache[37] || (_cache[37] = [
|
|
81610
81622
|
createTextVNode("请点击拖动", -1),
|
|
81611
81623
|
createElementVNode("span", { class: "txt-red" }, "左侧", -1),
|
|
81612
81624
|
createTextVNode("组件到此处", -1)
|
|
@@ -81779,7 +81791,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
81779
81791
|
}, {
|
|
81780
81792
|
header: withCtx(() => [
|
|
81781
81793
|
createElementVNode("div", _hoisted_20$1, [
|
|
81782
|
-
_cache[
|
|
81794
|
+
_cache[40] || (_cache[40] = createElementVNode("div", null, null, -1)),
|
|
81783
81795
|
createElementVNode("div", _hoisted_21$1, [
|
|
81784
81796
|
createElementVNode("div", {
|
|
81785
81797
|
class: normalizeClass(["tab-item", { active: previewTab.value === "preview" }]),
|
|
@@ -81791,7 +81803,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
81791
81803
|
]),
|
|
81792
81804
|
_: 1
|
|
81793
81805
|
}),
|
|
81794
|
-
_cache[
|
|
81806
|
+
_cache[38] || (_cache[38] = createTextVNode(" 效果预览 ", -1))
|
|
81795
81807
|
], 2),
|
|
81796
81808
|
createElementVNode("div", {
|
|
81797
81809
|
class: normalizeClass(["tab-item", { active: previewTab.value === "properties" }]),
|
|
@@ -81803,10 +81815,10 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
81803
81815
|
]),
|
|
81804
81816
|
_: 1
|
|
81805
81817
|
}),
|
|
81806
|
-
_cache[
|
|
81818
|
+
_cache[39] || (_cache[39] = createTextVNode(" 数据模型 ", -1))
|
|
81807
81819
|
], 2)
|
|
81808
81820
|
]),
|
|
81809
|
-
_cache[
|
|
81821
|
+
_cache[41] || (_cache[41] = createElementVNode("div", { class: "header-actions" }, null, -1))
|
|
81810
81822
|
])
|
|
81811
81823
|
]),
|
|
81812
81824
|
default: withCtx(() => [
|
|
@@ -81817,8 +81829,8 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
81817
81829
|
withDirectives(createElementVNode("div", _hoisted_23, [
|
|
81818
81830
|
deviceType.value === "H5" ? (openBlock(), createElementBlock("div", _hoisted_24, [
|
|
81819
81831
|
createElementVNode("div", _hoisted_25, [
|
|
81820
|
-
_cache[
|
|
81821
|
-
_cache[
|
|
81832
|
+
_cache[42] || (_cache[42] = createElementVNode("span", { class: "time" }, "10:40", -1)),
|
|
81833
|
+
_cache[43] || (_cache[43] = createElementVNode("div", { class: "camera" }, null, -1)),
|
|
81822
81834
|
createElementVNode("div", _hoisted_26, [
|
|
81823
81835
|
createVNode(_component_el_icon, null, {
|
|
81824
81836
|
default: withCtx(() => [
|
|
@@ -81850,7 +81862,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
81850
81862
|
_: 1
|
|
81851
81863
|
})
|
|
81852
81864
|
]),
|
|
81853
|
-
_cache[
|
|
81865
|
+
_cache[44] || (_cache[44] = createElementVNode("div", { class: "mobile-home-bar" }, null, -1))
|
|
81854
81866
|
])) : (openBlock(), createElementBlock("div", _hoisted_28, [
|
|
81855
81867
|
createElementVNode("div", _hoisted_29, [
|
|
81856
81868
|
createVNode(_component_el_scrollbar, null, {
|
|
@@ -81903,7 +81915,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
81903
81915
|
}, null, 8, ["data", "modelValue", "positionLeft", "positionTop"]),
|
|
81904
81916
|
createVNode(_component_el_dialog, {
|
|
81905
81917
|
modelValue: showAiDialog.value,
|
|
81906
|
-
"onUpdate:modelValue": _cache[
|
|
81918
|
+
"onUpdate:modelValue": _cache[25] || (_cache[25] = ($event) => showAiDialog.value = $event),
|
|
81907
81919
|
title: "AI 生成表单",
|
|
81908
81920
|
width: "500px",
|
|
81909
81921
|
"close-on-click-modal": false,
|
|
@@ -81911,9 +81923,9 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
81911
81923
|
}, {
|
|
81912
81924
|
footer: withCtx(() => [
|
|
81913
81925
|
createVNode(_component_el_button, {
|
|
81914
|
-
onClick: _cache[
|
|
81926
|
+
onClick: _cache[24] || (_cache[24] = ($event) => showAiDialog.value = false)
|
|
81915
81927
|
}, {
|
|
81916
|
-
default: withCtx(() => [..._cache[
|
|
81928
|
+
default: withCtx(() => [..._cache[48] || (_cache[48] = [
|
|
81917
81929
|
createTextVNode("取消", -1)
|
|
81918
81930
|
])]),
|
|
81919
81931
|
_: 1
|
|
@@ -81923,7 +81935,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
81923
81935
|
loading: aiGenerating.value,
|
|
81924
81936
|
onClick: confirmAiGenerate
|
|
81925
81937
|
}, {
|
|
81926
|
-
default: withCtx(() => [..._cache[
|
|
81938
|
+
default: withCtx(() => [..._cache[49] || (_cache[49] = [
|
|
81927
81939
|
createTextVNode("生成", -1)
|
|
81928
81940
|
])]),
|
|
81929
81941
|
_: 1
|
|
@@ -81936,7 +81948,34 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
81936
81948
|
type: "textarea",
|
|
81937
81949
|
rows: 5,
|
|
81938
81950
|
placeholder: "描述要生成的表单,例如:用户注册表单,包含姓名、手机号、邮箱、密码字段,其中手机号和邮箱必填"
|
|
81939
|
-
}, null, 8, ["modelValue"])
|
|
81951
|
+
}, null, 8, ["modelValue"]),
|
|
81952
|
+
createVNode(_component_el_radio_group, {
|
|
81953
|
+
modelValue: aiOverwrite.value,
|
|
81954
|
+
"onUpdate:modelValue": _cache[23] || (_cache[23] = ($event) => aiOverwrite.value = $event),
|
|
81955
|
+
style: { "margin-top": "12px" }
|
|
81956
|
+
}, {
|
|
81957
|
+
default: withCtx(() => [
|
|
81958
|
+
createVNode(_component_el_radio, { value: "overwrite" }, {
|
|
81959
|
+
default: withCtx(() => [..._cache[45] || (_cache[45] = [
|
|
81960
|
+
createTextVNode("覆盖", -1)
|
|
81961
|
+
])]),
|
|
81962
|
+
_: 1
|
|
81963
|
+
}),
|
|
81964
|
+
createVNode(_component_el_radio, { value: "modify" }, {
|
|
81965
|
+
default: withCtx(() => [..._cache[46] || (_cache[46] = [
|
|
81966
|
+
createTextVNode("修改", -1)
|
|
81967
|
+
])]),
|
|
81968
|
+
_: 1
|
|
81969
|
+
}),
|
|
81970
|
+
createVNode(_component_el_radio, { value: "append" }, {
|
|
81971
|
+
default: withCtx(() => [..._cache[47] || (_cache[47] = [
|
|
81972
|
+
createTextVNode("追加", -1)
|
|
81973
|
+
])]),
|
|
81974
|
+
_: 1
|
|
81975
|
+
})
|
|
81976
|
+
]),
|
|
81977
|
+
_: 1
|
|
81978
|
+
}, 8, ["modelValue"])
|
|
81940
81979
|
]),
|
|
81941
81980
|
_: 1
|
|
81942
81981
|
}, 8, ["modelValue"])
|
|
@@ -81944,7 +81983,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
81944
81983
|
};
|
|
81945
81984
|
}
|
|
81946
81985
|
});
|
|
81947
|
-
const DesignerView = /* @__PURE__ */ _export_sfc$1(_sfc_main$t, [["__scopeId", "data-v-
|
|
81986
|
+
const DesignerView = /* @__PURE__ */ _export_sfc$1(_sfc_main$t, [["__scopeId", "data-v-222c7a89"]]);
|
|
81948
81987
|
const ElsDesignerView = withInstall$1(DesignerView);
|
|
81949
81988
|
(function(Prism2) {
|
|
81950
81989
|
var string = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;
|
|
@@ -82683,31 +82722,31 @@ let AceEditor$1 = class AceEditor extends TBaseFormItem {
|
|
|
82683
82722
|
__publicField(this, "editor", ref());
|
|
82684
82723
|
onMounted(() => {
|
|
82685
82724
|
if (props2.language === "json") {
|
|
82686
|
-
const currModule = import("./mode-json-
|
|
82725
|
+
const currModule = import("./mode-json-BJlmxTEK.js").then((n) => n.m);
|
|
82687
82726
|
currModule.then((res) => {
|
|
82688
82727
|
ace.config.setModuleUrl("ace/mode/json", res);
|
|
82689
82728
|
this.init();
|
|
82690
82729
|
});
|
|
82691
82730
|
} else if (props2.language === "javascript") {
|
|
82692
|
-
const currModule = import("./mode-javascript-
|
|
82731
|
+
const currModule = import("./mode-javascript-Cw223pBf.js").then((n) => n.m);
|
|
82693
82732
|
currModule.then((res) => {
|
|
82694
82733
|
ace.config.setModuleUrl("ace/mode/javascript", res);
|
|
82695
82734
|
this.init();
|
|
82696
82735
|
});
|
|
82697
82736
|
} else if (props2.language === "csharp") {
|
|
82698
|
-
const currModule = import("./mode-csharp-
|
|
82737
|
+
const currModule = import("./mode-csharp-bvhfjmkN.js").then((n) => n.m);
|
|
82699
82738
|
currModule.then((res) => {
|
|
82700
82739
|
ace.config.setModuleUrl("ace/mode/csharp", res);
|
|
82701
82740
|
this.init();
|
|
82702
82741
|
});
|
|
82703
82742
|
} else if (props2.language === "mysql") {
|
|
82704
|
-
const currModule = import("./mode-mysql-
|
|
82743
|
+
const currModule = import("./mode-mysql-DKyMActE.js").then((n) => n.m);
|
|
82705
82744
|
currModule.then((res) => {
|
|
82706
82745
|
ace.config.setModuleUrl("ace/mode/mysql", res);
|
|
82707
82746
|
this.init();
|
|
82708
82747
|
});
|
|
82709
82748
|
} else if (props2.language === "css") {
|
|
82710
|
-
const currModule = import("./mode-css-
|
|
82749
|
+
const currModule = import("./mode-css-Du96e5I3.js").then((n) => n.m);
|
|
82711
82750
|
currModule.then((res) => {
|
|
82712
82751
|
ace.config.setModuleUrl("ace/mode/css", res);
|
|
82713
82752
|
this.init();
|
|
@@ -82842,7 +82881,7 @@ class MdEditor extends TBaseFormItem {
|
|
|
82842
82881
|
__publicField(this, "uploadImg", async (files, callback) => {
|
|
82843
82882
|
const apiConfig = utils.getApiConfig();
|
|
82844
82883
|
const {
|
|
82845
|
-
$dataField,
|
|
82884
|
+
$dataField: $dataField2,
|
|
82846
82885
|
$pathField
|
|
82847
82886
|
} = utils.getUploadConfig();
|
|
82848
82887
|
const urls = await Promise.all(files.map((file) => {
|
|
@@ -82854,7 +82893,7 @@ class MdEditor extends TBaseFormItem {
|
|
|
82854
82893
|
return "";
|
|
82855
82894
|
}
|
|
82856
82895
|
let currRes = res[apiConfig.$dataField];
|
|
82857
|
-
if ($
|
|
82896
|
+
if ($dataField2) currRes = currRes[$dataField2];
|
|
82858
82897
|
return currRes[$pathField] ?? "";
|
|
82859
82898
|
});
|
|
82860
82899
|
}));
|
|
@@ -83165,12 +83204,12 @@ let WangEditor$1 = class WangEditor extends TBaseFormItem {
|
|
|
83165
83204
|
this.serverUrl.value = this.serverUrl.value.addUrlParameter("ResourceCode", props2.resourceCode).addUrlParameter("RestrictCode", props2.restrictCode);
|
|
83166
83205
|
}
|
|
83167
83206
|
const {
|
|
83168
|
-
$codeField,
|
|
83169
|
-
$success,
|
|
83207
|
+
$codeField: $codeField2,
|
|
83208
|
+
$success: $success2,
|
|
83170
83209
|
$dataField: apiDataField
|
|
83171
83210
|
} = utils.getApiConfig();
|
|
83172
83211
|
const {
|
|
83173
|
-
$dataField,
|
|
83212
|
+
$dataField: $dataField2,
|
|
83174
83213
|
$pathField
|
|
83175
83214
|
} = utils.getUploadConfig();
|
|
83176
83215
|
this.editorConfig.value = {
|
|
@@ -83199,8 +83238,8 @@ let WangEditor$1 = class WangEditor extends TBaseFormItem {
|
|
|
83199
83238
|
console.log(`${file.name} 上传出错`, err, res);
|
|
83200
83239
|
},
|
|
83201
83240
|
customInsert(res, insertFn) {
|
|
83202
|
-
if (res[$
|
|
83203
|
-
insertFn(res[apiDataField][$
|
|
83241
|
+
if (res[$codeField2] === $success2) {
|
|
83242
|
+
insertFn(res[apiDataField][$dataField2][$pathField], "");
|
|
83204
83243
|
}
|
|
83205
83244
|
}
|
|
83206
83245
|
}
|
|
@@ -85065,7 +85104,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
85065
85104
|
aindex: {}
|
|
85066
85105
|
},
|
|
85067
85106
|
setup(__props) {
|
|
85068
|
-
const { $dataField } = utils.getApiConfig();
|
|
85107
|
+
const { $dataField: $dataField2 } = utils.getApiConfig();
|
|
85069
85108
|
const props2 = __props;
|
|
85070
85109
|
const { getValue: getValue2 } = useProps(props2);
|
|
85071
85110
|
const formValidate = ref(true);
|
|
@@ -85114,8 +85153,8 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
85114
85153
|
}
|
|
85115
85154
|
if (currInputs.AssignedPrincipal) {
|
|
85116
85155
|
userUrl.post({ idString: currInputs.AssignedPrincipal }).then((res) => {
|
|
85117
|
-
if (res[$
|
|
85118
|
-
currInputs.AssignedPrincipal = res[$
|
|
85156
|
+
if (res[$dataField2]) {
|
|
85157
|
+
currInputs.AssignedPrincipal = res[$dataField2].toString();
|
|
85119
85158
|
itemContent.value = getDynamicAttrContent(props2.item.data.StepType, currInputs);
|
|
85120
85159
|
}
|
|
85121
85160
|
});
|
|
@@ -85766,7 +85805,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
85766
85805
|
props: workFlowProps,
|
|
85767
85806
|
emits: ["update:modelValue"],
|
|
85768
85807
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
85769
|
-
const { $codeField, $dataField, $success } = utils.getApiConfig();
|
|
85808
|
+
const { $codeField: $codeField2, $dataField: $dataField2, $success: $success2 } = utils.getApiConfig();
|
|
85770
85809
|
let bgColors = ref(["87, 106, 149", "255, 148, 62", "50, 150, 250"]);
|
|
85771
85810
|
const props2 = __props;
|
|
85772
85811
|
const { setValue } = useProps(props2);
|
|
@@ -85807,9 +85846,9 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
85807
85846
|
initLoading.value = true;
|
|
85808
85847
|
if (props2.configUrl) {
|
|
85809
85848
|
props2.configUrl.post({}).then((res) => {
|
|
85810
|
-
if (res[$
|
|
85849
|
+
if (res[$codeField2] == $success2) {
|
|
85811
85850
|
configData.value.length = 0;
|
|
85812
|
-
configData.value.push(...res[$
|
|
85851
|
+
configData.value.push(...res[$dataField2]);
|
|
85813
85852
|
initLoading.value = false;
|
|
85814
85853
|
}
|
|
85815
85854
|
});
|
|
@@ -91284,7 +91323,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
91284
91323
|
props: waterFallProps,
|
|
91285
91324
|
emits: ["loadMore", "changePage", "changeSize"],
|
|
91286
91325
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
91287
|
-
const { $codeField, $messageField, $dataField, $success } = utils.getApiConfig();
|
|
91326
|
+
const { $codeField: $codeField2, $messageField: $messageField2, $dataField: $dataField2, $success: $success2 } = utils.getApiConfig();
|
|
91288
91327
|
const { $pageDataField, $menuField, $pageSizeField, $currentPageField, $totalField, $pageCountField, $avgDayField } = utils.getTableConfig();
|
|
91289
91328
|
const emits2 = __emit;
|
|
91290
91329
|
const props2 = __props;
|
|
@@ -91338,8 +91377,8 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
91338
91377
|
if (props2.nextPageType === "page" || currPageIndex.value === 1) {
|
|
91339
91378
|
wallfallData.value.length = 0;
|
|
91340
91379
|
}
|
|
91341
|
-
if (res[$
|
|
91342
|
-
const dataField = res[$
|
|
91380
|
+
if (res[$codeField2] === $success2) {
|
|
91381
|
+
const dataField = res[$dataField2];
|
|
91343
91382
|
if (dataField[$pageSizeField] !== void 0) {
|
|
91344
91383
|
if (dataField[$pageDataField]) {
|
|
91345
91384
|
wallfallData.value.push(...dataField[$pageDataField]);
|
|
@@ -91365,7 +91404,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
91365
91404
|
wallfallData.value = props2.afterReadData(wallfallData.value);
|
|
91366
91405
|
}
|
|
91367
91406
|
} else {
|
|
91368
|
-
ProxyElsMessage.error(res[$
|
|
91407
|
+
ProxyElsMessage.error(res[$messageField2]);
|
|
91369
91408
|
}
|
|
91370
91409
|
remoteLoading.value = false;
|
|
91371
91410
|
resolve2(true);
|