You need to sign in or sign up before continuing.
hookehuyr

fix

......@@ -37,7 +37,7 @@ const HideShow = computed(() => {
// 只读显示-流程模式
const ReadonlyShow = computed(() => {
return $route.query.page_type === 'flow' && props.item.component_props.readonly;
return $route.query.page_type === 'flow' && !props.item.component_props.readonly;
});
// 注入子组件属性
......
......@@ -31,7 +31,7 @@ const props = defineProps({
// 只读显示-流程模式
const ReadonlyShow = computed(() => {
return $route.query.page_type === 'flow' && props.item.component_props.readonly;
return $route.query.page_type === 'flow' && !props.item.component_props.readonly;
});
if (props.item.component_props.default) { // 存在默认值时业务逻辑
......
......@@ -45,7 +45,7 @@ const props = defineProps({
// 只读显示-流程模式
const ReadonlyShow = computed(() => {
return $route.query.page_type === 'flow' && props.item.component_props.readonly;
return $route.query.page_type === 'flow' && !props.item.component_props.readonly;
});
const show = ref(false);
......
......@@ -59,7 +59,7 @@ const HideShow = computed(() => {
})
// 只读显示-流程模式
const ReadonlyShow = computed(() => {
return $route.query.page_type === 'flow' && props.item.component_props.readonly;
return $route.query.page_type === 'flow' && !props.item.component_props.readonly;
});
// 校验函数返回 true 表示校验通过,false 表示不通过
......
......@@ -51,7 +51,7 @@ const HideShow = computed(() => {
})
// 只读显示-流程模式
const ReadonlyShow = computed(() => {
return $route.query.page_type === 'flow' && props.item.component_props.readonly;
return $route.query.page_type === 'flow' && !props.item.component_props.readonly;
});
const showPicker = ref(false);
const currentDate = ref([]);
......
......@@ -51,7 +51,7 @@ const HideShow = computed(() => {
})
// 只读显示-流程模式
const ReadonlyShow = computed(() => {
return $route.query.page_type === 'flow' && props.item.component_props.readonly;
return $route.query.page_type === 'flow' && !props.item.component_props.readonly;
});
const showPicker = ref(false);
const readonly = props.item.component_props.readonly;
......
......@@ -37,7 +37,7 @@ const HideShow = computed(() => {
})
// 只读显示-流程模式
const ReadonlyShow = computed(() => {
return $route.query.page_type === 'flow' && props.item.component_props.readonly;
return $route.query.page_type === 'flow' && !props.item.component_props.readonly;
});
onMounted(() => {
props.item.value = props.item.component_props.default;
......
......@@ -52,7 +52,7 @@ const HideShow = computed(() => {
return !props.item.component_props.disabled
})
const ReadonlyShow = computed(() => {
return $route.query.page_type === 'flow' && props.item.component_props.readonly;
return $route.query.page_type === 'flow' && !props.item.component_props.readonly;
});
const gender_value = ref(props.item.component_props.default);
......
......@@ -49,7 +49,7 @@ const HideShow = computed(() => {
});
// 只读显示-流程模式
const ReadonlyShow = computed(() => {
return $route.query.page_type === 'flow' && props.item.component_props.readonly;
return $route.query.page_type === 'flow' && !props.item.component_props.readonly;
});
// let obj = {
......
......@@ -70,7 +70,7 @@ const HideShow = computed(() => {
});
// 只读显示-流程模式
const ReadonlyShow = computed(() => {
return $route.query.page_type === 'flow' && props.item.component_props.readonly;
return $route.query.page_type === 'flow' && !props.item.component_props.readonly;
});
onMounted(() => {
props.item.value = props.item.component_props.default;
......
<!--
* @Date: 2022-08-31 16:16:49
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-07-27 08:21:52
* @LastEditTime: 2024-07-27 11:16:04
* @FilePath: /data-table/src/components/ImageUploaderField/index.vue
* @Description: 图片上传控件
-->
......@@ -90,7 +90,7 @@ const HideShow = computed(() => {
});
// 只读显示-流程模式
const ReadonlyShow = computed(() => {
return $route.query.page_type === 'flow' && props.item.component_props.readonly;
return $route.query.page_type === 'flow' && !props.item.component_props.readonly;
});
// 默认图片列表
const default_tmp = ref(props.item.component_props.default)
......
......@@ -72,7 +72,7 @@ const HideShow = computed(() => {
})
// 只读显示-流程模式
const ReadonlyShow = computed(() => {
return $route.query.page_type === 'flow' && props.item.component_props.readonly;
return $route.query.page_type === 'flow' && !props.item.component_props.readonly;
});
// TAG: 自定义主题颜色
const themeVars = {
......
......@@ -39,7 +39,7 @@ const HideShow = computed(() => {
// 只读显示-流程模式
const ReadonlyShow = computed(() => {
return $route.query.page_type === 'flow' && props.item.component_props.readonly;
return $route.query.page_type === 'flow' && !props.item.component_props.readonly;
});
// 集合组标识
......
<!--
* @Date: 2022-08-29 14:31:20
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-06-04 13:13:03
* @LastEditTime: 2024-07-27 11:14:39
* @FilePath: /data-table/src/components/OrgPickerField/index.vue
* @Description: 树形组件
-->
......@@ -41,7 +41,7 @@ const HideShow = computed(() => {
// 只读显示-流程模式
const ReadonlyShow = computed(() => {
return $route.query.page_type === 'flow' && props.item.component_props.readonly;
return $route.query.page_type === 'flow' && !props.item.component_props.readonly;
});
// 集合组标识
......
......@@ -78,7 +78,7 @@ const HideShow = computed(() => {
});
// 只读显示-流程模式
const ReadonlyShow = computed(() => {
return $route.query.page_type === 'flow' && props.item.component_props.readonly;
return $route.query.page_type === 'flow' && !props.item.component_props.readonly;
});
onMounted(() => {
props.item.value = props.item.component_props.default;
......
......@@ -40,7 +40,7 @@ const HideShow = computed(() => {
// 只读显示-流程模式
const ReadonlyShow = computed(() => {
return $route.query.page_type === 'flow' && props.item.component_props.readonly;
return $route.query.page_type === 'flow' && !props.item.component_props.readonly;
});
// 子组件通信,适配规则触发
......
......@@ -79,7 +79,7 @@ const HideShow = computed(() => {
})
// 只读显示-流程模式
const ReadonlyShow = computed(() => {
return $route.query.page_type === 'flow' && props.item.component_props.readonly;
return $route.query.page_type === 'flow' && !props.item.component_props.readonly;
});
// 校验函数返回 true 表示校验通过,false 表示不通过
......
......@@ -33,7 +33,7 @@ const HideShow = computed(() => {
})
// 只读显示-流程模式
const ReadonlyShow = computed(() => {
return $route.query.page_type === 'flow' && props.item.component_props.readonly;
return $route.query.page_type === 'flow' && !props.item.component_props.readonly;
});
// 注入子组件属性
provide('props', props.item);
......
......@@ -56,7 +56,7 @@ const props = defineProps({
const show = ref(false);
// 只读显示-流程模式
const ReadonlyShow = computed(() => {
return $route.query.page_type === 'flow' && props.item.component_props.readonly;
return $route.query.page_type === 'flow' && !props.item.component_props.readonly;
});
</script>
......
......@@ -36,7 +36,7 @@ const HideShow = computed(() => {
})
// 只读显示-流程模式
const ReadonlyShow = computed(() => {
return $route.query.page_type === 'flow' && props.item.component_props.readonly;
return $route.query.page_type === 'flow' && !props.item.component_props.readonly;
});
const refComponent = ref(null)
......
......@@ -39,7 +39,7 @@ const HideShow = computed(() => {
// 只读显示-流程模式
const ReadonlyShow = computed(() => {
return $route.query.page_type === 'flow' && props.item.component_props.readonly;
return $route.query.page_type === 'flow' && !props.item.component_props.readonly;
});
// 集合组标识
......
......@@ -48,7 +48,7 @@ const HideShow = computed(() => {
// 只读显示-流程模式
const ReadonlyShow = computed(() => {
return $route.query.page_type === 'flow' && props.item.component_props.readonly;
return $route.query.page_type === 'flow' && !props.item.component_props.readonly;
});
onMounted(() => {
......
......@@ -48,7 +48,7 @@ const HideShow = computed(() => {
})
// 只读显示-流程模式
const ReadonlyShow = computed(() => {
return $route.query.page_type === 'flow' && props.item.component_props.readonly;
return $route.query.page_type === 'flow' && !props.item.component_props.readonly;
});
const showPicker = ref(false);
const currentTime = ref([]);
......
<!--
* @Date: 2022-08-30 11:34:19
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-06-24 14:40:39
* @LastEditTime: 2024-07-27 11:16:43
* @FilePath: /data-table/src/components/VolunteerGroupField/index.vue
* @Description: 义工组别选择控件
-->
......@@ -74,7 +74,7 @@ const HideShow = computed(() => {
})
// 只读显示-流程模式
const ReadonlyShow = computed(() => {
return $route.query.page_type === 'flow' && props.item.component_props.readonly;
return $route.query.page_type === 'flow' && !props.item.component_props.readonly;
});
// 校验函数返回 true 表示校验通过,false 表示不通过
......