消息列表
This commit is contained in:
@@ -61,7 +61,7 @@
|
|||||||
>
|
>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|
||||||
<el-col :span="24" v-if="dataForm.type == 0">
|
<el-col :span="24" v-if="dataForm.type == 1">
|
||||||
<el-form-item label="链接地址" prop="url">
|
<el-form-item label="链接地址" prop="url">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="dataForm.url"
|
v-model="dataForm.url"
|
||||||
@@ -70,7 +70,7 @@
|
|||||||
></el-input>
|
></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="24" v-if="dataForm.type == 1">
|
<el-col :span="24" v-if="dataForm.type == 0">
|
||||||
<div style="height: auto;margin-bottom: 80px;">
|
<div style="height: auto;margin-bottom: 80px;">
|
||||||
<el-form-item label="内容" prop="url">
|
<el-form-item label="内容" prop="url">
|
||||||
<el-upload
|
<el-upload
|
||||||
@@ -214,7 +214,7 @@ export default {
|
|||||||
dictValue: ""
|
dictValue: ""
|
||||||
},
|
},
|
||||||
gushuList: [],
|
gushuList: [],
|
||||||
linkList: [{ label: "外链", value: 0 }, { label: "富文本", value: 1 }],
|
linkList: [{ label: "外链", value: 1 }, { label: "富文本", value: 0 }],
|
||||||
restaurants: [],
|
restaurants: [],
|
||||||
author: "",
|
author: "",
|
||||||
publisherList: [],
|
publisherList: [],
|
||||||
@@ -223,7 +223,7 @@ export default {
|
|||||||
dialogImageUrl: "",
|
dialogImageUrl: "",
|
||||||
dialogVisible: false,
|
dialogVisible: false,
|
||||||
dataForm: {
|
dataForm: {
|
||||||
type: 0,
|
type: 1,
|
||||||
title: "",
|
title: "",
|
||||||
isBook: 0, //是否是疯子读书
|
isBook: 0, //是否是疯子读书
|
||||||
isMedical: 0, //是否是吴门医述
|
isMedical: 0, //是否是吴门医述
|
||||||
@@ -316,7 +316,7 @@ this.dataForm.content=''
|
|||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
this.dataForm = {
|
this.dataForm = {
|
||||||
type: 0,
|
type: 1,
|
||||||
title: "",
|
title: "",
|
||||||
isBook: 0, //是否是疯子读书
|
isBook: 0, //是否是疯子读书
|
||||||
isMedical: 0, //是否是吴门医述
|
isMedical: 0, //是否是吴门医述
|
||||||
@@ -340,7 +340,7 @@ this.dataForm.content=''
|
|||||||
this.$message.error("请选择发布APP");
|
this.$message.error("请选择发布APP");
|
||||||
return;
|
return;
|
||||||
}console.log('this.dataForm.type at line 332:', this.dataForm)
|
}console.log('this.dataForm.type at line 332:', this.dataForm)
|
||||||
if (this.dataForm.type == 0 && (this.dataForm.url == ""||!this.dataForm.url)) {
|
if (this.dataForm.type == 1 && (this.dataForm.url == ""||!this.dataForm.url)) {
|
||||||
|
|
||||||
this.$message.error("请输入链接地址");
|
this.$message.error("请输入链接地址");
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -97,8 +97,8 @@
|
|||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<div>
|
<div>
|
||||||
<span v-if="scope.row.type == 0">外链</span>
|
<span v-if="scope.row.type == 0">富文本</span>
|
||||||
<span v-if="scope.row.type == 1">富文本</span>
|
<span v-if="scope.row.type == 1">外链</span>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@@ -164,7 +164,7 @@ import AddOrUpdate from "./course-add-or-update";
|
|||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
linkList: [{ label: "外链", value: 0 }, { label: "富文本", value: 1 }],
|
linkList: [{ label: "外链", value: 1 }, { label: "富文本", value: 0 }],
|
||||||
selectQueryApp: null,
|
selectQueryApp: null,
|
||||||
APPList: [
|
APPList: [
|
||||||
{ label: "疯子读书", value: 2, valueName: "isBook" },
|
{ label: "疯子读书", value: 2, valueName: "isBook" },
|
||||||
@@ -176,9 +176,8 @@ export default {
|
|||||||
},
|
},
|
||||||
query: {
|
query: {
|
||||||
type: "",
|
type: "",
|
||||||
categoryId: "",
|
title:""
|
||||||
sociologyId: "",
|
|
||||||
keywords: ""
|
|
||||||
},
|
},
|
||||||
dataList: [],
|
dataList: [],
|
||||||
delFlag: false,
|
delFlag: false,
|
||||||
|
|||||||
Reference in New Issue
Block a user