111
This commit is contained in:
parent
81657db86a
commit
246c5a62dc
@ -65,6 +65,11 @@
|
||||
</a-col>
|
||||
</a-row>
|
||||
<a-row :gutter="24">
|
||||
<a-col :span="12">
|
||||
<a-form-item field="sort" label="排序值:">
|
||||
<a-input-number mode="button" :min="0" v-model="modalForm.sort" placeholder="请输入排序" :style="{ width: '180px' }"></a-input-number>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
<a-form-item field="article_science_class" label="文章分类:">
|
||||
|
||||
@ -178,7 +183,8 @@ const handleSubmit = () => {
|
||||
article_image,
|
||||
source_id,
|
||||
article_url,
|
||||
article_science_class
|
||||
article_science_class,
|
||||
sort
|
||||
} = modalForm.value;
|
||||
if (!valid) {
|
||||
if (props.id) {
|
||||
@ -190,7 +196,8 @@ const handleSubmit = () => {
|
||||
article_image,
|
||||
source_id,
|
||||
article_url,
|
||||
article_science_class
|
||||
article_science_class,
|
||||
sort:sort===''?1:sort,
|
||||
});
|
||||
} else {
|
||||
data = await addArticle({
|
||||
@ -200,7 +207,8 @@ const handleSubmit = () => {
|
||||
article_image,
|
||||
source_id,
|
||||
article_url,
|
||||
article_science_class
|
||||
article_science_class,
|
||||
sort:sort===''?1:sort,
|
||||
});
|
||||
}
|
||||
if (data.code == 200) {
|
||||
|
||||
@ -18,6 +18,12 @@
|
||||
<a-option :value="1">是</a-option>
|
||||
</a-select>
|
||||
</a-form-item>
|
||||
<a-form-item field="is_top" label="排序值排序">
|
||||
<a-select v-model="queryForm.is_top" placeholder="请选择是否置顶" :style="{ width: '182px' }">
|
||||
<a-option :value="0">否</a-option>
|
||||
<a-option :value="1">是</a-option>
|
||||
</a-select>
|
||||
</a-form-item>
|
||||
<!-- <a-form-item field="is_top" label="修改shi'jshijianian">
|
||||
<a-select v-model="queryForm.is_top" placeholder="请选择是否置顶" :style="{ width: '182px' }">
|
||||
<a-option :value="0">否</a-option>
|
||||
@ -168,6 +174,7 @@
|
||||
const columns = [
|
||||
{ title: '编号', dataIndex: 'doctor_id', slotName: 'doctor_id', width: '90' },
|
||||
{ title: '标题', dataIndex: 'article_title',width:200 },
|
||||
{ title: '排序值', dataIndex: 'sort',width:80 },
|
||||
{ title: '文章分类', dataIndex: 'article_science_class',slotName: 'article_science_class',width:100 },
|
||||
{ title: '文章来源', dataIndex: 'source_name', slotName: 'source_name',width: 120 },
|
||||
{ title: '文章来源图片', dataIndex: 'source_image',slotName: 'source_image',width:120 },
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user