优化配置模块
This commit is contained in:
parent
d52c5ccf7f
commit
1de42731ec
@ -13,6 +13,10 @@ export const columns = [
|
|||||||
label: '配置名称',
|
label: '配置名称',
|
||||||
prop: 'name',
|
prop: 'name',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: '配置编码',
|
||||||
|
prop: 'code',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
label: '排序',
|
label: '排序',
|
||||||
prop: 'sort',
|
prop: 'sort',
|
||||||
|
@ -24,6 +24,19 @@
|
|||||||
clearable
|
clearable
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item
|
||||||
|
label="配置编码"
|
||||||
|
prop="code"
|
||||||
|
:rules="{ required: true, message: '请输入配置编码', trigger: 'blur' }"
|
||||||
|
>
|
||||||
|
<el-input
|
||||||
|
class="ls-input"
|
||||||
|
v-model="formData.code"
|
||||||
|
:disabled="props.configId"
|
||||||
|
placeholder="请输入配置编码"
|
||||||
|
clearable
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
<el-form-item label="排序" prop="sort">
|
<el-form-item label="排序" prop="sort">
|
||||||
<el-input-number v-model="formData.sort"/>
|
<el-input-number v-model="formData.sort"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@ -53,6 +66,7 @@ const formRef = shallowRef<FormInstance>();
|
|||||||
const formData = reactive({
|
const formData = reactive({
|
||||||
id: "",
|
id: "",
|
||||||
name: "",
|
name: "",
|
||||||
|
code: "",
|
||||||
sort: 0,
|
sort: 0,
|
||||||
note:'',
|
note:'',
|
||||||
});
|
});
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
<div :style="{ height: fwbHeight + 'px' }" class="dict-list-box">
|
<div :style="{ height: fwbHeight + 'px' }" class="dict-list-box">
|
||||||
<div v-for="(item, index) in configDataList" :key="index" @click="onCheckedRow(item)" class="dict-item"
|
<div v-for="(item, index) in configDataList" :key="index" @click="onCheckedRow(item)" class="dict-item"
|
||||||
:class="item.id == configId ? 'active' : ''">
|
:class="item.id == configId ? 'active' : ''">
|
||||||
<span class="t1">{{ item.name }}</span>
|
<span class="t1">{{ item.name }}<span class="t2">({{ item.code }})</span></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<pagination style="justify-content: flex-end" class="mt-10 flex" @change="loadDataTable" v-model="pager" layout="total, prev, pager, next">
|
<pagination style="justify-content: flex-end" class="mt-10 flex" @change="loadDataTable" v-model="pager" layout="total, prev, pager, next">
|
||||||
@ -67,7 +67,7 @@ const pager = ref({
|
|||||||
size: 10,
|
size: 10,
|
||||||
count: configDataList.value.length
|
count: configDataList.value.length
|
||||||
});
|
});
|
||||||
const fwbHeight = document.body.clientHeight - 390
|
const fwbHeight = document.body.clientHeight - 395
|
||||||
|
|
||||||
|
|
||||||
const addConfig = async () => {
|
const addConfig = async () => {
|
||||||
|
@ -66,7 +66,7 @@ const params = ref({
|
|||||||
});
|
});
|
||||||
const pager = ref({
|
const pager = ref({
|
||||||
page: 1,
|
page: 1,
|
||||||
size: 10,
|
size: 20,
|
||||||
count: dictDataList.value.length
|
count: dictDataList.value.length
|
||||||
});
|
});
|
||||||
const fwbHeight = document.body.clientHeight - 395
|
const fwbHeight = document.body.clientHeight - 395
|
||||||
|
Loading…
Reference in New Issue
Block a user