Commit ba733026 by Lyan

bug测试

parent da863326
......@@ -15,7 +15,7 @@ module.exports = {
proxyTable: devEnv.OPEN_PROXY === false ? {} : {
'/proxyApi': {
// target: 'http://81.68.189.225:9091/',
target: 'http://192.168.0.77/',
target: ' http://dynamic.gs1cn.org/',
changeOrigin: true,
pathRewrite: {
'^/proxyApi': '/'
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -364,11 +364,11 @@ img {
margin-right: 5px;
}
.el-dialog{
width: 90%!important;
margin-top: 10vh!important;
.el-dialog__body{
height: 63vh!important;
}
min-width: 80%;
// margin-top: 10vh!important;
// .el-dialog__body{
// height: 63vh!important;
// }
.el-select,.el-date-editor{
width: 100%;
}
......@@ -430,3 +430,51 @@ img {
.seach-btn{
margin-bottom: 22px;
}
//这里注意:我当前将css样式加载全局上,如果单页添加样式需要每个样式前添加 ‘/deep/' 修饰符
/* dialog*/
.el-dialog__header {
padding: 15px 20px 15px;
}
.el-dialog__headerbtn{
top: 15px;
}
/*dialog header*/
.el-dialog__header{
background: #e3eaed;
}
.avue-crud__dialog__header {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: justify;
-ms-flex-pack: justify;
justify-content: space-between;
}
.el-dialog__title {
color: rgba(0,0,0,.85);
font-weight: 500;
word-wrap: break-word;
}
.avue-crud__dialog__menu {
padding-right: 20px;
float: left;
margin-top: -5px;
}
.avue-crud__dialog__menu i {
color: #909399;
font-size: 17px;
}
.el-icon-full-screen{
cursor: pointer;
}
.el-icon-full-screen:before {
content: "\e719";
}
.el-icon-full-screen {
background: url('../img/full.png') center center no-repeat;
background-size: 15px;
}
......@@ -110,7 +110,7 @@ export default {
<style lang="scss">
.el-dialog__body {
height: 60vh;
overflow-y: auto;
// height: 60vh;
// overflow-y: auto;
}
</style>
\ No newline at end of file
......@@ -209,6 +209,14 @@ export default {
cclassName: ''
}
},
watch: {
visible: function (val, oldVal) {
if (val === false) {
this.ueditor.value = ' '
this.dataForm.content = ''
}
}
},
mounted () {
console.log(this.classidList)
},
......
......@@ -89,7 +89,8 @@
<el-table-column
prop="title"
header-align="center"
align="center"
align="left"
width="360px"
label="文章标题">
</el-table-column>
<el-table-column
......@@ -100,22 +101,28 @@
</el-table-column>
<el-table-column
prop="showtime"
width="120px"
header-align="center"
align="center"
sortable='custom'
label="显示时间">
</el-table-column>
<el-table-column
prop="releasedate"
prop="startdate"
header-align="center"
align="center"
sortable='custom'
width="120px"
label="添加时间">
<template slot-scope="scope">
<div>{{ scope.row.startdate && scope.row.startdate.substring(0,10) }}</div>
</template>
</el-table-column>
<el-table-column
prop="keyword"
header-align="center"
align="center"
align="left"
width="260px"
label="关键字">
</el-table-column>
<el-table-column
......
......@@ -161,6 +161,14 @@ export default {
},
mounted () {
},
watch: {
visible: function (val, oldVal) {
if (val === false) {
this.ueditor.value = ' '
this.dataForm.content = ''
}
}
},
methods: {
getSelectName (list, id) {
let arr = list.filter((item) => {
......
......@@ -75,7 +75,8 @@
<el-table-column
prop="title"
header-align="center"
align="center"
align="left"
width="360px"
label="标题">
</el-table-column>
<el-table-column
......@@ -99,6 +100,7 @@
prop="author"
header-align="center"
align="center"
width="120px"
label="作者">
</el-table-column>
<el-table-column
......@@ -106,6 +108,7 @@
header-align="center"
align="center"
sortable='custom'
width="120px"
label="显示时间">
</el-table-column>
<el-table-column
......@@ -113,7 +116,11 @@
header-align="center"
align="center"
sortable='custom'
width="120px"
label="发布时间">
<template slot-scope="scope">
<div>{{ scope.row.releasedate && scope.row.releasedate.substring(0,10) }}</div>
</template>
</el-table-column>
<!-- <el-table-column
prop="keyword"
......
......@@ -10,7 +10,7 @@
</el-form-item>
<el-form-item label="背景颜色:" prop="colorBackground" class=" setdes setdes1">
<el-row v-show="!showInfo">
<el-col :span="22">
<el-col :span="10">
<el-select v-model="dataForm.colorBackground" placeholder="请选择背景颜色" v-show="!showInfo" :disabled='disabled'>
<el-option
v-for="item in colorBackgroundList"
......@@ -20,11 +20,8 @@
</el-option>
</el-select>
</el-col>
<el-col :span="2" class="iconStyle">
<el-tooltip placement="top" effect="light">
<div slot="content">大轮播图需要编辑该项</div>
<i class="el-icon-warning"></i>
</el-tooltip>
<el-col :span="12" class="iconStyle">
<p style="color:red;font-size:12px;text-align:left;margin-left:20px"> 注:大轮播图需编辑背景颜色,移动端适配页面展示</p>
</el-col>
</el-row>
<p v-show="showInfo">{{dataForm.colorBackground}}</p>
......@@ -114,7 +111,7 @@
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
</el-upload>
<!-- <el-input v-model="dataForm.picIndexPath" placeholder=""></el-input> -->
<span v-show="!showInfo" style="font-size:12px;color:red">注:大轮播图片建议尺寸1920*420或同等比例图片,小轮播图片建议尺寸为360*160或同等比例图片</span>
<span v-show="!showInfo" style="font-size:12px;color:red">注:大轮播图片建议尺寸1920*360或同等比例图片,小轮播图片建议尺寸为387*130或同等比例图片</span>
<p><img :src="imgUrlStr" class="avatar2" v-show="showInfo"></p>
</el-form-item>
</el-form>
......@@ -177,25 +174,25 @@ export default {
levelList: piclevelList,
colorBackgroundList: [
{
label: '桔色',
value: '#f26334'
label: '医疗蓝',
value: '#00B6DE'
},
{
label: '黄色',
value: '#fbb033'
label: '零售',
value: '#F05587'
},
{
label: '粉色',
value: '#f05587'
label: '物流',
value: '#22BCB9'
},
{
label: '紫色',
value: '#BF83B9'
label: '电子商务',
value: '#C1D82F'
},
{
label: '蓝色',
value: '#002c6c!important'
label: '食品安全追溯',
value: '#7AC143!important'
}
],
colorMoreList: [
......
......@@ -73,8 +73,8 @@
<el-table-column
prop="title"
header-align="center"
align="center"
:show-overflow-tooltip="true"
align="left"
width="360px"
label="标题">
</el-table-column>
<el-table-column
......@@ -87,17 +87,21 @@
prop="starttimeIndex"
header-align="center"
align="center"
:show-overflow-tooltip="true"
sortable='custom'
label="首页添加时间">
<template slot-scope="scope">
<div>{{ scope.row.starttimeIndex && scope.row.starttimeIndex.substring(0,10) }}</div>
</template>
</el-table-column>
<el-table-column
prop="updatetimeIndex"
header-align="center"
:show-overflow-tooltip="true"
align="center"
sortable='custom'
label="首页修改时间">
<template slot-scope="scope">
<div>{{ scope.row.updatetimeIndex && scope.row.updatetimeIndex.substring(0,10) }}</div>
</template>
</el-table-column>
<el-table-column
prop="editorIndex"
......
......@@ -2,7 +2,19 @@
<el-dialog
:title="!dataForm.id ? '新增' : this.showInfo?'详情':'修改'"
:close-on-click-modal="false"
:fullscreen="dialogFull"
:visible.sync="visible">
<template slot="title">
<div class="avue-crud__dialog__header">
<span class="el-dialog__title">
<span ></span>
{{!dataForm.id ? '新增' : this.showInfo?'详情':'修改'}}
</span>
<div class="avue-crud__dialog__menu" @click="dialogFull? dialogFull=false: dialogFull=true">
<i class="el-icon-full-screen"></i>
</div>
</div>
</template>
<el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmit()" label-width="120px" >
<el-form-item label="原始标题:" prop="titleOld">
<el-input v-model="dataForm.titleOld" placeholder="请输入原始标题" v-show="!showInfo"></el-input>
......@@ -127,6 +139,7 @@ export default {
},
data () {
return {
dialogFull: false,
loading: false,
showInfo: false,
visible: false,
......@@ -208,7 +221,14 @@ export default {
cclassName: ''
}
},
watch: {
visible: function (val, oldVal) {
if (val === false) {
this.ueditor.value = ' '
this.dataForm.content = ''
}
}
},
created () {
// this.getClassList([5, 9])
this.getCclassList(5)
......@@ -469,6 +489,7 @@ export default {
}
</script>
<style scoped>
/* .form-list{
padding-left: 4%!important;
}
......@@ -481,4 +502,13 @@ export default {
.edui-editor{
width: 100%;
} */
</style>
\ No newline at end of file
</style>
<style scoped>
.icon-list__tips {
font-size: 18px;
text-align: center;
color: #e6a23c;
cursor: pointer;
}
</style>
......@@ -81,7 +81,7 @@
<el-table-column
prop="title"
header-align="center"
align="center"
width="360px"
label="新闻标题">
</el-table-column>
<el-table-column
......@@ -94,6 +94,7 @@
prop="showtime"
header-align="center"
align="center"
width="120px"
sortable='custom'
label="显示时间">
</el-table-column>
......@@ -102,12 +103,16 @@
header-align="center"
align="center"
sortable='custom'
width="120px"
label="添加时间">
<template slot-scope="scope">
<div>{{ scope.row.releasedate && scope.row.releasedate.substring(0,10) }}</div>
</template>
</el-table-column>
<el-table-column
prop="keyword"
width="260px"
header-align="center"
align="center"
label="关键字">
</el-table-column>
<el-table-column
......
......@@ -92,13 +92,14 @@
<el-table-column
prop="title"
header-align="center"
align="center"
align="left"
width="360px"
label="显示标题">
</el-table-column>
<el-table-column
prop="keyword"
header-align="center"
align="center"
align="left" width="260px"
label="关键字">
</el-table-column>
<el-table-column
......@@ -107,12 +108,7 @@
align="center"
label="演讲人">
</el-table-column>
<el-table-column
prop="keyword"
header-align="center"
align="center"
label="关键字">
</el-table-column>
<el-table-column
prop="longStr"
header-align="center"
......@@ -158,6 +154,9 @@
align="center"
sortable='custom'
label="发布时间">
<template slot-scope="scope">
<div>{{ scope.row.releasedate && scope.row.releasedate.substring(0,10) }}</div>
</template>
</el-table-column>
<el-table-column
prop="updatedate"
......@@ -165,6 +164,9 @@
align="center"
sortable='custom'
label="更新时间">
<template slot-scope="scope">
<div>{{ scope.row.updatedate && scope.row.updatedate.substring(0,10) }}</div>
</template>
</el-table-column>
<el-table-column
prop="auditor"
......
<template>
<el-dialog
:title="!dataForm.id ? '新增' : this.showInfo?'详情':'修改'"
:title="!dataForm.classid ? '新增' : this.showInfo?'详情':'修改'"
:close-on-click-modal="false"
:visible.sync="visible">
<el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmit()" label-width="120px" >
......@@ -68,7 +68,7 @@
</el-row>
<p v-show="showInfo">{{dataForm.showtime}}</p>
</el-form-item>
<el-form-item label="专题图片:" prop="pic" class="pic">
<el-form-item label="专题图片:" prop="pic" >
<el-upload
v-show="!showInfo"
class="avatar-uploader avatar2"
......@@ -119,7 +119,7 @@ export default {
label: 'label'
},
dataForm: {
id: 0,
classid: 0,
title: '',
directpath: '',
categoryid: '',
......@@ -203,7 +203,12 @@ export default {
}
},
watch: {
visible: function (val, oldVal) {
if (val === false) {
this.ueditor.value = ' '
this.dataForm.content = ''
}
}
},
created () {
......@@ -213,15 +218,15 @@ export default {
},
methods: {
init (id, showInfo) {
this.dataForm.id = id || 0
this.dataForm.classid = id || 0
this.visible = true
this.showInfo = showInfo
this.$nextTick(() => {
this.clearInp()
if (this.dataForm.id) {
if (this.dataForm.classid) {
this.loading = true
this.$http({
url: this.$http.adornUrl(`/office/newtopic/info/${this.dataForm.id}`),
url: this.$http.adornUrl(`/office/newtopic/info/${this.dataForm.classid}`),
method: 'get',
params: this.$http.adornParams()
}).then(({data}) => {
......@@ -244,15 +249,15 @@ export default {
this.loading = true
this.$refs['dataForm'].validate((valid) => {
if (valid) {
if (this.dataForm.ppath === '' || this.dataForm.ppath === null) {
this.$message.error('图片未上传,请上传图片!')
return
}
// if (this.dataForm.ppath === '' || this.dataForm.ppath === null) {
// this.$message.error('图片未上传,请上传图片!')
// return
// }
this.$http({
url: this.$http.adornUrl(`/office/newtopic/${!this.dataForm.id ? 'save' : 'update'}`),
url: this.$http.adornUrl(`/office/newtopic/${!this.dataForm.classid ? 'save' : 'update'}`),
method: 'post',
data: this.$http.adornData({
'id': this.dataForm.id || undefined,
'classid': this.dataForm.classid || undefined,
'title': this.dataForm.title,
'directpath': this.dataForm.directpath,
'categoryid': this.dataForm.categoryid,
......
......@@ -54,12 +54,14 @@
prop="levels"
header-align="center"
align="center"
width="70px"
label="级别">
</el-table-column>
<el-table-column
prop="title"
header-align="center"
align="center"
align="left"
width="360px"
label="专题标题">
</el-table-column>
<!-- <el-table-column
......@@ -81,6 +83,9 @@
align="center"
sortable='custom'
label="发布时间">
<template slot-scope="scope">
<div>{{ scope.row.time && scope.row.time.substring(0,10) }}</div>
</template>
</el-table-column>
<el-table-column
prop="editor"
......@@ -243,6 +248,7 @@ export default {
addOrUpdateHandle (id, showInfo) {
this.addOrUpdateVisible = true
this.$nextTick(() => {
console.log(id)
this.$refs.addOrUpdate.init(id, showInfo)
})
},
......
......@@ -2,7 +2,20 @@
<el-dialog
:title="!dataForm.pictureid ? '新增' : this.showInfo?'详情':'修改'"
:close-on-click-modal="false"
:fullscreen="dialogFull"
@open="dialogFull=false"
:visible.sync="visible">
<template slot="title">
<div class="avue-crud__dialog__header">
<span class="el-dialog__title">
<span ></span>
{{!dataForm.pictureid ? '新增' : this.showInfo?'详情':'修改'}}
</span>
<div class="avue-crud__dialog__menu" @click="dialogFull? dialogFull=false: dialogFull=true">
<i class="el-icon-full-screen"></i>
</div>
</div>
</template>
<el-form
:model='dataForm'
:rules='dataRule'
......@@ -77,7 +90,7 @@
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
</el-upload>
<p><img :src="imgUrlStr" class="avatar2" v-show="showInfo"></p>
<span v-show="!showInfo" style="font-size:12px;color:red">注:图片资讯图片建议最小尺寸400*300或同等比例图片</span>
<span v-show="!showInfo" style="font-size:12px;color:red">注:图片资讯图片建议最小尺寸800*600或同等比例图片</span>
</el-form-item>
</el-form>
<span slot="footer" class="dialog-footer" v-show="!showInfo">
......@@ -92,6 +105,7 @@ import { piclevelList } from '@/utils'
export default {
data () {
return {
dialogFull: false,
loading: false,
visible: false,
showInfo: false,
......@@ -193,10 +207,12 @@ export default {
dialogVisible: false
}
},
created () {
},
destroyed () {
this.fullscreen = false
},
methods: {
init (pictureid, showInfo) {
this.dataForm.pictureid = pictureid || 0
......
......@@ -69,7 +69,7 @@
>
<el-table-column prop="piclevel" header-align="center" align="center" label="级别"> </el-table-column>
<el-table-column prop="title" header-align="center" align="center" label="标题">
<el-table-column prop="title" header-align="center" align="left" label="标题" width="360px">
<template slot-scope="scope">
<div>
{{scope.row.title}}
......@@ -77,9 +77,13 @@
</template>
</el-table-column>
<el-table-column prop="pictureType" header-align="center" align="center" label="分类"> </el-table-column>
<el-table-column prop="showtime" header-align="center" align="center" sortable='custom' label="显示时间"> </el-table-column>
<el-table-column prop="inputdate" header-align="center" align="center" sortable='custom' label="发布时间"> </el-table-column>
<el-table-column prop="keyword" header-align="center" align="center" label="关键字"> </el-table-column>
<el-table-column prop="showtime" header-align="center" align="center" sortable='custom' label="显示时间" width="120px"> </el-table-column>
<el-table-column prop="inputdate" header-align="center" align="center" sortable='custom' label="发布时间" width="120px">
<template slot-scope="scope">
<div>{{ scope.row.inputdate && scope.row.inputdate.substring(0,10) }}</div>
</template>
</el-table-column>
<el-table-column prop="keyword" header-align="center" align="left" label="关键字" width="260px"> </el-table-column>
<el-table-column prop="editor" header-align="center" align="center" label="编辑"> </el-table-column>
<el-table-column prop="lasteditor" header-align="center" align="center" label="最后编辑"> </el-table-column>
<el-table-column prop="auditor" header-align="center" align="center" label="审核人"> </el-table-column>
......
......@@ -185,6 +185,14 @@
created () {
this.getMedicalTypeList()
},
watch: {
visible: function (val, oldVal) {
if (val === false) {
this.ueditor.value = ' '
this.dataForm.content = ''
}
}
},
methods: {
init (id, showInfo) {
this.dataForm.id = id || 0
......
......@@ -46,7 +46,8 @@
<el-table-column
prop="title"
header-align="center"
align="center"
align="left"
width="360px"
label="标题">
</el-table-column>
<el-table-column
......@@ -61,6 +62,9 @@
align="center"
sortable='custom'
label="创建日期">
<template slot-scope="scope">
<div>{{ scope.row.releasetime && scope.row.releasetime.substring(0,10) }}</div>
</template>
</el-table-column>
<el-table-column
prop="checkname"
......
......@@ -2,7 +2,8 @@
<el-dialog
:title="!dataForm.id ? '新增' : this.showInfo?'详情':'修改'"
:close-on-click-modal="false"
:visible.sync="visible">
:visible.sync="visible"
>
<el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmit()" label-width="120px" >
<el-form-item label="标题:" prop="title">
<el-input v-model="dataForm.title" placeholder="请输入显示标题" v-show="!showInfo"></el-input>
......@@ -126,16 +127,16 @@
],
keyword: [
{ required: true, message: '不能为空', trigger: 'blur' }
],
]
// jumpath: [
// { required: true, message: '不能为空', trigger: 'blur' }
// ],
author: [
{ required: true, message: '不能为空', trigger: 'blur' }
],
source: [
{ required: true, message: '不能为空', trigger: 'blur' }
]
// author: [
// { required: true, message: '不能为空', trigger: 'blur' }
// ],
// source: [
// { required: true, message: '不能为空', trigger: 'blur' }
// ]
// releasetime: [
// { required: true, message: '不能为空', trigger: 'blur' }
......@@ -160,7 +161,14 @@
title: ''
}
},
watch: {
visible: function (val, oldVal) {
if (val === false) {
this.ueditor.value = ' '
this.dataForm.content = ''
}
}
},
created () {
this.getMedicalTypeList()
},
......@@ -171,8 +179,10 @@
this.dataForm.id = id || 0
this.visible = true
this.showInfo = showInfo
this.$nextTick(() => {
this.clearInp()
if (this.dataForm.id) {
this.$http({
url: this.$http.adornUrl(`/office/medical/info/${this.dataForm.id}`),
......@@ -187,6 +197,9 @@
this.$message.error(data.msg)
}
})
} else {
this.dataForm = {}
this.ueditor.value = ''
}
})
},
......@@ -256,7 +269,6 @@
this.$refs['dataForm'].resetFields()
this.imgUrlStr = ''
this.dialogVisible = false
this.ueditor.value = ''
}
}
}
......
......@@ -55,11 +55,12 @@
<el-table-column
prop="title"
header-align="center"
align="center"
align="left"
width="360px"
label="标题">
</el-table-column>
<el-table-column
prop="author"
prop="editor"
header-align="center"
align="center"
sortable='custom'
......@@ -71,6 +72,9 @@
align="center"
sortable='custom'
label="创建日期">
<template slot-scope="scope">
<div>{{ scope.row.releasetime && scope.row.releasetime.substring(0,10) }}</div>
</template>
</el-table-column>
<el-table-column
prop="checkname"
......
......@@ -162,7 +162,14 @@ export default {
title: ''
}
},
watch: {
visible: function (val, oldVal) {
if (val === false) {
this.ueditor.value = ' '
this.dataForm.content = ''
}
}
},
created () {
},
methods: {
......
......@@ -79,7 +79,8 @@
<el-table-column
prop="title"
header-align="center"
align="center"
align="left"
width="360px"
label="新闻标题">
</el-table-column>
<el-table-column
......@@ -92,6 +93,7 @@
prop="showtime"
header-align="center"
align="center"
width="120px"
sortable='custom'
label="显示时间">
</el-table-column>
......@@ -100,12 +102,17 @@
header-align="center"
align="center"
sortable='custom'
width="120px"
label="发布时间">
<template slot-scope="scope">
<div>{{ scope.row.releasedate && scope.row.releasedate.substring(0,10) }}</div>
</template>
</el-table-column>
<el-table-column
prop="keyword"
header-align="center"
align="center"
align="left"
width="260px"
label="关键字">
</el-table-column>
<el-table-column
......
......@@ -159,7 +159,14 @@ export default {
title: ''
}
},
watch: {
visible: function (val, oldVal) {
if (val === false) {
this.ueditor.value = ' '
this.dataForm.content = ''
}
}
},
created () {
},
methods: {
......
......@@ -76,7 +76,8 @@
<el-table-column
prop="title"
header-align="center"
align="center"
align="left"
width="360px"
label="新闻标题">
</el-table-column>
<el-table-column
......@@ -90,6 +91,7 @@
header-align="center"
align="center"
sortable='custom'
width="120px"
label="显示时间">
</el-table-column>
<el-table-column
......@@ -97,12 +99,17 @@
header-align="center"
align="center"
sortable='custom'
width="120px"
label="发布时间">
<template slot-scope="scope">
<div>{{ scope.row.releasedate && scope.row.releasedate.substring(0,10) }}</div>
</template>
</el-table-column>
<el-table-column
prop="keyword"
header-align="center"
align="center"
align="left"
width="260px"
label="关键字">
</el-table-column>
<el-table-column
......
......@@ -162,6 +162,14 @@ export default {
title: ''
}
},
watch: {
visible: function (val, oldVal) {
if (val === false) {
this.ueditor.value = ' '
this.dataForm.content = ''
}
}
},
methods: {
init (id, showInfo) {
this.dataForm.id = id || 0
......
......@@ -79,7 +79,8 @@
<el-table-column
prop="title"
header-align="center"
align="center"
align="left"
width="360px"
label="新闻标题">
</el-table-column>
<el-table-column
......@@ -93,19 +94,25 @@
header-align="center"
align="center"
sortable='custom'
width="120px"
label="显示时间">
</el-table-column>
<el-table-column
prop="releasedate"
header-align="center"
align="center"
width="120px"
sortable='custom'
label="发布时间">
<template slot-scope="scope">
<div>{{ scope.row.releasedate && scope.row.releasedate.substring(0,10) }}</div>
</template>
</el-table-column>
<el-table-column
prop="keyword"
header-align="center"
align="center"
align="left"
width="260px"
label="关键字">
</el-table-column>
<el-table-column
......
......@@ -162,7 +162,14 @@ export default {
title: ''
}
},
watch: {
visible: function (val, oldVal) {
if (val === false) {
this.ueditor.value = ' '
this.dataForm.content = ''
}
}
},
created () {
},
methods: {
......
......@@ -77,7 +77,8 @@
<el-table-column
prop="title"
header-align="center"
align="center"
align="left"
width="360px"
label="新闻标题">
</el-table-column>
<el-table-column
......@@ -91,6 +92,7 @@
header-align="center"
align="center"
sortable='custom'
width="120px"
label="显示时间">
</el-table-column>
<el-table-column
......@@ -98,12 +100,17 @@
header-align="center"
align="center"
sortable='custom'
width="120px"
label="发布时间">
<template slot-scope="scope">
<div>{{ scope.row.releasedate && scope.row.releasedate.substring(0,10) }}</div>
</template>
</el-table-column>
<el-table-column
prop="keyword"
header-align="center"
align="center"
align="left"
width="260px"
label="关键字">
</el-table-column>
<el-table-column
......
......@@ -18,8 +18,8 @@
<el-button class="seach-btn" @click="getDataList2()" type="primary">搜索</el-button>
</el-form>
<div class="add-btn">
<el-button type="primary" @click="allUpload('',-1)">批量上报</el-button>
<el-button type="primary" @click="allUpload('',0)">批量上传</el-button>
<!-- <el-button type="primary" @click="allUpload('',-1)">批量上报</el-button> -->
<el-button type="primary" @click="allUpload('',1)">批量上传</el-button>
</div>
<div class="table-list">
<el-table
......@@ -36,11 +36,16 @@
width="50">
</el-table-column>
<el-table-column
type="index"
header-align="center"
type="index"
align="center"
width="50px"
label="序号">
<template slot-scope="scope">
<span>{{
(pageIndex - 1) * pageSize + scope.$index + 1
}}</span>
</template>
</el-table-column>
<el-table-column
prop="name"
......@@ -79,9 +84,9 @@
label="状态">
<!-- -1为“未上报”,0为“未上传”1为“已上传” -->
<template slot-scope="scope">
<p v-if="scope.row.checkflag===-1" type="text" size="small">未上报</p>
<p v-if="scope.row.checkflag===0" type="text" size="small">未上传</p>
<p v-if="scope.row.checkflag===1" type="text" size="small">已上传</p>
<p v-if="scope.row.checkflag==-1" type="text" size="small">未上报</p>
<p v-if="scope.row.checkflag==0" type="text" size="small">未上传</p>
<p v-if="scope.row.checkflag==1" type="text" size="small">已上传</p>
</template>
</el-table-column>
</el-table>
......@@ -208,7 +213,15 @@
this.$message.error('请选择需要更改的分支机构')
return false
}
this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? checkflag === -1 ? '未上报' : '未上传' : '批量' + checkflag === -1 ? '未上报' : '未上传'}]操作?`, '提示', {
let checkflagStr = '' ;
if ( checkflag === 1 ) {
checkflagStr = '已上传'
} else if (checkflag === 0) {
checkflagStr = '未上传'
} else if (checkflag === -1) {
checkflagStr = '未上报'
}
this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? checkflagStr : '批量' + checkflagStr}]操作?`, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
......
......@@ -18,8 +18,8 @@
<el-button class="seach-btn" @click="getDataList2()" type="primary">搜索</el-button>
</el-form>
<div class="add-btn">
<el-button type="primary" @click="allUpload('',-1)">批量上报</el-button>
<el-button type="primary" @click="allUpload('',0)">批量上传</el-button>
<!-- <el-button type="primary" @click="allUpload('',-1)">批量上报</el-button> -->
<el-button type="primary" @click="allUpload('',1)">批量上传</el-button>
</div>
<div class="table-list">
<el-table
......@@ -41,6 +41,11 @@
align="center"
width="50px"
label="序号">
<template slot-scope="scope">
<span>{{
(pageIndex - 1) * pageSize + scope.$index + 1
}}</span>
</template>
</el-table-column>
<el-table-column
prop="name"
......@@ -79,9 +84,9 @@
label="状态">
<!-- -1为“未上报”,0为“未上传”1为“已上传” -->
<template slot-scope="scope">
<p v-if="scope.row.checkflag===-1" type="text" size="small">未上报</p>
<p v-if="scope.row.checkflag===0" type="text" size="small">未上传</p>
<p v-if="scope.row.checkflag===1" type="text" size="small">已上传</p>
<p v-if="scope.row.checkflag==-1" type="text" size="small">未上报</p>
<p v-if="scope.row.checkflag==0" type="text" size="small">未上传</p>
<p v-if="scope.row.checkflag==1" type="text" size="small">已上传</p>
</template>
</el-table-column>
</el-table>
......@@ -208,7 +213,15 @@
this.$message.error('请选择需要更改的分支机构')
return false
}
this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? checkflag === -1 ? '未上报' : '未上传' : '批量' + checkflag === -1 ? '未上报' : '未上传'}]操作?`, '提示', {
let checkflagStr = '' ;
if ( checkflag === 1 ) {
checkflagStr = '已上传'
} else if (checkflag === 0) {
checkflagStr = '未上传'
} else if (checkflag === -1) {
checkflagStr = '未上报'
}
this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? checkflagStr : '批量' + checkflagStr}]操作?`, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
......
......@@ -18,8 +18,8 @@
<el-button class="seach-btn" @click="getDataList2()" type="primary">搜索</el-button>
</el-form>
<div class="add-btn">
<el-button type="primary" @click="allUpload('',-1)">批量上报</el-button>
<el-button type="primary" @click="allUpload('',0)">批量上传</el-button>
<!-- <el-button type="primary" @click="allUpload('',-1)">批量上报</el-button> -->
<el-button type="primary" @click="allUpload('',1)">批量上传</el-button>
</div>
<div class="table-list">
<el-table
......@@ -41,6 +41,11 @@
align="center"
width="50px"
label="序号">
<template slot-scope="scope">
<span>{{
(pageIndex - 1) * pageSize + scope.$index + 1
}}</span>
</template>
</el-table-column>
<el-table-column
prop="name"
......@@ -79,9 +84,9 @@
label="状态">
<!-- -1为“未上报”,0为“未上传”1为“已上传” -->
<template slot-scope="scope">
<p v-if="scope.row.checkflag===-1" type="text" size="small">未上报</p>
<p v-if="scope.row.checkflag===0" type="text" size="small">未上传</p>
<p v-if="scope.row.checkflag===1" type="text" size="small">已上传</p>
<p v-if="scope.row.checkflag==-1" type="text" size="small">未上报</p>
<p v-if="scope.row.checkflag==0" type="text" size="small">未上传</p>
<p v-if="scope.row.checkflag==1" type="text" size="small">已上传</p>
</template>
</el-table-column>
</el-table>
......@@ -208,7 +213,15 @@
this.$message.error('请选择需要更改的分支机构')
return false
}
this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? checkflag === -1 ? '未上报' : '未上传' : '批量' + checkflag === -1 ? '未上报' : '未上传'}]操作?`, '提示', {
let checkflagStr = '' ;
if ( checkflag === 1 ) {
checkflagStr = '已上传'
} else if (checkflag === 0) {
checkflagStr = '未上传'
} else if (checkflag === -1) {
checkflagStr = '未上报'
}
this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? checkflagStr : '批量' + checkflagStr}]操作?`, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
......
......@@ -18,8 +18,8 @@
<el-button class="seach-btn" @click="getDataList2()" type="primary">搜索</el-button>
</el-form>
<div class="add-btn">
<el-button type="primary" @click="allUpload('',-1)">批量上报</el-button>
<el-button type="primary" @click="allUpload('',0)">批量上传</el-button>
<!-- <el-button type="primary" @click="allUpload('',-1)">批量上报</el-button> -->
<el-button type="primary" @click="allUpload('',1)">批量上传</el-button>
</div>
<div class="table-list">
<el-table
......@@ -41,6 +41,11 @@
align="center"
width="50px"
label="序号">
<template slot-scope="scope">
<span>{{
(pageIndex - 1) * pageSize + scope.$index + 1
}}</span>
</template>
</el-table-column>
<el-table-column
prop="name"
......@@ -79,9 +84,9 @@
label="状态">
<!-- -1为“未上报”,0为“未上传”1为“已上传” -->
<template slot-scope="scope">
<p v-if="scope.row.checkflag===-1" type="text" size="small">未上报</p>
<p v-if="scope.row.checkflag===0" type="text" size="small">未上传</p>
<p v-if="scope.row.checkflag===1" type="text" size="small">已上传</p>
<p v-if="scope.row.checkflag==-1" type="text" size="small">未上报</p>
<p v-if="scope.row.checkflag==0" type="text" size="small">未上传</p>
<p v-if="scope.row.checkflag==1" type="text" size="small">已上传</p>
</template>
</el-table-column>
</el-table>
......@@ -208,7 +213,15 @@
this.$message.error('请选择需要更改的分支机构')
return false
}
this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? checkflag === -1 ? '未上报' : '未上传' : '批量' + checkflag === -1 ? '未上报' : '未上传'}]操作?`, '提示', {
let checkflagStr = '' ;
if ( checkflag === 1 ) {
checkflagStr = '已上传'
} else if (checkflag === 0) {
checkflagStr = '未上传'
} else if (checkflag === -1) {
checkflagStr = '未上报'
}
this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? checkflagStr : '批量' + checkflagStr}]操作?`, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
......
......@@ -18,8 +18,8 @@
<el-button class="seach-btn" @click="getDataList2()" type="primary">搜索</el-button>
</el-form>
<div class="add-btn">
<el-button type="primary" @click="allUpload('',-1)">批量上报</el-button>
<el-button type="primary" @click="allUpload('',0)">批量上传</el-button>
<!-- <el-button type="primary" @click="allUpload('',-1)">批量上报</el-button> -->
<el-button type="primary" @click="allUpload('',1)">批量上传</el-button>
</div>
<div class="table-list">
<el-table
......@@ -41,6 +41,11 @@
align="center"
width="50px"
label="序号">
<template slot-scope="scope">
<span>{{
(pageIndex - 1) * pageSize + scope.$index + 1
}}</span>
</template>
</el-table-column>
<el-table-column
prop="name"
......@@ -79,9 +84,9 @@
label="状态">
<!-- -1为“未上报”,0为“未上传”1为“已上传” -->
<template slot-scope="scope">
<p v-if="scope.row.checkflag===-1" type="text" size="small">未上报</p>
<p v-if="scope.row.checkflag===0" type="text" size="small">未上传</p>
<p v-if="scope.row.checkflag===1" type="text" size="small">已上传</p>
<p v-if="scope.row.checkflag==-1" type="text" size="small">未上报</p>
<p v-if="scope.row.checkflag==0" type="text" size="small">未上传</p>
<p v-if="scope.row.checkflag==1" type="text" size="small">已上传</p>
</template>
</el-table-column>
</el-table>
......@@ -208,7 +213,15 @@
this.$message.error('请选择需要更改的分支机构')
return false
}
this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? checkflag === -1 ? '未上报' : '未上传' : '批量' + checkflag === -1 ? '未上报' : '未上传'}]操作?`, '提示', {
let checkflagStr = '' ;
if ( checkflag === 1 ) {
checkflagStr = '已上传'
} else if (checkflag === 0) {
checkflagStr = '未上传'
} else if (checkflag === -1) {
checkflagStr = '未上报'
}
this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? checkflagStr : '批量' + checkflagStr}]操作?`, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
......
......@@ -48,28 +48,32 @@
<el-table-column
prop="titleEn"
header-align="center"
align="center"
align="left"
width="260px"
label="英文标题"
>
</el-table-column>
<el-table-column
prop="titleCn"
header-align="center"
align="center"
align="left"
width="260px"
label="中文标题"
>
</el-table-column>
<el-table-column
prop="keyword"
header-align="center"
align="center"
align="left"
width="260px"
label="关键字"
>
</el-table-column>
<el-table-column
prop="brief"
header-align="center"
align="center"
align="left"
width="260px"
label="解释"
>
</el-table-column>
......@@ -85,8 +89,12 @@
header-align="center"
align="center"
sortable='custom'
width="120px"
label="创建时间"
>
<template slot-scope="scope">
<div>{{ scope.row.updatedate && scope.row.updatedate.substring(0,10) }}</div>
</template>
</el-table-column>
<el-table-column
......@@ -108,7 +116,7 @@
v-if="isAuth('plate:glossary:delete')"
type="text"
size="small"
@click="deleteHandle(scope.row.id,scope.row.title)"
@click="deleteHandle(scope.row.id,scope.row.titleEn)"
>删除</el-button
>
</template>
......
......@@ -14,7 +14,7 @@
</el-option>
</el-select>
</el-form-item>
<el-form-item label='二级分类' prop='class2' >
<el-form-item label='二级分类' prop='class2id' >
<el-select v-model="dataForm.class2id" placeholder="请选择" clearable>
<el-option
v-for="item in class2List"
......@@ -88,7 +88,7 @@
class1id: [
{ required: true, message: '不能为空', trigger: 'blur' }
],
class2: [
class2id: [
{ required: true, message: '不能为空', trigger: 'blur' }
],
title: [
......@@ -114,6 +114,14 @@
created () {
},
watch: {
visible: function (val, oldVal) {
if (val === false) {
this.ueditor.value = ' '
this.dataForm.content = ''
}
}
},
mounted () {
},
methods: {
......
......@@ -78,7 +78,8 @@
<el-table-column
prop="title"
header-align="center"
align="center"
align="left"
width="360px"
label="标题">
</el-table-column>
<el-table-column
......@@ -104,7 +105,11 @@
header-align="center"
align="center"
sortable='custom'
width="120px"
label="发布时间">
<template slot-scope="scope">
<div>{{ scope.row.inputdate && scope.row.inputdate.substring(0,10) }}</div>
</template>
</el-table-column>
<el-table-column
prop="status"
......@@ -264,12 +269,12 @@ export default {
})
},
showMsg (data) {
if (!data.jumppath || data.jumppath === null) {
if (!data.directpath || data.directpath === null) {
window.open(this.$store.state.config.urls + '/Knowledge/article?id=' + data.knowledgeinfoid, '_blank')
} else if (/^\//.test(data.jumppath)) {
window.open(this.$store.state.config.urls + data.jumppath, '_blank')
} else if (/^\//.test(data.directpath)) {
window.open(this.$store.state.config.urls + data.directpath, '_blank')
} else {
window.open(data.jumppath, '_blank')
window.open(data.directpath, '_blank')
}
},
// 删除
......
......@@ -50,7 +50,7 @@
v-if="isAuth('plate:pcategory:delete')"
type="text"
size="small"
@click="deleteHandle(scope.row.categoryid,scope.row.title)"
@click="deleteHandle(scope.row.categoryid,scope.row.category)"
>删除</el-button
>
</template>
......
......@@ -62,7 +62,8 @@
<el-table-column
prop="prename"
header-align="center"
align="center"
align="left"
width="260px"
label="商品名称"
>
</el-table-column>
......@@ -72,8 +73,12 @@
header-align="center"
align="center"
sortable='custom'
width="120px"
label="添加时间"
>
<template slot-scope="scope">
<div>{{ scope.row.adddate && scope.row.adddate.substring(0,10) }}</div>
</template>
</el-table-column>
<el-table-column
......@@ -133,7 +138,7 @@
v-if="isAuth('plate:product:delete')"
type="text"
size="small"
@click="deleteHandle(scope.row.id,scope.row.title)"
@click="deleteHandle(scope.row.id,scope.row.prename)"
>删除</el-button
>
</template>
......
......@@ -179,6 +179,14 @@ export default {
created () {
},
watch: {
visible: function (val, oldVal) {
if (val === false) {
this.ueditor.value = ' '
this.dataForm.content = ''
}
}
},
methods: {
init (id, showInfo) {
this.dataForm.id = id || 0
......
......@@ -81,7 +81,8 @@
<el-table-column
prop="title"
header-align="center"
align="center"
align="left"
width="360px"
label="标题">
</el-table-column>
<el-table-column
......@@ -102,14 +103,22 @@
header-align="center"
align="center"
sortable='custom'
width="120px"
label="创建时间">
<template slot-scope="scope">
<div>{{ scope.row.releasedate.substring(0,10) }}</div>
</template>
</el-table-column>
<el-table-column
prop="updatedate"
header-align="center"
align="center"
sortable='custom'
width="120px"
label="更新时间">
<template slot-scope="scope">
<div>{{ scope.row.updatedate && scope.row.updatedate.substring(0,10) }}</div>
</template>
</el-table-column>
<el-table-column
prop="auditor"
......
......@@ -69,7 +69,7 @@
>
<el-table-column prop="piclevel" header-align="center" align="center" label="级别"> </el-table-column>
<el-table-column prop="title" header-align="center" align="center" label="标题">
<el-table-column prop="title" header-align="center" align="left" label="标题" width="360px">
<template slot-scope="scope">
<div>
{{scope.row.title}}
......@@ -77,8 +77,12 @@
</template>
</el-table-column>
<el-table-column prop="pictureType" header-align="center" align="center" label="分类"> </el-table-column>
<el-table-column prop="showtime" header-align="center" align="center" sortable='custom' label="显示时间"> </el-table-column>
<el-table-column prop="inputdate" header-align="center" align="center" sortable='custom' label="发布时间"> </el-table-column>
<el-table-column prop="showtime" header-align="center" align="center" sortable='custom' label="显示时间" width="120px"> </el-table-column>
<el-table-column prop="inputdate" header-align="center" align="center" sortable='custom' label="发布时间" width="120px">
<template slot-scope="scope">
<div>{{ scope.row.inputdate && scope.row.inputdate.substring(0,10) }}</div>
</template>
</el-table-column>
<el-table-column prop="keyword" header-align="center" align="center" label="关键字"> </el-table-column>
<el-table-column prop="editor" header-align="center" align="center" label="编辑"> </el-table-column>
<el-table-column prop="lasteditor" header-align="center" align="center" label="最后编辑"> </el-table-column>
......
......@@ -41,12 +41,14 @@
prop="levels"
header-align="center"
align="center"
width="70px"
label="级别">
</el-table-column>
<el-table-column
prop="title"
header-align="center"
align="center"
align="left"
width="360px"
label="标题">
</el-table-column>
<el-table-column
......
<template>
<el-dialog
:title="!dataForm.id ? '新增' : '修改'"
:title="!dataForm.id ? '新增' : this.showInfo?'详情':'修改'"
:close-on-click-modal="false"
:visible.sync="visible"
>
......@@ -16,7 +16,7 @@
<el-input
v-model="dataForm.title"
placeholder="请输入标题"
:disabled='!showInfo'
></el-input>
</el-form-item>
......@@ -24,7 +24,7 @@
<el-select
v-model="dataForm.service"
placeholder="请选择服务行业"
:disabled='!showInfo'
>
<el-option
v-for="item in serviceList"
......@@ -54,7 +54,6 @@
</el-form-item>
<el-form-item label="显示时间:" prop="showtime">
<el-date-picker
:disabled='!showInfo'
v-model="dataForm.showtime"
value-format="yyyy-MM-dd"
type="date"
......@@ -83,7 +82,6 @@
:value="ueditor.value"
:config="ueditor.config"
ref="ue"
:disabled='!showInfo'
></Ueditor>
<!-- <el-input v-model="dataForm.content" placeholder="请输入内容"></el-input> -->
......@@ -186,6 +184,14 @@ export default {
piclevelList
}
},
watch: {
visible: function (val, oldVal) {
if (val === false) {
this.ueditor.value = ' '
this.dataForm.content = ''
}
}
},
methods: {
init (id, showInfo) {
console.log(id, 'id')
......@@ -307,11 +313,6 @@ export default {
// 更新父子组件内容
editorReady (instance) {
instance.setContent(this.dataForm.brief)
if (!this.showInfo) {
instance.setDisabled()
} else {
instance.setEnabled()
}
instance.addListener('contentChange', () => {
this.dataForm.brief = instance.getContent()
})
......
......@@ -87,7 +87,7 @@
<el-button
v-if="isAuth('standard:cases:save')"
type="primary"
@click="addOrUpdateHandle('',true)"
@click="addOrUpdateHandle()"
>
+ 添加案例</el-button
>
......@@ -112,7 +112,8 @@
<el-table-column
prop="title"
header-align="center"
align="center"
align="left"
width="360px"
label="标题"
>
</el-table-column>
......@@ -128,16 +129,24 @@
header-align="center"
align="center"
sortable='custom'
width="120px"
label="添加时间"
>
<template slot-scope="scope">
<div>{{ scope.row.registerdate && scope.row.registerdate.substring(0,10) }}</div>
</template>
</el-table-column>
<el-table-column
prop="updatedate"
header-align="center"
align="center"
sortable='custom'
width="120px"
label="修改时间"
>
<template slot-scope="scope">
<div>{{ scope.row.updatedate && scope.row.updatedate.substring(0,10) }}</div>
</template>
</el-table-column>
<el-table-column
......@@ -159,6 +168,7 @@
header-align="center"
align="center"
sortable='custom'
width="120px"
label="审核时间"
>
</el-table-column>
......@@ -217,7 +227,7 @@
v-if="isAuth('standard:cases:update')"
type="text"
size="small"
@click="addOrUpdateHandle(scope.row.id,false)"
@click="addOrUpdateHandle(scope.row.id)"
>修改</el-button
>
<el-button
......
......@@ -16,16 +16,12 @@
<el-input
v-model="dataForm.firmname"
placeholder="请输入企业名称"
:disabled='!showInfo'
></el-input>
</el-form-item>
<el-form-item label="技术领域:" prop="technology">
<el-select
v-model="dataForm.technology"
placeholder="请选择技术领域"
:disabled='!showInfo'
>
<el-option
v-for="item in technologyList"
......@@ -40,8 +36,6 @@
<el-select
v-model="dataForm.service"
placeholder="请选择服务行业"
:disabled='!showInfo'
>
<el-option
v-for="item in serviceList"
......@@ -56,32 +50,24 @@
<el-input
v-model="dataForm.site"
placeholder="请输入网址"
:disabled='!showInfo'
></el-input>
</el-form-item>
<el-form-item label="联系人姓名:" prop="name">
<el-input
v-model="dataForm.name"
placeholder="请输入联系人姓名"
:disabled='!showInfo'
></el-input>
</el-form-item>
<el-form-item label="联系电话:" prop="phone">
<el-input
v-model="dataForm.phone"
placeholder="请输入联系电话"
:disabled='!showInfo'
></el-input>
</el-form-item>
<el-form-item label="邮箱:" prop="email">
<el-input
v-model="dataForm.email"
placeholder="请输入邮箱"
:disabled='!showInfo'
></el-input>
</el-form-item>
<el-form-item label="级别:" prop="levels">
......@@ -108,7 +94,6 @@
:show-file-list="false"
:http-request="Upload"
:before-upload="beforeAvatarUpload"
:disabled='!showInfo'
>
<img v-if="dialogVisible" :src="imgUrlStr" class="" />
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
......@@ -255,6 +240,14 @@ export default {
},
created () {
},
watch: {
visible: function (val, oldVal) {
if (val === false) {
this.ueditor.value = ' '
this.dataForm.content = ''
}
}
},
methods: {
getSelectName (list, id) {
let arr = list.filter((item) => {
......
......@@ -128,14 +128,16 @@
<el-table-column
prop="firmname"
header-align="center"
align="center"
align="left"
width="260px"
label="企业名称"
>
</el-table-column>
<el-table-column
prop="technology"
header-align="center"
align="center"
align="left"
width="200px"
label="技术领域"
>
</el-table-column>
......@@ -151,16 +153,24 @@
header-align="center"
align="center"
sortable='custom'
width="120px"
label="添加时间"
>
<template slot-scope="scope">
<div>{{ scope.row.registerdate && scope.row.registerdate.substring(0,10) }}</div>
</template>
</el-table-column>
<el-table-column
prop="updatedate"
header-align="center"
align="center"
sortable='custom'
width="120px"
label="修改时间"
>
<template slot-scope="scope">
<div>{{ scope.row.updatedate && scope.row.updatedate.substring(0,10) }}</div>
</template>
</el-table-column>
<el-table-column
......@@ -189,6 +199,7 @@
header-align="center"
align="center"
sortable='custom'
width="120px"
label="审核时间"
>
</el-table-column>
......@@ -247,7 +258,7 @@
v-if="isAuth('standard:partners:delete')"
type="text"
size="small"
@click="deleteHandle(scope.row.id,scope.row.title)"
@click="deleteHandle(scope.row.id,scope.row.firmname)"
>删除</el-button
>
</template>
......@@ -479,7 +490,7 @@ export default {
return item.id
})
this.$confirm(
`确定对[title=${title}]进行[${id ? '删除' : '批量删除'}]操作?`,
`确定对[${title}]进行[${id ? '删除' : '批量删除'}]操作?`,
'提示',
{
confirmButtonText: '确定',
......
......@@ -24,6 +24,9 @@
if (val != null && this.ready) {
this.instance = ueditor.getEditor(this.editor, this.config)
this.instance.setContent(val)
} else {
this.instance = ueditor.getEditor(this.editor, this.config)
this.instance.setContent('')
}
}
},
......@@ -32,10 +35,10 @@
},
destroyed () {
// // 组件销毁的时候,要销毁 UEditor 实例
// if (this.instance !== null && this.instance.destroy) {
// this.instance.destroy()
// }
this.instance.destroy()
if (this.instance !== null && this.instance.destroy) {
this.instance.destroy()
}
// this.instance.destroy()
},
methods: {
initEditor () {
......@@ -53,10 +56,8 @@
this.instance = ueditor.getEditor(this.editor, this.config)
this.instance.setContent(con)
}
}
}
</script>
<style scoped>
</style>
......@@ -6,8 +6,9 @@
// api接口请求地址
// window.SITE_CONFIG['baseUrl'] = 'http://demo.open.renren.io/renren-fast-server';
window.SITE_CONFIG['baseUrl'] = 'http://192.168.0.77:9091'
// window.SITE_CONFIG['baseUrl'] = 'http://192.168.0.81:9091'
// window.SITE_CONFIG['baseUrl'] = ' http://81.68.189.225:9091'
window.SITE_CONFIG['baseUrl'] = ' http://dynamic.gs1cn.org'
// cdn地址 = 域名 + 版本号
window.SITE_CONFIG['domain'] = './' // 域名
......
......@@ -6,8 +6,8 @@
// api接口请求地址
// window.SITE_CONFIG['baseUrl'] = ' http://81.68.189.225:9091'
window.SITE_CONFIG['baseUrl'] = 'http://192.168.0.77:9091'
// window.SITE_CONFIG['baseUrl'] = 'http://192.168.0.81:9091'
window.SITE_CONFIG['baseUrl'] = 'http://dynamic.gs1cn.org'
// cdn地址 = 域名 + 版本号
window.SITE_CONFIG['domain'] = './' // 域名
window.SITE_CONFIG['version'] = '' // 版本号(年月日时分)
......
......@@ -6,8 +6,9 @@
// api接口请求地址
// window.SITE_CONFIG['baseUrl'] = 'http://localhost:8080/renren-fast';
window.SITE_CONFIG['baseUrl'] = ' http://192.168.0.77:9091'
// window.SITE_CONFIG['baseUrl'] = ' http://192.168.0.81:9091'
// window.SITE_CONFIG['baseUrl'] = ' http://81.68.189.225:9091'
window.SITE_CONFIG['baseUrl'] = ' http://dynamic.gs1cn.org'
// cdn地址 = 域名 + 版本号
window.SITE_CONFIG['domain'] = './' // 域名
......
......@@ -5,8 +5,9 @@
window.SITE_CONFIG = {}
// api接口请求地址
window.SITE_CONFIG['baseUrl'] = 'http://wudi.natapp1.cc'
// window.SITE_CONFIG['baseUrl'] = ' http://192.168.0.77:9091'
// window.SITE_CONFIG['baseUrl'] = 'http://116.204.118.109:9091'
// window.SITE_CONFIG['baseUrl'] = ' http://192.168.0.81:9091'
window.SITE_CONFIG['baseUrl'] = ' http://dynamic.gs1cn.org'
// cdn地址 = 域名 + 版本号
window.SITE_CONFIG['domain'] = './' // 域名
window.SITE_CONFIG['version'] = '' // 版本号(年月日时分)
......
......@@ -133,6 +133,7 @@ div.edui-box {
}
/*UI工具栏、编辑区域、底部*/
.edui-default .edui-editor {
width: 100%!important;
border: 1px solid #d4d4d4;
background-color: white;
position: relative;
......@@ -142,7 +143,7 @@ div.edui-box {
border-radius: 4px;
}
.edui-editor div{
width:auto;
width:auto!important;
height:auto;
}
.edui-default .edui-editor-toolbarbox {
......
......@@ -185,10 +185,9 @@
//, autoClearEmptyNode : true //getContent时,是否删除空的inlineElement节点(包括嵌套的情况)
// 启用自动保存
//, enableAutoSave: true
// 自动保存间隔时间, 单位ms
//, saveInterval: 500
enableAutoSave: false, // 启用自动保存
saveInterval: 0, // 自动保存间隔时间, 单位ms
// fullscreen : false //是否开启初始化时即全屏,默认关闭
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment