@yoooloo42/joker 1.0.145 → 1.0.146
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/index.cjs.js +22 -25
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +23 -26
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useRouter } from 'vue-router';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { ElMessageBox, ElMessage } from 'element-plus';
|
|
3
|
+
import { ref, createElementBlock, openBlock, Fragment, createCommentVNode, createElementVNode, normalizeStyle, toDisplayString, unref, reactive, computed, resolveComponent, createBlock, withCtx, renderList, createTextVNode, createVNode, isRef, defineComponent, h, onMounted, onBeforeUnmount, watch, nextTick as nextTick$1, resolveDirective, withDirectives } from 'vue';
|
|
4
4
|
|
|
5
5
|
function _mergeNamespaces(n, m) {
|
|
6
6
|
m.forEach(function (e) {
|
|
@@ -22628,9 +22628,6 @@ var unclassified = {
|
|
|
22628
22628
|
|
|
22629
22629
|
// with-table数据模板
|
|
22630
22630
|
|
|
22631
|
-
const {
|
|
22632
|
-
proxy
|
|
22633
|
-
} = getCurrentInstance();
|
|
22634
22631
|
const ly0default$4 = {
|
|
22635
22632
|
pageSize: 10
|
|
22636
22633
|
};
|
|
@@ -22670,7 +22667,7 @@ const reload = async _ref2 => {
|
|
|
22670
22667
|
const result = await refresh({
|
|
22671
22668
|
scopeThis
|
|
22672
22669
|
});
|
|
22673
|
-
|
|
22670
|
+
ElMessage(result.code === 0 ? '数据已重载' : '数据重载错误');
|
|
22674
22671
|
};
|
|
22675
22672
|
|
|
22676
22673
|
// 获取页面数据附加
|
|
@@ -22686,10 +22683,10 @@ const getPgData = async _ref3 => {
|
|
|
22686
22683
|
scopeThis.pgData = unclassified.deepClone.deepMerge(scopeThis.pgData, {
|
|
22687
22684
|
data: result.data
|
|
22688
22685
|
});
|
|
22689
|
-
|
|
22686
|
+
ElMessage('已获取页面数据');
|
|
22690
22687
|
return;
|
|
22691
22688
|
}
|
|
22692
|
-
|
|
22689
|
+
ElMessage('获取页面数据错误');
|
|
22693
22690
|
};
|
|
22694
22691
|
|
|
22695
22692
|
// 初始化
|
|
@@ -22779,9 +22776,9 @@ const submitFind = async _ref9 => {
|
|
|
22779
22776
|
if (result.code === 0) {
|
|
22780
22777
|
// 关闭表单窗口
|
|
22781
22778
|
scopeThis.formProps.popup.visible = false;
|
|
22782
|
-
|
|
22779
|
+
ElMessage('查询已提交并刷新数据');
|
|
22783
22780
|
} else {
|
|
22784
|
-
|
|
22781
|
+
ElMessage('查询错误');
|
|
22785
22782
|
}
|
|
22786
22783
|
};
|
|
22787
22784
|
|
|
@@ -22791,7 +22788,7 @@ const submitInsertOne = async _ref0 => {
|
|
|
22791
22788
|
scopeThis
|
|
22792
22789
|
} = _ref0;
|
|
22793
22790
|
try {
|
|
22794
|
-
await
|
|
22791
|
+
await ElMessageBox.confirm('新增一条记录, 提交?', '提示', {
|
|
22795
22792
|
confirmButtonText: '确认',
|
|
22796
22793
|
cancelButtonText: '取消',
|
|
22797
22794
|
type: 'warning' // 警告图标
|
|
@@ -22803,17 +22800,17 @@ const submitInsertOne = async _ref0 => {
|
|
|
22803
22800
|
if (result.code === 0) {
|
|
22804
22801
|
// 关闭表单窗口
|
|
22805
22802
|
scopeThis.formProps.popup.visible = false;
|
|
22806
|
-
|
|
22803
|
+
ElMessage('新增一条记录成功');
|
|
22807
22804
|
scopeThis.query.currentPage = 1;
|
|
22808
22805
|
scopeThis.tableData = {
|
|
22809
22806
|
data: result.dataNew,
|
|
22810
22807
|
total: 1
|
|
22811
22808
|
};
|
|
22812
22809
|
} else {
|
|
22813
|
-
|
|
22810
|
+
ElMessage('新增一条记录失败');
|
|
22814
22811
|
}
|
|
22815
22812
|
} catch (error) {
|
|
22816
|
-
|
|
22813
|
+
ElMessage('已取消');
|
|
22817
22814
|
}
|
|
22818
22815
|
};
|
|
22819
22816
|
|
|
@@ -22823,7 +22820,7 @@ const submitUpdateOne = async _ref1 => {
|
|
|
22823
22820
|
scopeThis
|
|
22824
22821
|
} = _ref1;
|
|
22825
22822
|
try {
|
|
22826
|
-
await
|
|
22823
|
+
await ElMessageBox.confirm('修改一条记录, 提交?', '提示', {
|
|
22827
22824
|
confirmButtonText: '确认',
|
|
22828
22825
|
cancelButtonText: '取消',
|
|
22829
22826
|
type: 'warning' // 警告图标
|
|
@@ -22835,20 +22832,20 @@ const submitUpdateOne = async _ref1 => {
|
|
|
22835
22832
|
if (result.code === 0) {
|
|
22836
22833
|
// 关闭表单窗口
|
|
22837
22834
|
scopeThis.formProps.popup.visible = false;
|
|
22838
|
-
|
|
22835
|
+
ElMessage('修改一条记录成功');
|
|
22839
22836
|
const resultRefresh = await refresh({
|
|
22840
22837
|
scopeThis
|
|
22841
22838
|
});
|
|
22842
22839
|
if (resultRefresh.code === 0) {
|
|
22843
|
-
|
|
22840
|
+
ElMessage('已刷新数据');
|
|
22844
22841
|
} else {
|
|
22845
|
-
|
|
22842
|
+
ElMessage('刷新错误');
|
|
22846
22843
|
}
|
|
22847
22844
|
} else {
|
|
22848
|
-
|
|
22845
|
+
ElMessage('修改一条记录失败');
|
|
22849
22846
|
}
|
|
22850
22847
|
} catch (error) {
|
|
22851
|
-
|
|
22848
|
+
ElMessage('已取消');
|
|
22852
22849
|
}
|
|
22853
22850
|
};
|
|
22854
22851
|
|
|
@@ -22859,7 +22856,7 @@ const submitDeleteOne = async _ref10 => {
|
|
|
22859
22856
|
formData
|
|
22860
22857
|
} = _ref10;
|
|
22861
22858
|
try {
|
|
22862
|
-
await
|
|
22859
|
+
await ElMessageBox.confirm('删除一条记录, 提交?', '警告', {
|
|
22863
22860
|
confirmButtonText: '确认',
|
|
22864
22861
|
cancelButtonText: '取消',
|
|
22865
22862
|
type: 'warning' // 警告图标
|
|
@@ -22869,20 +22866,20 @@ const submitDeleteOne = async _ref10 => {
|
|
|
22869
22866
|
data: formData // 继承行记录的值
|
|
22870
22867
|
});
|
|
22871
22868
|
if (result.code === 0) {
|
|
22872
|
-
|
|
22869
|
+
ElMessage('删除一条记录成功');
|
|
22873
22870
|
const resultRefresh = await refresh({
|
|
22874
22871
|
scopeThis
|
|
22875
22872
|
});
|
|
22876
22873
|
if (resultRefresh.code === 0) {
|
|
22877
|
-
|
|
22874
|
+
ElMessage('已刷新数据');
|
|
22878
22875
|
} else {
|
|
22879
|
-
|
|
22876
|
+
ElMessage('刷新错误');
|
|
22880
22877
|
}
|
|
22881
22878
|
} else {
|
|
22882
|
-
|
|
22879
|
+
ElMessage('删除一条记录失败');
|
|
22883
22880
|
}
|
|
22884
22881
|
} catch (error) {
|
|
22885
|
-
|
|
22882
|
+
ElMessage('已取消');
|
|
22886
22883
|
}
|
|
22887
22884
|
};
|
|
22888
22885
|
var withTable = {
|