Prechádzať zdrojové kódy

修复未加载出数据时保存问题

haojianlong 4 rokov pred
rodič
commit
d8dc7291c3

+ 2 - 2
src/components/config_point/step3_edit/index.vue

@@ -60,7 +60,7 @@
         </template>
       </el-form>
       <div class='btn-box'>
-        <el-button type='primary' @click='save'>保存</el-button>
+        <el-button type='primary' @click='save' :disabled="!cacheTime" :loading="!cacheTime">保存</el-button>
       </div>
     </div>
   </div>
@@ -81,7 +81,7 @@ import dictionaryCas from '@/components/config_point/dictionaryCascader'
 export default {
   name: 'point_config_step3_edit',
   computed: {
-    ...mapGetters('project', ['projectId', 'datasourceId', 'protocolType'])
+    ...mapGetters('project', ['projectId', 'datasourceId', 'protocolType', 'cacheTime'])
   },
   data() {
     return {