This commit is contained in:
make
2025-04-09 09:51:46 +08:00
parent c8202ccbaf
commit 4a1ead3340
3 changed files with 66 additions and 68 deletions

View File

@@ -47,7 +47,7 @@
</template>
<template v-if="e.type === 'textarea-i'">
<el-input
type="textarea"
v-model="e.value"
maxlength="36500"
:autosize="{ minRows: 8, maxRows: 9 }"

View File

@@ -57,8 +57,9 @@
<template v-if="e.type === 'textarea'">
<el-input
type="textarea"
:rows="20"
v-model="e.value"
maxlength="36500"
maxlength="365000"
:placeholder="`请输入${e.label},多个使用, 分割`"
show-word-limit
/>
@@ -254,6 +255,18 @@ async function placeableCheckedCitiesChange(value) {
}
const formColumns = computed((): Fields[] => {
return [
{
label: "推荐等级",
prop: "n_level",
type: "text-num",
get value() {
return drawerProps.value.row!.n_level;
},
set value(val) {
drawerProps.value.row!.n_level = val;
},
required: true
},
{
label: "小说名字",
prop: "keywords",
@@ -267,18 +280,7 @@ const formColumns = computed((): Fields[] => {
required: true
},
{
label: "推荐等级",
prop: "n_level",
type: "text-num",
get value() {
return drawerProps.value.row!.n_level;
},
set value(val) {
drawerProps.value.row!.n_level = val;
},
required: true
}
];
});
const rules = ref();

View File

@@ -126,43 +126,21 @@ const columns = reactive<ColumnProps<SiteList.ResList>[]>([
label: "ID",
width: 100
},
{
prop: "d_name",
width: 170,
label: "站点名称"
},
{
prop: "d_domain",
width: 170,
label: "站点域名"
},
{
prop: "d_content_encode",
width: 170,
label: "是否转码",
enum: [
{ label: "否", value: 0 },
{ label: "是", value: 1 }
],
},
{
prop: "d_logo_type",
width: 170,
label: "logo类型",
enum: [
{ label: "文字", value: 0 },
{ label: "图片", value: 1 }
],
},
{
prop: "d_text_log",
width: 170,
label: "文字logo"
},
{
prop: "d_domain",
width: 170,
label: "站点域名"
},
{
prop: "t_id",
width: 170,
@@ -170,6 +148,31 @@ const columns = reactive<ColumnProps<SiteList.ResList>[]>([
fieldNames: { label: "t_code", value: "t_id" },
enum: getTempLateList
},
{
prop: "d_keywords",
width: 170,
label: "站点关键词"
},
{
prop: "d_index_title",
width: 170,
label: "首页title"
},
{
prop: "d_index_keywords",
width: 170,
label: "首页keywords"
},
{
prop: "d_index_description",
width: 170,
label: "首页description"
},
{
prop: "d_description",
width: 170,
label: "站点描述"
},
{
prop: "t_cfg",
width: 170,
@@ -178,23 +181,24 @@ const columns = reactive<ColumnProps<SiteList.ResList>[]>([
return JSON.stringify(scope.row.t_cfg);
}
},
// {
// prop: "si_status",
// label: "状态",
// search: { el: "select", props: { filterable: true } },
// enum: [
// { label: "禁用", value: 0 },
// { label: "启用", value: 1 }
// ],
// render(scope) {
// return (
// <el-tag type={scope.row.si_status === 0 ? "danger" : "success"}>
// {scope.row.si_status === 0 ? "禁用" : "启用"}
// </el-tag>
// );
// }
// },
{
prop: "d_content_encode",
width: 100,
label: "是否转码",
enum: [
{ label: "否", value: 0 },
{ label: "是", value: 1 }
],
},
{
prop: "d_logo_type",
width: 100,
label: "logo类型",
enum: [
{ label: "文字", value: 0 },
{ label: "图片", value: 1 }
],
},
{
prop: "d_img_log",
label: "图片LOGO",
@@ -218,16 +222,8 @@ const columns = reactive<ColumnProps<SiteList.ResList>[]>([
}
}
},
{
prop: "d_description",
width: 170,
label: "站点描述"
},
{
prop: "d_keywords",
width: 170,
label: "站点关键词"
},
{
prop: "d_statis",
width: 170,