Commit 2876ce68 authored by obt's avatar obt

代码更新

parent 9af32ed2
<!--
* @Author: your name
* @Date: 2020-12-01 09:54:12
* @LastEditTime: 2020-12-08 09:59:45
* @LastEditTime: 2020-12-10 16:12:21
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \rs-cloud-platform-ui\src\views\webSiteManagement\newsCategory\index.vue
......@@ -28,6 +28,12 @@ export default {
componentName: 'nebulaDynamics',
regions:[],
info: null,
currentEditPage: 1,
}
},
watch:{
currentEditPage(newVal){
console.log("currentEditPage=>",newVal)
}
},
mounted() {
......
<!--
* @Author: Jenkins
* @Date: 2020-12-01 09:54:12
* @LastEditTime: 2020-12-10 14:46:34
* @LastEditTime: 2020-12-10 17:05:11
* @LastEditors: Please set LastEditors
* @Description: 星云动态
* @FilePath: \rs-cloud-platform-ui\src\views\webSiteManagement\newsCategory\index.vue
......@@ -90,7 +90,19 @@
append-to-body
>
<div id="typeCreator">
<div class="content">
<el-form ref="form" :rules="createRules" :model="editorType" label-width="80px">
<el-form-item label="类型名称" prop="name">
<el-col :span="14">
<el-input v-model="editorType.name" placeholder="请输入类型名称" size="100px"></el-input>
</el-col>
</el-form-item>
<el-form-item label="类型排序" prop="sort">
<el-col :span="14">
<el-input v-model="editorType.sort" placeholder="请设置排序0-10000,数值越大排序越靠前"></el-input>
</el-col>
</el-form-item>
</el-form>
<!-- <div class="content">
<span>*中文名称</span>
<el-col :span="14">
<el-input
......@@ -99,7 +111,7 @@
size="100px"
></el-input>
</el-col>
</div>
</div> -->
<!-- <div class="content">
<span>*英文名称</span>
<el-col :span="14">
......@@ -109,7 +121,7 @@
></el-input>
</el-col>
</div> -->
<div class="content">
<!-- <div class="content">
<span>*类型排序</span>
<el-col :span="14">
<el-input
......@@ -117,7 +129,7 @@
placeholder="请设置排序0-10000,数值越大排序越靠前"
></el-input>
</el-col>
</div>
</div> -->
<div class="operators">
<div class="cancel" @click.stop="cancelEditor">取消</div>
<div class="confirm" @click.stop="confirmEditor">确定</div>
......@@ -307,6 +319,10 @@ export default {
},
data() {
return {
createRules: {
name: [{ required: true, message: '请输入类型名称', trigger: 'blur' }],
sort: [{ required: true, message: '请设置排序号', trigger: 'blur' }],
},
// 功能按钮
topControls: [
{
......@@ -394,7 +410,7 @@ export default {
],
tableDataState: [],// 缓存当前的表格数据
infoPagination: {
currentPage: 1,// 当前页码
currentPage: this.$parent.currentEditPage,// 当前页码
pageSize: 10,// 每页查询数量
total: 0,// 总记录数量
},
......@@ -440,7 +456,7 @@ export default {
// 当前页码有改变时重新拉取分页数据
"infoPagination.currentPage": {
deep: true,
handler: function(){
handler: function(newVal){
this.pullListNewsInfo()
}
},
......@@ -548,6 +564,7 @@ export default {
// 编辑资讯
editorInfo(info){
console.log("Info=>",info)
this.$parent.currentEditPage = this.infoPagination.currentPage
this.$parent.componentName = "newsCreator";
this.$parent.regions = this.typesState
this.$parent.info = info
......
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