diff --git a/package.json b/package.json
index ada3107..dec3a81 100644
--- a/package.json
+++ b/package.json
@@ -54,7 +54,7 @@
"jsencrypt": "3.0.0-rc.1",
"mockjs": "^1.1.0",
"nprogress": "0.2.0",
- "obj-modal": "^1.2.0",
+ "obj-modal": "^1.2.2",
"obj-table-plus": "^2.4.0",
"quill": "1.3.7",
"screenfull": "5.0.2",
diff --git a/src/config/obj-table.config.js b/src/config/obj-table.config.js
index fac302c..574f213 100644
--- a/src/config/obj-table.config.js
+++ b/src/config/obj-table.config.js
@@ -16,6 +16,7 @@ module.exports = {
"checkbox-config": { labelField: "", checkRowKeys: [10053, 23666] },
"highlight-current-row": true,
"show-overflow": true,
+ "scroll-y":{enabled:true},
"tree-config": { childrenField: "children" },
"header-cell-class-name":"obj-table-header-cell"
},
diff --git a/src/views/modules/logistics-fare/logistics-template/index.vue b/src/views/modules/logistics-fare/logistics-template/index.vue
index 1c38d97..f29fa41 100644
--- a/src/views/modules/logistics-fare/logistics-template/index.vue
+++ b/src/views/modules/logistics-fare/logistics-template/index.vue
@@ -177,7 +177,8 @@ export default {
//打开弹窗预览
const openPreview = (str) => {
this.$confirm(str, "详情", {
- showCancel: false,
+ showCancelButton: false,
+ confirmButtonText:"好的"
});
};
return (
diff --git a/src/views/modules/logistics-fare/logistics-template/popup/add-template.vue b/src/views/modules/logistics-fare/logistics-template/popup/add-template.vue
index fee0a46..bd9dc31 100644
--- a/src/views/modules/logistics-fare/logistics-template/popup/add-template.vue
+++ b/src/views/modules/logistics-fare/logistics-template/popup/add-template.vue
@@ -9,13 +9,6 @@
:modalData="modalData"
:modalHandles="modalHandles"
>
-
-
-
@@ -70,6 +63,16 @@ export default {
return "还有未保存的数据,确定离开此页吗?";
};
},
+ watch: {
+ "modalConfig.show"(newVal) {
+ if (newVal) {
+ //关闭弹窗清空校验
+ setTimeout(() => {
+ this.$refs.modal.clearValidate();
+ });
+ }
+ },
+ },
methods: {
computedCityOptions() {
function filterTree(tree, filterArray) {
@@ -121,7 +124,7 @@ export default {
//默认运费回显
_data.shippingTemplatesRegionList =
- _data.shippingTemplatesRegionResultList?.slice(0,1)||
+ _data.shippingTemplatesRegionResultList?.slice(0, 1) ||
cloneDeep(BASE_DATA.shippingTemplatesRegionList);
//指定城市设置运费
_data.shippingTemplatesRegionListAppend =
@@ -181,8 +184,8 @@ export default {
this.isAdd = true;
refillData(e);
this.modalConfig.title = "添加运费模板";
- console.log("this.modalData",this.modalData);
-
+ console.log("this.modalData", this.modalData);
+
this.modalData.templateName += "(复制)";
},
};
@@ -217,8 +220,12 @@ export default {
render: () => {
return (