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