e7cc0c80 by 任超

style:受理信息

1 parent 0e1ce553
1 import request from '@/utils/request'
2
3 export function getMenuInfo () {
4 return request({
5 url: '/getWebMenuRole',
6 method: 'get',
7 })
8 }
...\ No newline at end of file ...\ No newline at end of file
1 import router from './router' 1 import router from './router'
2 import store from './store' 2 import store from './store'
3 import { getMenuInfo } from '@/api/user'
3 import NProgress from 'nprogress' // progress bar 4 import NProgress from 'nprogress' // progress bar
4 import 'nprogress/nprogress.css' // progress bar style 5 import 'nprogress/nprogress.css' // progress bar style
5 import getPageTitle from '@/utils/get-page-title' 6 import getPageTitle from '@/utils/get-page-title'
...@@ -11,9 +12,18 @@ router.beforeEach(async (to, from, next) => { ...@@ -11,9 +12,18 @@ router.beforeEach(async (to, from, next) => {
11 NProgress.start() 12 NProgress.start()
12 document.title = getPageTitle(to.meta.title) 13 document.title = getPageTitle(to.meta.title)
13 let hasAddDict = store.state.dict.addDict 14 let hasAddDict = store.state.dict.addDict
15 let hasAddRoute = store.state.permission.addRoutes
14 if (!hasAddDict) { 16 if (!hasAddDict) {
15 store.dispatch('dict/generateDic') 17 store.dispatch('dict/generateDic')
16 } 18 }
19 // if (hasAddRoute) {
20 // next()
21 // } else {
22 // const { result: getMenuData } = await getMenuInfo()
23 // const accessRoutes = await store.dispatch('permission/generateRoutes', getMenuData)
24 // router.addRoutes(accessRoutes)
25 // }
26
17 NProgress.done() 27 NProgress.done()
18 next() 28 next()
19 }) 29 })
......
...@@ -30,13 +30,21 @@ export default { ...@@ -30,13 +30,21 @@ export default {
30 dialog: false, 30 dialog: false,
31 InformationTable: [ 31 InformationTable: [
32 { 32 {
33 width: '60', 33 width: '50',
34 renderHeader: (h, scope) => { 34 renderHeader: (h, scope) => {
35 return <i class="el-icon-plus pointer" onClick={() => { this.handleAdd() }}></i> 35 return <div> {
36 this.$route.query.viewtype == 1 ? '序号' : <i class="el-icon-plus pointer" onClick={() => { this.handleAdd() }}></i>
37 }
38 </div>
36 }, 39 },
37 render: (h, scope) => { 40 render: (h, scope) => {
38 return ( 41 return (
39 <i class="el-icon-minus pointer" onClick={() => { this.handleMinus(scope.$index, scope.row) }}></i> 42 <div>
43 {
44 this.$route.query.viewtype == 1 ? <span>{scope.$index + 1}</span> :
45 <i class="el-icon-minus pointer" onClick={() => { this.handleMinus(scope.$index, scope.row) }}></i>
46 }
47 </div>
40 ) 48 )
41 } 49 }
42 }, 50 },
...@@ -68,14 +76,15 @@ export default { ...@@ -68,14 +76,15 @@ export default {
68 render: (h, scope) => { 76 render: (h, scope) => {
69 return ( 77 return (
70 <div> 78 <div>
71 <el-button 79 {
72 icon="el-icon-edit-outline" 80 this.$route.query.viewtype == 1 ? <el-button
73 type="text" 81 icon="el-icon-view"
74 onClick={() => { this.handleEdit(scope.$index, scope.row) }}>编辑</el-button> 82 type="text"
75 <el-button 83 onClick={() => { this.handleView(scope.$index, scope.row) }}>查看</el-button> : <el-button
76 icon="el-icon-view" 84 icon="el-icon-edit-outline"
77 type="text" 85 type="text"
78 onClick={() => { this.handleView(scope.$index, scope.row) }}>查看</el-button> 86 onClick={() => { this.handleEdit(scope.$index, scope.row) }}>编辑</el-button>
87 }
79 </div> 88 </div>
80 ) 89 )
81 } 90 }
......
...@@ -62,35 +62,40 @@ export default { ...@@ -62,35 +62,40 @@ export default {
62 checkedId: "1", 62 checkedId: "1",
63 column: [ 63 column: [
64 { 64 {
65 width: "35", 65 width: "50",
66 renderHeader: (h, scope) => { 66 renderHeader: (h, scope) => {
67 return ( 67 return (
68 <i 68 <div>
69 class="el-icon-plus pointer" 69 {
70 onClick={() => { 70 this.$route.query.viewtype == 1 ? '序号' :
71 this.handleAdd() 71 <i
72 }} 72 class="el-icon-plus pointer"
73 ></i> 73 onClick={() => {
74 ); 74 this.handleAdd()
75 }}
76 ></i>
77 }
78 </div>
79 )
75 }, 80 },
76 render: (h, scope) => { 81 render: (h, scope) => {
77 // 新建的材料,可删除 82 // 新建的材料,可删除
78 if (scope.row.sfxjcl === "1") { 83 // v-show='scope.row.sfxjcl == 1'
79 return ( 84 return (
80 <i 85 <div>
81 class="el-icon-minus pointer" 86 {
82 onClick={() => { 87 this.$route.query.viewtype == 1 ? <span>{scope.$index + 1}</span> :
83 this.handleDelete(scope.$index, scope.row); 88 <i
84 }} 89 class="el-icon-minus pointer"
85 ></i> 90
86 ); 91 onClick={() => {
87 } 92 this.handleDelete(scope.$index, scope.row);
88 }, 93 }}
89 }, 94 ></i>
90 { 95 }
91 width: "35", 96 </div>
92 label: "序号", 97 )
93 type: "index", 98 }
94 }, 99 },
95 { 100 {
96 prop: "isrequired", 101 prop: "isrequired",
......
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
42 </el-row> 42 </el-row>
43 </div> 43 </div>
44 </div> 44 </div>
45 <div class="submit_button"> 45 <div class="submit_button" v-if="!$route.query.viewtype">
46 <el-button type="primary" v-if="tableData.length>0" @click="onSubmit">保存</el-button> 46 <el-button type="primary" v-if="tableData.length>0" @click="onSubmit">保存</el-button>
47 </div> 47 </div>
48 </el-form> 48 </el-form>
...@@ -107,6 +107,7 @@ export default { ...@@ -107,6 +107,7 @@ export default {
107 </script> 107 </script>
108 <style scoped lang='scss'> 108 <style scoped lang='scss'>
109 @import '~@/styles/mixin.scss'; 109 @import '~@/styles/mixin.scss';
110
110 .spyj { 111 .spyj {
111 margin-left: 5px; 112 margin-left: 5px;
112 113
......
...@@ -126,7 +126,7 @@ ...@@ -126,7 +126,7 @@
126 <el-row :gutter="10"> 126 <el-row :gutter="10">
127 <el-col :span="14"> 127 <el-col :span="14">
128 <el-form-item :class="flag ? 'marginBot0' : ''" label="共有方式:"> 128 <el-form-item :class="flag ? 'marginBot0' : ''" label="共有方式:">
129 <el-radio-group v-model="ruleForm.gyfs"> 129 <el-radio-group :disabled="$route.query.viewtype==1" v-model="ruleForm.gyfs">
130 <el-radio label="1">单独所有</el-radio> 130 <el-radio label="1">单独所有</el-radio>
131 <el-radio label="2">共同共有</el-radio> 131 <el-radio label="2">共同共有</el-radio>
132 <el-radio label="3">按份所有</el-radio> 132 <el-radio label="3">按份所有</el-radio>
...@@ -158,12 +158,13 @@ ...@@ -158,12 +158,13 @@
158 <el-row :gutter="10"> 158 <el-row :gutter="10">
159 <el-col> 159 <el-col>
160 <el-form-item :class="flag ? 'marginBot0' : ''" label="登记原因:" prop="djyy"> 160 <el-form-item :class="flag ? 'marginBot0' : ''" label="登记原因:" prop="djyy">
161 <el-input class="textArea" type="textarea" v-model="ruleForm.djyy"></el-input> 161 <el-input class="textArea" type="textarea" :disabled="$route.query.viewtype==1" v-model="ruleForm.djyy">
162 </el-input>
162 </el-form-item> 163 </el-form-item>
163 </el-col> 164 </el-col>
164 </el-row> 165 </el-row>
165 </div> 166 </div>
166 <el-row class="btn"> 167 <el-row class="btn" v-if="!$route.query.viewtype">
167 <el-form-item :class="flag ? 'marginBot0' : ''"> 168 <el-form-item :class="flag ? 'marginBot0' : ''">
168 <el-button type="primary" @click="onSubmit">保存</el-button> 169 <el-button type="primary" @click="onSubmit">保存</el-button>
169 </el-form-item> 170 </el-form-item>
......
...@@ -115,7 +115,7 @@ ...@@ -115,7 +115,7 @@
115 <el-row :gutter="10"> 115 <el-row :gutter="10">
116 <el-col> 116 <el-col>
117 <el-form-item :class="flag ? 'marginBot0' : ''" label="附记:" prop="fj"> 117 <el-form-item :class="flag ? 'marginBot0' : ''" label="附记:" prop="fj">
118 <el-input type="textarea" v-model="ruleForm.fj"></el-input> 118 <el-input type="textarea" v-model="ruleForm.fj" :disabled="$route.query.viewtype==1"></el-input>
119 </el-form-item> 119 </el-form-item>
120 </el-col> 120 </el-col>
121 </el-row> 121 </el-row>
...@@ -126,7 +126,7 @@ ...@@ -126,7 +126,7 @@
126 <el-row :gutter="10"> 126 <el-row :gutter="10">
127 <el-col :span="14"> 127 <el-col :span="14">
128 <el-form-item :class="flag ? 'marginBot0' : ''" label="共有方式:"> 128 <el-form-item :class="flag ? 'marginBot0' : ''" label="共有方式:">
129 <el-radio-group v-model="ruleForm.gyfs"> 129 <el-radio-group :disabled="$route.query.viewtype==1" v-model="ruleForm.gyfs">
130 <el-radio label="1">单独所有</el-radio> 130 <el-radio label="1">单独所有</el-radio>
131 <el-radio label="2">共同共有</el-radio> 131 <el-radio label="2">共同共有</el-radio>
132 <el-radio label="3">按份所有</el-radio> 132 <el-radio label="3">按份所有</el-radio>
...@@ -150,7 +150,7 @@ ...@@ -150,7 +150,7 @@
150 </el-form-item> 150 </el-form-item>
151 </el-col> 151 </el-col>
152 </el-row> 152 </el-row>
153 <InformationTable :tableData="ruleForm.qlrxx" :gyfs="ruleForm.gyfs" /> 153 <InformationTable :tableData="ruleForm.qlrxx" :viewtype="$route.query.viewtype" :gyfs="ruleForm.gyfs" />
154 <div class="slxx_title title-block"> 154 <div class="slxx_title title-block">
155 登记原因 155 登记原因
156 <div class="triangle"></div> 156 <div class="triangle"></div>
...@@ -158,7 +158,7 @@ ...@@ -158,7 +158,7 @@
158 <el-row :gutter="10"> 158 <el-row :gutter="10">
159 <el-col> 159 <el-col>
160 <el-form-item :class="flag ? 'marginBot0' : ''" label="登记原因:" prop="djyy"> 160 <el-form-item :class="flag ? 'marginBot0' : ''" label="登记原因:" prop="djyy">
161 <el-input class="textArea" type="textarea" :disabled="$route.query.viewtype" v-model="ruleForm.djyy"> 161 <el-input class="textArea" type="textarea" :disabled="$route.query.viewtype==1" v-model="ruleForm.djyy">
162 </el-input> 162 </el-input>
163 </el-form-item> 163 </el-form-item>
164 </el-col> 164 </el-col>
......