debug
This commit is contained in:
@@ -47,7 +47,7 @@
|
|||||||
</template>
|
</template>
|
||||||
<template v-if="e.type === 'textarea-i'">
|
<template v-if="e.type === 'textarea-i'">
|
||||||
<el-input
|
<el-input
|
||||||
type="textarea"
|
|
||||||
v-model="e.value"
|
v-model="e.value"
|
||||||
maxlength="36500"
|
maxlength="36500"
|
||||||
:autosize="{ minRows: 8, maxRows: 9 }"
|
:autosize="{ minRows: 8, maxRows: 9 }"
|
||||||
|
|||||||
@@ -57,8 +57,9 @@
|
|||||||
<template v-if="e.type === 'textarea'">
|
<template v-if="e.type === 'textarea'">
|
||||||
<el-input
|
<el-input
|
||||||
type="textarea"
|
type="textarea"
|
||||||
|
:rows="20"
|
||||||
v-model="e.value"
|
v-model="e.value"
|
||||||
maxlength="36500"
|
maxlength="365000"
|
||||||
:placeholder="`请输入${e.label},多个使用, 分割`"
|
:placeholder="`请输入${e.label},多个使用, 分割`"
|
||||||
show-word-limit
|
show-word-limit
|
||||||
/>
|
/>
|
||||||
@@ -254,6 +255,18 @@ async function placeableCheckedCitiesChange(value) {
|
|||||||
}
|
}
|
||||||
const formColumns = computed((): Fields[] => {
|
const formColumns = computed((): Fields[] => {
|
||||||
return [
|
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: "小说名字",
|
label: "小说名字",
|
||||||
prop: "keywords",
|
prop: "keywords",
|
||||||
@@ -267,18 +280,7 @@ const formColumns = computed((): Fields[] => {
|
|||||||
required: true
|
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();
|
const rules = ref();
|
||||||
|
|||||||
@@ -126,43 +126,21 @@ const columns = reactive<ColumnProps<SiteList.ResList>[]>([
|
|||||||
label: "ID",
|
label: "ID",
|
||||||
width: 100
|
width: 100
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
prop: "d_name",
|
prop: "d_name",
|
||||||
width: 170,
|
width: 170,
|
||||||
label: "站点名称"
|
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",
|
prop: "d_text_log",
|
||||||
width: 170,
|
width: 170,
|
||||||
label: "文字logo"
|
label: "文字logo"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
prop: "d_domain",
|
||||||
|
width: 170,
|
||||||
|
label: "站点域名"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
prop: "t_id",
|
prop: "t_id",
|
||||||
width: 170,
|
width: 170,
|
||||||
@@ -170,6 +148,31 @@ const columns = reactive<ColumnProps<SiteList.ResList>[]>([
|
|||||||
fieldNames: { label: "t_code", value: "t_id" },
|
fieldNames: { label: "t_code", value: "t_id" },
|
||||||
enum: getTempLateList
|
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",
|
prop: "t_cfg",
|
||||||
width: 170,
|
width: 170,
|
||||||
@@ -178,23 +181,24 @@ const columns = reactive<ColumnProps<SiteList.ResList>[]>([
|
|||||||
return JSON.stringify(scope.row.t_cfg);
|
return JSON.stringify(scope.row.t_cfg);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
// {
|
prop: "d_content_encode",
|
||||||
// prop: "si_status",
|
width: 100,
|
||||||
// label: "状态",
|
label: "是否转码",
|
||||||
// search: { el: "select", props: { filterable: true } },
|
enum: [
|
||||||
// enum: [
|
{ label: "否", value: 0 },
|
||||||
// { label: "禁用", value: 0 },
|
{ label: "是", value: 1 }
|
||||||
// { label: "启用", value: 1 }
|
],
|
||||||
// ],
|
},
|
||||||
// render(scope) {
|
{
|
||||||
// return (
|
prop: "d_logo_type",
|
||||||
// <el-tag type={scope.row.si_status === 0 ? "danger" : "success"}>
|
width: 100,
|
||||||
// {scope.row.si_status === 0 ? "禁用" : "启用"}
|
label: "logo类型",
|
||||||
// </el-tag>
|
enum: [
|
||||||
// );
|
{ label: "文字", value: 0 },
|
||||||
// }
|
{ label: "图片", value: 1 }
|
||||||
// },
|
],
|
||||||
|
},
|
||||||
{
|
{
|
||||||
prop: "d_img_log",
|
prop: "d_img_log",
|
||||||
label: "图片LOGO",
|
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",
|
prop: "d_statis",
|
||||||
width: 170,
|
width: 170,
|
||||||
|
|||||||
Reference in New Issue
Block a user