|
@@ -34,15 +34,15 @@
|
|
<a-form-item label="字典类型" field="typeKey">
|
|
<a-form-item label="字典类型" field="typeKey">
|
|
<a-input v-model="formState.typeKey"/>
|
|
<a-input v-model="formState.typeKey"/>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
- <a-form-item label="数据标签" field="label">
|
|
|
|
- <a-input v-model="formState.label"/>
|
|
|
|
- </a-form-item>
|
|
|
|
|
|
+<!-- <a-form-item label="数据标签" field="label">-->
|
|
|
|
+<!-- <a-input v-model="formState.label"/>-->
|
|
|
|
+<!-- </a-form-item>-->
|
|
<a-form-item label="数据键值" field="value">
|
|
<a-form-item label="数据键值" field="value">
|
|
<a-input v-model="formState.value"/>
|
|
<a-input v-model="formState.value"/>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
- <a-form-item label="备注" field="remark">
|
|
|
|
- <a-textarea v-model="formState.remark"/>
|
|
|
|
- </a-form-item>
|
|
|
|
|
|
+<!-- <a-form-item label="备注" field="remark">-->
|
|
|
|
+<!-- <a-textarea v-model="formState.remark"/>-->
|
|
|
|
+<!-- </a-form-item>-->
|
|
<a-form-item>
|
|
<a-form-item>
|
|
<a-button type="primary" html-type="submit" style="margin-right: 10px;">确定</a-button>
|
|
<a-button type="primary" html-type="submit" style="margin-right: 10px;">确定</a-button>
|
|
<a-button @click="resetForm">取消</a-button>
|
|
<a-button @click="resetForm">取消</a-button>
|
|
@@ -67,17 +67,18 @@ const formData = ref({
|
|
|
|
|
|
});
|
|
});
|
|
const columns = ref([
|
|
const columns = ref([
|
|
- {title: '数据键值', dataIndex: 'value', align: 'center', width: 120},
|
|
|
|
- {title: '数据标签', dataIndex: 'label', align: 'center', width: 120},
|
|
|
|
|
|
+
|
|
|
|
+ // {title: '数据标签', dataIndex: 'label', align: 'center', width: 120},
|
|
{title: '字典名称', dataIndex: 'typeLabel', align: 'center', width: 120},
|
|
{title: '字典名称', dataIndex: 'typeLabel', align: 'center', width: 120},
|
|
{title: '字典类型', dataIndex: 'typeKey', align: 'center', width: 150},
|
|
{title: '字典类型', dataIndex: 'typeKey', align: 'center', width: 150},
|
|
- {
|
|
|
|
- title: '备注',
|
|
|
|
- dataIndex: 'remark',
|
|
|
|
- align: 'center',
|
|
|
|
- width: 180
|
|
|
|
- },
|
|
|
|
- {title: '创建时间', dataIndex: 'created_at', align: 'center', width: 200},
|
|
|
|
|
|
+ {title: '数据键值', dataIndex: 'value', align: 'center', width: 120},
|
|
|
|
+ // {
|
|
|
|
+ // title: '备注',
|
|
|
|
+ // dataIndex: 'remark',
|
|
|
|
+ // align: 'center',
|
|
|
|
+ // width: 180
|
|
|
|
+ // },
|
|
|
|
+ // {title: '创建时间', dataIndex: 'created_at', align: 'center', width: 200},
|
|
{
|
|
{
|
|
title: '操作',
|
|
title: '操作',
|
|
dataIndex: 'id',
|
|
dataIndex: 'id',
|
|
@@ -138,7 +139,7 @@ const intData = async () => {
|
|
...formData.value
|
|
...formData.value
|
|
}
|
|
}
|
|
const {data} = await dictionaryList(param)
|
|
const {data} = await dictionaryList(param)
|
|
- dataSource.value = data.records.reduce((acc, res) => {
|
|
|
|
|
|
+ dataSource.value = data.reduce((acc, res) => {
|
|
let existingItem = acc.find(item => item.typeKey === res.typeKey);
|
|
let existingItem = acc.find(item => item.typeKey === res.typeKey);
|
|
|
|
|
|
if (existingItem) {
|
|
if (existingItem) {
|