|
|
|
@ -385,7 +385,7 @@
|
|
|
|
|
{slots.operation?.()}
|
|
|
|
|
{props.operation.includes('import') ? (
|
|
|
|
|
<ElDialog
|
|
|
|
|
title={'模板导入 - ' + props.title}
|
|
|
|
|
title={'模板导入 - ' + props.title || props.code}
|
|
|
|
|
v-model={importVisible.value}
|
|
|
|
|
width="765px"
|
|
|
|
|
v-slots={{
|
|
|
|
@ -422,15 +422,16 @@
|
|
|
|
|
)}
|
|
|
|
|
{props.code ? (
|
|
|
|
|
<ElButton class="setting-btn" icon="setting" type="text" onClick={() => handleSetting()}>
|
|
|
|
|
设置
|
|
|
|
|
<ElIcon name="Setting" />
|
|
|
|
|
<span>设置</span>
|
|
|
|
|
</ElButton>
|
|
|
|
|
) : (
|
|
|
|
|
''
|
|
|
|
|
)}
|
|
|
|
|
<ElDialog
|
|
|
|
|
title={'表格设置 - ' + props.code}
|
|
|
|
|
title={'表格设置 - ' + props.title || props.code}
|
|
|
|
|
v-model={settingVisible.value}
|
|
|
|
|
width="765px"
|
|
|
|
|
width="800px"
|
|
|
|
|
onClose={() => handleCloseSetting()}
|
|
|
|
|
v-slots={{
|
|
|
|
|
footer: () => {
|
|
|
|
@ -450,24 +451,13 @@
|
|
|
|
|
<p>修改后如果显示异常,刷新页面即可恢复正常</p>
|
|
|
|
|
<br />
|
|
|
|
|
<ElTable border stripe highlightCurrentRow data={setting.value} height="50vh">
|
|
|
|
|
<ElTableColumn
|
|
|
|
|
headerAlign="center"
|
|
|
|
|
align="center"
|
|
|
|
|
label="排序"
|
|
|
|
|
prop="_sort"
|
|
|
|
|
width="72px"
|
|
|
|
|
v-slots={{
|
|
|
|
|
default: ({ row }) => (
|
|
|
|
|
<ElInputNumber controls={false} v-model={row._sort} style="width:48px;" />
|
|
|
|
|
),
|
|
|
|
|
}}
|
|
|
|
|
/>
|
|
|
|
|
<ElTableColumn headerAlign="center" align="center" label="排序" prop="_sort" width="72px" />
|
|
|
|
|
<ElTableColumn
|
|
|
|
|
headerAlign="center"
|
|
|
|
|
align="center"
|
|
|
|
|
label="列名"
|
|
|
|
|
prop="label"
|
|
|
|
|
width="200px"
|
|
|
|
|
minWidth="200px"
|
|
|
|
|
v-slots={{
|
|
|
|
|
default: ({ row }) =>
|
|
|
|
|
row.type === 'index' ? (
|
|
|
|
|