修改
This commit is contained in:
parent
2594762cb3
commit
dfb9ae926a
@ -101,12 +101,12 @@ export const constantRoutes = [
|
|||||||
path: '*', // 匹配未定义的路由
|
path: '*', // 匹配未定义的路由
|
||||||
redirect: '/dashboard', // 重定向
|
redirect: '/dashboard', // 重定向
|
||||||
hidden: true
|
hidden: true
|
||||||
},
|
}/* ,
|
||||||
{
|
{
|
||||||
path: '*', // 匹配未定义的路由
|
path: '*', // 匹配未定义的路由
|
||||||
redirect: '/404', // 重定向
|
redirect: '/404', // 重定向
|
||||||
hidden: true
|
hidden: true
|
||||||
}
|
} */
|
||||||
// tableRouter
|
// tableRouter
|
||||||
// {
|
// {
|
||||||
// path: '/documentation',
|
// path: '/documentation',
|
||||||
|
@ -74,7 +74,7 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<!-- <pagination v-show="total>0" :total="total" :page.sync="listQuery.page" :limit.sync="listQuery.limit" @pagination="getList" />-->
|
<!-- <pagination v-show="total>0" :total="total" :page.sync="listQuery.page" :limit.sync="listQuery.limit" @pagination="getList" />-->
|
||||||
<el-dialog title="发布公告" :visible.sync="dialogFormVisible">
|
<el-dialog :title="dialogTitle" :visible.sync="dialogFormVisible">
|
||||||
<el-form ref="form" :rules="rules" :model="form" label-position="left" label-width="80px" style="width: 400px; margin-left:50px;">
|
<el-form ref="form" :rules="rules" :model="form" label-position="left" label-width="80px" style="width: 400px; margin-left:50px;">
|
||||||
<el-form-item label="公告标题" prop="title">
|
<el-form-item label="公告标题" prop="title">
|
||||||
<el-input v-model="form.title" />
|
<el-input v-model="form.title" />
|
||||||
@ -152,6 +152,7 @@ export default {
|
|||||||
},
|
},
|
||||||
dialogFormVisible: false,
|
dialogFormVisible: false,
|
||||||
dialogStatus: '',
|
dialogStatus: '',
|
||||||
|
dialogTitle: '发布公告',
|
||||||
listLoading: true,
|
listLoading: true,
|
||||||
anncList: [],
|
anncList: [],
|
||||||
visibleAddannouncement: false,
|
visibleAddannouncement: false,
|
||||||
@ -182,8 +183,15 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
handleUpdate(row) {
|
handleUpdate(row) {
|
||||||
console.log(row)
|
console.log(row)
|
||||||
this.form = row
|
this.form.title = row.title
|
||||||
|
this.form.version = row.version
|
||||||
|
this.form.model = row.model
|
||||||
|
this.form.type = row.type
|
||||||
|
this.form.content = row.content
|
||||||
|
this.form.is_effect = row.is_effect
|
||||||
|
|
||||||
this.dialogStatus = 'update'
|
this.dialogStatus = 'update'
|
||||||
|
this.dialogTitle = '修改公告'
|
||||||
this.dialogFormVisible = true
|
this.dialogFormVisible = true
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs['form'].clearValidate()
|
this.$refs['form'].clearValidate()
|
||||||
@ -199,6 +207,7 @@ export default {
|
|||||||
handleCreate() {
|
handleCreate() {
|
||||||
this.resetTemp()
|
this.resetTemp()
|
||||||
this.dialogStatus = 'create'
|
this.dialogStatus = 'create'
|
||||||
|
this.dialogTitle = '发布公告'
|
||||||
this.dialogFormVisible = true
|
this.dialogFormVisible = true
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs['form'].clearValidate()
|
this.$refs['form'].clearValidate()
|
||||||
|
@ -48,7 +48,7 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<!-- <pagination v-show="total>0" :total="total" :page.sync="listQuery.page" :limit.sync="listQuery.limit" @pagination="getList" />-->
|
<!-- <pagination v-show="total>0" :total="total" :page.sync="listQuery.page" :limit.sync="listQuery.limit" @pagination="getList" />-->
|
||||||
<el-dialog title="新增" :visible.sync="dialogFormVisible">
|
<el-dialog :title="dialogTitle" :visible.sync="dialogFormVisible">
|
||||||
<el-form ref="form" :rules="rules" :model="form" label-position="left" label-width="90px" style="width: 400px; margin-left:50px;">
|
<el-form ref="form" :rules="rules" :model="form" label-position="left" label-width="90px" style="width: 400px; margin-left:50px;">
|
||||||
<el-form-item label="Version" prop="version">
|
<el-form-item label="Version" prop="version">
|
||||||
<el-input v-model="form.version" />
|
<el-input v-model="form.version" />
|
||||||
@ -102,6 +102,7 @@ export default {
|
|||||||
},
|
},
|
||||||
dialogFormVisible: false,
|
dialogFormVisible: false,
|
||||||
dialogStatus: '',
|
dialogStatus: '',
|
||||||
|
dialogTitle: '新增',
|
||||||
listLoading: true,
|
listLoading: true,
|
||||||
auditList: [],
|
auditList: [],
|
||||||
rules: {
|
rules: {
|
||||||
@ -127,8 +128,11 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
handleUpdate(row) {
|
handleUpdate(row) {
|
||||||
console.log(row)
|
console.log(row)
|
||||||
this.form = row
|
this.form.version = row.version
|
||||||
|
this.form.model = row.model
|
||||||
|
this.form.is_auditing = row.is_auditing
|
||||||
this.dialogStatus = 'update'
|
this.dialogStatus = 'update'
|
||||||
|
this.dialogTitle = '编辑'
|
||||||
this.dialogFormVisible = true
|
this.dialogFormVisible = true
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs['form'].clearValidate()
|
this.$refs['form'].clearValidate()
|
||||||
@ -144,6 +148,7 @@ export default {
|
|||||||
handleCreate() {
|
handleCreate() {
|
||||||
this.resetTemp()
|
this.resetTemp()
|
||||||
this.dialogStatus = 'create'
|
this.dialogStatus = 'create'
|
||||||
|
this.dialogTitle = '新增'
|
||||||
this.dialogFormVisible = true
|
this.dialogFormVisible = true
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs['form'].clearValidate()
|
this.$refs['form'].clearValidate()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user