瀏覽代碼

设施环境配置页优化提示内容

luoaoxuan 1 年之前
父節點
當前提交
4490b245a5
共有 2 個文件被更改,包括 5 次插入1 次删除
  1. 4 1
      src/views/system/fasc/defaultSettingDialog.vue
  2. 1 0
      src/views/system/fasc/facilityEnvConfig.vue

+ 4 - 1
src/views/system/fasc/defaultSettingDialog.vue

@@ -555,7 +555,10 @@ export default {
             }
         },
         emitParent (type) {
-            this.$confirm('正在进行批量替换操作,请确保数据的正确性,是否继续?', '提示', {
+            let msg = ''
+            if (type === 'settingEmpty') msg = '该操作会将未设置过的配置子表数据设置为默认值,是否继续?'
+            if (type === 'settingAll') msg = '该操作会将所有配置子表数据替换为默认值,是否继续?'
+            this.$confirm(msg, '提示', {
                 confirmButtonText: '继续',
                 cancelButtonText: '取消',
                 type: 'warning'

+ 1 - 0
src/views/system/fasc/facilityEnvConfig.vue

@@ -622,6 +622,7 @@ export default {
         },
         handleSetting (type) {
             this.form = this.$refs.DefaultSettingDialogRef.form
+            if (this.subForm.length === 0) return this.$message.warning('配置详情列表中无数据,请先添加数据!')
             if (type === 'settingEmpty') this.settingEmpty()
             else if (type === 'settingAll') this.settingAll()
             this.defultdialogVisible = false