Commit ffe28556 authored by xiexingan's avatar xiexingan

调整

parent 2b32c594
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
.card-warp .card-warp
.card-header(:style="{height,'line-height':height}" :class=" showBackground ? 'bg' : '' ") .card-header(:style="{height,'line-height':height}" :class=" showBackground ? 'bg' : '' ")
span.card-title {{ title }} span.card-title {{ title }}
div(style='margin-left:20px;')
slot(name="left" )
slot(name="right") slot(name="right")
.card-content .card-content
slot(name="content") slot(name="content")
......
This diff is collapsed.
<template lang="pug"> <template lang="pug">
el-container(style="padding:0px;height:77.6vh;") el-container(style="padding:0px;height:77.6vh;")
el-header( style="height:42px;line-height:42px;background: #f4f4f4;z-index:1001;border: 1px solid rgba(195, 195, 195, 1);" )
span.title-bold.title-left-color 站点维护 card-warp(title="站点维护", height="45px")
el-main.box_main div(slot='content')
el-card() div
el-form(:model='dataForm', :rules='dataRule', ref='dataForm', label-width='100px') el-form(:model='dataForm', :rules='dataRule', ref='dataForm', label-width='100px')
el-row(:gutter='20') el-row(:gutter='20')
el-col(:span='12') el-col(:span='12')
...@@ -53,7 +53,7 @@ import Vue from 'vue' ...@@ -53,7 +53,7 @@ import Vue from 'vue'
export default { export default {
computed: { computed: {
...mapState('d2admin/user', ['info']), ...mapState('d2admin/user', ['info'])
}, },
data() { data() {
let validateNumber = (rule, value, callback) => { let validateNumber = (rule, value, callback) => {
...@@ -78,11 +78,11 @@ export default { ...@@ -78,11 +78,11 @@ export default {
logo: 'this.src="' + require('../../../assets/images/videoImg.png') + '"', logo: 'this.src="' + require('../../../assets/images/videoImg.png') + '"',
typeList: [ typeList: [
{ id: '1', name: '正线站点' }, { id: '1', name: '正线站点' },
{ id: '2', name: '换乘站点' }, { id: '2', name: '换乘站点' }
], ],
masterList: [ masterList: [
{ id: 1, name: '主站' }, { id: 1, name: '主站' },
{ id: 2, name: '从站' }, { id: 2, name: '从站' }
], ],
dataForm: {}, dataForm: {},
dataRule: { dataRule: {
...@@ -93,15 +93,15 @@ export default { ...@@ -93,15 +93,15 @@ export default {
orderNum: [ orderNum: [
{ required: true, message: '排序值不能为空' }, { required: true, message: '排序值不能为空' },
{ type: 'number', message: '排序值必须为数字' }, { type: 'number', message: '排序值必须为数字' },
{ validator: validateNumber, trigger: ['blur', 'change'] }, { validator: validateNumber, trigger: ['blur', 'change'] }
], ],
shortName: [ shortName: [
{ {
min: 1, min: 1,
max: 20, max: 20,
message: '长度在 1 到 20 个字符', message: '长度在 1 到 20 个字符',
trigger: 'blur', trigger: 'blur'
}, }
], ],
code: [ code: [
{ required: true, message: '车站编码不能为空', trigger: 'blur' }, { required: true, message: '车站编码不能为空', trigger: 'blur' },
...@@ -109,21 +109,21 @@ export default { ...@@ -109,21 +109,21 @@ export default {
min: 1, min: 1,
max: 30, max: 30,
message: '长度在 1 到 30 个字符', message: '长度在 1 到 30 个字符',
trigger: 'blur', trigger: 'blur'
}, }
], ],
type: [ type: [
{ required: true, message: '车站类型不能为空', trigger: 'blur' }, { required: true, message: '车站类型不能为空', trigger: 'blur' }
], ],
remark: [ remark: [
{ {
min: 1, min: 1,
max: 300, max: 300,
message: '长度在 1 到 300 个字符', message: '长度在 1 到 300 个字符',
trigger: 'blur', trigger: 'blur'
}, }
], ]
}, }
} }
}, },
created() { created() {
...@@ -135,7 +135,7 @@ export default { ...@@ -135,7 +135,7 @@ export default {
this.$http({ this.$http({
url: this.$http.adornUrl(`/liStation/getId/${id}`), url: this.$http.adornUrl(`/liStation/getId/${id}`),
method: 'get', method: 'get',
params: this.$http.adornParams(), params: this.$http.adornParams()
}).then((data) => { }).then((data) => {
if (data && data.code === 0) { if (data && data.code === 0) {
this.dataForm = data.bean this.dataForm = data.bean
...@@ -149,11 +149,11 @@ export default { ...@@ -149,11 +149,11 @@ export default {
initData() { initData() {
this.typeList = [ this.typeList = [
{ id: '1', name: '正线站点' }, { id: '1', name: '正线站点' },
{ id: '2', name: '换乘站点' }, { id: '2', name: '换乘站点' }
] ]
this.masterList = [ this.masterList = [
{ id: 1, name: '主站' }, { id: 1, name: '主站' },
{ id: 2, name: '从站' }, { id: 2, name: '从站' }
] ]
}, },
// 表单提交 // 表单提交
...@@ -189,13 +189,13 @@ export default { ...@@ -189,13 +189,13 @@ export default {
), ),
method: 'post', method: 'post',
// headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, // headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
data: this.dataForm, data: this.dataForm
}).then((data) => { }).then((data) => {
if (data && data.code === 0) { if (data && data.code === 0) {
this.$message({ this.$message({
message: '操作成功', message: '操作成功',
type: 'success', type: 'success',
duration: 1500, duration: 1500
}) })
} else { } else {
this.$message.error(data.msg) this.$message.error(data.msg)
...@@ -237,7 +237,7 @@ export default { ...@@ -237,7 +237,7 @@ export default {
this.$http({ this.$http({
url: this.$http.adornUrl(`/liStationMap/uploadFile`), url: this.$http.adornUrl(`/liStationMap/uploadFile`),
method: 'post', method: 'post',
data: fd, data: fd
}).then((data) => { }).then((data) => {
if (data && data.code === 0) { if (data && data.code === 0) {
this.currentRow = data.bean this.currentRow = data.bean
...@@ -281,13 +281,13 @@ export default { ...@@ -281,13 +281,13 @@ export default {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning', type: 'warning',
closeOnClickModal: true, closeOnClickModal: true
}) })
.then(() => { .then(() => {
this.$http({ this.$http({
url: this.$http.adornUrl('/liStationMap/delete'), url: this.$http.adornUrl('/liStationMap/delete'),
method: 'post', method: 'post',
data: this.$http.adornData(ids, false), data: this.$http.adornData(ids, false)
}).then((data) => { }).then((data) => {
if (data && data.code === 0) { if (data && data.code === 0) {
this.$message({ this.$message({
...@@ -296,7 +296,7 @@ export default { ...@@ -296,7 +296,7 @@ export default {
duration: 1500, duration: 1500,
onClose: () => { onClose: () => {
this.fileList.splice(index, 1) this.fileList.splice(index, 1)
}, }
}) })
} else { } else {
this.$message.error(data.msg) this.$message.error(data.msg)
...@@ -334,8 +334,8 @@ export default { ...@@ -334,8 +334,8 @@ export default {
this.$message.error('上传图片大小不能超过10MB!') this.$message.error('上传图片大小不能超过10MB!')
} }
return isJPG && isLt2M return isJPG && isLt2M
}, }
}, }
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
......
This diff is collapsed.
...@@ -13,12 +13,14 @@ ...@@ -13,12 +13,14 @@
el-button(v-if="isAuth('sys:role:update')" plain type='primary' size='mini' @click="addOrUpdateHandle(item)") 编辑 el-button(v-if="isAuth('sys:role:update')" plain type='primary' size='mini' @click="addOrUpdateHandle(item)") 编辑
el-button(v-if="isAuth('sys:role:delete')" plain type='primary' size='mini' style="margin-left:10px;" @click="delRole(item.roleId)") 删除 el-button(v-if="isAuth('sys:role:delete')" plain type='primary' size='mini' style="margin-left:10px;" @click="delRole(item.roleId)") 删除
el-container(style="height:77vh") el-container(style="height:77vh")
el-header(style='height:42px;line-height:42px;background: #f4f4f4;z-index:1001;border:1px solid rgba(196, 196, 196, 1);') //- el-header(style='height:42px;line-height:42px;background: #f4f4f4;z-index:1001;border:1px solid rgba(196, 196, 196, 1);')
template() //- template()
span.title-bold.title-left-color {{roleName ? roleName : '权限详情'}}&emsp; //- span.title-bold.title-left-color {{roleName ? roleName : '权限详情'}}&emsp;
card-warp(:title="roleName ? roleName: '权限详情'", height="45px")
div(slot="left")
el-checkbox(v-model="checked" @change="checkAll(videoData)") 全选 el-checkbox(v-model="checked" @change="checkAll(videoData)") 全选
el-main().box_main div(slot='content')
el-card.tableCard( style='overflow:auto;box-sizing:border-box;' v-loading.fullscreen.lock="rightLoading") div.tableCard( style='overflow:auto;box-sizing:border-box;' v-loading.fullscreen.lock="rightLoading")
div(v-loading="rightLoading1" class='div_tree') div(v-loading="rightLoading1" class='div_tree')
//- el-tree(ref="tree" @check-change="handleNodeClick" :render-content="renderContent" @node-expand="handleNodeExpand" :default-expanded-keys="expandedKeys" :props="defaultProps" :data="videoData" show-checkbox node-key="menu_id") //- el-tree(ref="tree" @check-change="handleNodeClick" :render-content="renderContent" @node-expand="handleNodeExpand" :default-expanded-keys="expandedKeys" :props="defaultProps" :data="videoData" show-checkbox node-key="menu_id")
//- 树结构 //- 树结构
......
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