|
|
@ -240,8 +240,8 @@
|
|
|
|
<!-- <editor v-model="form.content" :min-height="192"/> -->
|
|
|
|
<!-- <editor v-model="form.content" :min-height="192"/> -->
|
|
|
|
<el-input v-model="form.content" resize="none" :rows="5" type="textarea" placeholder="请输入内容" />
|
|
|
|
<el-input v-model="form.content" resize="none" :rows="5" type="textarea" placeholder="请输入内容" />
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="图片上传" prop="imageUrl">
|
|
|
|
<el-form-item label="图片上传">
|
|
|
|
<imageUpload v-model="form.imageUrl"/>
|
|
|
|
<imageUpload v-model="imageUrls"/>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<!-- <el-form-item label="文件">
|
|
|
|
<!-- <el-form-item label="文件">
|
|
|
|
<el-button @click="addDomain" type="primary">添加图片</el-button>
|
|
|
|
<el-button @click="addDomain" type="primary">添加图片</el-button>
|
|
|
@ -395,6 +395,7 @@
|
|
|
|
},
|
|
|
|
},
|
|
|
|
fileList:[],
|
|
|
|
fileList:[],
|
|
|
|
images:[],
|
|
|
|
images:[],
|
|
|
|
|
|
|
|
imageUrls:'',
|
|
|
|
};
|
|
|
|
};
|
|
|
|
},
|
|
|
|
},
|
|
|
|
created() {
|
|
|
|
created() {
|
|
|
@ -526,6 +527,8 @@
|
|
|
|
const id = row.id || this.ids
|
|
|
|
const id = row.id || this.ids
|
|
|
|
getQlzxxddt(id).then(response => {
|
|
|
|
getQlzxxddt(id).then(response => {
|
|
|
|
this.form = response.data;
|
|
|
|
this.form = response.data;
|
|
|
|
|
|
|
|
this.imageUrls = this.form.imageUrl
|
|
|
|
|
|
|
|
|
|
|
|
// this.form.isStatus = response.data.isStatus;
|
|
|
|
// this.form.isStatus = response.data.isStatus;
|
|
|
|
// this.form.title = response.data.title;
|
|
|
|
// this.form.title = response.data.title;
|
|
|
|
// this.form.content = response.data.content;
|
|
|
|
// this.form.content = response.data.content;
|
|
|
@ -572,11 +575,23 @@
|
|
|
|
},
|
|
|
|
},
|
|
|
|
/** 提交按钮 */
|
|
|
|
/** 提交按钮 */
|
|
|
|
submitForm() {
|
|
|
|
submitForm() {
|
|
|
|
// let arr1 = [];
|
|
|
|
let arr1 = [];
|
|
|
|
// this.form.domains.forEach((value) => {
|
|
|
|
// this.form.domains.forEach((value) => {
|
|
|
|
// arr1.push(value.imageUrl);
|
|
|
|
// arr1.push(value.imageUrl);
|
|
|
|
// });
|
|
|
|
// });
|
|
|
|
this.form.imageUrl = process.env.VUE_APP_BASE_API + this.form.imageUrl;
|
|
|
|
let images = this.imageUrls.split(',')
|
|
|
|
|
|
|
|
let reg = new RegExp('http')
|
|
|
|
|
|
|
|
if(images.length > 0 && images[0] !== ''){
|
|
|
|
|
|
|
|
images.forEach(item=>{
|
|
|
|
|
|
|
|
if(reg.test(item)){
|
|
|
|
|
|
|
|
item = item;
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
item = process.env.VUE_APP_BASE_API + item;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
arr1.push(item)
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
this.form.imageUrl = arr1.join(',')
|
|
|
|
this.$refs["form"].validate(valid => {
|
|
|
|
this.$refs["form"].validate(valid => {
|
|
|
|
if (valid) {
|
|
|
|
if (valid) {
|
|
|
|
if (this.form.id != null) {
|
|
|
|
if (this.form.id != null) {
|
|
|
|