diff --git a/src/components/DictTag/src/DictTag.vue b/src/components/DictTag/src/DictTag.vue
index 15b5f12a..ecbfedb4 100644
--- a/src/components/DictTag/src/DictTag.vue
+++ b/src/components/DictTag/src/DictTag.vue
@@ -34,7 +34,7 @@ export default defineComponent({
return null
}
// 解决自定义字典标签值为零时标签不渲染的问题
- if (!props.value && props.value !== 0) {
+ if (props.value === undefined) {
return null
}
getDictObj(props.type, props.value.toString())
diff --git a/src/utils/dict.ts b/src/utils/dict.ts
index b9dfa160..15e57ff2 100644
--- a/src/utils/dict.ts
+++ b/src/utils/dict.ts
@@ -55,7 +55,7 @@ export const getBoolDictOptions = (dictType: string) => {
dictOptions.forEach((dict: DictDataType) => {
dictOption.push({
...dict,
- value: dict.value + '' === 'true' ? true : false
+ value: dict.value + '' === 'true'
})
})
return dictOption
diff --git a/src/views/infra/config/form.vue b/src/views/infra/config/form.vue
new file mode 100644
index 00000000..ad924825
--- /dev/null
+++ b/src/views/infra/config/form.vue
@@ -0,0 +1,122 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 是
+ 否
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/infra/config/index.vue b/src/views/infra/config/index.vue
index f96da368..3cde9385 100644
--- a/src/views/infra/config/index.vue
+++ b/src/views/infra/config/index.vue
@@ -26,12 +26,16 @@
@keyup.enter="handleQuery"
/>
-
-
-
-
-
-
+
+
+
+
+
-
@@ -116,7 +119,7 @@
link
type="primary"
icon="el-icon-edit"
- @click="handleUpdate(scope.row)"
+ @click="openModal('update', scope.row.id)"
v-hasPermi="['infra:config:update']"
>
修改
@@ -134,10 +137,15 @@
+
+
+
+