feat:合并dev分支
Showing
59 changed files
with
382 additions
and
3991 deletions
1 | ### | ||
2 | # @Description: | ||
3 | # @Autor: renchao | ||
4 | # @LastEditTime: 2023-05-12 13:23:31 | ||
5 | ### | ||
1 | # just a flag | 6 | # just a flag |
2 | ENV = 'development' | 7 | ENV = 'development' |
3 | NODE_ENV=development | 8 | NODE_ENV=development |
... | @@ -5,4 +10,4 @@ NODE_ENV=development | ... | @@ -5,4 +10,4 @@ NODE_ENV=development |
5 | VUE_APP_BASE_API = '/api' | 10 | VUE_APP_BASE_API = '/api' |
6 | 11 | ||
7 | # 开发环境 | 12 | # 开发环境 |
8 | VUE_APP_API_BASE_URL = 'http://192.168.2.38:8027' | 13 | VUE_APP_API_BASE_URL = 'http://192.168.2.89:8027' | ... | ... |
1 | <!-- | 1 | <!-- |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-04-06 11:03:47 | 4 | * @LastEditTime: 2023-05-11 17:24:44 |
5 | --> | 5 | --> |
6 | ## Git 贡献提交规范 | 6 | ## Git 贡献提交规范 |
7 | - `feat` 增加新功能 | 7 | - `feat` 增加新功能 |
... | @@ -21,8 +21,6 @@ | ... | @@ -21,8 +21,6 @@ |
21 | ## config说明 | 21 | ## config说明 |
22 | { | 22 | { |
23 | "TITLE": "汉中市数据上报系统", | 23 | "TITLE": "汉中市数据上报系统", |
24 | "THEME": "sb", | ||
25 | "LOGIN": "", { 登录页配置 } | ||
26 | "CODE": "BDCJGPT", {"BDCSBPT":上报: "BDCJGPT":监管} | 24 | "CODE": "BDCJGPT", {"BDCSBPT":上报: "BDCJGPT":监管} |
27 | "SERVERAPI": "/bdcsjsb", | 25 | "SERVERAPI": "/bdcsjsb", |
28 | "AREARMAP": "610702", // {"610702","632701"} | 26 | "AREARMAP": "610702", // {"610702","632701"} | ... | ... |
1 | { | 1 | { |
2 | "TITLE": "汉中市监管系统", | 2 | "TITLE": "汉中市监管系统", |
3 | "THEME": "jg", | ||
4 | "LOGIN": "jg", | ||
5 | "CODE": "BDCJGPT", | 3 | "CODE": "BDCJGPT", |
6 | "AREARMAP": "610702", | 4 | "AREARMAP": "610702", |
5 | "XZQ": "汉中市", | ||
7 | "SERVERAPI": "/bdcsjsb", | 6 | "SERVERAPI": "/bdcsjsb", |
8 | "calcHeight": 200, | 7 | "calcHeight": 200, |
9 | "echartTextColor": "#FFFFFF", | 8 | "echartTextColor": "#FFFFFF", | ... | ... |
public/610702sb.json
deleted
100644 → 0
1 | { | ||
2 | "TITLE": "汉中市数据上报系统", | ||
3 | "THEME": "sb", | ||
4 | "LOGIN": "sb", | ||
5 | "CODE": "BDCSBPT", | ||
6 | "AREARMAP": "610702", | ||
7 | "SERVERAPI": "/bdcsjsb", | ||
8 | "calcHeight": 160, | ||
9 | "echartTextColor": "#4A4A4A", | ||
10 | "MANAGEMENTAPI": "http://192.168.2.38:8090/management", | ||
11 | "IPCONFIG": "http://192.168.2.38:8027" | ||
12 | } | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | { | 1 | { |
2 | "TITLE": "玉树州监管系统", | 2 | "TITLE": "玉树州监管系统", |
3 | "THEME": "jg", | ||
4 | "LOGIN": "jg", | ||
5 | "CODE": "BDCJGPT", | 3 | "CODE": "BDCJGPT", |
6 | "AREARMAP": "632701", | 4 | "AREARMAP": "632701", |
5 | "XZQ": "玉树州", | ||
7 | "SERVERAPI": "/bdcsjsb", | 6 | "SERVERAPI": "/bdcsjsb", |
8 | "calcHeight": 200, | 7 | "calcHeight": 200, |
9 | "echartTextColor": "#FFFFFF", | 8 | "echartTextColor": "#FFFFFF", | ... | ... |
public/632701sb.json
deleted
100644 → 0
1 | { | ||
2 | "TITLE": "玉树州数据上报系统", | ||
3 | "THEME": "sb", | ||
4 | "LOGIN": "sb", | ||
5 | "CODE": "BDCSBPT", | ||
6 | "AREARMAP": "632701", | ||
7 | "SERVERAPI": "/bdcsjsb", | ||
8 | "calcHeight": 160, | ||
9 | "echartTextColor": "#4A4A4A", | ||
10 | "MANAGEMENTAPI": "http://192.168.2.38:8090/management", | ||
11 | "IPCONFIG": "http://192.168.2.38:8027" | ||
12 | } | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | { | 1 | { |
2 | "TITLE": "汉中市数据上报系统", | 2 | "TITLE": "汉中市监管系统", |
3 | "THEME": "sb", | 3 | "CODE": "BDCJGPT", |
4 | "LOGIN": "sb", | ||
5 | "CODE": "BDCSBPT", | ||
6 | "AREARMAP": "610702", | 4 | "AREARMAP": "610702", |
5 | "XZQ": "汉中市", | ||
7 | "SERVERAPI": "/bdcsjsb", | 6 | "SERVERAPI": "/bdcsjsb", |
8 | "calcHeight": 160, | 7 | "calcHeight": 200, |
9 | "echartTextColor": "#4A4A4A", | 8 | "echartTextColor": "#FFFFFF", |
10 | "MANAGEMENTAPI": "http://192.168.2.38:8090/management", | 9 | "MANAGEMENTAPI": "http://192.168.2.38:8090/management" |
11 | "IPCONFIG": "http://192.168.2.38:8027" | ||
12 | } | 10 | } |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
src/api/file.js
0 → 100644
1 | /* | ||
2 | * @Description: | ||
3 | * @Autor: renchao | ||
4 | * @LastEditTime: 2023-05-06 16:25:08 | ||
5 | */ | ||
6 | import request from '@/utils/request' | ||
7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) | ||
8 | /* 引入配置 */ | ||
9 | const urlHeader = SERVER.SERVERAPI + '/rest/sjsb/DataReport/storage' | ||
10 | |||
11 | /** | ||
12 | * @description: xml导入 | ||
13 | * @param {*} data | ||
14 | * @author: renchao | ||
15 | */ | ||
16 | export function storage (data) { | ||
17 | return request({ | ||
18 | url: urlHeader, | ||
19 | headers: { | ||
20 | 'Content-Type': 'multipart/form-data' | ||
21 | }, | ||
22 | method: 'post', | ||
23 | data | ||
24 | }) | ||
25 | } | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | /* | 1 | /* |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-03-23 17:19:52 | 4 | * @LastEditTime: 2023-05-08 15:03:10 |
5 | */ | 5 | */ |
6 | import request from "@/utils/request"; | 6 | import request from "@/utils/request"; |
7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) | 7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) | ... | ... |
src/api/searchRecord.js
deleted
100644 → 0
1 | /* | ||
2 | * @Description: 干部查询 | ||
3 | * @Autor: | ||
4 | * @LastEditTime: | ||
5 | */ | ||
6 | /* 引入axios请求文件 */ | ||
7 | import request from '@/utils/request' | ||
8 | /* 引入配置 */ | ||
9 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) | ||
10 | const urlHeader = SERVER.SERVERAPI + '/rest/searchRecord' | ||
11 | |||
12 | /** | ||
13 | * @description: 获取列表 | ||
14 | * @param {*} | ||
15 | * @author: | ||
16 | */ | ||
17 | export function getSearchRecordList (data) { | ||
18 | return request({ | ||
19 | url: urlHeader + '/getList', | ||
20 | method: 'post', | ||
21 | data | ||
22 | }) | ||
23 | } | ||
24 | |||
25 | /** | ||
26 | * @description: 新增 | ||
27 | * @param {*} data | ||
28 | * @author: | ||
29 | */ | ||
30 | export function saveSearchRecord (data) { | ||
31 | return request({ | ||
32 | url: urlHeader + '/search', | ||
33 | method: 'post', | ||
34 | data | ||
35 | }) | ||
36 | } |
1 | .obligee-item { | ||
2 | display: flex; | ||
3 | height: 100%; | ||
4 | margin-bottom: 15px; | ||
5 | margin-right: 5px; | ||
6 | |||
7 | &-name { | ||
8 | display: flex; | ||
9 | align-items: center; | ||
10 | justify-content: center; | ||
11 | width: 20px; | ||
12 | padding: 10px 20px; | ||
13 | line-height: 28px; | ||
14 | border: 1px solid #ccc; | ||
15 | border-radius: 3px; | ||
16 | margin-left: 10px; | ||
17 | } | ||
18 | |||
19 | &-list { | ||
20 | width: 100%; | ||
21 | flex: 1; | ||
22 | display: flex; | ||
23 | justify-content: center; | ||
24 | flex-direction: column; | ||
25 | } | ||
26 | } | ||
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
... | @@ -116,22 +116,22 @@ | ... | @@ -116,22 +116,22 @@ |
116 | </div> | 116 | </div> |
117 | </template> | 117 | </template> |
118 | <script> | 118 | <script> |
119 | import djfDjSz from "@/api/djfDjSz"; | 119 | import djfDjSz from "@/api/djfDjSz"; |
120 | import ruleMixin from "@/mixins/ruleMixin.js"; | 120 | import ruleMixin from "@/mixins/ruleMixin.js"; |
121 | // 缮证信息 | 121 | // 缮证信息 |
122 | export default { | 122 | export default { |
123 | mixins: [ruleMixin], | 123 | mixins: [ruleMixin], |
124 | props: { | 124 | props: { |
125 | bsmSjsb: { | 125 | bsmSjsb: { |
126 | type: String, | 126 | type: String, |
127 | default: "", | 127 | default: "" |
128 | }, | 128 | }, |
129 | bsmYwsjb: { | 129 | bsmYwsjb: { |
130 | type: String, | 130 | type: String, |
131 | default: "", | 131 | default: "" |
132 | }, | 132 | }, |
133 | }, | 133 | }, |
134 | data() { | 134 | data () { |
135 | return { | 135 | return { |
136 | certificateInfo: { | 136 | certificateInfo: { |
137 | ruleForm: [ | 137 | ruleForm: [ |
... | @@ -144,14 +144,14 @@ export default { | ... | @@ -144,14 +144,14 @@ export default { |
144 | SZRY: "", | 144 | SZRY: "", |
145 | SZSJ: "", | 145 | SZSJ: "", |
146 | BZ: "", | 146 | BZ: "", |
147 | QXDM: "", | 147 | QXDM: "" |
148 | }, | 148 | } |
149 | ], | 149 | ] |
150 | }, | 150 | } |
151 | }; | 151 | } |
152 | }, | 152 | }, |
153 | methods: { | 153 | methods: { |
154 | async featchData() { | 154 | async featchData () { |
155 | try { | 155 | try { |
156 | let { result: res } = await djfDjSz.getDjfDjSzById(this.bsmSjsb); | 156 | let { result: res } = await djfDjSz.getDjfDjSzById(this.bsmSjsb); |
157 | this.certificateInfo.ruleForm = res; | 157 | this.certificateInfo.ruleForm = res; |
... | @@ -160,7 +160,7 @@ export default { | ... | @@ -160,7 +160,7 @@ export default { |
160 | this.$refs.msg.messageShow(); | 160 | this.$refs.msg.messageShow(); |
161 | } | 161 | } |
162 | }, | 162 | }, |
163 | handleUpdateForm() { | 163 | handleUpdateForm () { |
164 | return new Promise(async (resolve) => { | 164 | return new Promise(async (resolve) => { |
165 | try { | 165 | try { |
166 | let res = await djfDjSz.updateDjfDjSz(this.certificateInfo.ruleForm); | 166 | let res = await djfDjSz.updateDjfDjSz(this.certificateInfo.ruleForm); |
... | @@ -169,39 +169,14 @@ export default { | ... | @@ -169,39 +169,14 @@ export default { |
169 | } catch (error) { | 169 | } catch (error) { |
170 | this.$refs.msg.messageShow(); | 170 | this.$refs.msg.messageShow(); |
171 | } | 171 | } |
172 | }); | 172 | }) |
173 | }, | ||
174 | }, | ||
175 | }; | ||
176 | </script> | ||
177 | <style scoped lang="scss"> | ||
178 | @import "./css/itemForm.scss"; | ||
179 | |||
180 | .obligee-item { | ||
181 | display: flex; | ||
182 | height: 100%; | ||
183 | margin-bottom: 15px; | ||
184 | margin-right: 5px; | ||
185 | |||
186 | &-name { | ||
187 | display: flex; | ||
188 | align-items: center; | ||
189 | justify-content: center; | ||
190 | width: 20px; | ||
191 | padding: 10px 20px; | ||
192 | line-height: 28px; | ||
193 | border: 1px solid #ccc; | ||
194 | border-radius: 3px; | ||
195 | } | 173 | } |
196 | |||
197 | &-list { | ||
198 | width: 100%; | ||
199 | flex: 1; | ||
200 | display: flex; | ||
201 | justify-content: center; | ||
202 | flex-direction: column; | ||
203 | } | 174 | } |
204 | } | 175 | } |
176 | </script> | ||
177 | <style scoped lang="scss"> | ||
178 | @import "./css/itemForm.scss"; | ||
205 | </style> | 179 | </style> |
206 | 180 | ||
207 | 181 | ||
182 | ... | ... |
1 | <template> | 1 | <template> |
2 | <div class="houseFloor itemForm"> | 2 | <div class="houseFloor itemForm"> |
3 | <el-form :model="ruleForm" :rules="rules" ref="formList" label-width="121px" :key="key"> | 3 | <el-form :model="ruleForm" :rules="rules" ref="formList" label-width="121px" :key="key"> |
4 | <div v-for="(item, index) in ruleForm" :key="index" class="obligee-item"> | ||
5 | <p class="obligee-item-name">层信息{{ index + 1 }}</p> | ||
6 | <div class="obligee-item-list"> | ||
4 | <el-row> | 7 | <el-row> |
5 | <el-col :span="8"> | 8 | <el-col :span="8"> |
6 | <el-form-item prop="YSDM"> | 9 | <el-form-item prop="YSDM"> |
... | @@ -8,7 +11,7 @@ | ... | @@ -8,7 +11,7 @@ |
8 | 要素代码: <br /> | 11 | 要素代码: <br /> |
9 | <p class="label-detail">(YSDM)</p> | 12 | <p class="label-detail">(YSDM)</p> |
10 | </span> | 13 | </span> |
11 | <el-input :disabled="$store.state.business.Edit" v-model="ruleForm.ysdm"></el-input> | 14 | <el-input :disabled="$store.state.business.Edit" v-model="ruleForm[index].ysdm"></el-input> |
12 | </el-form-item> | 15 | </el-form-item> |
13 | </el-col> | 16 | </el-col> |
14 | 17 | ||
... | @@ -18,7 +21,7 @@ | ... | @@ -18,7 +21,7 @@ |
18 | 层号: <br /> | 21 | 层号: <br /> |
19 | <p class="label-detail">(CH)</p> | 22 | <p class="label-detail">(CH)</p> |
20 | </span> | 23 | </span> |
21 | <el-input :disabled="$store.state.business.Edit" v-model="ruleForm.ch"></el-input> | 24 | <el-input :disabled="$store.state.business.Edit" v-model="ruleForm[index].ch"></el-input> |
22 | </el-form-item> | 25 | </el-form-item> |
23 | </el-col> | 26 | </el-col> |
24 | 27 | ||
... | @@ -28,7 +31,7 @@ | ... | @@ -28,7 +31,7 @@ |
28 | 自然幢号: <br /> | 31 | 自然幢号: <br /> |
29 | <p class="label-detail">(ZRZH)</p> | 32 | <p class="label-detail">(ZRZH)</p> |
30 | </span> | 33 | </span> |
31 | <el-input :disabled="$store.state.business.Edit" v-model="ruleForm.zrzh"></el-input> | 34 | <el-input :disabled="$store.state.business.Edit" v-model="ruleForm[index].zrzh"></el-input> |
32 | </el-form-item> | 35 | </el-form-item> |
33 | </el-col> | 36 | </el-col> |
34 | </el-row> | 37 | </el-row> |
... | @@ -40,7 +43,7 @@ | ... | @@ -40,7 +43,7 @@ |
40 | 实际层: <br /> | 43 | 实际层: <br /> |
41 | <p class="label-detail">(SJC)</p> | 44 | <p class="label-detail">(SJC)</p> |
42 | </span> | 45 | </span> |
43 | <el-input :disabled="$store.state.business.Edit" v-model="ruleForm.sjc"></el-input> | 46 | <el-input :disabled="$store.state.business.Edit" v-model="ruleForm[index].sjc"></el-input> |
44 | </el-form-item> | 47 | </el-form-item> |
45 | </el-col> | 48 | </el-col> |
46 | 49 | ||
... | @@ -50,7 +53,7 @@ | ... | @@ -50,7 +53,7 @@ |
50 | 名义层: <br /> | 53 | 名义层: <br /> |
51 | <p class="label-detail">(MYC)</p> | 54 | <p class="label-detail">(MYC)</p> |
52 | </span> | 55 | </span> |
53 | <el-input :disabled="$store.state.business.Edit" v-model="ruleForm.myc"></el-input> | 56 | <el-input :disabled="$store.state.business.Edit" v-model="ruleForm[index].myc"></el-input> |
54 | </el-form-item> | 57 | </el-form-item> |
55 | </el-col> | 58 | </el-col> |
56 | 59 | ||
... | @@ -62,7 +65,7 @@ | ... | @@ -62,7 +65,7 @@ |
62 | </span> | 65 | </span> |
63 | <el-input-number controls-position="right" :disabled="$store.state.business.Edit" | 66 | <el-input-number controls-position="right" :disabled="$store.state.business.Edit" |
64 | v-only-number="{ max: 999999999999999, min: 0, precision: 3 }" title="" type="number" | 67 | v-only-number="{ max: 999999999999999, min: 0, precision: 3 }" title="" type="number" |
65 | v-model.number="ruleForm.cjzmj"></el-input-number> | 68 | v-model.number="ruleForm[index].cjzmj"></el-input-number> |
66 | </el-form-item> | 69 | </el-form-item> |
67 | </el-col> | 70 | </el-col> |
68 | </el-row> | 71 | </el-row> |
... | @@ -76,7 +79,7 @@ | ... | @@ -76,7 +79,7 @@ |
76 | </span> | 79 | </span> |
77 | <el-input-number controls-position="right" :disabled="$store.state.business.Edit" | 80 | <el-input-number controls-position="right" :disabled="$store.state.business.Edit" |
78 | v-only-number="{ max: 999999999999999, min: 0, precision: 3 }" title="" type="number" | 81 | v-only-number="{ max: 999999999999999, min: 0, precision: 3 }" title="" type="number" |
79 | v-model.number="ruleForm.ctnjzmj"></el-input-number> | 82 | v-model.number="ruleForm[index].ctnjzmj"></el-input-number> |
80 | </el-form-item> | 83 | </el-form-item> |
81 | </el-col> | 84 | </el-col> |
82 | 85 | ||
... | @@ -88,7 +91,7 @@ | ... | @@ -88,7 +91,7 @@ |
88 | </span> | 91 | </span> |
89 | <el-input-number controls-position="right" :disabled="$store.state.business.Edit" | 92 | <el-input-number controls-position="right" :disabled="$store.state.business.Edit" |
90 | v-only-number="{ max: 999999999999999, min: 0, precision: 3 }" title="" type="number" | 93 | v-only-number="{ max: 999999999999999, min: 0, precision: 3 }" title="" type="number" |
91 | v-model.number="ruleForm.cytmj"></el-input-number> | 94 | v-model.number="ruleForm[index].cytmj"></el-input-number> |
92 | </el-form-item> | 95 | </el-form-item> |
93 | </el-col> | 96 | </el-col> |
94 | 97 | ||
... | @@ -100,7 +103,7 @@ | ... | @@ -100,7 +103,7 @@ |
100 | </span> | 103 | </span> |
101 | <el-input-number controls-position="right" :disabled="$store.state.business.Edit" | 104 | <el-input-number controls-position="right" :disabled="$store.state.business.Edit" |
102 | v-only-number="{ max: 999999999999999, min: 0, precision: 3 }" title="" type="number" | 105 | v-only-number="{ max: 999999999999999, min: 0, precision: 3 }" title="" type="number" |
103 | v-model.number="ruleForm.cgyjzmj"></el-input-number> | 106 | v-model.number="ruleForm[index].cgyjzmj"></el-input-number> |
104 | </el-form-item> | 107 | </el-form-item> |
105 | </el-col> | 108 | </el-col> |
106 | </el-row> | 109 | </el-row> |
... | @@ -114,7 +117,7 @@ | ... | @@ -114,7 +117,7 @@ |
114 | </span> | 117 | </span> |
115 | <el-input-number controls-position="right" :disabled="$store.state.business.Edit" | 118 | <el-input-number controls-position="right" :disabled="$store.state.business.Edit" |
116 | v-only-number="{ max: 999999999999999, min: 0, precision: 3 }" title="" type="number" | 119 | v-only-number="{ max: 999999999999999, min: 0, precision: 3 }" title="" type="number" |
117 | v-model.number="ruleForm.cftjzmj"></el-input-number> | 120 | v-model.number="ruleForm[index].cftjzmj"></el-input-number> |
118 | </el-form-item> | 121 | </el-form-item> |
119 | </el-col> | 122 | </el-col> |
120 | 123 | ||
... | @@ -126,7 +129,7 @@ | ... | @@ -126,7 +129,7 @@ |
126 | </span> | 129 | </span> |
127 | <el-input-number controls-position="right" :disabled="$store.state.business.Edit" | 130 | <el-input-number controls-position="right" :disabled="$store.state.business.Edit" |
128 | v-only-number="{ max: 999999999999999, min: 0, precision: 3 }" title="" type="number" | 131 | v-only-number="{ max: 999999999999999, min: 0, precision: 3 }" title="" type="number" |
129 | v-model.number="ruleForm.cbqmj"></el-input-number> | 132 | v-model.number="ruleForm[index].cbqmj"></el-input-number> |
130 | </el-form-item> | 133 | </el-form-item> |
131 | </el-col> | 134 | </el-col> |
132 | 135 | ||
... | @@ -137,7 +140,7 @@ | ... | @@ -137,7 +140,7 @@ |
137 | <p class="label-detail">(CG)</p> | 140 | <p class="label-detail">(CG)</p> |
138 | </span> | 141 | </span> |
139 | <el-input-number controls-position="right" :disabled="$store.state.business.Edit" | 142 | <el-input-number controls-position="right" :disabled="$store.state.business.Edit" |
140 | v-only-number="{ max: 999999999999999, min: 0, precision: 3 }" title="" type="number" v-model.number="ruleForm.cg"> | 143 | v-only-number="{ max: 999999999999999, min: 0, precision: 3 }" title="" type="number" v-model.number="ruleForm[index].cg"> |
141 | </el-input-number> | 144 | </el-input-number> |
142 | </el-form-item> | 145 | </el-form-item> |
143 | </el-col> | 146 | </el-col> |
... | @@ -152,7 +155,7 @@ | ... | @@ -152,7 +155,7 @@ |
152 | </span> | 155 | </span> |
153 | <el-input-number controls-position="right" :disabled="$store.state.business.Edit" | 156 | <el-input-number controls-position="right" :disabled="$store.state.business.Edit" |
154 | v-only-number="{ max: 999999999999999, min: 0, precision: 3 }" title="" type="number" | 157 | v-only-number="{ max: 999999999999999, min: 0, precision: 3 }" title="" type="number" |
155 | v-model.number="ruleForm.sptymj"></el-input-number> | 158 | v-model.number="ruleForm[index].sptymj"></el-input-number> |
156 | </el-form-item> | 159 | </el-form-item> |
157 | </el-col> | 160 | </el-col> |
158 | 161 | ||
... | @@ -162,33 +165,36 @@ | ... | @@ -162,33 +165,36 @@ |
162 | 区县代码: <br /> | 165 | 区县代码: <br /> |
163 | <p class="label-detail">(QXDM)</p> | 166 | <p class="label-detail">(QXDM)</p> |
164 | </span> | 167 | </span> |
165 | <el-input :disabled="$store.state.business.Edit" v-model="ruleForm.qxdm"></el-input> | 168 | <el-input :disabled="$store.state.business.Edit" v-model="ruleForm[index].qxdm"></el-input> |
166 | </el-form-item> | 169 | </el-form-item> |
167 | </el-col> | 170 | </el-col> |
168 | </el-row> | 171 | </el-row> |
172 | </div> | ||
173 | </div> | ||
174 | |||
169 | </el-form> | 175 | </el-form> |
170 | <message-tips ref="msg" /> | 176 | <message-tips ref="msg" /> |
171 | </div> | 177 | </div> |
172 | </template> | 178 | </template> |
173 | <script> | 179 | <script> |
174 | // 层信息 | 180 | // 层信息 |
175 | import kttFwC from "@/api/kttFwC"; | 181 | import kttFwC from "@/api/kttFwC"; |
176 | import ruleMixin from "@/mixins/ruleMixin.js"; | 182 | import ruleMixin from "@/mixins/ruleMixin.js"; |
177 | export default { | 183 | export default { |
178 | mixins: [ruleMixin], | 184 | mixins: [ruleMixin], |
179 | props: { | 185 | props: { |
180 | bsmSjsb: { | 186 | bsmSjsb: { |
181 | type: String, | 187 | type: String, |
182 | default: "", | 188 | default: "" |
183 | }, | 189 | }, |
184 | bsmYwsjb: { | 190 | bsmYwsjb: { |
185 | type: String, | 191 | type: String, |
186 | default: "", | 192 | default: "" |
187 | }, | 193 | }, |
188 | }, | 194 | }, |
189 | data() { | 195 | data () { |
190 | return { | 196 | return { |
191 | ruleForm: { | 197 | ruleForm: [{ |
192 | YSDM: "", | 198 | YSDM: "", |
193 | CH: "", | 199 | CH: "", |
194 | ZRZH: "", | 200 | ZRZH: "", |
... | @@ -202,36 +208,36 @@ export default { | ... | @@ -202,36 +208,36 @@ export default { |
202 | CBQMJ: "", | 208 | CBQMJ: "", |
203 | CG: "", | 209 | CG: "", |
204 | SPTYMJ: "", | 210 | SPTYMJ: "", |
205 | QXDM: "", | 211 | QXDM: "" |
206 | }, | 212 | }] |
207 | }; | 213 | } |
208 | }, | 214 | }, |
209 | methods: { | 215 | methods: { |
210 | async featchData() { | 216 | async featchData () { |
211 | try { | 217 | try { |
212 | let { result: res } = await kttFwC.getKttFwCById(this.bsmSjsb); | 218 | let { result: res } = await kttFwC.getKttFwCById(this.bsmSjsb); |
213 | this.ruleForm = res; | 219 | this.ruleForm = res; |
214 | //this.featchRule() | 220 | //this.featchRule() |
215 | } catch (error) { | 221 | } catch (error) { |
216 | this.$refs.msg.messageShow(); | 222 | this.$refs.msg.messageShow() |
217 | } | 223 | } |
218 | }, | 224 | }, |
219 | handleUpdateForm() { | 225 | handleUpdateForm () { |
220 | return new Promise(async (resolve, reject) => { | 226 | return new Promise(async (resolve, reject) => { |
221 | try { | 227 | try { |
222 | let res = await kttFwC.updateKttFwC(this.ruleForm); | 228 | let res = await kttFwC.updateKttFwC(this.ruleForm); |
223 | // this.$refs['formList'].resetFields(); | 229 | // this.$refs['formList'].resetFields(); |
224 | resolve(res.code); | 230 | resolve(res.code); |
225 | } catch (error) { | 231 | } catch (error) { |
226 | this.$refs.msg.messageShow(); | 232 | this.$refs.msg.messageShow() |
227 | } | 233 | } |
228 | }); | 234 | }) |
229 | }, | 235 | } |
230 | }, | 236 | } |
231 | }; | 237 | }; |
232 | </script> | 238 | </script> |
233 | <style scoped lang="scss"> | 239 | <style scoped lang="scss"> |
234 | @import "./css/itemForm.scss"; | 240 | @import "./css/itemForm.scss"; |
235 | </style> | 241 | </style> |
236 | 242 | ||
237 | 243 | ... | ... |
1 | <template> | 1 | <template> |
2 | <div class="households itemForm"> | 2 | <div class="households itemForm"> |
3 | <el-form :model="ruleForm" :rules="rules" ref="formList" label-width="115px" :key="key"> | 3 | <el-form :model="ruleForm" :rules="rules" ref="formList" label-width="115px" :key="key"> |
4 | |||
5 | <div v-for="(item, index) in ruleForm" :key="index" class="obligee-item"> | ||
6 | <p class="obligee-item-name">户信息{{ index + 1 }}</p> | ||
7 | <div class="obligee-item-list"> | ||
4 | <el-row> | 8 | <el-row> |
5 | <el-col :span="8"> | 9 | <el-col :span="8"> |
6 | <el-form-item prop="YSDM"> | 10 | <el-form-item prop="YSDM"> |
... | @@ -8,7 +12,7 @@ | ... | @@ -8,7 +12,7 @@ |
8 | 要素代码: <br /> | 12 | 要素代码: <br /> |
9 | <p class="label-detail">(YSDM)</p> | 13 | <p class="label-detail">(YSDM)</p> |
10 | </span> | 14 | </span> |
11 | <el-input :disabled="$store.state.business.Edit" v-model="ruleForm.ysdm"></el-input> | 15 | <el-input :disabled="$store.state.business.Edit" v-model="ruleForm[index].ysdm"></el-input> |
12 | </el-form-item> | 16 | </el-form-item> |
13 | </el-col> | 17 | </el-col> |
14 | 18 | ||
... | @@ -18,7 +22,7 @@ | ... | @@ -18,7 +22,7 @@ |
18 | 不动产单元号: <br /> | 22 | 不动产单元号: <br /> |
19 | <p class="label-detail">(BDCDYH)</p> | 23 | <p class="label-detail">(BDCDYH)</p> |
20 | </span> | 24 | </span> |
21 | <el-input :disabled="$store.state.business.Edit" v-model="ruleForm.bdcdyh"></el-input> | 25 | <el-input :disabled="$store.state.business.Edit" v-model="ruleForm[index].bdcdyh"></el-input> |
22 | </el-form-item> | 26 | </el-form-item> |
23 | </el-col> | 27 | </el-col> |
24 | 28 | ||
... | @@ -28,7 +32,7 @@ | ... | @@ -28,7 +32,7 @@ |
28 | 逻辑幢号: <br /> | 32 | 逻辑幢号: <br /> |
29 | <p class="label-detail">(LJZH)</p> | 33 | <p class="label-detail">(LJZH)</p> |
30 | </span> | 34 | </span> |
31 | <el-input :disabled="$store.state.business.Edit" v-model="ruleForm.ljzh"></el-input> | 35 | <el-input :disabled="$store.state.business.Edit" v-model="ruleForm[index].ljzh"></el-input> |
32 | </el-form-item> | 36 | </el-form-item> |
33 | </el-col> | 37 | </el-col> |
34 | </el-row> | 38 | </el-row> |
... | @@ -40,7 +44,7 @@ | ... | @@ -40,7 +44,7 @@ |
40 | 自然幢号: <br /> | 44 | 自然幢号: <br /> |
41 | <p class="label-detail">(ZRZH)</p> | 45 | <p class="label-detail">(ZRZH)</p> |
42 | </span> | 46 | </span> |
43 | <el-input :disabled="$store.state.business.Edit" v-model="ruleForm.zrzh"></el-input> | 47 | <el-input :disabled="$store.state.business.Edit" v-model="ruleForm[index].zrzh"></el-input> |
44 | </el-form-item> | 48 | </el-form-item> |
45 | </el-col> | 49 | </el-col> |
46 | 50 | ||
... | @@ -50,7 +54,7 @@ | ... | @@ -50,7 +54,7 @@ |
50 | 房屋编码: <br /> | 54 | 房屋编码: <br /> |
51 | <p class="label-detail">(FWBM)</p> | 55 | <p class="label-detail">(FWBM)</p> |
52 | </span> | 56 | </span> |
53 | <el-input :disabled="$store.state.business.Edit" v-model="ruleForm.fwbm"></el-input> | 57 | <el-input :disabled="$store.state.business.Edit" v-model="ruleForm[index].fwbm"></el-input> |
54 | </el-form-item> | 58 | </el-form-item> |
55 | </el-col> | 59 | </el-col> |
56 | 60 | ||
... | @@ -60,7 +64,7 @@ | ... | @@ -60,7 +64,7 @@ |
60 | 层号: <br /> | 64 | 层号: <br /> |
61 | <p class="label-detail">(CH)</p> | 65 | <p class="label-detail">(CH)</p> |
62 | </span> | 66 | </span> |
63 | <el-input :disabled="$store.state.business.Edit" v-model="ruleForm.ch"></el-input> | 67 | <el-input :disabled="$store.state.business.Edit" v-model="ruleForm[index].ch"></el-input> |
64 | </el-form-item> | 68 | </el-form-item> |
65 | </el-col> | 69 | </el-col> |
66 | </el-row> | 70 | </el-row> |
... | @@ -72,7 +76,7 @@ | ... | @@ -72,7 +76,7 @@ |
72 | 坐落: <br /> | 76 | 坐落: <br /> |
73 | <p class="label-detail">(ZL)</p> | 77 | <p class="label-detail">(ZL)</p> |
74 | </span> | 78 | </span> |
75 | <el-input :disabled="$store.state.business.Edit" v-model="ruleForm.zl"></el-input> | 79 | <el-input :disabled="$store.state.business.Edit" v-model="ruleForm[index].zl"></el-input> |
76 | </el-form-item> | 80 | </el-form-item> |
77 | </el-col> | 81 | </el-col> |
78 | 82 | ||
... | @@ -82,7 +86,7 @@ | ... | @@ -82,7 +86,7 @@ |
82 | 面积单位: <br /> | 86 | 面积单位: <br /> |
83 | <p class="label-detail">(MJDW)</p> | 87 | <p class="label-detail">(MJDW)</p> |
84 | </span> | 88 | </span> |
85 | <el-select :disabled="$store.state.business.Edit" v-model="ruleForm.mjdw"> | 89 | <el-select :disabled="$store.state.business.Edit" v-model="ruleForm[index].mjdw"> |
86 | <el-option v-for="item in dicData['A7']" :key="item.DCODE" :label="item.DNAME" :value="item.DCODE"> | 90 | <el-option v-for="item in dicData['A7']" :key="item.DCODE" :label="item.DNAME" :value="item.DCODE"> |
87 | </el-option> | 91 | </el-option> |
88 | </el-select> | 92 | </el-select> |
... | @@ -96,7 +100,7 @@ | ... | @@ -96,7 +100,7 @@ |
96 | <p class="label-detail">(SJCS)</p> | 100 | <p class="label-detail">(SJCS)</p> |
97 | </span> | 101 | </span> |
98 | <el-input-number controls-position="right" :disabled="$store.state.business.Edit" | 102 | <el-input-number controls-position="right" :disabled="$store.state.business.Edit" |
99 | v-only-number="{ max: 99999, min: 1, precision: 0 }" v-model="ruleForm.sjcs"></el-input-number> | 103 | v-only-number="{ max: 99999, min: 1, precision: 0 }" v-model="ruleForm[index].sjcs"></el-input-number> |
100 | </el-form-item> | 104 | </el-form-item> |
101 | </el-col> | 105 | </el-col> |
102 | </el-row> | 106 | </el-row> |
... | @@ -108,7 +112,7 @@ | ... | @@ -108,7 +112,7 @@ |
108 | 户号: <br /> | 112 | 户号: <br /> |
109 | <p class="label-detail">(HH)</p> | 113 | <p class="label-detail">(HH)</p> |
110 | </span> | 114 | </span> |
111 | <el-input-number controls-position="right" :disabled="$store.state.business.Edit" v-model="ruleForm.hh" | 115 | <el-input-number controls-position="right" :disabled="$store.state.business.Edit" v-model="ruleForm[index].hh" |
112 | v-only-number="{ max: 99999, min: 1, precision: 0 }"></el-input-number> | 116 | v-only-number="{ max: 99999, min: 1, precision: 0 }"></el-input-number> |
113 | </el-form-item> | 117 | </el-form-item> |
114 | </el-col> | 118 | </el-col> |
... | @@ -119,7 +123,7 @@ | ... | @@ -119,7 +123,7 @@ |
119 | 室号部位: <br /> | 123 | 室号部位: <br /> |
120 | <p class="label-detail">(SHBW)</p> | 124 | <p class="label-detail">(SHBW)</p> |
121 | </span> | 125 | </span> |
122 | <el-input :disabled="$store.state.business.Edit" v-model="ruleForm.shbw"></el-input> | 126 | <el-input :disabled="$store.state.business.Edit" v-model="ruleForm[index].shbw"></el-input> |
123 | </el-form-item> | 127 | </el-form-item> |
124 | </el-col> | 128 | </el-col> |
125 | 129 | ||
... | @@ -129,7 +133,7 @@ | ... | @@ -129,7 +133,7 @@ |
129 | 户型: <br /> | 133 | 户型: <br /> |
130 | <p class="label-detail">(HX)</p> | 134 | <p class="label-detail">(HX)</p> |
131 | </span> | 135 | </span> |
132 | <el-select :disabled="$store.state.business.Edit" v-model="ruleForm.hx"> | 136 | <el-select :disabled="$store.state.business.Edit" v-model="ruleForm[index].hx"> |
133 | <el-option v-for="item in dicData['A15']" :key="item.DCODE" :label="item.DNAME" :value="item.DCODE"> | 137 | <el-option v-for="item in dicData['A15']" :key="item.DCODE" :label="item.DNAME" :value="item.DCODE"> |
134 | </el-option> | 138 | </el-option> |
135 | </el-select> | 139 | </el-select> |
... | @@ -144,7 +148,7 @@ | ... | @@ -144,7 +148,7 @@ |
144 | 户型结构: <br /> | 148 | 户型结构: <br /> |
145 | <p class="label-detail">(HXJG)</p> | 149 | <p class="label-detail">(HXJG)</p> |
146 | </span> | 150 | </span> |
147 | <el-select :disabled="$store.state.business.Edit" v-model="ruleForm.hxjg"> | 151 | <el-select :disabled="$store.state.business.Edit" v-model="ruleForm[index].hxjg"> |
148 | <el-option v-for="item in dicData['A16']" :key="item.DCODE" :label="item.DNAME" :value="item.DCODE"> | 152 | <el-option v-for="item in dicData['A16']" :key="item.DCODE" :label="item.DNAME" :value="item.DCODE"> |
149 | </el-option> | 153 | </el-option> |
150 | </el-select> | 154 | </el-select> |
... | @@ -157,7 +161,7 @@ | ... | @@ -157,7 +161,7 @@ |
157 | 房屋用途1: <br /> | 161 | 房屋用途1: <br /> |
158 | <p class="label-detail">(FWYT1)</p> | 162 | <p class="label-detail">(FWYT1)</p> |
159 | </span> | 163 | </span> |
160 | <el-select :disabled="$store.state.business.Edit" v-model="ruleForm.fwyt1"> | 164 | <el-select :disabled="$store.state.business.Edit" v-model="ruleForm[index].fwyt1"> |
161 | <el-option v-for="item in dicData['A17']" :key="item.DCODE" :label="item.DNAME" :value="item.DCODE"> | 165 | <el-option v-for="item in dicData['A17']" :key="item.DCODE" :label="item.DNAME" :value="item.DCODE"> |
162 | </el-option> | 166 | </el-option> |
163 | </el-select> | 167 | </el-select> |
... | @@ -170,7 +174,7 @@ | ... | @@ -170,7 +174,7 @@ |
170 | 房屋用途2: <br /> | 174 | 房屋用途2: <br /> |
171 | <p class="label-detail">(FWYT2)</p> | 175 | <p class="label-detail">(FWYT2)</p> |
172 | </span> | 176 | </span> |
173 | <el-select :disabled="$store.state.business.Edit" v-model="ruleForm.fwyt2"> | 177 | <el-select :disabled="$store.state.business.Edit" v-model="ruleForm[index].fwyt2"> |
174 | <el-option v-for="item in dicData['A17']" :key="item.DCODE" :label="item.DNAME" :value="item.DCODE"> | 178 | <el-option v-for="item in dicData['A17']" :key="item.DCODE" :label="item.DNAME" :value="item.DCODE"> |
175 | </el-option> | 179 | </el-option> |
176 | </el-select> | 180 | </el-select> |
... | @@ -185,7 +189,7 @@ | ... | @@ -185,7 +189,7 @@ |
185 | 房屋用途3: <br /> | 189 | 房屋用途3: <br /> |
186 | <p class="label-detail">(FWYT3)</p> | 190 | <p class="label-detail">(FWYT3)</p> |
187 | </span> | 191 | </span> |
188 | <el-select :disabled="$store.state.business.Edit" v-model="ruleForm.fwyt3"> | 192 | <el-select :disabled="$store.state.business.Edit" v-model="ruleForm[index].fwyt3"> |
189 | <el-option v-for="item in dicData['A17']" :key="item.DCODE" :label="item.DNAME" :value="item.DCODE"> | 193 | <el-option v-for="item in dicData['A17']" :key="item.DCODE" :label="item.DNAME" :value="item.DCODE"> |
190 | </el-option> | 194 | </el-option> |
191 | </el-select> | 195 | </el-select> |
... | @@ -200,7 +204,7 @@ | ... | @@ -200,7 +204,7 @@ |
200 | </span> | 204 | </span> |
201 | <el-input-number controls-position="right" :disabled="$store.state.business.Edit" | 205 | <el-input-number controls-position="right" :disabled="$store.state.business.Edit" |
202 | v-only-number="{ max: 999999999999999, min: 0, precision: 2 }" title="" type="number" | 206 | v-only-number="{ max: 999999999999999, min: 0, precision: 2 }" title="" type="number" |
203 | v-model.number="ruleForm.ycjzmj"></el-input-number> | 207 | v-model.number="ruleForm[index].ycjzmj"></el-input-number> |
204 | </el-form-item> | 208 | </el-form-item> |
205 | </el-col> | 209 | </el-col> |
206 | 210 | ||
... | @@ -212,7 +216,7 @@ | ... | @@ -212,7 +216,7 @@ |
212 | </span> | 216 | </span> |
213 | <el-input-number controls-position="right" :disabled="$store.state.business.Edit" | 217 | <el-input-number controls-position="right" :disabled="$store.state.business.Edit" |
214 | v-only-number="{ max: 999999999999999, min: 0, precision: 2 }" title="" type="number" | 218 | v-only-number="{ max: 999999999999999, min: 0, precision: 2 }" title="" type="number" |
215 | v-model.number="ruleForm.yctnjzmj"></el-input-number> | 219 | v-model.number="ruleForm[index].yctnjzmj"></el-input-number> |
216 | </el-form-item> | 220 | </el-form-item> |
217 | </el-col> | 221 | </el-col> |
218 | </el-row> | 222 | </el-row> |
... | @@ -226,7 +230,7 @@ | ... | @@ -226,7 +230,7 @@ |
226 | </span> | 230 | </span> |
227 | <el-input :disabled="$store.state.business.Edit" | 231 | <el-input :disabled="$store.state.business.Edit" |
228 | v-only-number="{ max: 999999999999999, min: 0, precision: 2 }" title="" type="number" | 232 | v-only-number="{ max: 999999999999999, min: 0, precision: 2 }" title="" type="number" |
229 | v-model.number="ruleForm.ycftjzmj"></el-input> | 233 | v-model.number="ruleForm[index].ycftjzmj"></el-input> |
230 | </el-form-item> | 234 | </el-form-item> |
231 | </el-col> | 235 | </el-col> |
232 | 236 | ||
... | @@ -238,7 +242,7 @@ | ... | @@ -238,7 +242,7 @@ |
238 | </span> | 242 | </span> |
239 | <el-input controls-position="right" :disabled="$store.state.business.Edit" | 243 | <el-input controls-position="right" :disabled="$store.state.business.Edit" |
240 | v-only-number="{ max: 999999999999999, min: 0, precision: 2 }" title="" type="number" | 244 | v-only-number="{ max: 999999999999999, min: 0, precision: 2 }" title="" type="number" |
241 | v-model.number="ruleForm.ycdxbfjzmj"></el-input> | 245 | v-model.number="ruleForm[index].ycdxbfjzmj"></el-input> |
242 | </el-form-item> | 246 | </el-form-item> |
243 | </el-col> | 247 | </el-col> |
244 | 248 | ||
... | @@ -250,7 +254,7 @@ | ... | @@ -250,7 +254,7 @@ |
250 | </span> | 254 | </span> |
251 | <el-input-number controls-position="right" :disabled="$store.state.business.Edit" | 255 | <el-input-number controls-position="right" :disabled="$store.state.business.Edit" |
252 | v-only-number="{ max: 999999999999999, min: 0, precision: 2 }" title="" type="number" | 256 | v-only-number="{ max: 999999999999999, min: 0, precision: 2 }" title="" type="number" |
253 | v-model.number="ruleForm.ycqtjzmj"></el-input-number> | 257 | v-model.number="ruleForm[index].ycqtjzmj"></el-input-number> |
254 | </el-form-item> | 258 | </el-form-item> |
255 | </el-col> | 259 | </el-col> |
256 | </el-row> | 260 | </el-row> |
... | @@ -263,7 +267,7 @@ | ... | @@ -263,7 +267,7 @@ |
263 | 预测分摊系数: <br /> | 267 | 预测分摊系数: <br /> |
264 | <p class="label-detail">(YCFTXS)</p> | 268 | <p class="label-detail">(YCFTXS)</p> |
265 | </span> | 269 | </span> |
266 | <el-input :disabled="$store.state.business.Edit" v-model.number="ruleForm.ycftxs" title="" type="number" | 270 | <el-input :disabled="$store.state.business.Edit" v-model.number="ruleForm[index].ycftxs" title="" type="number" |
267 | v-only-number="{ max: 999999999999999, min: 0, precision: 6 }"></el-input> | 271 | v-only-number="{ max: 999999999999999, min: 0, precision: 6 }"></el-input> |
268 | </el-form-item> | 272 | </el-form-item> |
269 | </el-col> | 273 | </el-col> |
... | @@ -276,7 +280,7 @@ | ... | @@ -276,7 +280,7 @@ |
276 | </span> | 280 | </span> |
277 | <el-input :disabled="$store.state.business.Edit" | 281 | <el-input :disabled="$store.state.business.Edit" |
278 | v-only-number="{ max: 999999999999999, min: 0, precision: 3 }" title="" type="number" | 282 | v-only-number="{ max: 999999999999999, min: 0, precision: 3 }" title="" type="number" |
279 | v-model.number="ruleForm.scjzmj"></el-input> | 283 | v-model.number="ruleForm[index].scjzmj"></el-input> |
280 | </el-form-item> | 284 | </el-form-item> |
281 | </el-col> | 285 | </el-col> |
282 | 286 | ||
... | @@ -288,7 +292,7 @@ | ... | @@ -288,7 +292,7 @@ |
288 | </span> | 292 | </span> |
289 | <el-input :disabled="$store.state.business.Edit" | 293 | <el-input :disabled="$store.state.business.Edit" |
290 | v-only-number="{ max: 999999999999999, min: 0, precision: 3 }" title="" type="number" | 294 | v-only-number="{ max: 999999999999999, min: 0, precision: 3 }" title="" type="number" |
291 | v-model.number="ruleForm.sctnjzmj"></el-input> | 295 | v-model.number="ruleForm[index].sctnjzmj"></el-input> |
292 | </el-form-item> | 296 | </el-form-item> |
293 | </el-col> | 297 | </el-col> |
294 | </el-row> | 298 | </el-row> |
... | @@ -303,7 +307,7 @@ | ... | @@ -303,7 +307,7 @@ |
303 | </span> | 307 | </span> |
304 | <el-input :disabled="$store.state.business.Edit" | 308 | <el-input :disabled="$store.state.business.Edit" |
305 | v-only-number="{ max: 999999999999999, min: 0, precision: 3 }" title="" type="number" | 309 | v-only-number="{ max: 999999999999999, min: 0, precision: 3 }" title="" type="number" |
306 | v-model.number="ruleForm.scftjzmj"></el-input> | 310 | v-model.number="ruleForm[index].scftjzmj"></el-input> |
307 | </el-form-item> | 311 | </el-form-item> |
308 | </el-col> | 312 | </el-col> |
309 | 313 | ||
... | @@ -315,7 +319,7 @@ | ... | @@ -315,7 +319,7 @@ |
315 | </span> | 319 | </span> |
316 | <el-input :disabled="$store.state.business.Edit" | 320 | <el-input :disabled="$store.state.business.Edit" |
317 | v-only-number="{ max: 999999999999999, min: 0, precision: 3 }" title="" type="number" | 321 | v-only-number="{ max: 999999999999999, min: 0, precision: 3 }" title="" type="number" |
318 | v-model.number="ruleForm.scdxbfjzmj"></el-input> | 322 | v-model.number="ruleForm[index].scdxbfjzmj"></el-input> |
319 | </el-form-item> | 323 | </el-form-item> |
320 | </el-col> | 324 | </el-col> |
321 | 325 | ||
... | @@ -327,7 +331,7 @@ | ... | @@ -327,7 +331,7 @@ |
327 | </span> | 331 | </span> |
328 | <el-input :disabled="$store.state.business.Edit" | 332 | <el-input :disabled="$store.state.business.Edit" |
329 | v-only-number="{ max: 999999999999999, min: 0, precision: 3 }" title="" type="number" | 333 | v-only-number="{ max: 999999999999999, min: 0, precision: 3 }" title="" type="number" |
330 | v-model.number="ruleForm.scqtjzmj"></el-input> | 334 | v-model.number="ruleForm[index].scqtjzmj"></el-input> |
331 | </el-form-item> | 335 | </el-form-item> |
332 | </el-col> | 336 | </el-col> |
333 | </el-row> | 337 | </el-row> |
... | @@ -340,7 +344,7 @@ | ... | @@ -340,7 +344,7 @@ |
340 | 实测分摊系数: <br /> | 344 | 实测分摊系数: <br /> |
341 | <p class="label-detail">(SCFTXS)</p> | 345 | <p class="label-detail">(SCFTXS)</p> |
342 | </span> | 346 | </span> |
343 | <el-input :disabled="$store.state.business.Edit" v-model.number="ruleForm.scftxs" title="" type="number" | 347 | <el-input :disabled="$store.state.business.Edit" v-model.number="ruleForm[index].scftxs" title="" type="number" |
344 | v-only-number="{ max: 999999999999999, min: 0, precision: 6 }"></el-input> | 348 | v-only-number="{ max: 999999999999999, min: 0, precision: 6 }"></el-input> |
345 | </el-form-item> | 349 | </el-form-item> |
346 | </el-col> | 350 | </el-col> |
... | @@ -353,7 +357,7 @@ | ... | @@ -353,7 +357,7 @@ |
353 | </span> | 357 | </span> |
354 | <el-input :disabled="$store.state.business.Edit" | 358 | <el-input :disabled="$store.state.business.Edit" |
355 | v-only-number="{ max: 999999999999999, min: 0, precision: 3 }" title="" type="number" | 359 | v-only-number="{ max: 999999999999999, min: 0, precision: 3 }" title="" type="number" |
356 | v-model.number="ruleForm.gytdmj"></el-input> | 360 | v-model.number="ruleForm[index].gytdmj"></el-input> |
357 | </el-form-item> | 361 | </el-form-item> |
358 | </el-col> | 362 | </el-col> |
359 | 363 | ||
... | @@ -365,7 +369,7 @@ | ... | @@ -365,7 +369,7 @@ |
365 | </span> | 369 | </span> |
366 | <el-input :disabled="$store.state.business.Edit" | 370 | <el-input :disabled="$store.state.business.Edit" |
367 | v-only-number="{ max: 999999999999999, min: 0, precision: 3 }" title="" type="number" | 371 | v-only-number="{ max: 999999999999999, min: 0, precision: 3 }" title="" type="number" |
368 | v-model.number="ruleForm.fttdmj"></el-input> | 372 | v-model.number="ruleForm[index].fttdmj"></el-input> |
369 | </el-form-item> | 373 | </el-form-item> |
370 | </el-col> | 374 | </el-col> |
371 | </el-row> | 375 | </el-row> |
... | @@ -378,7 +382,7 @@ | ... | @@ -378,7 +382,7 @@ |
378 | 独用土地面积: <br /> | 382 | 独用土地面积: <br /> |
379 | <p class="label-detail">(DYTDMJ)</p> | 383 | <p class="label-detail">(DYTDMJ)</p> |
380 | </span> | 384 | </span> |
381 | <el-input :disabled="$store.state.business.Edit" v-model.number="ruleForm.dytdmj" title="" type="number" | 385 | <el-input :disabled="$store.state.business.Edit" v-model.number="ruleForm[index].dytdmj" title="" type="number" |
382 | v-only-number="{ max: 999999999999999, min: 0, precision: 3 }"></el-input> | 386 | v-only-number="{ max: 999999999999999, min: 0, precision: 3 }"></el-input> |
383 | </el-form-item> | 387 | </el-form-item> |
384 | </el-col> | 388 | </el-col> |
... | @@ -389,7 +393,7 @@ | ... | @@ -389,7 +393,7 @@ |
389 | 房屋类型: <br /> | 393 | 房屋类型: <br /> |
390 | <p class="label-detail">(FWLX)</p> | 394 | <p class="label-detail">(FWLX)</p> |
391 | </span> | 395 | </span> |
392 | <el-select :disabled="$store.state.business.Edit" v-model="ruleForm.fwlx"> | 396 | <el-select :disabled="$store.state.business.Edit" v-model="ruleForm[index].fwlx"> |
393 | <el-option v-for="item in dicData['A18']" :key="item.DCODE" :label="item.DNAME" :value="item.DCODE"> | 397 | <el-option v-for="item in dicData['A18']" :key="item.DCODE" :label="item.DNAME" :value="item.DCODE"> |
394 | </el-option> | 398 | </el-option> |
395 | </el-select> | 399 | </el-select> |
... | @@ -402,7 +406,7 @@ | ... | @@ -402,7 +406,7 @@ |
402 | 房屋性质: <br /> | 406 | 房屋性质: <br /> |
403 | <p class="label-detail">(FWXZ)</p> | 407 | <p class="label-detail">(FWXZ)</p> |
404 | </span> | 408 | </span> |
405 | <el-select :disabled="$store.state.business.Edit" v-model="ruleForm.fwxz"> | 409 | <el-select :disabled="$store.state.business.Edit" v-model="ruleForm[index].fwxz"> |
406 | <el-option v-for="item in dicData['A19']" :key="item.DCODE" :label="item.DNAME" :value="item.DCODE"> | 410 | <el-option v-for="item in dicData['A19']" :key="item.DCODE" :label="item.DNAME" :value="item.DCODE"> |
407 | </el-option> | 411 | </el-option> |
408 | </el-select> | 412 | </el-select> |
... | @@ -418,7 +422,7 @@ | ... | @@ -418,7 +422,7 @@ |
418 | 房产分户图: <br /> | 422 | 房产分户图: <br /> |
419 | <p class="label-detail">(FCFHT)</p> | 423 | <p class="label-detail">(FCFHT)</p> |
420 | </span> | 424 | </span> |
421 | <el-input :disabled="$store.state.business.Edit" v-model="ruleForm.fcfht"></el-input> | 425 | <el-input :disabled="$store.state.business.Edit" v-model="ruleForm[index].fcfht"></el-input> |
422 | </el-form-item> | 426 | </el-form-item> |
423 | </el-col> | 427 | </el-col> |
424 | 428 | ||
... | @@ -428,7 +432,7 @@ | ... | @@ -428,7 +432,7 @@ |
428 | 状态: <br /> | 432 | 状态: <br /> |
429 | <p class="label-detail">(ZT)</p> | 433 | <p class="label-detail">(ZT)</p> |
430 | </span> | 434 | </span> |
431 | <el-select :disabled="$store.state.business.Edit" v-model="ruleForm.zt"> | 435 | <el-select :disabled="$store.state.business.Edit" v-model="ruleForm[index].zt"> |
432 | <el-option v-for="item in dicData['A11']" :key="item.DCODE" :label="item.DNAME" :value="item.DCODE"> | 436 | <el-option v-for="item in dicData['A11']" :key="item.DCODE" :label="item.DNAME" :value="item.DCODE"> |
433 | </el-option> | 437 | </el-option> |
434 | </el-select> | 438 | </el-select> |
... | @@ -441,33 +445,34 @@ | ... | @@ -441,33 +445,34 @@ |
441 | 区县代码: <br /> | 445 | 区县代码: <br /> |
442 | <p class="label-detail">(QXDM)</p> | 446 | <p class="label-detail">(QXDM)</p> |
443 | </span> | 447 | </span> |
444 | <el-input :disabled="$store.state.business.Edit" v-model="ruleForm.qxdm"></el-input> | 448 | <el-input :disabled="$store.state.business.Edit" v-model="ruleForm[index].qxdm"></el-input> |
445 | </el-form-item> | 449 | </el-form-item> |
446 | </el-col> | 450 | </el-col> |
447 | </el-row> | 451 | </el-row> |
452 | </div> | ||
453 | </div> | ||
448 | </el-form> | 454 | </el-form> |
449 | <message-tips ref="msg" /> | ||
450 | </div> | 455 | </div> |
451 | </template> | 456 | </template> |
452 | <script> | 457 | <script> |
453 | // 户信息 | 458 | // 户信息 |
454 | import kttFwH from "@/api/kttFwH"; | 459 | import kttFwH from "@/api/kttFwH"; |
455 | import ruleMixin from "@/mixins/ruleMixin.js"; | 460 | import ruleMixin from "@/mixins/ruleMixin.js"; |
456 | export default { | 461 | export default { |
457 | mixins: [ruleMixin], | 462 | mixins: [ruleMixin], |
458 | props: { | 463 | props: { |
459 | bsmSjsb: { | 464 | bsmSjsb: { |
460 | type: String, | 465 | type: String, |
461 | default: "", | 466 | default: "" |
462 | }, | 467 | }, |
463 | bsmYwsjb: { | 468 | bsmYwsjb: { |
464 | type: String, | 469 | type: String, |
465 | default: "", | 470 | default: "" |
466 | }, | 471 | }, |
467 | }, | 472 | }, |
468 | data() { | 473 | data () { |
469 | return { | 474 | return { |
470 | ruleForm: { | 475 | ruleForm: [{ |
471 | YSDM: "", | 476 | YSDM: "", |
472 | BDCDYH: "", | 477 | BDCDYH: "", |
473 | LJZH: "", | 478 | LJZH: "", |
... | @@ -503,12 +508,12 @@ export default { | ... | @@ -503,12 +508,12 @@ export default { |
503 | FWXZ: "", | 508 | FWXZ: "", |
504 | FCFHT: "", | 509 | FCFHT: "", |
505 | ZT: "", | 510 | ZT: "", |
506 | QXDM: "", | 511 | QXDM: "" |
507 | }, | 512 | }] |
508 | }; | 513 | } |
509 | }, | 514 | }, |
510 | methods: { | 515 | methods: { |
511 | async featchData() { | 516 | async featchData () { |
512 | try { | 517 | try { |
513 | let { result: res } = await kttFwH.getKttFwHById(this.bsmSjsb); | 518 | let { result: res } = await kttFwH.getKttFwHById(this.bsmSjsb); |
514 | this.ruleForm = res; | 519 | this.ruleForm = res; |
... | @@ -517,7 +522,7 @@ export default { | ... | @@ -517,7 +522,7 @@ export default { |
517 | this.$refs.msg.messageShow(); | 522 | this.$refs.msg.messageShow(); |
518 | } | 523 | } |
519 | }, | 524 | }, |
520 | handleUpdateForm() { | 525 | handleUpdateForm () { |
521 | return new Promise(async (resolve, reject) => { | 526 | return new Promise(async (resolve, reject) => { |
522 | try { | 527 | try { |
523 | let res = await kttFwH.updateKttFwH(this.ruleForm); | 528 | let res = await kttFwH.updateKttFwH(this.ruleForm); |
... | @@ -529,16 +534,16 @@ export default { | ... | @@ -529,16 +534,16 @@ export default { |
529 | }); | 534 | }); |
530 | }, | 535 | }, |
531 | }, | 536 | }, |
532 | }; | 537 | }; |
533 | </script> | 538 | </script> |
534 | <style scoped lang="scss"> | 539 | <style scoped lang="scss"> |
535 | @import "./css/itemForm.scss"; | 540 | @import "./css/itemForm.scss"; |
536 | 541 | ||
537 | .households { | 542 | .households { |
538 | .item-label { | 543 | .item-label { |
539 | flex: 0 0 120px; | 544 | flex: 0 0 120px; |
540 | } | 545 | } |
541 | } | 546 | } |
542 | </style> | 547 | </style> |
543 | 548 | ||
544 | 549 | ... | ... |
1 | <template> | 1 | <template> |
2 | <div class="logicBuilding itemForm"> | 2 | <div class="logicBuilding itemForm"> |
3 | <el-form :model="ruleForm" :rules="rules" ref="formList" label-width="100px" :key="key"> | 3 | <el-form :model="ruleForm" :rules="rules" ref="formList" label-width="100px" :key="key"> |
4 | <div v-for="(item, index) in ruleForm" :key="index" class="obligee-item"> | ||
5 | <p class="obligee-item-name">逻辑幢信息{{ index + 1 }}</p> | ||
6 | <div class="obligee-item-list"> | ||
4 | <el-row> | 7 | <el-row> |
5 | <el-col :span="8"> | 8 | <el-col :span="8"> |
6 | <el-form-item prop="YSDM"> | 9 | <el-form-item prop="YSDM"> |
... | @@ -8,7 +11,7 @@ | ... | @@ -8,7 +11,7 @@ |
8 | 要素代码: <br /> | 11 | 要素代码: <br /> |
9 | <p class="label-detail">(YSDM)</p> | 12 | <p class="label-detail">(YSDM)</p> |
10 | </span> | 13 | </span> |
11 | <el-input :disabled="$store.state.business.Edit" v-model="ruleForm.ysdm"></el-input> | 14 | <el-input :disabled="$store.state.business.Edit" v-model="ruleForm[index].ysdm"></el-input> |
12 | </el-form-item> | 15 | </el-form-item> |
13 | </el-col> | 16 | </el-col> |
14 | 17 | ||
... | @@ -18,7 +21,7 @@ | ... | @@ -18,7 +21,7 @@ |
18 | 逻辑幢号: <br /> | 21 | 逻辑幢号: <br /> |
19 | <p class="label-detail">(LJZH)</p> | 22 | <p class="label-detail">(LJZH)</p> |
20 | </span> | 23 | </span> |
21 | <el-input :disabled="$store.state.business.Edit" v-model="ruleForm.ljzh"></el-input> | 24 | <el-input :disabled="$store.state.business.Edit" v-model="ruleForm[index].ljzh"></el-input> |
22 | </el-form-item> | 25 | </el-form-item> |
23 | </el-col> | 26 | </el-col> |
24 | 27 | ||
... | @@ -28,7 +31,7 @@ | ... | @@ -28,7 +31,7 @@ |
28 | 自然幢号: <br /> | 31 | 自然幢号: <br /> |
29 | <p class="label-detail">(ZRZH)</p> | 32 | <p class="label-detail">(ZRZH)</p> |
30 | </span> | 33 | </span> |
31 | <el-input :disabled="$store.state.business.Edit" v-model="ruleForm.zrzh"></el-input> | 34 | <el-input :disabled="$store.state.business.Edit" v-model="ruleForm[index].zrzh"></el-input> |
32 | </el-form-item> | 35 | </el-form-item> |
33 | </el-col> | 36 | </el-col> |
34 | </el-row> | 37 | </el-row> |
... | @@ -40,7 +43,7 @@ | ... | @@ -40,7 +43,7 @@ |
40 | 门牌号: <br /> | 43 | 门牌号: <br /> |
41 | <p class="label-detail">(MPH)</p> | 44 | <p class="label-detail">(MPH)</p> |
42 | </span> | 45 | </span> |
43 | <el-input :disabled="$store.state.business.Edit" v-model="ruleForm.mph"></el-input> | 46 | <el-input :disabled="$store.state.business.Edit" v-model="ruleForm[index].mph"></el-input> |
44 | </el-form-item> | 47 | </el-form-item> |
45 | </el-col> | 48 | </el-col> |
46 | 49 | ||
... | @@ -52,7 +55,7 @@ | ... | @@ -52,7 +55,7 @@ |
52 | </span> | 55 | </span> |
53 | <el-input :disabled="$store.state.business.Edit" | 56 | <el-input :disabled="$store.state.business.Edit" |
54 | v-only-number="{ max: 999999999999999, min: 0, precision: 3 }" title="" type="number" | 57 | v-only-number="{ max: 999999999999999, min: 0, precision: 3 }" title="" type="number" |
55 | v-model.number="ruleForm.ycjzmj"></el-input> | 58 | v-model.number="ruleForm[index].ycjzmj"></el-input> |
56 | </el-form-item> | 59 | </el-form-item> |
57 | </el-col> | 60 | </el-col> |
58 | 61 | ||
... | @@ -64,7 +67,7 @@ | ... | @@ -64,7 +67,7 @@ |
64 | </span> | 67 | </span> |
65 | <el-input :disabled="$store.state.business.Edit" | 68 | <el-input :disabled="$store.state.business.Edit" |
66 | v-only-number="{ max: 999999999999999, min: 0, precision: 3 }" title="" type="number" | 69 | v-only-number="{ max: 999999999999999, min: 0, precision: 3 }" title="" type="number" |
67 | v-model.number="ruleForm.ycdxmj"></el-input> | 70 | v-model.number="ruleForm[index].ycdxmj"></el-input> |
68 | </el-form-item> | 71 | </el-form-item> |
69 | </el-col> | 72 | </el-col> |
70 | </el-row> | 73 | </el-row> |
... | @@ -78,7 +81,7 @@ | ... | @@ -78,7 +81,7 @@ |
78 | </span> | 81 | </span> |
79 | <el-input :disabled="$store.state.business.Edit" | 82 | <el-input :disabled="$store.state.business.Edit" |
80 | v-only-number="{ max: 999999999999999, min: 0, precision: 3 }" title="" type="number" | 83 | v-only-number="{ max: 999999999999999, min: 0, precision: 3 }" title="" type="number" |
81 | v-model.number="ruleForm.ycqtmj"></el-input> | 84 | v-model.number="ruleForm[index].ycqtmj"></el-input> |
82 | </el-form-item> | 85 | </el-form-item> |
83 | </el-col> | 86 | </el-col> |
84 | 87 | ||
... | @@ -90,7 +93,7 @@ | ... | @@ -90,7 +93,7 @@ |
90 | </span> | 93 | </span> |
91 | <el-input :disabled="$store.state.business.Edit" | 94 | <el-input :disabled="$store.state.business.Edit" |
92 | v-only-number="{ max: 999999999999999, min: 0, precision: 3 }" title="" type="number" | 95 | v-only-number="{ max: 999999999999999, min: 0, precision: 3 }" title="" type="number" |
93 | v-model.number="ruleForm.scjzmj"></el-input> | 96 | v-model.number="ruleForm[index].scjzmj"></el-input> |
94 | </el-form-item> | 97 | </el-form-item> |
95 | </el-col> | 98 | </el-col> |
96 | 99 | ||
... | @@ -102,7 +105,7 @@ | ... | @@ -102,7 +105,7 @@ |
102 | </span> | 105 | </span> |
103 | <el-input :disabled="$store.state.business.Edit" | 106 | <el-input :disabled="$store.state.business.Edit" |
104 | v-only-number="{ max: 999999999999999, min: 0, precision: 3 }" title="" type="number" | 107 | v-only-number="{ max: 999999999999999, min: 0, precision: 3 }" title="" type="number" |
105 | v-model.number="ruleForm.scdxmj"></el-input> | 108 | v-model.number="ruleForm[index].scdxmj"></el-input> |
106 | </el-form-item> | 109 | </el-form-item> |
107 | </el-col> | 110 | </el-col> |
108 | </el-row> | 111 | </el-row> |
... | @@ -116,7 +119,7 @@ | ... | @@ -116,7 +119,7 @@ |
116 | </span> | 119 | </span> |
117 | <el-input :disabled="$store.state.business.Edit" | 120 | <el-input :disabled="$store.state.business.Edit" |
118 | v-only-number="{ max: 999999999999999, min: 0, precision: 3 }" title="" type="number" | 121 | v-only-number="{ max: 999999999999999, min: 0, precision: 3 }" title="" type="number" |
119 | v-model.number="ruleForm.scqtmj"></el-input> | 122 | v-model.number="ruleForm[index].scqtmj"></el-input> |
120 | </el-form-item> | 123 | </el-form-item> |
121 | </el-col> | 124 | </el-col> |
122 | 125 | ||
... | @@ -126,7 +129,7 @@ | ... | @@ -126,7 +129,7 @@ |
126 | 竣工日期: <br /> | 129 | 竣工日期: <br /> |
127 | <p class="label-detail">(JGRQ)</p> | 130 | <p class="label-detail">(JGRQ)</p> |
128 | </span> | 131 | </span> |
129 | <el-date-picker :disabled="$store.state.business.Edit" type="datetime" clearable v-model="ruleForm.jgrq" | 132 | <el-date-picker :disabled="$store.state.business.Edit" type="datetime" clearable v-model="ruleForm[index].jgrq" |
130 | value-format="yyyy-MM-dd HH:mm:ss"></el-date-picker> | 133 | value-format="yyyy-MM-dd HH:mm:ss"></el-date-picker> |
131 | </el-form-item> | 134 | </el-form-item> |
132 | </el-col> | 135 | </el-col> |
... | @@ -137,7 +140,7 @@ | ... | @@ -137,7 +140,7 @@ |
137 | 房屋结构1: <br /> | 140 | 房屋结构1: <br /> |
138 | <p class="label-detail">(FWJG1)</p> | 141 | <p class="label-detail">(FWJG1)</p> |
139 | </span> | 142 | </span> |
140 | <el-input :disabled="$store.state.business.Edit" v-model="ruleForm.fwjg1"></el-input> | 143 | <el-input :disabled="$store.state.business.Edit" v-model="ruleForm[index].fwjg1"></el-input> |
141 | </el-form-item> | 144 | </el-form-item> |
142 | </el-col> | 145 | </el-col> |
143 | </el-row> | 146 | </el-row> |
... | @@ -149,7 +152,7 @@ | ... | @@ -149,7 +152,7 @@ |
149 | 房屋结构2: <br /> | 152 | 房屋结构2: <br /> |
150 | <p class="label-detail">(FWJG2)</p> | 153 | <p class="label-detail">(FWJG2)</p> |
151 | </span> | 154 | </span> |
152 | <el-input :disabled="$store.state.business.Edit" v-model="ruleForm.fwjg2"></el-input> | 155 | <el-input :disabled="$store.state.business.Edit" v-model="ruleForm[index].fwjg2"></el-input> |
153 | </el-form-item> | 156 | </el-form-item> |
154 | </el-col> | 157 | </el-col> |
155 | 158 | ||
... | @@ -159,7 +162,7 @@ | ... | @@ -159,7 +162,7 @@ |
159 | 房屋结构3: <br /> | 162 | 房屋结构3: <br /> |
160 | <p class="label-detail">(FWJG3)</p> | 163 | <p class="label-detail">(FWJG3)</p> |
161 | </span> | 164 | </span> |
162 | <el-input :disabled="$store.state.business.Edit" v-model="ruleForm.fwjg3"></el-input> | 165 | <el-input :disabled="$store.state.business.Edit" v-model="ruleForm[index].fwjg3"></el-input> |
163 | </el-form-item> | 166 | </el-form-item> |
164 | </el-col> | 167 | </el-col> |
165 | 168 | ||
... | @@ -169,7 +172,7 @@ | ... | @@ -169,7 +172,7 @@ |
169 | 建筑物状态: <br /> | 172 | 建筑物状态: <br /> |
170 | <p class="label-detail">(JZWZT)</p> | 173 | <p class="label-detail">(JZWZT)</p> |
171 | </span> | 174 | </span> |
172 | <el-input :disabled="$store.state.business.Edit" v-model="ruleForm.jzwzt"></el-input> | 175 | <el-input :disabled="$store.state.business.Edit" v-model="ruleForm[index].jzwzt"></el-input> |
173 | </el-form-item> | 176 | </el-form-item> |
174 | </el-col> | 177 | </el-col> |
175 | </el-row> | 178 | </el-row> |
... | @@ -181,7 +184,7 @@ | ... | @@ -181,7 +184,7 @@ |
181 | 房屋用途1: <br /> | 184 | 房屋用途1: <br /> |
182 | <p class="label-detail">(FWYT)</p> | 185 | <p class="label-detail">(FWYT)</p> |
183 | </span> | 186 | </span> |
184 | <el-input :disabled="$store.state.business.Edit" v-model="ruleForm.fwyt"></el-input> | 187 | <el-input :disabled="$store.state.business.Edit" v-model="ruleForm[index].fwyt"></el-input> |
185 | </el-form-item> | 188 | </el-form-item> |
186 | </el-col> | 189 | </el-col> |
187 | 190 | ||
... | @@ -191,7 +194,7 @@ | ... | @@ -191,7 +194,7 @@ |
191 | 房屋用途2: <br /> | 194 | 房屋用途2: <br /> |
192 | <p class="label-detail">(FWYT2)</p> | 195 | <p class="label-detail">(FWYT2)</p> |
193 | </span> | 196 | </span> |
194 | <el-input :disabled="$store.state.business.Edit" v-model="ruleForm.fwyt2"></el-input> | 197 | <el-input :disabled="$store.state.business.Edit" v-model="ruleForm[index].fwyt2"></el-input> |
195 | </el-form-item> | 198 | </el-form-item> |
196 | </el-col> | 199 | </el-col> |
197 | 200 | ||
... | @@ -201,7 +204,7 @@ | ... | @@ -201,7 +204,7 @@ |
201 | 房屋用途3: <br /> | 204 | 房屋用途3: <br /> |
202 | <p class="label-detail">(FWYT3)</p> | 205 | <p class="label-detail">(FWYT3)</p> |
203 | </span> | 206 | </span> |
204 | <el-input :disabled="$store.state.business.Edit" v-model="ruleForm.fwyt3"></el-input> | 207 | <el-input :disabled="$store.state.business.Edit" v-model="ruleForm[index].fwyt3"></el-input> |
205 | </el-form-item> | 208 | </el-form-item> |
206 | </el-col> | 209 | </el-col> |
207 | </el-row> | 210 | </el-row> |
... | @@ -214,7 +217,7 @@ | ... | @@ -214,7 +217,7 @@ |
214 | <p class="label-detail">(ZCS)</p> | 217 | <p class="label-detail">(ZCS)</p> |
215 | </span> | 218 | </span> |
216 | <el-input :disabled="$store.state.business.Edit" v-only-number="{ max: 9999, min: 0, precision: 0 }" | 219 | <el-input :disabled="$store.state.business.Edit" v-only-number="{ max: 9999, min: 0, precision: 0 }" |
217 | title="" type="number" v-model.number="ruleForm.zcs"></el-input> | 220 | title="" type="number" v-model.number="ruleForm[index].zcs"></el-input> |
218 | </el-form-item> | 221 | </el-form-item> |
219 | </el-col> | 222 | </el-col> |
220 | 223 | ||
... | @@ -224,7 +227,7 @@ | ... | @@ -224,7 +227,7 @@ |
224 | 地上层数: <br /> | 227 | 地上层数: <br /> |
225 | <p class="label-detail">(DSCS)</p> | 228 | <p class="label-detail">(DSCS)</p> |
226 | </span> | 229 | </span> |
227 | <el-input :disabled="$store.state.business.Edit" maxlength="5" v-model="ruleForm.dscs"></el-input> | 230 | <el-input :disabled="$store.state.business.Edit" maxlength="5" v-model="ruleForm[index].dscs"></el-input> |
228 | </el-form-item> | 231 | </el-form-item> |
229 | </el-col> | 232 | </el-col> |
230 | 233 | ||
... | @@ -234,7 +237,7 @@ | ... | @@ -234,7 +237,7 @@ |
234 | 地下层数: <br /> | 237 | 地下层数: <br /> |
235 | <p class="label-detail">(DXCS)</p> | 238 | <p class="label-detail">(DXCS)</p> |
236 | </span> | 239 | </span> |
237 | <el-input :disabled="$store.state.business.Edit" maxlength="5" v-model="ruleForm.dxcs"></el-input> | 240 | <el-input :disabled="$store.state.business.Edit" maxlength="5" v-model="ruleForm[index].dxcs"></el-input> |
238 | </el-form-item> | 241 | </el-form-item> |
239 | </el-col> | 242 | </el-col> |
240 | </el-row> | 243 | </el-row> |
... | @@ -246,7 +249,7 @@ | ... | @@ -246,7 +249,7 @@ |
246 | 备注: <br /> | 249 | 备注: <br /> |
247 | <p class="label-detail">(BZ)</p> | 250 | <p class="label-detail">(BZ)</p> |
248 | </span> | 251 | </span> |
249 | <el-input :disabled="$store.state.business.Edit" v-model="ruleForm.bz"></el-input> | 252 | <el-input :disabled="$store.state.business.Edit" v-model="ruleForm[index].bz"></el-input> |
250 | </el-form-item> | 253 | </el-form-item> |
251 | </el-col> | 254 | </el-col> |
252 | 255 | ||
... | @@ -256,34 +259,36 @@ | ... | @@ -256,34 +259,36 @@ |
256 | 区县代码: <br /> | 259 | 区县代码: <br /> |
257 | <p class="label-detail">(QXDM)</p> | 260 | <p class="label-detail">(QXDM)</p> |
258 | </span> | 261 | </span> |
259 | <el-input :disabled="$store.state.business.Edit" v-model="ruleForm.qxdm"></el-input> | 262 | <el-input :disabled="$store.state.business.Edit" v-model="ruleForm[index].qxdm"></el-input> |
260 | </el-form-item> | 263 | </el-form-item> |
261 | </el-col> | 264 | </el-col> |
262 | 265 | ||
263 | </el-row> | 266 | </el-row> |
267 | </div> | ||
268 | </div> | ||
269 | |||
264 | </el-form> | 270 | </el-form> |
265 | <message-tips ref="msg" /> | ||
266 | </div> | 271 | </div> |
267 | </template> | 272 | </template> |
268 | <script> | 273 | <script> |
269 | // 逻辑幢信息 | 274 | // 逻辑幢信息 |
270 | import kttFwLjz from "@/api/kttFwLjz"; | 275 | import kttFwLjz from "@/api/kttFwLjz"; |
271 | import ruleMixin from "@/mixins/ruleMixin.js"; | 276 | import ruleMixin from "@/mixins/ruleMixin.js"; |
272 | export default { | 277 | export default { |
273 | mixins: [ruleMixin], | 278 | mixins: [ruleMixin], |
274 | props: { | 279 | props: { |
275 | bsmSjsb: { | 280 | bsmSjsb: { |
276 | type: String, | 281 | type: String, |
277 | default: "", | 282 | default: "" |
278 | }, | 283 | }, |
279 | bsmYwsjb: { | 284 | bsmYwsjb: { |
280 | type: String, | 285 | type: String, |
281 | default: "", | 286 | default: "" |
282 | }, | 287 | }, |
283 | }, | 288 | }, |
284 | data() { | 289 | data () { |
285 | return { | 290 | return { |
286 | ruleForm: { | 291 | ruleForm: [{ |
287 | YSDM: "", | 292 | YSDM: "", |
288 | LJZH: "", | 293 | LJZH: "", |
289 | ZRZH: "", | 294 | ZRZH: "", |
... | @@ -306,12 +311,12 @@ export default { | ... | @@ -306,12 +311,12 @@ export default { |
306 | DSCS: "", | 311 | DSCS: "", |
307 | DXCS: "", | 312 | DXCS: "", |
308 | BZ: "", | 313 | BZ: "", |
309 | QXDM: "", | 314 | QXDM: "" |
310 | }, | 315 | }] |
311 | }; | 316 | } |
312 | }, | 317 | }, |
313 | methods: { | 318 | methods: { |
314 | async featchData() { | 319 | async featchData () { |
315 | try { | 320 | try { |
316 | let { result: res } = await kttFwLjz.getKttFwLjzById(this.bsmSjsb); | 321 | let { result: res } = await kttFwLjz.getKttFwLjzById(this.bsmSjsb); |
317 | this.ruleForm = res; | 322 | this.ruleForm = res; |
... | @@ -320,22 +325,22 @@ export default { | ... | @@ -320,22 +325,22 @@ export default { |
320 | this.$refs.msg.messageShow(); | 325 | this.$refs.msg.messageShow(); |
321 | } | 326 | } |
322 | }, | 327 | }, |
323 | handleUpdateForm() { | 328 | handleUpdateForm () { |
324 | return new Promise(async (resolve, reject) => { | 329 | return new Promise(async (resolve, reject) => { |
325 | try { | 330 | try { |
326 | let res = await kttFwLjz.updateKttFwLjz(this.ruleForm); | 331 | let res = await kttFwLjz.updateKttFwLjz(this.ruleForm); |
327 | // this.$refs['formList'].resetFields(); | 332 | // this.$refs['formList'].resetFields(); |
328 | resolve(res.code); | 333 | resolve(res.code); |
329 | } catch (error) { | 334 | } catch (error) { |
330 | this.$refs.msg.messageShow(); | 335 | this.$refs.msg.messageShow() |
336 | } | ||
337 | }) | ||
338 | } | ||
339 | } | ||
331 | } | 340 | } |
332 | }); | ||
333 | }, | ||
334 | }, | ||
335 | }; | ||
336 | </script> | 341 | </script> |
337 | <style scoped lang="scss"> | 342 | <style scoped lang="scss"> |
338 | @import "./css/itemForm.scss"; | 343 | @import "./css/itemForm.scss"; |
339 | </style> | 344 | </style> |
340 | 345 | ||
341 | 346 | ... | ... |
... | @@ -315,10 +315,10 @@ | ... | @@ -315,10 +315,10 @@ |
315 | </div> | 315 | </div> |
316 | </template> | 316 | </template> |
317 | <script> | 317 | <script> |
318 | // 自然幢 | 318 | // 自然幢 |
319 | import kttFwZrz from "@/api/kttFwZrz"; | 319 | import kttFwZrz from "@/api/kttFwZrz"; |
320 | import ruleMixin from "@/mixins/ruleMixin.js"; | 320 | import ruleMixin from "@/mixins/ruleMixin.js"; |
321 | export default { | 321 | export default { |
322 | mixins: [ruleMixin], | 322 | mixins: [ruleMixin], |
323 | props: { | 323 | props: { |
324 | bsmSjsb: { | 324 | bsmSjsb: { |
... | @@ -387,12 +387,12 @@ export default { | ... | @@ -387,12 +387,12 @@ export default { |
387 | }); | 387 | }); |
388 | }, | 388 | }, |
389 | }, | 389 | }, |
390 | }; | 390 | }; |
391 | </script> | 391 | </script> |
392 | <style scoped lang="scss"> | 392 | <style scoped lang="scss"> |
393 | @import "./css/itemForm.scss"; | 393 | @import "./css/itemForm.scss"; |
394 | 394 | ||
395 | .naturalBuilding { | 395 | .naturalBuilding { |
396 | .naturalBuilding-item { | 396 | .naturalBuilding-item { |
397 | display: flex; | 397 | display: flex; |
398 | height: 100%; | 398 | height: 100%; |
... | @@ -409,6 +409,7 @@ export default { | ... | @@ -409,6 +409,7 @@ export default { |
409 | border: 1px solid #ccc; | 409 | border: 1px solid #ccc; |
410 | margin-right: 15px; | 410 | margin-right: 15px; |
411 | border-radius: 3px; | 411 | border-radius: 3px; |
412 | margin-left: 10px; | ||
412 | } | 413 | } |
413 | 414 | ||
414 | .naturalBuilding-list { | 415 | .naturalBuilding-list { |
... | @@ -420,7 +421,7 @@ export default { | ... | @@ -420,7 +421,7 @@ export default { |
420 | .bsm { | 421 | .bsm { |
421 | white-space: nowrap; | 422 | white-space: nowrap; |
422 | } | 423 | } |
423 | } | 424 | } |
424 | </style> | 425 | </style> |
425 | 426 | ||
426 | 427 | ... | ... |
... | @@ -139,32 +139,6 @@ export default { | ... | @@ -139,32 +139,6 @@ export default { |
139 | </script> | 139 | </script> |
140 | <style scoped lang="scss"> | 140 | <style scoped lang="scss"> |
141 | @import "./css/itemForm.scss"; | 141 | @import "./css/itemForm.scss"; |
142 | |||
143 | .obligee-item { | ||
144 | display: flex; | ||
145 | height: 100%; | ||
146 | margin-bottom: 15px; | ||
147 | margin-right: 5px; | ||
148 | |||
149 | &-name { | ||
150 | display: flex; | ||
151 | align-items: center; | ||
152 | justify-content: center; | ||
153 | width: 20px; | ||
154 | padding: 10px 20px; | ||
155 | line-height: 28px; | ||
156 | border: 1px solid #ccc; | ||
157 | border-radius: 3px; | ||
158 | } | ||
159 | |||
160 | &-list { | ||
161 | width: 100%; | ||
162 | flex: 1; | ||
163 | display: flex; | ||
164 | justify-content: center; | ||
165 | flex-direction: column; | ||
166 | } | ||
167 | } | ||
168 | </style> | 142 | </style> |
169 | 143 | ||
170 | 144 | ... | ... |
... | @@ -447,32 +447,6 @@ | ... | @@ -447,32 +447,6 @@ |
447 | </script> | 447 | </script> |
448 | <style scoped lang="scss"> | 448 | <style scoped lang="scss"> |
449 | @import "./css/itemForm.scss"; | 449 | @import "./css/itemForm.scss"; |
450 | |||
451 | .obligee-item { | ||
452 | display: flex; | ||
453 | height: 100%; | ||
454 | margin-bottom: 15px; | ||
455 | margin-right: 5px; | ||
456 | |||
457 | &-name { | ||
458 | display: flex; | ||
459 | align-items: center; | ||
460 | justify-content: center; | ||
461 | width: 20px; | ||
462 | padding: 10px 20px; | ||
463 | line-height: 28px; | ||
464 | border: 1px solid #ccc; | ||
465 | border-radius: 3px; | ||
466 | } | ||
467 | |||
468 | &-list { | ||
469 | width: 100%; | ||
470 | flex: 1; | ||
471 | display: flex; | ||
472 | justify-content: center; | ||
473 | flex-direction: column; | ||
474 | } | ||
475 | } | ||
476 | </style> | 450 | </style> |
477 | 451 | ||
478 | 452 | ... | ... |
... | @@ -129,8 +129,8 @@ | ... | @@ -129,8 +129,8 @@ |
129 | </template> | 129 | </template> |
130 | 130 | ||
131 | <script> | 131 | <script> |
132 | import axios from "axios"; | ||
133 | import Vue from 'vue' | 132 | import Vue from 'vue' |
133 | import axios from "axios"; | ||
134 | const urlHeader = Vue.prototype.BASE_API.SERVERAPI + '/rest/sjsb/DataReport/' | 134 | const urlHeader = Vue.prototype.BASE_API.SERVERAPI + '/rest/sjsb/DataReport/' |
135 | import { mapGetters } from "vuex"; | 135 | import { mapGetters } from "vuex"; |
136 | import JsonEditor from "@/components/JsonEditor.vue"; | 136 | import JsonEditor from "@/components/JsonEditor.vue"; | ... | ... |
1 | <!-- | 1 | <!-- |
2 | * @Description: log | 2 | * @Description: log |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-03-23 16:29:12 | 4 | * @LastEditTime: 2023-05-12 09:27:35 |
5 | --> | 5 | --> |
6 | <template> | 6 | <template> |
7 | <el-menu router :default-active="activeMenu" mode="horizontal"> | 7 | <el-menu router :default-active="activeMenu" mode="horizontal"> |
8 | <!-- 权限菜单 --> | 8 | <!-- 权限菜单 --> |
9 | <sidebar-item v-for="route in permission_routes.slice(4, 7)" :key="route.path" :item="route" | 9 | <sidebar-item v-for="route in permission_routes.slice(3, 6)" :key="route.path" :item="route" |
10 | :base-path="route.path" /> | 10 | :base-path="route.path" /> |
11 | <!-- 菜单全部展示 --> | 11 | <!-- 菜单全部展示 --> |
12 | <!-- <sidebar-item v-for="route in asyncRoutes" :key="route.path" :item="route" :base-path="route.path" /> --> | 12 | <!-- <sidebar-item v-for="route in asyncRoutes" :key="route.path" :item="route" :base-path="route.path" /> --> | ... | ... |
... | @@ -2,14 +2,14 @@ | ... | @@ -2,14 +2,14 @@ |
2 | * @Author: xiaomiao 1158771342@qq.com | 2 | * @Author: xiaomiao 1158771342@qq.com |
3 | * @Date: 2023-01-10 09:03:06 | 3 | * @Date: 2023-01-10 09:03:06 |
4 | * @LastEditors: Please set LastEditors | 4 | * @LastEditors: Please set LastEditors |
5 | * @LastEditTime: 2023-03-23 16:29:24 | 5 | * @LastEditTime: 2023-05-12 09:27:42 |
6 | * @FilePath: \监管系统\js-web-jianguan\src\layout\components\Sidebar\sidebarRight.vue | 6 | * @FilePath: \监管系统\js-web-jianguan\src\layout\components\Sidebar\sidebarRight.vue |
7 | * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE | 7 | * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE |
8 | --> | 8 | --> |
9 | <template> | 9 | <template> |
10 | <el-menu router :default-active="activeMenu" mode="horizontal"> | 10 | <el-menu router :default-active="activeMenu" mode="horizontal"> |
11 | <!-- 权限菜单 --> | 11 | <!-- 权限菜单 --> |
12 | <sidebar-item v-for="route in permission_routes.slice(7, 10)" :key="route.path" :item="route" | 12 | <sidebar-item v-for="route in permission_routes.slice(6, 9)" :key="route.path" :item="route" |
13 | :base-path="route.path" /> | 13 | :base-path="route.path" /> |
14 | <!-- 菜单全部展示 --> | 14 | <!-- 菜单全部展示 --> |
15 | <!-- <sidebar-item v-for="route in asyncRoutes" :key="route.path" :item="route" :base-path="route.path" /> --> | 15 | <!-- <sidebar-item v-for="route in asyncRoutes" :key="route.path" :item="route" :base-path="route.path" /> --> | ... | ... |
src/layout1/components/AppMain.vue
deleted
100644 → 0
1 | <!-- | ||
2 | * @Description: | ||
3 | * @Autor: renchao | ||
4 | * @LastEditTime: 2023-03-28 10:12:27 | ||
5 | --> | ||
6 | <template> | ||
7 | <transition name="fade-transform" mode="out-in"> | ||
8 | <router-view /> | ||
9 | </transition> | ||
10 | </template> | ||
11 | <script> | ||
12 | export default { | ||
13 | name: 'AppMain', | ||
14 | computed: { | ||
15 | key () { | ||
16 | return this.$route.path | ||
17 | } | ||
18 | } | ||
19 | } | ||
20 | </script> |
1 | <!--面包屑 --> | ||
2 | <template> | ||
3 | <el-breadcrumb class="app-breadcrumb" separator="/"> | ||
4 | <transition-group name="breadcrumb"> | ||
5 | <el-breadcrumb-item v-for="(item, index) in levelList" :key="item.path"> | ||
6 | <span class="no-redirect">当前位置></span> | ||
7 | <!-- <svg-icon v-if="item.meta.icon" :icon-class="item.meta.icon" class="breadcrumbIcon" /> --> | ||
8 | <span v-if="item.redirect === 'noRedirect' || index == levelList.length - 1" class="no-redirect">{{ | ||
9 | item.meta.title | ||
10 | }}</span> | ||
11 | <a v-else @click.prevent="handleLink(item)">{{ item.meta.title }}</a> | ||
12 | </el-breadcrumb-item> | ||
13 | </transition-group> | ||
14 | </el-breadcrumb> | ||
15 | </template> | ||
16 | |||
17 | <script> | ||
18 | import pathToRegexp from 'path-to-regexp' | ||
19 | |||
20 | export default { | ||
21 | data () { | ||
22 | return { | ||
23 | levelList: null | ||
24 | } | ||
25 | }, | ||
26 | watch: { | ||
27 | $route (route) { | ||
28 | // if you go to the redirect page, do not update the breadcrumbs | ||
29 | if (route.path.startsWith('/redirect/')) { | ||
30 | return | ||
31 | } | ||
32 | this.getBreadcrumb() | ||
33 | } | ||
34 | }, | ||
35 | created () { | ||
36 | this.getBreadcrumb() | ||
37 | }, | ||
38 | methods: { | ||
39 | getBreadcrumb () { | ||
40 | // only show routes with meta.title | ||
41 | let matched = this.$route.matched.filter(item => item.meta && item.meta.title) | ||
42 | const first = matched[0] | ||
43 | |||
44 | if (!this.isDashboard(first)) { | ||
45 | matched = matched | ||
46 | } | ||
47 | |||
48 | this.levelList = matched.filter(item => item.meta && item.meta.title && item.meta.breadcrumb !== false) | ||
49 | }, | ||
50 | isDashboard (route) { | ||
51 | const name = route && route.name | ||
52 | if (!name) { | ||
53 | return false | ||
54 | } | ||
55 | return name.trim().toLocaleLowerCase() === 'Dashboard'.toLocaleLowerCase() | ||
56 | }, | ||
57 | pathCompile (path) { | ||
58 | const { params } = this.$route | ||
59 | var toPath = pathToRegexp.compile(path) | ||
60 | return toPath(params) | ||
61 | }, | ||
62 | handleLink (item) { | ||
63 | const { redirect, path } = item | ||
64 | if (redirect) { | ||
65 | this.$router.push(redirect) | ||
66 | return | ||
67 | } | ||
68 | this.$router.push(this.pathCompile(path)) | ||
69 | } | ||
70 | } | ||
71 | } | ||
72 | </script> | ||
73 | |||
74 | <style lang="scss" scoped> | ||
75 | .app-breadcrumb.el-breadcrumb { | ||
76 | display: inline-block; | ||
77 | font-size: 14px; | ||
78 | line-height: 50px; | ||
79 | margin-left: 8px; | ||
80 | |||
81 | .no-redirect { | ||
82 | color: #ffffff; | ||
83 | cursor: text; | ||
84 | font-size: 16px; | ||
85 | } | ||
86 | |||
87 | .breadcrumbIcon { | ||
88 | color: #ffffff; | ||
89 | margin-right: 5px; | ||
90 | width: 16px; | ||
91 | height: 16px; | ||
92 | } | ||
93 | } | ||
94 | </style> |
src/layout1/components/Navbar.vue
deleted
100644 → 0
1 | <template> | ||
2 | <div class="navbar-con"> | ||
3 | <div class="navbar"> | ||
4 | <div class="logo"> | ||
5 | <img :src="require('@/image/bdclogo.png')" alt="" /> | ||
6 | <h4>{{ BASE_API.TITLE }}</h4> | ||
7 | </div> | ||
8 | <div class="right-menu"> | ||
9 | <div class="user"> | ||
10 | {{ userName }} | ||
11 | <span @click="onCancel"> | ||
12 | <i class="el-icon-switch-button"></i> | ||
13 | </span> | ||
14 | </div> | ||
15 | </div> | ||
16 | </div> | ||
17 | </div> | ||
18 | </template> | ||
19 | <script> | ||
20 | import { mapGetters } from 'vuex' | ||
21 | import Breadcrumb from './Breadcrumb' | ||
22 | import { logout } from "@/api/login.js"; | ||
23 | export default { | ||
24 | components: { | ||
25 | Breadcrumb | ||
26 | }, | ||
27 | computed: { | ||
28 | ...mapGetters(["userInfo"]), | ||
29 | userName () { | ||
30 | return this.userInfo ? this.userInfo.name : "" | ||
31 | } | ||
32 | }, | ||
33 | methods: { | ||
34 | handleDataView () { | ||
35 | const { href } = this.$router.resolve('/dataView'); | ||
36 | window.open(href, '_blank'); | ||
37 | }, | ||
38 | themeChange (val) { | ||
39 | this.$store.dispatch('app/updateTheme', val) | ||
40 | }, | ||
41 | onCancel () { | ||
42 | logout() | ||
43 | .then((res) => { | ||
44 | sessionStorage.removeItem("token"); | ||
45 | this.$store.dispatch("user/resetState"); | ||
46 | this.$store.dispatch("permission/resetRoutes"); | ||
47 | this.$router.replace({ | ||
48 | path: "/sb" | ||
49 | }) | ||
50 | }) | ||
51 | .catch((error) => { | ||
52 | // console.dir(error); | ||
53 | }) | ||
54 | } | ||
55 | } | ||
56 | } | ||
57 | </script> | ||
58 | <style lang="scss" scoped> | ||
59 | @import "~@/styles/_handle.scss"; | ||
60 | |||
61 | .navbar-con { | ||
62 | position: relative; | ||
63 | |||
64 | .logo { | ||
65 | color: #fff; | ||
66 | font-size: 26px; | ||
67 | font-weight: 700; | ||
68 | display: flex; | ||
69 | margin-left: 15px; | ||
70 | |||
71 | img { | ||
72 | width: 47px; | ||
73 | height: 47px; | ||
74 | } | ||
75 | |||
76 | h4 { | ||
77 | margin-left: 20px; | ||
78 | height: 50px; | ||
79 | line-height: 50px; | ||
80 | } | ||
81 | } | ||
82 | } | ||
83 | |||
84 | .navbar { | ||
85 | height: $headerHeight; | ||
86 | overflow: hidden; | ||
87 | position: relative; | ||
88 | @include background("navbg"); | ||
89 | |||
90 | display: flex; | ||
91 | align-items: center; | ||
92 | padding-right: 20px; | ||
93 | justify-content: space-between; | ||
94 | |||
95 | .header-logo { | ||
96 | width: 300px; | ||
97 | } | ||
98 | |||
99 | .right-menu-item { | ||
100 | &.hover-effect { | ||
101 | cursor: pointer; | ||
102 | transition: background 0.3s; | ||
103 | display: flex; | ||
104 | align-items: center; | ||
105 | } | ||
106 | } | ||
107 | } | ||
108 | </style> |
1 | export default { | ||
2 | computed: { | ||
3 | device() { | ||
4 | return this.$store.state.app.device | ||
5 | } | ||
6 | }, | ||
7 | mounted() { | ||
8 | // In order to fix the click on menu on the ios device will trigger the mouseleave bug | ||
9 | // https://github.com/PanJiaChen/vue-element-admin/issues/1135 | ||
10 | this.fixBugIniOS() | ||
11 | }, | ||
12 | methods: { | ||
13 | fixBugIniOS() { | ||
14 | const $subMenu = this.$refs.subMenu | ||
15 | if ($subMenu) { | ||
16 | const handleMouseleave = $subMenu.handleMouseleave | ||
17 | $subMenu.handleMouseleave = (e) => { | ||
18 | if (this.device === 'mobile') { | ||
19 | return | ||
20 | } | ||
21 | handleMouseleave(e) | ||
22 | } | ||
23 | } | ||
24 | } | ||
25 | } | ||
26 | } |
1 | <!-- | ||
2 | * @Description: | ||
3 | * @Autor: renchao | ||
4 | * @LastEditTime: 2023-03-22 11:19:04 | ||
5 | --> | ||
6 | <script> | ||
7 | export default { | ||
8 | name: 'MenuItem', | ||
9 | functional: true, | ||
10 | props: { | ||
11 | icon: { | ||
12 | type: String, | ||
13 | default: '' | ||
14 | }, | ||
15 | title: { | ||
16 | type: String, | ||
17 | default: '' | ||
18 | } | ||
19 | }, | ||
20 | render (h, context) { | ||
21 | const { icon, title } = context.props | ||
22 | const vnodes = [] | ||
23 | |||
24 | if (icon) { | ||
25 | if (icon.includes('el-icon')) { | ||
26 | vnodes.push(<i class={[icon, 'sub-el-icon']} />) | ||
27 | } else { | ||
28 | vnodes.push(<svg-icon icon-class={icon} />) | ||
29 | } | ||
30 | } | ||
31 | |||
32 | if (title) { | ||
33 | vnodes.push(<span slot='title'>{(title)}</span>) | ||
34 | } | ||
35 | return vnodes | ||
36 | } | ||
37 | } | ||
38 | </script> |
1 | <template> | ||
2 | <component :is="type" v-bind="linkProps(to)"> | ||
3 | <slot /> | ||
4 | </component> | ||
5 | </template> | ||
6 | |||
7 | <script> | ||
8 | import { isExternal } from '@/utils/validate' | ||
9 | |||
10 | export default { | ||
11 | props: { | ||
12 | to: { | ||
13 | type: String, | ||
14 | required: true | ||
15 | } | ||
16 | }, | ||
17 | computed: { | ||
18 | isExternal() { | ||
19 | return isExternal(this.to) | ||
20 | }, | ||
21 | type() { | ||
22 | if (this.isExternal) { | ||
23 | return 'a' | ||
24 | } | ||
25 | return 'router-link' | ||
26 | } | ||
27 | }, | ||
28 | methods: { | ||
29 | linkProps(to) { | ||
30 | if (this.isExternal) { | ||
31 | return { | ||
32 | href: to, | ||
33 | target: '_blank', | ||
34 | rel: 'noopener' | ||
35 | } | ||
36 | } | ||
37 | return { | ||
38 | to: to | ||
39 | } | ||
40 | } | ||
41 | } | ||
42 | } | ||
43 | </script> |
1 | <template> | ||
2 | <div class="sidebar-logo-container" :class="{ 'collapse': collapse }"> | ||
3 | <transition name="sidebarLogoFade"> | ||
4 | <router-link v-if="collapse" key="collapse" class="sidebar-logo-link" to="/"> | ||
5 | <img v-if="logo" :src="logo" class="sidebar-logo"> | ||
6 | <h1 v-else class="sidebar-title"> | ||
7 | {{ title }} | ||
8 | </h1> | ||
9 | </router-link> | ||
10 | <router-link v-else key="expand" class="sidebar-logo-link" to="/"> | ||
11 | <h1 class="sidebar-title"> | ||
12 | {{ title }} | ||
13 | </h1> | ||
14 | </router-link> | ||
15 | </transition> | ||
16 | </div> | ||
17 | </template> | ||
18 | |||
19 | <script> | ||
20 | import defaultSettings from '@/settings' | ||
21 | const { title } = defaultSettings | ||
22 | export default { | ||
23 | name: 'SidebarLogo', | ||
24 | props: { | ||
25 | collapse: { | ||
26 | type: Boolean, | ||
27 | required: true | ||
28 | } | ||
29 | }, | ||
30 | data () { | ||
31 | return { | ||
32 | title: title, | ||
33 | } | ||
34 | } | ||
35 | } | ||
36 | </script> | ||
37 | |||
38 | <style lang="scss" scoped> | ||
39 | .sidebarLogoFade-enter-active { | ||
40 | transition: opacity 1.5s; | ||
41 | } | ||
42 | |||
43 | .sidebarLogoFade-enter, | ||
44 | .sidebarLogoFade-leave-to { | ||
45 | opacity: 0; | ||
46 | } | ||
47 | |||
48 | .sidebar-logo-container { | ||
49 | position: relative; | ||
50 | width: 100%; | ||
51 | text-align: center; | ||
52 | overflow: hidden; | ||
53 | height: 100px; | ||
54 | |||
55 | & .sidebar-logo-link { | ||
56 | height: 100%; | ||
57 | width: 100%; | ||
58 | |||
59 | & .sidebar-logo { | ||
60 | width: 41px; | ||
61 | height: 39px; | ||
62 | vertical-align: middle; | ||
63 | // margin-left: 47px; | ||
64 | // margin-right: 48px; | ||
65 | margin-top: 22px; | ||
66 | } | ||
67 | |||
68 | & .sidebar-title { | ||
69 | margin: 0; | ||
70 | margin-top: 10px; | ||
71 | margin-bottom: 20px; | ||
72 | color: #fff; | ||
73 | font-weight: 600; | ||
74 | line-height: 25px; | ||
75 | font-size: 16px; | ||
76 | font-family: Avenir, Helvetica Neue, Arial, Helvetica, sans-serif; | ||
77 | vertical-align: middle; | ||
78 | } | ||
79 | } | ||
80 | |||
81 | &.collapse { | ||
82 | .sidebar-logo { | ||
83 | margin-right: 0px; | ||
84 | width: 32.8px; | ||
85 | height: 31.2px; | ||
86 | } | ||
87 | } | ||
88 | } | ||
89 | </style> |
1 | <!-- | ||
2 | * @Description: | ||
3 | * @Autor: renchao | ||
4 | * @LastEditTime: 2023-03-30 10:39:40 | ||
5 | --> | ||
6 | <template> | ||
7 | <div v-if="!item.hidden"> | ||
8 | <template | ||
9 | v-if="hasOneShowingChild(item.children, item) && (!onlyOneChild.children || onlyOneChild.noShowingChildren)"> | ||
10 | <app-link v-if="onlyOneChild.meta" :to="resolvePath(onlyOneChild.path)"> | ||
11 | <el-menu-item :index="resolvePath(onlyOneChild.path)" :class="{ 'submenu-title-noDropdown': !isNest }"> | ||
12 | <item :icon="onlyOneChild.meta.icon || (item.meta && item.meta.icon)" :title="onlyOneChild.meta.title" | ||
13 | class="menu-icon" /> | ||
14 | </el-menu-item> | ||
15 | </app-link> | ||
16 | </template> | ||
17 | |||
18 | <el-submenu v-else ref="subMenu" :index="resolvePath(item.path)" popper-append-to-body> | ||
19 | <template slot="title"> | ||
20 | <item v-if="item.meta" :icon="item.meta && item.meta.icon" :title="item.meta.title" /> | ||
21 | </template> | ||
22 | <sidebar-item v-for="child in item.children" :key="child.path" :is-nest="true" :item="child" | ||
23 | :base-path="resolvePath(child.path)" class="nest-menu" /> | ||
24 | </el-submenu> | ||
25 | </div> | ||
26 | </template> | ||
27 | |||
28 | <script> | ||
29 | import path from 'path' | ||
30 | import { isExternal } from '@/utils/validate' | ||
31 | import Item from './Item' | ||
32 | import AppLink from './Link' | ||
33 | import FixiOSBug from './FixiOSBug' | ||
34 | |||
35 | export default { | ||
36 | name: 'SidebarItem', | ||
37 | components: { Item, AppLink }, | ||
38 | mixins: [FixiOSBug], | ||
39 | props: { | ||
40 | // route object | ||
41 | item: { | ||
42 | type: Object, | ||
43 | required: true | ||
44 | }, | ||
45 | isNest: { | ||
46 | type: Boolean, | ||
47 | default: false | ||
48 | }, | ||
49 | basePath: { | ||
50 | type: String, | ||
51 | default: '' | ||
52 | } | ||
53 | }, | ||
54 | data () { | ||
55 | // To fix https://github.com/PanJiaChen/vue-admin-template/issues/237 | ||
56 | // TODO: refactor with render function | ||
57 | this.onlyOneChild = null | ||
58 | return {} | ||
59 | }, | ||
60 | methods: { | ||
61 | hasOneShowingChild (children = [], parent) { | ||
62 | const showingChildren = children.filter(item => { | ||
63 | if (item.hidden) { | ||
64 | return false | ||
65 | } else { | ||
66 | // Temp set(will be used if only has one showing child) | ||
67 | this.onlyOneChild = item | ||
68 | return true | ||
69 | } | ||
70 | }) | ||
71 | // When there is only one child router, the child router is displayed by default | ||
72 | if (showingChildren.length >= 1 && (showingChildren[0].path == 'ywjr' || showingChildren[0].path == "sbbwcx" || showingChildren[0].path == "dbrzcx")) { | ||
73 | return true | ||
74 | } | ||
75 | |||
76 | // Show parent if there are no child router to display | ||
77 | if (showingChildren.length === 0) { | ||
78 | this.onlyOneChild = { ...parent, path: '', noShowingChildren: true } | ||
79 | return true | ||
80 | } | ||
81 | |||
82 | return false | ||
83 | }, | ||
84 | resolvePath (routePath) { | ||
85 | if (isExternal(routePath)) { | ||
86 | return routePath | ||
87 | } | ||
88 | if (isExternal(this.basePath)) { | ||
89 | return this.basePath | ||
90 | } | ||
91 | return path.resolve(this.basePath, routePath) | ||
92 | } | ||
93 | } | ||
94 | } | ||
95 | </script> |
1 | <!-- | ||
2 | * @Description: | ||
3 | * @Autor: renchao | ||
4 | * @LastEditTime: 2023-03-27 14:09:57 | ||
5 | --> | ||
6 | <template> | ||
7 | <div> | ||
8 | <el-scrollbar wrap-class="scrollbar-wrapper"> | ||
9 | <el-menu router :default-active="activeMenu" :background-color="variables.menuBg" :text-color="variables.menuText" | ||
10 | :unique-opened="true" :active-text-color="variables.menuActiveText" :collapse-transition="false" mode="vertical"> | ||
11 | <!-- 权限菜单 --> | ||
12 | <sidebar-item v-for="route in permission_routes.slice(5)" :key="route.path" :item="route" | ||
13 | :base-path="route.path" /> | ||
14 | <!-- 菜单全部展示 --> | ||
15 | <!-- <sidebar-item v-for="route in asyncRoutes" :key="route.path" :item="route" :base-path="route.path" /> --> | ||
16 | </el-menu> | ||
17 | </el-scrollbar> | ||
18 | </div> | ||
19 | </template> | ||
20 | |||
21 | <script> | ||
22 | import { mapGetters } from 'vuex' | ||
23 | import Logo from './Logo' | ||
24 | import defaultSettings from '@/settings' | ||
25 | import SidebarItem from './SidebarItem' | ||
26 | import variables from '@/styles/variables.scss' | ||
27 | import { asyncRoutes } from '@/router' | ||
28 | export default { | ||
29 | components: { SidebarItem, Logo }, | ||
30 | data () { | ||
31 | return { | ||
32 | title: defaultSettings.title | ||
33 | } | ||
34 | }, | ||
35 | computed: { | ||
36 | ...mapGetters(['permission_routes', 'sidebar']), | ||
37 | activeMenu () { | ||
38 | const route = this.$route | ||
39 | const { meta, path } = route | ||
40 | if (meta.activeMenu) { | ||
41 | return meta.activeMenu | ||
42 | } | ||
43 | return path | ||
44 | }, | ||
45 | variables () { | ||
46 | return variables | ||
47 | }, | ||
48 | asyncRoutes () { | ||
49 | return asyncRoutes | ||
50 | } | ||
51 | } | ||
52 | } | ||
53 | </script> |
1 | <template> | ||
2 | <el-scrollbar ref="scrollContainer" :vertical="false" class="scroll-container" @wheel.native.prevent="handleScroll"> | ||
3 | <slot /> | ||
4 | </el-scrollbar> | ||
5 | </template> | ||
6 | |||
7 | <script> | ||
8 | const tagAndTagSpacing = 4 // tagAndTagSpacing | ||
9 | |||
10 | export default { | ||
11 | name: 'ScrollPane', | ||
12 | data () { | ||
13 | return { | ||
14 | left: 0 | ||
15 | } | ||
16 | }, | ||
17 | computed: { | ||
18 | scrollWrapper () { | ||
19 | return this.$refs.scrollContainer.$refs.wrap | ||
20 | } | ||
21 | }, | ||
22 | mounted () { | ||
23 | this.scrollWrapper.addEventListener('scroll', this.emitScroll, true) | ||
24 | }, | ||
25 | beforeDestroy () { | ||
26 | this.scrollWrapper.removeEventListener('scroll', this.emitScroll) | ||
27 | }, | ||
28 | methods: { | ||
29 | handleScroll (e) { | ||
30 | const eventDelta = e.wheelDelta || -e.deltaY * 40 | ||
31 | const $scrollWrapper = this.scrollWrapper | ||
32 | $scrollWrapper.scrollLeft = $scrollWrapper.scrollLeft + eventDelta / 4 | ||
33 | }, | ||
34 | emitScroll () { | ||
35 | this.$emit('scroll') | ||
36 | }, | ||
37 | moveToTarget (currentTag) { | ||
38 | const $container = this.$refs.scrollContainer.$el | ||
39 | const $containerWidth = $container.offsetWidth | ||
40 | const $scrollWrapper = this.scrollWrapper | ||
41 | const tagList = this.$parent.$refs.tag | ||
42 | |||
43 | let firstTag = null | ||
44 | let lastTag = null | ||
45 | |||
46 | // find first tag and last tag | ||
47 | if (tagList.length > 0) { | ||
48 | firstTag = tagList[0] | ||
49 | lastTag = tagList[tagList.length - 1] | ||
50 | } | ||
51 | |||
52 | if (firstTag === currentTag) { | ||
53 | $scrollWrapper.scrollLeft = 0 | ||
54 | } else if (lastTag === currentTag) { | ||
55 | $scrollWrapper.scrollLeft = $scrollWrapper.scrollWidth - $containerWidth | ||
56 | } else { | ||
57 | // find preTag and nextTag | ||
58 | const currentIndex = tagList.findIndex(item => item === currentTag) | ||
59 | const prevTag = tagList[currentIndex - 1] | ||
60 | const nextTag = tagList[currentIndex + 1] | ||
61 | |||
62 | // the tag's offsetLeft after of nextTag | ||
63 | const afterNextTagOffsetLeft = nextTag.$el.offsetLeft + nextTag.$el.offsetWidth + tagAndTagSpacing | ||
64 | |||
65 | // the tag's offsetLeft before of prevTag | ||
66 | const beforePrevTagOffsetLeft = prevTag.$el.offsetLeft - tagAndTagSpacing | ||
67 | |||
68 | if (afterNextTagOffsetLeft > $scrollWrapper.scrollLeft + $containerWidth) { | ||
69 | $scrollWrapper.scrollLeft = afterNextTagOffsetLeft - $containerWidth | ||
70 | } else if (beforePrevTagOffsetLeft < $scrollWrapper.scrollLeft) { | ||
71 | $scrollWrapper.scrollLeft = beforePrevTagOffsetLeft | ||
72 | } | ||
73 | } | ||
74 | } | ||
75 | } | ||
76 | } | ||
77 | </script> | ||
78 | |||
79 | <style lang="scss" scoped> | ||
80 | .scroll-container { | ||
81 | white-space: nowrap; | ||
82 | position: relative; | ||
83 | overflow: hidden; | ||
84 | width: 100%; | ||
85 | height: 100%; | ||
86 | } | ||
87 | |||
88 | /deep/ .el-scrollbar__view { | ||
89 | display: inline-block !important; | ||
90 | } | ||
91 | |||
92 | /deep/ .el-scrollbar__wrap { | ||
93 | overflow-x: hidden !important; | ||
94 | } | ||
95 | </style> |
1 | <template> | ||
2 | <div id="tags-view-container" class="tags-view-container"> | ||
3 | <scroll-pane ref="scrollPane" class="tags-view-wrapper" @scroll="handleScroll"> | ||
4 | <router-link v-for="tag in visitedViews" ref="tag" :key="tag.path" :class="isActive(tag) ? 'active' : ''" | ||
5 | :to="{ path: tag.path, query: tag.query, fullPath: tag.fullPath }" tag="span" class="tags-view-item" | ||
6 | @click.middle.native="!isAffix(tag) ? closeSelectedTag(tag) : ''" | ||
7 | @contextmenu.prevent.native="openMenu(tag, $event)"> | ||
8 | {{ tag.title }} | ||
9 | <span v-if="!isAffix(tag)" class="el-icon-close" @click.prevent.stop="closeSelectedTag(tag)" /> | ||
10 | </router-link> | ||
11 | </scroll-pane> | ||
12 | <ul v-show="visible" :style="{ left: left + 'px', top: top + 'px' }" class="contextmenu"> | ||
13 | <li v-if="!isAffix(selectedTag)" @click="closeSelectedTag(selectedTag)">关闭</li> | ||
14 | <li @click="closeOthersTags">关闭其他</li> | ||
15 | <li @click="closeAllTags(selectedTag)">关闭全部</li> | ||
16 | </ul> | ||
17 | </div> | ||
18 | </template> | ||
19 | |||
20 | <script> | ||
21 | import ScrollPane from './ScrollPane' | ||
22 | import path from 'path' | ||
23 | |||
24 | export default { | ||
25 | components: { ScrollPane }, | ||
26 | data () { | ||
27 | return { | ||
28 | visible: false, | ||
29 | top: 0, | ||
30 | left: 0, | ||
31 | selectedTag: {}, | ||
32 | affixTags: [] | ||
33 | } | ||
34 | }, | ||
35 | computed: { | ||
36 | visitedViews () { | ||
37 | return this.$store.state.tagsView.visitedViews.slice(1) | ||
38 | }, | ||
39 | routes () { | ||
40 | return this.$store.state.permission.routes | ||
41 | } | ||
42 | }, | ||
43 | watch: { | ||
44 | $route () { | ||
45 | this.addTags() | ||
46 | this.moveToCurrentTag() | ||
47 | }, | ||
48 | visible (value) { | ||
49 | if (value) { | ||
50 | document.body.addEventListener('click', this.closeMenu) | ||
51 | } else { | ||
52 | document.body.removeEventListener('click', this.closeMenu) | ||
53 | } | ||
54 | } | ||
55 | }, | ||
56 | mounted () { | ||
57 | this.initTags() | ||
58 | this.addTags() | ||
59 | }, | ||
60 | methods: { | ||
61 | isActive (route) { | ||
62 | return route.path === this.$route.path | ||
63 | }, | ||
64 | isAffix (tag) { | ||
65 | return tag.meta && tag.meta.affix | ||
66 | }, | ||
67 | filterAffixTags (routes, basePath = '/') { | ||
68 | let tags = [] | ||
69 | routes.forEach(route => { | ||
70 | if (route.meta && route.meta.affix) { | ||
71 | const tagPath = path.resolve(basePath, route.path) | ||
72 | tags.push({ | ||
73 | fullPath: tagPath, | ||
74 | path: tagPath, | ||
75 | name: route.name, | ||
76 | meta: { ...route.meta } | ||
77 | }) | ||
78 | } | ||
79 | if (route.children) { | ||
80 | const tempTags = this.filterAffixTags(route.children, route.path) | ||
81 | if (tempTags.length >= 1) { | ||
82 | tags = [...tags, ...tempTags] | ||
83 | } | ||
84 | } | ||
85 | }) | ||
86 | return tags | ||
87 | }, | ||
88 | initTags () { | ||
89 | const affixTags = this.affixTags = this.filterAffixTags(this.routes) | ||
90 | for (const tag of affixTags) { | ||
91 | // Must have tag name | ||
92 | if (tag.name) { | ||
93 | this.$store.dispatch('tagsView/addVisitedView', tag) | ||
94 | } | ||
95 | } | ||
96 | }, | ||
97 | addTags () { | ||
98 | const { name } = this.$route | ||
99 | if (name) { | ||
100 | this.$store.dispatch('tagsView/addView', this.$route) | ||
101 | } | ||
102 | return false | ||
103 | }, | ||
104 | moveToCurrentTag () { | ||
105 | const tags = this.$refs.tag | ||
106 | this.$nextTick(() => { | ||
107 | for (const tag of tags) { | ||
108 | if (tag.to.path === this.$route.path) { | ||
109 | this.$refs.scrollPane.moveToTarget(tag) | ||
110 | // when query is different then update | ||
111 | if (tag.to.fullPath !== this.$route.fullPath) { | ||
112 | this.$store.dispatch('tagsView/updateVisitedView', this.$route) | ||
113 | } | ||
114 | break | ||
115 | } | ||
116 | } | ||
117 | }) | ||
118 | }, | ||
119 | refreshSelectedTag (view) { | ||
120 | this.$store.dispatch('tagsView/delCachedView', view).then(() => { | ||
121 | const { fullPath } = view | ||
122 | this.$nextTick(() => { | ||
123 | this.$router.replace({ | ||
124 | path: '/redirect' + fullPath | ||
125 | }) | ||
126 | }) | ||
127 | }) | ||
128 | }, | ||
129 | closeSelectedTag (view) { | ||
130 | this.$store.dispatch('tagsView/delView', view).then(({ visitedViews }) => { | ||
131 | if (this.isActive(view)) { | ||
132 | this.toLastView(visitedViews, view) | ||
133 | } | ||
134 | }) | ||
135 | }, | ||
136 | closeOthersTags () { | ||
137 | this.$router.push(this.selectedTag) | ||
138 | this.$store.dispatch('tagsView/delOthersViews', this.selectedTag).then(() => { | ||
139 | this.moveToCurrentTag() | ||
140 | }) | ||
141 | }, | ||
142 | closeAllTags (view) { | ||
143 | this.$store.dispatch('tagsView/delAllViews').then(({ visitedViews }) => { | ||
144 | if (this.affixTags.some(tag => tag.path === view.path)) { | ||
145 | return | ||
146 | } | ||
147 | this.toLastView(visitedViews, view) | ||
148 | }) | ||
149 | }, | ||
150 | toLastView (visitedViews, view) { | ||
151 | const latestView = visitedViews.slice(-1)[0] | ||
152 | if (latestView) { | ||
153 | this.$router.push(latestView.fullPath) | ||
154 | } else { | ||
155 | // now the default is to redirect to the home page if there is no tags-view, | ||
156 | // you can adjust it according to your needs. | ||
157 | if (view.name === 'Dashboard') { | ||
158 | // to reload home page | ||
159 | this.$router.replace({ path: '/redirect' + view.fullPath }) | ||
160 | } else { | ||
161 | this.$router.push('/') | ||
162 | } | ||
163 | } | ||
164 | }, | ||
165 | openMenu (tag, e) { | ||
166 | const menuMinWidth = 105 | ||
167 | const offsetLeft = this.$el.getBoundingClientRect().left - 210 // container margin left | ||
168 | const offsetWidth = this.$el.offsetWidth // container width | ||
169 | const maxLeft = offsetWidth - menuMinWidth // left boundary | ||
170 | const left = e.clientX - offsetLeft + 15 // 15: margin right | ||
171 | |||
172 | if (left > maxLeft) { | ||
173 | this.left = maxLeft | ||
174 | } else { | ||
175 | this.left = left | ||
176 | } | ||
177 | |||
178 | this.top = e.clientY | ||
179 | this.visible = true | ||
180 | this.selectedTag = tag | ||
181 | }, | ||
182 | closeMenu () { | ||
183 | this.visible = false | ||
184 | }, | ||
185 | handleScroll () { | ||
186 | this.closeMenu() | ||
187 | } | ||
188 | } | ||
189 | } | ||
190 | </script> | ||
191 | |||
192 | <style lang="scss" scoped> | ||
193 | @import "~@/styles/_handle.scss"; | ||
194 | |||
195 | .tags-view-container { | ||
196 | height: 50px; | ||
197 | width: 100%; | ||
198 | background: #fff; | ||
199 | border-bottom: 1px solid #d8dce5; | ||
200 | box-sizing: border-box; | ||
201 | padding-top: 7px; | ||
202 | margin-bottom: 10px; | ||
203 | border-radius: 4px; | ||
204 | |||
205 | .tags-view-wrapper { | ||
206 | .tags-view-item { | ||
207 | display: inline-block; | ||
208 | position: relative; | ||
209 | cursor: pointer; | ||
210 | line-height: 26px; | ||
211 | color: #4A4A4A; | ||
212 | @include font_color("tagsText"); | ||
213 | padding: 0 8px; | ||
214 | font-size: 12px; | ||
215 | margin-left: 5px; | ||
216 | margin-top: 4px; | ||
217 | border-radius: 4px; | ||
218 | @include borderColor("tagsBorderColor"); | ||
219 | |||
220 | &:first-of-type { | ||
221 | margin-left: 15px; | ||
222 | } | ||
223 | |||
224 | &:last-of-type { | ||
225 | margin-right: 15px; | ||
226 | } | ||
227 | |||
228 | &.active { | ||
229 | @include background("tagsBg"); | ||
230 | @include borderColor("tagsActiveText"); | ||
231 | @include font_color("tagsActiveText"); | ||
232 | |||
233 | &::before { | ||
234 | content: ''; | ||
235 | @include background("tagsActiveText"); | ||
236 | display: inline-block; | ||
237 | width: 8px; | ||
238 | height: 8px; | ||
239 | border-radius: 50%; | ||
240 | position: relative; | ||
241 | margin-right: 2px; | ||
242 | } | ||
243 | } | ||
244 | } | ||
245 | } | ||
246 | |||
247 | .contextmenu { | ||
248 | margin: 0; | ||
249 | background: #fff; | ||
250 | z-index: 3000; | ||
251 | position: absolute; | ||
252 | list-style-type: none; | ||
253 | padding: 5px 0; | ||
254 | border-radius: 4px; | ||
255 | font-size: 12px; | ||
256 | font-weight: 400; | ||
257 | color: #333; | ||
258 | box-shadow: 2px 2px 3px 0 rgba(0, 0, 0, .3); | ||
259 | |||
260 | li { | ||
261 | margin: 0; | ||
262 | padding: 7px 16px; | ||
263 | cursor: pointer; | ||
264 | |||
265 | &:hover { | ||
266 | background: #eee; | ||
267 | } | ||
268 | } | ||
269 | } | ||
270 | } | ||
271 | </style> | ||
272 | |||
273 | <style lang="scss"> | ||
274 | //reset element css of el-icon-close | ||
275 | .tags-view-wrapper { | ||
276 | .tags-view-item { | ||
277 | .el-icon-close { | ||
278 | width: 16px; | ||
279 | height: 16px; | ||
280 | vertical-align: 2px; | ||
281 | border-radius: 50%; | ||
282 | text-align: center; | ||
283 | transition: all .3s cubic-bezier(.645, .045, .355, 1); | ||
284 | transform-origin: 100% 50%; | ||
285 | |||
286 | &:before { | ||
287 | transform: scale(.6); | ||
288 | display: inline-block; | ||
289 | vertical-align: -3px; | ||
290 | } | ||
291 | |||
292 | &:hover { | ||
293 | background-color: #b4bccc; | ||
294 | color: #fff; | ||
295 | } | ||
296 | } | ||
297 | } | ||
298 | } | ||
299 | </style> |
src/layout1/components/index.js
deleted
100644 → 0
src/layout1/index.vue
deleted
100644 → 0
1 | <!-- | ||
2 | * @Description: | ||
3 | * @Autor: renchao | ||
4 | * @LastEditTime: 2023-04-03 10:12:39 | ||
5 | --> | ||
6 | <template> | ||
7 | <div class="app-wrapper"> | ||
8 | <navbar /> | ||
9 | <div class="main-container"> | ||
10 | <sidebar class="sidebar-container" /> | ||
11 | <div class="app-content"> | ||
12 | <tags-view v-if="needTagsView" /> | ||
13 | <app-main /> | ||
14 | </div> | ||
15 | </div> | ||
16 | </div> | ||
17 | </template> | ||
18 | <script> | ||
19 | import { AppMain, Navbar, Sidebar, TagsView } from './components' | ||
20 | import ResizeMixin from './mixin/ResizeHandler' | ||
21 | import { mapState } from 'vuex' | ||
22 | export default { | ||
23 | name: 'Layout', | ||
24 | components: { | ||
25 | AppMain, | ||
26 | Navbar, | ||
27 | Sidebar, | ||
28 | TagsView | ||
29 | }, | ||
30 | mixins: [ResizeMixin], | ||
31 | created () { | ||
32 | this.$store.dispatch("products/setData", "BDCSBPT"); | ||
33 | }, | ||
34 | computed: { | ||
35 | ...mapState({ | ||
36 | sidebar: state => state.app.sidebar, | ||
37 | needTagsView: state => state.settings.tagsView, | ||
38 | fixedHeader: state => state.settings.fixedHeader | ||
39 | }) | ||
40 | } | ||
41 | } | ||
42 | </script> | ||
43 | <style lang="scss"> | ||
44 | @import "~@/styles/mixin.scss"; | ||
45 | @import "~@/styles/sbSidebar.scss"; | ||
46 | |||
47 | .app-wrapper { | ||
48 | @include clearfix; | ||
49 | position: relative; | ||
50 | height: 100%; | ||
51 | width: 100%; | ||
52 | // background-color: $containerbg; | ||
53 | padding: 0; | ||
54 | |||
55 | &.mobile.openSidebar { | ||
56 | position: fixed; | ||
57 | top: 0; | ||
58 | } | ||
59 | } | ||
60 | |||
61 | .drawer-bg { | ||
62 | background: #000; | ||
63 | opacity: 0.3; | ||
64 | width: 100%; | ||
65 | top: 0; | ||
66 | height: 100%; | ||
67 | position: absolute; | ||
68 | z-index: 999; | ||
69 | } | ||
70 | |||
71 | .fixed-header { | ||
72 | width: 100%; | ||
73 | transition: width 0.28s; | ||
74 | } | ||
75 | |||
76 | .app-content { | ||
77 | overflow: hidden; | ||
78 | box-sizing: border-box; | ||
79 | flex: 1; | ||
80 | width: 100%; | ||
81 | background: #EAEBF0; | ||
82 | padding: 10px; | ||
83 | } | ||
84 | </style> |
src/layout1/mixin/ResizeHandler.js
deleted
100644 → 0
1 | import store from '@/store' | ||
2 | |||
3 | const { body } = document | ||
4 | const WIDTH = 992 // refer to Bootstrap's responsive design | ||
5 | |||
6 | export default { | ||
7 | watch: { | ||
8 | $route(route) { | ||
9 | if (this.device === 'mobile' && this.sidebar.opened) { | ||
10 | store.dispatch('app/closeSideBar', { withoutAnimation: false }) | ||
11 | } | ||
12 | } | ||
13 | }, | ||
14 | beforeMount() { | ||
15 | window.addEventListener('resize', this.$_resizeHandler) | ||
16 | }, | ||
17 | beforeDestroy() { | ||
18 | window.removeEventListener('resize', this.$_resizeHandler) | ||
19 | }, | ||
20 | mounted() { | ||
21 | const isMobile = this.$_isMobile() | ||
22 | if (isMobile) { | ||
23 | store.dispatch('app/toggleDevice', 'mobile') | ||
24 | store.dispatch('app/closeSideBar', { withoutAnimation: true }) | ||
25 | } | ||
26 | }, | ||
27 | methods: { | ||
28 | // use $_ for mixins properties | ||
29 | // https://vuejs.org/v2/style-guide/index.html#Private-property-names-essential | ||
30 | $_isMobile() { | ||
31 | const rect = body.getBoundingClientRect() | ||
32 | return rect.width - 1 < WIDTH | ||
33 | }, | ||
34 | $_resizeHandler() { | ||
35 | if (!document.hidden) { | ||
36 | const isMobile = this.$_isMobile() | ||
37 | store.dispatch('app/toggleDevice', isMobile ? 'mobile' : 'desktop') | ||
38 | |||
39 | if (isMobile) { | ||
40 | store.dispatch('app/closeSideBar', { withoutAnimation: true }) | ||
41 | } | ||
42 | } | ||
43 | } | ||
44 | } | ||
45 | } |
... | @@ -2,7 +2,7 @@ | ... | @@ -2,7 +2,7 @@ |
2 | * @Author: yangwei | 2 | * @Author: yangwei |
3 | * @Date: 2023-01-16 09:10:12 | 3 | * @Date: 2023-01-16 09:10:12 |
4 | * @LastEditors: Please set LastEditors | 4 | * @LastEditors: Please set LastEditors |
5 | * @LastEditTime: 2023-04-27 17:07:58 | 5 | * @LastEditTime: 2023-05-08 15:03:06 |
6 | * @FilePath: \bdcjg-web\src\main.js | 6 | * @FilePath: \bdcjg-web\src\main.js |
7 | * @Description: | 7 | * @Description: |
8 | * | 8 | * | ... | ... |
1 | /* | 1 | /* |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-04-12 11:15:57 | 4 | * @LastEditTime: 2023-05-12 10:26:11 |
5 | */ | 5 | */ |
6 | import Vue from 'vue' | 6 | import Vue from 'vue' |
7 | import router from "./router"; | 7 | import router from "./router"; |
... | @@ -20,7 +20,7 @@ router.beforeEach(async (to, from, next) => { | ... | @@ -20,7 +20,7 @@ router.beforeEach(async (to, from, next) => { |
20 | let hasAddDict = store.state.dict.addDict; | 20 | let hasAddDict = store.state.dict.addDict; |
21 | let hasUser = store.state.user.hasUser; | 21 | let hasUser = store.state.user.hasUser; |
22 | let hasAddRoute = store.state.permission.addRoutes; | 22 | let hasAddRoute = store.state.permission.addRoutes; |
23 | if (to.path == "/sb" || to.path == "/jg" || to.path == "/sb1") { | 23 | if (to.path == "/login") { |
24 | localStorage.removeItem("token"); | 24 | localStorage.removeItem("token"); |
25 | next(); | 25 | next(); |
26 | } else { | 26 | } else { |
... | @@ -49,7 +49,7 @@ router.beforeEach(async (to, from, next) => { | ... | @@ -49,7 +49,7 @@ router.beforeEach(async (to, from, next) => { |
49 | { path: "*", redirect: "/404", hidden: true }, | 49 | { path: "*", redirect: "/404", hidden: true }, |
50 | ]); | 50 | ]); |
51 | const routeTo = Cookies.get("routerTo"); | 51 | const routeTo = Cookies.get("routerTo"); |
52 | if (routeTo && routeTo !== "/" && routeTo !== "/sb" && routeTo !== "/jg") { | 52 | if (routeTo && routeTo !== "/" && routeTo !== "/login") { |
53 | next({ ...to, replace: true }); | 53 | next({ ...to, replace: true }); |
54 | } else { | 54 | } else { |
55 | next(); | 55 | next(); |
... | @@ -57,7 +57,7 @@ router.beforeEach(async (to, from, next) => { | ... | @@ -57,7 +57,7 @@ router.beforeEach(async (to, from, next) => { |
57 | 57 | ||
58 | } | 58 | } |
59 | } else { | 59 | } else { |
60 | next(`/${Vue.prototype.BASE_API.LOGIN}`); | 60 | next('/login'); |
61 | } | 61 | } |
62 | } | 62 | } |
63 | NProgress.done(); | 63 | NProgress.done(); |
... | @@ -66,4 +66,4 @@ router.afterEach((to) => { | ... | @@ -66,4 +66,4 @@ router.afterEach((to) => { |
66 | // 解决刷新页面报404问题 | 66 | // 解决刷新页面报404问题 |
67 | Cookies.set("routerTo", to.fullPath); | 67 | Cookies.set("routerTo", to.fullPath); |
68 | NProgress.done(); | 68 | NProgress.done(); |
69 | }); | 69 | }) | ... | ... |
... | @@ -20,19 +20,14 @@ export const constantRoutes = [ | ... | @@ -20,19 +20,14 @@ export const constantRoutes = [ |
20 | }, | 20 | }, |
21 | //登录 | 21 | //登录 |
22 | { | 22 | { |
23 | path: "/jg", | 23 | path: "/login", |
24 | name: "loginjg", | 24 | name: "login", |
25 | component: () => import("@/views/loginjg/index.vue"), | 25 | component: () => import("@/views/login/index.vue"), |
26 | }, | ||
27 | { | ||
28 | path: "/sb", | ||
29 | name: "loginsb", | ||
30 | component: () => import("@/views/loginsb/index.vue"), | ||
31 | }, | 26 | }, |
32 | { | 27 | { |
33 | path: '/', | 28 | path: '/', |
34 | redirect: to => { | 29 | redirect: to => { |
35 | return { path: `/${Vue.prototype.BASE_API.LOGIN}` } | 30 | return { path: '/login' } |
36 | }, | 31 | }, |
37 | }, | 32 | }, |
38 | // 监管首页 | 33 | // 监管首页 |
... | @@ -55,22 +50,22 @@ export const constantRoutes = [ | ... | @@ -55,22 +50,22 @@ export const constantRoutes = [ |
55 | * the routes that need to be dynamically loaded based on user roles | 50 | * the routes that need to be dynamically loaded based on user roles |
56 | */ | 51 | */ |
57 | export const asyncRoutes = [ | 52 | export const asyncRoutes = [ |
58 | // 接收报文查询 | 53 | // 区县接入 |
59 | { | 54 | { |
60 | path: '/jsbwcx', | 55 | path: '/jsbwcx', |
61 | component: Layout, | 56 | component: Layout, |
62 | children: [ | 57 | children: [ |
63 | { | 58 | // { |
64 | path: 'index', | 59 | // path: 'xxcx', |
60 | // component: () => import('@/views/gbxxcx/index'), | ||
61 | // name: 'xxcx', | ||
62 | // meta: { title: '信息查询', icon: 'xxcx' } | ||
63 | // }, | ||
64 | { | ||
65 | path: 'qxjr', | ||
65 | component: () => import('@/views/jsbwcx/index'), | 66 | component: () => import('@/views/jsbwcx/index'), |
66 | name: 'jsbwcx', | 67 | name: 'qxjr', |
67 | meta: { title: '区县接入', icon: 'zsgl' } | 68 | meta: { title: '区县接入', icon: 'zsgl' } |
68 | }, | ||
69 | { | ||
70 | path: 'gbxxcx', | ||
71 | component: () => import('@/views/gbxxcx/index'), | ||
72 | name: 'gbxxcx', | ||
73 | meta: { title: '信息查询', icon: 'zsgl' } | ||
74 | } | 69 | } |
75 | ] | 70 | ] |
76 | }, | 71 | }, |
... | @@ -110,6 +105,24 @@ export const asyncRoutes = [ | ... | @@ -110,6 +105,24 @@ export const asyncRoutes = [ |
110 | component: () => import('@/views/jktj/bsxljk/index'), | 105 | component: () => import('@/views/jktj/bsxljk/index'), |
111 | name: 'jktj', | 106 | name: 'jktj', |
112 | meta: { title: '办事效率监控', icon: 'zhcx' } | 107 | meta: { title: '办事效率监控', icon: 'zhcx' } |
108 | }, | ||
109 | { | ||
110 | path: 'dataReceiveQuality', | ||
111 | component: () => import('@/views/jktj/dataReceiveQuality/index'), | ||
112 | name: 'dataReceiveQuality', | ||
113 | meta: { title: '接入质量评价表', icon: 'dataReceiveQuality' } | ||
114 | }, | ||
115 | { | ||
116 | path: 'nullTermRatio', | ||
117 | component: () => import('@/views/jktj/nullTermRatio/index'), | ||
118 | name: 'nullTermRatio', | ||
119 | meta: { title: '相关字段空置率统计', icon: 'nullTermRatio' } | ||
120 | }, | ||
121 | { | ||
122 | path: 'registerBookQuality', | ||
123 | component: () => import('@/views/jktj/registerBookQuality/index'), | ||
124 | name: 'registerBookQuality', | ||
125 | meta: { title: '登簿质量评价表', icon: 'registerBookQuality' } | ||
113 | } | 126 | } |
114 | ] | 127 | ] |
115 | }, | 128 | }, |
... | @@ -260,7 +273,7 @@ export const asyncRoutes = [ | ... | @@ -260,7 +273,7 @@ export const asyncRoutes = [ |
260 | meta: { title: '角色管理' } | 273 | meta: { title: '角色管理' } |
261 | } | 274 | } |
262 | ] | 275 | ] |
263 | }, | 276 | } |
264 | ] | 277 | ] |
265 | 278 | ||
266 | const createRouter = () => | 279 | const createRouter = () => | ... | ... |
... | @@ -26,12 +26,7 @@ const mutations = { | ... | @@ -26,12 +26,7 @@ const mutations = { |
26 | const actions = { | 26 | const actions = { |
27 | // 添加全部菜单 | 27 | // 添加全部菜单 |
28 | generateRoutes ({ commit }, getMenuInfo) { | 28 | generateRoutes ({ commit }, getMenuInfo) { |
29 | let Layout; | 29 | let Layout = r => require.ensure([], () => r(require(`@/layout`))) |
30 | if (Vue.prototype.BASE_API.THEME == 'sb') { | ||
31 | Layout = r => require.ensure([], () => r(require(`@/layout1`))) | ||
32 | } else { | ||
33 | Layout = r => require.ensure([], () => r(require(`@/layout`))) | ||
34 | } | ||
35 | function asyncRouter (routers) { | 30 | function asyncRouter (routers) { |
36 | routers.forEach(item => { | 31 | routers.forEach(item => { |
37 | if (!item.children) { | 32 | if (!item.children) { | ... | ... |
src/styles/sbElement-ui.scss
deleted
100644 → 0
1 | @import "~@/styles/_handle.scss"; | ||
2 | |||
3 | // cover some element-ui styles | ||
4 | .el-breadcrumb__inner, | ||
5 | .el-breadcrumb__inner a { | ||
6 | font-weight: 400 !important; | ||
7 | color: #686666; | ||
8 | } | ||
9 | |||
10 | .el-table .cell { | ||
11 | line-height: 16px; | ||
12 | } | ||
13 | |||
14 | //input | ||
15 | .el-input__inner { | ||
16 | color: #FFFFFF !important; | ||
17 | padding: 0 7px !important; | ||
18 | } | ||
19 | |||
20 | // input 样式 | ||
21 | // 全局css 加上以下代码,可以隐藏上下箭头 | ||
22 | |||
23 | // 取消input的上下箭头 | ||
24 | input::-webkit-inner-spin-button { | ||
25 | -webkit-appearance: none !important; | ||
26 | |||
27 | } | ||
28 | |||
29 | input::-webkit-outer-spin-button { | ||
30 | -webkit-appearance: none !important; | ||
31 | |||
32 | } | ||
33 | |||
34 | input[type="number"] { | ||
35 | -moz-appearance: textfield; | ||
36 | |||
37 | } | ||
38 | |||
39 | .el-upload { | ||
40 | input[type="file"] { | ||
41 | display: none !important; | ||
42 | } | ||
43 | } | ||
44 | |||
45 | .el-upload__input { | ||
46 | display: none; | ||
47 | } | ||
48 | |||
49 | .cell { | ||
50 | .el-tag { | ||
51 | margin-right: 0px; | ||
52 | } | ||
53 | } | ||
54 | |||
55 | .small-padding { | ||
56 | .cell { | ||
57 | padding-left: 5px; | ||
58 | padding-right: 5px; | ||
59 | } | ||
60 | } | ||
61 | |||
62 | .fixed-width { | ||
63 | .el-button--mini { | ||
64 | padding: 7px 10px; | ||
65 | min-width: 60px; | ||
66 | } | ||
67 | } | ||
68 | |||
69 | .status-col { | ||
70 | .cell { | ||
71 | padding: 0 10px; | ||
72 | text-align: center; | ||
73 | |||
74 | .el-tag { | ||
75 | margin-right: 0px; | ||
76 | } | ||
77 | } | ||
78 | } | ||
79 | |||
80 | .el-icon-date, | ||
81 | .el-icon-time { | ||
82 | display: none; | ||
83 | } | ||
84 | |||
85 | // to fixed https://github.com/ElemeFE/element/issues/2461 | ||
86 | // refine element ui upload | ||
87 | .el-input.is-disabled .el-input__inner { | ||
88 | background-color: transparent !important; | ||
89 | } | ||
90 | |||
91 | .upload-container { | ||
92 | .el-upload { | ||
93 | width: 100%; | ||
94 | |||
95 | .el-upload-dragger { | ||
96 | width: 100%; | ||
97 | height: 200px; | ||
98 | } | ||
99 | } | ||
100 | } | ||
101 | |||
102 | // dropdown | ||
103 | .el-dropdown-menu { | ||
104 | a { | ||
105 | display: block | ||
106 | } | ||
107 | } | ||
108 | |||
109 | // fix date-picker ui bug in filter-item | ||
110 | .el-range-editor.el-input__inner { | ||
111 | display: inline-flex !important; | ||
112 | } | ||
113 | |||
114 | // to fix el-date-picker css style | ||
115 | .el-range-separator { | ||
116 | box-sizing: content-box; | ||
117 | } | ||
118 | |||
119 | .el-submenu__icon-arrow { | ||
120 | margin-top: -5px; | ||
121 | } | ||
122 | |||
123 | // element 样式补丁 | ||
124 | .el-menu--horizontal { | ||
125 | border-bottom: none !important; | ||
126 | } | ||
127 | |||
128 | .el-radio-group { | ||
129 | .el-radio-button__inner { | ||
130 | height: 36px; | ||
131 | line-height: 36px; | ||
132 | padding: 0 20px; | ||
133 | font-size: 14px; | ||
134 | } | ||
135 | |||
136 | .el-radio-button:first-child { | ||
137 | border-radius: 4px 0 0 4px; | ||
138 | } | ||
139 | |||
140 | .el-radio-button:last-child { | ||
141 | border-radius: 0 4px 4px 0; | ||
142 | } | ||
143 | } | ||
144 | |||
145 | .el-tabs__item:focus.is-active.is-focus:not(:active) { | ||
146 | box-shadow: none !important; | ||
147 | } | ||
148 | |||
149 | // Divider 分割线 样式的修改 | ||
150 | .el-divider--horizontal { | ||
151 | margin: 10px 0 !important; | ||
152 | } | ||
153 | |||
154 | .el-row { | ||
155 | margin-bottom: 0 !important; | ||
156 | } | ||
157 | |||
158 | // form | ||
159 | .el-form-item__content { | ||
160 | margin-left: 0 !important; | ||
161 | } | ||
162 | |||
163 | .el-icon-full-screen, | ||
164 | .el-icon-rank { | ||
165 | cursor: pointer; | ||
166 | } | ||
167 | |||
168 | // 表格样式 | ||
169 | .el-table th { | ||
170 | height: 48px !important; | ||
171 | font-size: 14px; | ||
172 | color: #4A4A4A; | ||
173 | } | ||
174 | |||
175 | .el-pagination.is-background .btn-prev, | ||
176 | .el-pagination.is-background .btn-next, | ||
177 | .el-pagination.is-background .el-pager li { | ||
178 | @include borderColor("pagBorderColor"); | ||
179 | background-color: #FFFFFF; | ||
180 | @include font_color("pagText"); | ||
181 | } | ||
182 | |||
183 | .el-pagination.is-background .el-pager li:not(.disabled).active { | ||
184 | @include background("pagBg"); | ||
185 | border-radius: 4px; | ||
186 | @include font_color("pagActiveText"); | ||
187 | @include borderColor("pagActiveText"); | ||
188 | } | ||
189 | |||
190 | .el-table__header th { | ||
191 | background-color: #F1F3F7 !important; | ||
192 | } | ||
193 | |||
194 | .el-table tr td { | ||
195 | font-size: 14px; | ||
196 | color: #7A7A7A; | ||
197 | } | ||
198 | |||
199 | .lb-table .el-table { | ||
200 | border-bottom: none; | ||
201 | border-radius: 4px 4px 0 0; | ||
202 | } | ||
203 | |||
204 | .el-upload-list__item.is-success:focus:not(:hover) .el-icon-close-tip { | ||
205 | display: none !important | ||
206 | } | ||
207 | |||
208 | .el-message-box__btns { | ||
209 | display: flex; | ||
210 | flex-direction: row-reverse; | ||
211 | } | ||
212 | |||
213 | .el-message-box__btns .el-button--primary { | ||
214 | margin-right: 10px; | ||
215 | } | ||
216 | |||
217 | .el-form-item__content { | ||
218 | flex: 1; | ||
219 | } | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
src/styles/sbPublic.scss
deleted
100644 → 0
1 | @import '~@/styles/sbElement-ui.scss'; | ||
2 | @import "~@/styles/_handle.scss"; | ||
3 | @import "~@/styles/_handle.scss"; | ||
4 | |||
5 | //input | ||
6 | .el-input__inner { | ||
7 | color: #7A7A7A !important; | ||
8 | padding: 0 7px !important; | ||
9 | } | ||
10 | |||
11 | |||
12 | |||
13 | .from-clues { | ||
14 | // height: 100%; | ||
15 | width: 100%; | ||
16 | min-width: 1280px; | ||
17 | box-sizing: border-box; | ||
18 | overflow-x: hidden; | ||
19 | |||
20 | &-header { | ||
21 | width: 100%; | ||
22 | padding: 7px 15px 15px 15px; | ||
23 | box-sizing: border-box; | ||
24 | background: #FFFFFF; | ||
25 | border-radius: 4px; | ||
26 | } | ||
27 | |||
28 | &-content { | ||
29 | width: 100%; | ||
30 | box-sizing: border-box; | ||
31 | margin-top: 10px; | ||
32 | background: #FFFFFF; | ||
33 | border-radius: 4px; | ||
34 | padding: 15px; | ||
35 | } | ||
36 | |||
37 | // .el-dialog__close { | ||
38 | // font-size: 0; | ||
39 | // } | ||
40 | |||
41 | .el-form-item { | ||
42 | display: flex; | ||
43 | width: 100%; | ||
44 | } | ||
45 | |||
46 | .from-clues-content { | ||
47 | .el-table__expand-icon { | ||
48 | color: rgb(0, 0, 0); | ||
49 | } | ||
50 | } | ||
51 | |||
52 | .el-form--inline .el-form-item { | ||
53 | width: auto; | ||
54 | margin-right: 0px; | ||
55 | |||
56 | .el-form-item__content { | ||
57 | width: auto; | ||
58 | } | ||
59 | } | ||
60 | |||
61 | .el-form-item--small.el-form-item { | ||
62 | margin-bottom: 0px; | ||
63 | } | ||
64 | } | ||
65 | |||
66 | .echarts-box { | ||
67 | display: flex; | ||
68 | justify-content: center; | ||
69 | height: calc(100vh - 230px); | ||
70 | } | ||
71 | |||
72 | // 通过 入库 样式 | ||
73 | .adopt, | ||
74 | .success { | ||
75 | color: #0A852A; | ||
76 | position: relative; | ||
77 | } | ||
78 | |||
79 | .warehousing { | ||
80 | color: #FFCA57; | ||
81 | position: relative; | ||
82 | } | ||
83 | |||
84 | .fail { | ||
85 | color: #AB0C0C; | ||
86 | position: relative; | ||
87 | } | ||
88 | |||
89 | /* --------------进度条美化---------------- */ | ||
90 | ::-webkit-scrollbar { | ||
91 | width: 7px; | ||
92 | height: 7px; | ||
93 | } | ||
94 | |||
95 | ::-webkit-scrollbar-track { | ||
96 | width: 7px; | ||
97 | background-color: rgba(255, 255, 255, 0); | ||
98 | -webkit-border-radius: 6px; | ||
99 | -moz-border-radius: 6px; | ||
100 | border-radius: 6px; | ||
101 | } | ||
102 | |||
103 | ::-webkit-scrollbar-thumb { | ||
104 | background-color: rgb(207, 208, 209); | ||
105 | background-clip: padding-box; | ||
106 | min-height: 28px; | ||
107 | -webkit-border-radius: 6px; | ||
108 | -moz-border-radius: 6px; | ||
109 | border-radius: 6px; | ||
110 | } | ||
111 | |||
112 | ::-webkit-scrollbar-thumb:hover { | ||
113 | background-color: rgb(162, 164, 167); | ||
114 | } | ||
115 | |||
116 | // 搜索框按钮的位置 | ||
117 | .btnColRight { | ||
118 | box-sizing: border-box; | ||
119 | text-align: right; | ||
120 | } | ||
121 | |||
122 | // 按钮样式 | ||
123 | .button:hover { | ||
124 | width: 86px; | ||
125 | height: 32px; | ||
126 | color: #ffffff; | ||
127 | cursor: pointer; | ||
128 | border: 0; | ||
129 | font-size: 12px; | ||
130 | background: none; | ||
131 | } | ||
132 | |||
133 | .cx { | ||
134 | width: 86px; | ||
135 | height: 32px; | ||
136 | @include background_color("btnBg"); | ||
137 | color: white; | ||
138 | border: none; | ||
139 | } | ||
140 | |||
141 | .cx:hover { | ||
142 | width: 86px; | ||
143 | height: 32px; | ||
144 | @include background_color("btnBg"); | ||
145 | color: white; | ||
146 | border: none; | ||
147 | } | ||
148 | |||
149 | .cz { | ||
150 | width: 86px; | ||
151 | height: 32px; | ||
152 | background-color: white; | ||
153 | @include font_color("btnColor"); | ||
154 | border: 1px solid rgba(65, 98, 216, 0.3); | ||
155 | } | ||
156 | |||
157 | .cz:hover { | ||
158 | width: 86px; | ||
159 | height: 32px; | ||
160 | background-color: white; | ||
161 | @include font_color("btnColor"); | ||
162 | border: 1px solid rgba(65, 98, 216, 0.3); | ||
163 | } | ||
164 | |||
165 | .cx:focus { | ||
166 | color: white; | ||
167 | @include background_color("btnBg"); | ||
168 | background-size: cover; | ||
169 | } | ||
170 | |||
171 | .cz:focus { | ||
172 | background-color: white; | ||
173 | background-size: cover; | ||
174 | } | ||
175 | |||
176 | // 角色管理人员菜单配置弹框样式 | ||
177 | .roleconfiguration { | ||
178 | .el-tabs__item { | ||
179 | color: #cef8ff !important; | ||
180 | // background: url("~@/image/tabitem.png") no-repeat; | ||
181 | // background-size: 100% 100%; | ||
182 | @include background("btnBg"); | ||
183 | border-radius: 3px; | ||
184 | } | ||
185 | |||
186 | .el-tabs__item.is-active { | ||
187 | @include background("btnselect"); | ||
188 | } | ||
189 | |||
190 | .el-dialog__headerbtn .el-dialog__close { | ||
191 | font-size: 20px; | ||
192 | color: #4162D8 | ||
193 | } | ||
194 | |||
195 | .el-dialog__header { | ||
196 | width: 100%; | ||
197 | display: flex; | ||
198 | justify-content: center; | ||
199 | font-size: 24px; | ||
200 | background-color: #3D59C4; | ||
201 | |||
202 | .dialog_title { | ||
203 | |||
204 | color: white; | ||
205 | margin-bottom: 10px; | ||
206 | } | ||
207 | } | ||
208 | |||
209 | } | ||
210 | |||
211 | .el-breadcrumb__inner { | ||
212 | color: #CEF8FF !important; | ||
213 | } | ||
214 | |||
215 | .breadcrumb1366 { | ||
216 | padding: 10px 0 !important; | ||
217 | } | ||
218 | |||
219 | .cur-location { | ||
220 | font-size: 16px; | ||
221 | color: white; | ||
222 | line-height: 40px; | ||
223 | float: left; | ||
224 | |||
225 | img { | ||
226 | position: relative; | ||
227 | top: 3px; | ||
228 | margin-right: 4px; | ||
229 | } | ||
230 | } | ||
231 | |||
232 | .el-breadcrumb__inner a, | ||
233 | .el-breadcrumb__inner.is-link { | ||
234 | color: white; | ||
235 | cursor: text; | ||
236 | font-weight: normal; | ||
237 | } | ||
238 | |||
239 | .contentCenter { | ||
240 | position: absolute; | ||
241 | top: 50%; | ||
242 | left: 50%; | ||
243 | transform: translate(calc(-50% + 85px), -50%); | ||
244 | } | ||
245 | |||
246 | .mainCenter { | ||
247 | position: absolute; | ||
248 | top: 50%; | ||
249 | left: 50%; | ||
250 | transform: translate(-50%, -50%); | ||
251 | |||
252 | // 展开收起按钮位置 | ||
253 | .el-input__suffix { | ||
254 | right: 10px; | ||
255 | } | ||
256 | } | ||
257 | |||
258 | .el-textarea.is-disabled .el-textarea__inner { | ||
259 | background-color: transparent !important; | ||
260 | color: #4a4a4a; | ||
261 | } | ||
262 | |||
263 | // 登簿日志弹出框 | ||
264 | .commonDialog { | ||
265 | .el-dialog__headerbtn .el-dialog__close { | ||
266 | font-size: 20px; | ||
267 | color: #4162D8 | ||
268 | } | ||
269 | |||
270 | .el-dialog__header { | ||
271 | text-align: center; | ||
272 | font-size: 24px; | ||
273 | @include background("navbg"); | ||
274 | } | ||
275 | |||
276 | .el-tabs__header { | ||
277 | margin: 0 !important; | ||
278 | border-bottom: none; | ||
279 | } | ||
280 | |||
281 | .el-dialog { | ||
282 | display: flex; | ||
283 | flex-direction: column; | ||
284 | } | ||
285 | |||
286 | .el-dialog__body { | ||
287 | display: flex; | ||
288 | flex-direction: column; | ||
289 | padding-top: 0px; | ||
290 | padding-bottom: 30px; | ||
291 | height: 100%; | ||
292 | flex: 1; | ||
293 | position: relative; | ||
294 | } | ||
295 | |||
296 | .regularHeight { | ||
297 | display: flex; | ||
298 | flex-direction: column; | ||
299 | height: 81vh; | ||
300 | margin-bottom: 5px; | ||
301 | |||
302 | .JsonEditor { | ||
303 | height: 73vh; | ||
304 | |||
305 | .el-textarea.is-disabled .el-textarea__inner { | ||
306 | @include borderColor("border"); | ||
307 | } | ||
308 | |||
309 | .editXML { | ||
310 | height: 100%; | ||
311 | |||
312 | .el-textarea { | ||
313 | height: 100% !important; | ||
314 | } | ||
315 | |||
316 | .el-textarea__inner { | ||
317 | height: 100% !important; | ||
318 | border-radius: 2px; | ||
319 | border: none; | ||
320 | } | ||
321 | } | ||
322 | } | ||
323 | |||
324 | |||
325 | // 响应结果 | ||
326 | .xyjg { | ||
327 | height: 80vh; | ||
328 | |||
329 | .result-con { | ||
330 | height: 49%; | ||
331 | border-radius: 2px; | ||
332 | box-sizing: border-box; | ||
333 | padding: 10px; | ||
334 | |||
335 | .el-textarea { | ||
336 | height: 90%; | ||
337 | } | ||
338 | |||
339 | .el-textarea__inner { | ||
340 | height: 100%; | ||
341 | background: transparent; | ||
342 | border: none; | ||
343 | @include borderColor("border"); | ||
344 | color: #4a4a4a; | ||
345 | } | ||
346 | |||
347 | p { | ||
348 | color: #2188E3; | ||
349 | font-weight: 700; | ||
350 | font-size: 18px; | ||
351 | position: relative; | ||
352 | padding-left: 8px; | ||
353 | } | ||
354 | |||
355 | p:before { | ||
356 | content: ''; | ||
357 | width: 3px; | ||
358 | height: 13px; | ||
359 | position: absolute; | ||
360 | left: 0; | ||
361 | top: 4px; | ||
362 | background-color: #2188E3; | ||
363 | } | ||
364 | } | ||
365 | } | ||
366 | } | ||
367 | |||
368 | .dialog_title { | ||
369 | color: white; | ||
370 | margin-bottom: 10px; | ||
371 | } | ||
372 | |||
373 | .el-tabs__item { | ||
374 | color: #CEF8FF !important; | ||
375 | background-color: none; | ||
376 | display: flex; | ||
377 | flex-direction: row; | ||
378 | justify-content: center; | ||
379 | border-radius: 3px; | ||
380 | } | ||
381 | |||
382 | .el-tabs__nav { | ||
383 | display: flex; | ||
384 | border: none !important; | ||
385 | } | ||
386 | |||
387 | .el-tabs__item.is-top:not(:last-child) { | ||
388 | margin-right: 5px; | ||
389 | } | ||
390 | |||
391 | .el-icon-circle-close { | ||
392 | display: none; | ||
393 | } | ||
394 | |||
395 | .el-tabs__item { | ||
396 | color: #cef8ff !important; | ||
397 | display: flex; | ||
398 | flex-direction: row; | ||
399 | justify-content: center; | ||
400 | @include background("btnBg"); | ||
401 | border-radius: 3px; | ||
402 | } | ||
403 | |||
404 | .el-tabs__item.is-active { | ||
405 | @include background("btnselect"); | ||
406 | } | ||
407 | |||
408 | .from-clues-content { | ||
409 | margin-top: 0; | ||
410 | background: none; | ||
411 | padding: 0; | ||
412 | |||
413 | |||
414 | } | ||
415 | |||
416 | .editDialogBox-box { | ||
417 | position: relative; | ||
418 | top: 10px; | ||
419 | } | ||
420 | |||
421 | .dialog-from { | ||
422 | padding-top: 0; | ||
423 | |||
424 | .el-row { | ||
425 | display: flex; | ||
426 | flex-wrap: nowrap; | ||
427 | } | ||
428 | |||
429 | .el-col { | ||
430 | display: flex; | ||
431 | justify-content: space-between; | ||
432 | border: 1px solid #C0C4CC; | ||
433 | border-radius: 2px; | ||
434 | line-height: 36px; | ||
435 | height: 36px; | ||
436 | margin: 5px; | ||
437 | padding: 0 5px; | ||
438 | } | ||
439 | |||
440 | .bz { | ||
441 | height: 100%; | ||
442 | position: relative; | ||
443 | top: 3px; | ||
444 | } | ||
445 | |||
446 | .el-input { | ||
447 | flex: 1; | ||
448 | width: 100%; | ||
449 | } | ||
450 | |||
451 | .el-input__inner { | ||
452 | border: none; | ||
453 | text-align: right; | ||
454 | } | ||
455 | |||
456 | .el-select { | ||
457 | .el-input__suffix { | ||
458 | right: 0; | ||
459 | } | ||
460 | |||
461 | .el-input { | ||
462 | padding-right: 13px; | ||
463 | } | ||
464 | } | ||
465 | |||
466 | .el-textarea__inner { | ||
467 | margin: 0; | ||
468 | } | ||
469 | |||
470 | &_header { | ||
471 | // margin: 0 -5px !important; | ||
472 | } | ||
473 | |||
474 | &_title { | ||
475 | font-size: 14px; | ||
476 | font-weight: 600; | ||
477 | color: #000000; | ||
478 | margin: 3px 0; | ||
479 | } | ||
480 | } | ||
481 | } | ||
482 | |||
483 | .entryJournal { | ||
484 | .regularHeight { | ||
485 | height: 79vh; | ||
486 | } | ||
487 | } | ||
488 | |||
489 | .el-input-number__increase, | ||
490 | .el-input-number__decrease { | ||
491 | display: none !important; | ||
492 | } | ||
493 | |||
494 | // 数据上报弹出框 | ||
495 | .dataReporting { | ||
496 | .el-dialog__header { | ||
497 | width: 100%; | ||
498 | display: flex; | ||
499 | justify-content: center; | ||
500 | font-size: 24px; | ||
501 | @include background("navbg"); | ||
502 | |||
503 | .dialog_title { | ||
504 | color: white; | ||
505 | margin-bottom: 10px; | ||
506 | } | ||
507 | } | ||
508 | |||
509 | .el-dialog__headerbtn .el-dialog__close { | ||
510 | font-size: 20px; | ||
511 | color: #4162D8 | ||
512 | } | ||
513 | |||
514 | .el-tabs { | ||
515 | color: #cef8ff; | ||
516 | } | ||
517 | |||
518 | .d-center { | ||
519 | z-index: 1000; | ||
520 | } | ||
521 | |||
522 | .sjmx { | ||
523 | display: flex; | ||
524 | flex-direction: column; | ||
525 | height: 49vh; | ||
526 | |||
527 | .el-tabs__item { | ||
528 | height: 50px; | ||
529 | padding-top: 6px; | ||
530 | } | ||
531 | } | ||
532 | |||
533 | .result { | ||
534 | flex: 1; | ||
535 | height: 100%; | ||
536 | } | ||
537 | |||
538 | .editDialogBox-con { | ||
539 | flex: 1; | ||
540 | height: 100%; | ||
541 | overflow-y: hidden; | ||
542 | } | ||
543 | |||
544 | .el-tabs__item { | ||
545 | color: #cef8ff !important; | ||
546 | display: flex; | ||
547 | flex-direction: row; | ||
548 | justify-content: center; | ||
549 | @include background("btnBg"); | ||
550 | border-radius: 3px; | ||
551 | } | ||
552 | |||
553 | .obligee-item-name { | ||
554 | @include background("btnBg"); | ||
555 | border-radius: 3px; | ||
556 | @include borderColor("border"); | ||
557 | } | ||
558 | |||
559 | .el-tabs__nav-scroll { | ||
560 | background: none; | ||
561 | } | ||
562 | |||
563 | .result { | ||
564 | padding: 15px; | ||
565 | height: 100%; | ||
566 | |||
567 | .el-textarea__inner { | ||
568 | height: 50%; | ||
569 | color: #ffffff; | ||
570 | border: none !important; | ||
571 | color: #ffffff; | ||
572 | } | ||
573 | |||
574 | &-con { | ||
575 | background: #ffffff; | ||
576 | border-radius: 2px; | ||
577 | padding: 10px; | ||
578 | box-sizing: border-box; | ||
579 | height: 49%; | ||
580 | |||
581 | p { | ||
582 | color: #2997E8; | ||
583 | font-size: 14px; | ||
584 | position: relative; | ||
585 | padding-left: 10px; | ||
586 | } | ||
587 | |||
588 | p::before { | ||
589 | position: absolute; | ||
590 | content: ''; | ||
591 | width: 3px; | ||
592 | height: 10px; | ||
593 | background-color: #2997E8; | ||
594 | left: 0; | ||
595 | top: 3px; | ||
596 | } | ||
597 | } | ||
598 | } | ||
599 | |||
600 | .el-tabs__nav { | ||
601 | display: flex; | ||
602 | border: none !important; | ||
603 | } | ||
604 | |||
605 | .el-tabs__item.is-top { | ||
606 | border: 1px solid #dfe4ed; | ||
607 | border-top: 1px solid #dfe4ed; | ||
608 | border-bottom: 1px solid transparent; | ||
609 | } | ||
610 | |||
611 | .el-tabs__header { | ||
612 | border: none; | ||
613 | margin-bottom: 0; | ||
614 | border-bottom: none; | ||
615 | } | ||
616 | |||
617 | .el-tabs__item.is-top:not(:last-child) { | ||
618 | margin-right: 5px; | ||
619 | } | ||
620 | |||
621 | .el-tabs__item.is-top { | ||
622 | background-color: none !important; | ||
623 | } | ||
624 | |||
625 | .el-tabs__item.is-active { | ||
626 | @include background("btnselect"); | ||
627 | color: #FFFFFF; | ||
628 | } | ||
629 | |||
630 | .success-images { | ||
631 | width: 30px; | ||
632 | height: 30px; | ||
633 | position: relative; | ||
634 | top: 10px; | ||
635 | right: 3px; | ||
636 | } | ||
637 | |||
638 | .tab-pane-item { | ||
639 | line-height: 20px; | ||
640 | color: #FFFFFF; | ||
641 | |||
642 | p { | ||
643 | text-align: center; | ||
644 | } | ||
645 | } | ||
646 | |||
647 | .edit-content { | ||
648 | overflow-y: auto; | ||
649 | overflow-x: hidden; | ||
650 | padding-right: 1px; | ||
651 | border-top: none; | ||
652 | } | ||
653 | |||
654 | .editDialogBox { | ||
655 | border-radius: 8px; | ||
656 | overflow: hidden; | ||
657 | min-width: 1228px; | ||
658 | |||
659 | .el-dialog__header { | ||
660 | display: flex; | ||
661 | margin-bottom: 10px; | ||
662 | } | ||
663 | |||
664 | .dialog_footer { | ||
665 | flex-direction: column; | ||
666 | |||
667 | .dialog_button { | ||
668 | margin-top: 8px; | ||
669 | } | ||
670 | } | ||
671 | |||
672 | .divider { | ||
673 | width: 100%; | ||
674 | border-bottom: 1px solid #ccc; | ||
675 | } | ||
676 | } | ||
677 | |||
678 | .el-dialog__wrapper { | ||
679 | overflow: hidden; | ||
680 | } | ||
681 | } | ||
682 | |||
683 | // 人员管理角色管理菜单管理修改新增弹框样式 | ||
684 | .PersonnelDialog { | ||
685 | .el-dialog__headerbtn .el-dialog__close { | ||
686 | font-size: 20px; | ||
687 | color: #4162D8 | ||
688 | } | ||
689 | |||
690 | .el-dialog__header { | ||
691 | text-align: center; | ||
692 | margin-bottom: 10px; | ||
693 | font-size: 24px; | ||
694 | @include background("navbg"); | ||
695 | |||
696 | .dialog_title { | ||
697 | b { | ||
698 | color: white !important; | ||
699 | } | ||
700 | |||
701 | margin-bottom: 10px; | ||
702 | } | ||
703 | } | ||
704 | |||
705 | .el-form-item { | ||
706 | display: flex; | ||
707 | } | ||
708 | |||
709 | .el-dialog__header { | ||
710 | .el-dialog__headerbtn { | ||
711 | right: 20px !important; | ||
712 | top: 23px !important; | ||
713 | } | ||
714 | } | ||
715 | |||
716 | .selbig { | ||
717 | width: 500px; | ||
718 | } | ||
719 | } | ||
720 | |||
721 | // 弹框中间区域样式 | ||
722 | .dialogCon { | ||
723 | background: #ffffff; | ||
724 | border: 1px solid #294ef1; | ||
725 | padding: 15px; | ||
726 | |||
727 | .el-form-item__content { | ||
728 | display: flex; | ||
729 | } | ||
730 | } | ||
731 | |||
732 | // 修改密码界面样式 | ||
733 | .informationpassword { | ||
734 | margin: 36px 200px; | ||
735 | overflow-y: auto; | ||
736 | |||
737 | .form-wrapper { | ||
738 | padding: 24px 120px 0px; | ||
739 | |||
740 | .el-form-item { | ||
741 | margin-bottom: 24px; | ||
742 | |||
743 | .el-form-item__label { | ||
744 | color: #000000; | ||
745 | } | ||
746 | |||
747 | .el-input .el-input__inner { | ||
748 | padding: 0 8px; | ||
749 | height: 40px; | ||
750 | line-height: 40px; | ||
751 | } | ||
752 | } | ||
753 | } | ||
754 | |||
755 | .bottom-wrapper { | ||
756 | padding: 32px 120px 24px; | ||
757 | text-align: center; | ||
758 | } | ||
759 | } | ||
760 | |||
761 | // 个人信息 | ||
762 | .information { | ||
763 | height: calc(100% - 58px); | ||
764 | display: flex; | ||
765 | flex-direction: column; | ||
766 | |||
767 | .from-clues-content { | ||
768 | flex: 1; | ||
769 | height: 100%; | ||
770 | } | ||
771 | } | ||
772 | |||
773 | // 修改基本信息界面样式 | ||
774 | .informationbase { | ||
775 | margin: 0.1875rem 1.0417rem; | ||
776 | overflow-y: auto; | ||
777 | |||
778 | .form-wrapper { | ||
779 | padding: 0px 120px 0px; | ||
780 | |||
781 | .el-form-item { | ||
782 | /deep/.el-form-item__label { | ||
783 | color: #000000; | ||
784 | } | ||
785 | |||
786 | ::v-deep .el-input .el-input__inner { | ||
787 | padding: 0 8px; | ||
788 | height: 40px; | ||
789 | line-height: 40px; | ||
790 | } | ||
791 | } | ||
792 | |||
793 | .el-form-item--small.el-form-item { | ||
794 | margin-bottom: 16px; | ||
795 | } | ||
796 | } | ||
797 | |||
798 | .bottom-wrapper { | ||
799 | padding: 0px 120px 0px; | ||
800 | text-align: center; | ||
801 | } | ||
802 | } | ||
803 | |||
804 | // 权利人信息样式 | ||
805 | .itemForm { | ||
806 | position: relative; | ||
807 | padding: 10px; | ||
808 | |||
809 | .el-select { | ||
810 | width: 100%; | ||
811 | } | ||
812 | |||
813 | .el-form-item__error { | ||
814 | right: 25px; | ||
815 | top: 15px; | ||
816 | text-align: right; | ||
817 | pointer-events: none; | ||
818 | } | ||
819 | |||
820 | .el-date-editor { | ||
821 | width: 100%; | ||
822 | } | ||
823 | |||
824 | .el-date-editor--date { | ||
825 | width: 100%; | ||
826 | } | ||
827 | |||
828 | .el-cascader { | ||
829 | width: 100%; | ||
830 | } | ||
831 | |||
832 | // table 样式 | ||
833 | .el-form-item__label { | ||
834 | border-right: none; | ||
835 | text-align: center; | ||
836 | padding: 0; | ||
837 | line-height: 16px; | ||
838 | font-size: 12px; | ||
839 | text-align: right; | ||
840 | margin-top: 8px !important; | ||
841 | } | ||
842 | |||
843 | .el-form-item__content { | ||
844 | display: flex; | ||
845 | margin-right: -1px; | ||
846 | } | ||
847 | |||
848 | .obligee-item-name, | ||
849 | .receivingInfo-item-name, | ||
850 | .auditInfo-item-name { | ||
851 | @include background("btnselect"); | ||
852 | border-radius: 3px; | ||
853 | color: #FFFFFF; | ||
854 | } | ||
855 | |||
856 | .el-textarea__inner { | ||
857 | margin: 5px; | ||
858 | background: transparent; | ||
859 | color: #FFFFFF; | ||
860 | border-radius: 2px; | ||
861 | } | ||
862 | |||
863 | .el-input-number { | ||
864 | width: 100%; | ||
865 | } | ||
866 | |||
867 | .el-input-number__increase { | ||
868 | color: #FFFFFF; | ||
869 | border: none; | ||
870 | right: 7px; | ||
871 | top: 2px; | ||
872 | } | ||
873 | |||
874 | .el-input-number__decrease { | ||
875 | color: #FFFFFF; | ||
876 | border: none; | ||
877 | right: 7px; | ||
878 | bottom: 10px; | ||
879 | } | ||
880 | |||
881 | .el-input__inner { | ||
882 | margin: 5px; | ||
883 | border-radius: 2px; | ||
884 | text-align: left; | ||
885 | } | ||
886 | |||
887 | .el-form-item { | ||
888 | margin-bottom: 0; | ||
889 | margin-top: -1px; | ||
890 | } | ||
891 | |||
892 | .item-label { | ||
893 | display: flex; | ||
894 | align-items: flex-end; | ||
895 | flex-direction: column; | ||
896 | font-size: 12px; | ||
897 | flex: 0 0 90px; | ||
898 | margin-right: 3px; | ||
899 | |||
900 | p { | ||
901 | line-height: 16px; | ||
902 | white-space: nowrap; | ||
903 | text-align: right; | ||
904 | } | ||
905 | |||
906 | p:nth-child(1) { | ||
907 | position: relative; | ||
908 | right: 5px; | ||
909 | } | ||
910 | } | ||
911 | } | ||
912 | |||
913 | // 字典管理弹框 | ||
914 | .dictionary { | ||
915 | .el-dialog__header { | ||
916 | width: 100%; | ||
917 | display: flex; | ||
918 | justify-content: center; | ||
919 | font-size: 24px; | ||
920 | @include background("navbg"); | ||
921 | |||
922 | .dialog_title { | ||
923 | |||
924 | color: white; | ||
925 | margin-bottom: 10px; | ||
926 | } | ||
927 | } | ||
928 | |||
929 | .el-dialog__headerbtn .el-dialog__close { | ||
930 | font-size: 20px; | ||
931 | color: #4162D8 | ||
932 | } | ||
933 | } | ||
934 | |||
935 | // 配置参数 | ||
936 | .configuration { | ||
937 | color: white; | ||
938 | margin-top: 6vh; | ||
939 | |||
940 | .el-dialog { | ||
941 | background-color: #ffffff !important; | ||
942 | |||
943 | .el-dialog__header { | ||
944 | @include background("navbg"); | ||
945 | |||
946 | .el-dialog__title { | ||
947 | color: white !important; | ||
948 | } | ||
949 | |||
950 | .el-dialog__headerbtn { | ||
951 | top: 20px; | ||
952 | |||
953 | .el-dialog__close { | ||
954 | color: #4162D8 | ||
955 | } | ||
956 | } | ||
957 | } | ||
958 | |||
959 | /deep/ .jsoneditor-vue { | ||
960 | height: 100%; | ||
961 | } | ||
962 | |||
963 | .fullScreen { | ||
964 | position: absolute; | ||
965 | right: 4%; | ||
966 | top: 17%; | ||
967 | cursor: pointer; | ||
968 | color: #4162D8 | ||
969 | } | ||
970 | |||
971 | /deep/ .jsoneditor-modes { | ||
972 | display: none !important; | ||
973 | } | ||
974 | |||
975 | /deep/.jsoneditor-poweredBy { | ||
976 | display: none !important; | ||
977 | } | ||
978 | |||
979 | .jsoneditor-menu { | ||
980 | @include background("navbg"); | ||
981 | border-bottom: 1px solid #9c9e9f !important; | ||
982 | } | ||
983 | |||
984 | .jsoneditor { | ||
985 | border: 1px solid #9c9e9f !important; | ||
986 | } | ||
987 | |||
988 | .el-collapse { | ||
989 | border: 0; | ||
990 | } | ||
991 | |||
992 | .el-collapse-item__header { | ||
993 | height: 44px; | ||
994 | } | ||
995 | } | ||
996 | } | ||
997 | |||
998 | //定时任务弹框 | ||
999 | .scheduledtaskdialog { | ||
1000 | .el-dialog__header { | ||
1001 | width: 100%; | ||
1002 | display: flex; | ||
1003 | justify-content: center; | ||
1004 | font-size: 24px; | ||
1005 | @include background("navbg"); | ||
1006 | |||
1007 | .dialog_title { | ||
1008 | |||
1009 | color: white; | ||
1010 | margin-bottom: 10px; | ||
1011 | } | ||
1012 | } | ||
1013 | |||
1014 | .el-dialog__headerbtn .el-dialog__close { | ||
1015 | font-size: 20px; | ||
1016 | color: #4162D8 | ||
1017 | } | ||
1018 | } | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
src/styles/sbSidebar.scss
deleted
100644 → 0
1 | @import "~@/styles/_handle.scss"; | ||
2 | |||
3 | .main-container { | ||
4 | width: 100%; | ||
5 | height: calc(100% - 74px); | ||
6 | transition: margin-left 0.28s; | ||
7 | display: flex; | ||
8 | } | ||
9 | |||
10 | .el-form-item__content { | ||
11 | margin-left: 0 !important; | ||
12 | } | ||
13 | |||
14 | .sidebar-container { | ||
15 | transition: width 0.28s; | ||
16 | width: $sideBarWidth !important; | ||
17 | font-size: 0px; | ||
18 | @include background_color("menuBg"); | ||
19 | |||
20 | .horizontal-collapse-transition { | ||
21 | transition: 0s width ease-in-out, 0s padding-left ease-in-out, | ||
22 | 0s padding-right ease-in-out; | ||
23 | } | ||
24 | |||
25 | .el-scrollbar { | ||
26 | height: 100%; | ||
27 | } | ||
28 | |||
29 | .scrollbar-wrapper { | ||
30 | overflow-x: hidden !important; | ||
31 | margin-right: 0 !important; | ||
32 | |||
33 | &::-webkit-scrollbar { | ||
34 | display: none; | ||
35 | } | ||
36 | } | ||
37 | |||
38 | a { | ||
39 | display: inline-block; | ||
40 | width: 100%; | ||
41 | overflow: hidden; | ||
42 | } | ||
43 | |||
44 | .svg-icon { | ||
45 | margin-right: 5px; | ||
46 | } | ||
47 | |||
48 | .sub-el-icon { | ||
49 | margin-right: 12px; | ||
50 | margin-left: -2px; | ||
51 | } | ||
52 | |||
53 | .el-menu { | ||
54 | background-color: transparent !important; | ||
55 | border: none; | ||
56 | @include font_color("menuText"); | ||
57 | height: 100%; | ||
58 | width: 100% !important; | ||
59 | } | ||
60 | |||
61 | // menu hover | ||
62 | .el-menu--collapse .el-submenu__title, | ||
63 | .el-menu--collapse .submenu-title-noDropdown { | ||
64 | margin-left: 0px !important; | ||
65 | } | ||
66 | |||
67 | // 有子级 | ||
68 | .el-submenu__title { | ||
69 | @include font_color("menuText"); | ||
70 | background-color: transparent !important; | ||
71 | |||
72 | &:hover { | ||
73 | color: $subMenuActiveText !important; | ||
74 | @include font_color("submenuColor"); | ||
75 | border-right: 5px solid #36CEB6; | ||
76 | @include background_color("submenuBg"); | ||
77 | box-sizing: border-box; | ||
78 | |||
79 | .svg-icon, | ||
80 | i, | ||
81 | span { | ||
82 | @include font_color("submenuColor"); | ||
83 | } | ||
84 | } | ||
85 | } | ||
86 | |||
87 | // 没有子级 | ||
88 | .submenu-title-noDropdown { | ||
89 | @include font_color("menuText"); | ||
90 | padding-left: 20px; | ||
91 | height: 56px; | ||
92 | background-color: transparent !important; | ||
93 | |||
94 | &:hover { | ||
95 | @include font_color("submenuColor"); | ||
96 | @include background_color("submenuBg"); | ||
97 | border-right: 5px solid #36CEB6; | ||
98 | box-sizing: border-box; | ||
99 | |||
100 | .svg-icon { | ||
101 | color: #1ea6f8 !important; | ||
102 | } | ||
103 | |||
104 | i { | ||
105 | color: #1ea6f8 !important; | ||
106 | } | ||
107 | } | ||
108 | } | ||
109 | |||
110 | .submenu-title-noDropdown.is-active, | ||
111 | .el-submenu__title.is-active { | ||
112 | @include background_color("submenuBg"); | ||
113 | @include font_color("submenuColor"); | ||
114 | border-right: 5px solid #36CEB6; | ||
115 | box-sizing: border-box; | ||
116 | |||
117 | .svg-icon { | ||
118 | color: #1ea6f8 !important; | ||
119 | } | ||
120 | |||
121 | i { | ||
122 | color: #1ea6f8 !important; | ||
123 | } | ||
124 | } | ||
125 | |||
126 | .submenu-title-noDropdown, | ||
127 | .el-submenu__title { | ||
128 | font-weight: 600; | ||
129 | font-size: $sideBarFontSize; | ||
130 | |||
131 | >i { | ||
132 | color: $subMenuActiveText !important; | ||
133 | transform: rotate(90deg); | ||
134 | -webkit-transform: rotate(90deg); | ||
135 | -moz-transform: rotate(90deg); | ||
136 | -ms-transform: rotate(90deg); | ||
137 | -o-transform: rotate(90deg); | ||
138 | margin-right: 10px; | ||
139 | } | ||
140 | |||
141 | .svg-icon { | ||
142 | font-size: 18px; | ||
143 | color: #6D7278 !important; | ||
144 | } | ||
145 | } | ||
146 | |||
147 | .el-submenu.is-opened>.el-submenu__title .el-submenu__icon-arrow { | ||
148 | transform: rotateZ(0deg) !important; | ||
149 | -webkit-transform: rotateZ(0deg) !important; | ||
150 | -moz-transform: rotateZ(0deg) !important; | ||
151 | -ms-transform: rotateZ(0deg) !important; | ||
152 | -o-transform: rotateZ(0deg) !important; | ||
153 | } | ||
154 | |||
155 | & .nest-menu .el-submenu>.el-submenu__title, | ||
156 | & .el-submenu .el-menu-item { | ||
157 | |||
158 | &.is-active { | ||
159 | @include background_color("menuActive"); | ||
160 | @include font_color("menuActiveText"); | ||
161 | } | ||
162 | |||
163 | &:hover { | ||
164 | @include background_color("menuActive"); | ||
165 | @include font_color("menuActiveText"); | ||
166 | color: $menuActiveText !important; | ||
167 | } | ||
168 | |||
169 | min-width: 130px !important; | ||
170 | background-color: transparent !important; | ||
171 | font-weight: 600; | ||
172 | @include font_color("menuText"); | ||
173 | font-size: $sideBarFontSize; | ||
174 | } | ||
175 | } | ||
176 | |||
177 | .hideSidebar { | ||
178 | .sidebar-container { | ||
179 | width: 54px !important; | ||
180 | } | ||
181 | |||
182 | .submenu-title-noDropdown { | ||
183 | padding: 0 !important; | ||
184 | position: relative; | ||
185 | |||
186 | .el-tooltip { | ||
187 | padding: 0 !important; | ||
188 | |||
189 | .svg-icon { | ||
190 | margin-left: 16px; | ||
191 | } | ||
192 | |||
193 | .sub-el-icon { | ||
194 | margin-left: 19px; | ||
195 | } | ||
196 | } | ||
197 | } | ||
198 | |||
199 | .el-submenu { | ||
200 | overflow: hidden; | ||
201 | |||
202 | &>.el-submenu__title { | ||
203 | padding: 0 !important; | ||
204 | |||
205 | .svg-icon { | ||
206 | margin-left: 16px; | ||
207 | } | ||
208 | |||
209 | .sub-el-icon { | ||
210 | margin-left: 19px; | ||
211 | } | ||
212 | |||
213 | .el-submenu__icon-arrow { | ||
214 | display: none; | ||
215 | } | ||
216 | } | ||
217 | } | ||
218 | |||
219 | .el-menu--collapse { | ||
220 | .el-submenu { | ||
221 | &>.el-submenu__title { | ||
222 | &>span { | ||
223 | height: 0; | ||
224 | width: 0; | ||
225 | overflow: hidden; | ||
226 | visibility: hidden; | ||
227 | display: inline-block; | ||
228 | } | ||
229 | } | ||
230 | } | ||
231 | } | ||
232 | } | ||
233 | |||
234 | .el-menu--collapse .el-menu .el-submenu { | ||
235 | min-width: $sideBarWidth !important; | ||
236 | } | ||
237 | |||
238 | // mobile responsive | ||
239 | .mobile { | ||
240 | .main-container { | ||
241 | margin-left: 0px; | ||
242 | } | ||
243 | |||
244 | .sidebar-container { | ||
245 | transition: transform 0.28s; | ||
246 | width: $sideBarWidth !important; | ||
247 | } | ||
248 | |||
249 | &.hideSidebar { | ||
250 | .sidebar-container { | ||
251 | pointer-events: none; | ||
252 | transition-duration: 0.3s; | ||
253 | transform: translate3d(-$sideBarWidth, 0, 0); | ||
254 | } | ||
255 | } | ||
256 | } | ||
257 | |||
258 | .withoutAnimation { | ||
259 | |||
260 | .main-container, | ||
261 | .sidebar-container { | ||
262 | transition: none; | ||
263 | } | ||
264 | } | ||
265 | |||
266 | // when menu collapsed | ||
267 | .el-menu--vertical { | ||
268 | &>.el-menu { | ||
269 | .svg-icon { | ||
270 | margin-right: 16px; | ||
271 | } | ||
272 | |||
273 | .sub-el-icon { | ||
274 | margin-right: 12px; | ||
275 | margin-left: -2px; | ||
276 | } | ||
277 | } | ||
278 | |||
279 | .nest-menu .el-submenu>.el-submenu__title, | ||
280 | .el-menu-item { | ||
281 | width: calc(100% - 12px); | ||
282 | border-top-right-radius: 8px; | ||
283 | border-bottom-right-radius: 8px; | ||
284 | font-weight: 600 !important; | ||
285 | font-size: 15px !important; | ||
286 | @include background("menuActive"); | ||
287 | @include font_color("menuText"); | ||
288 | |||
289 | &:hover { | ||
290 | @include background("menuActive"); | ||
291 | opacity: .9; | ||
292 | |||
293 | .svg-icon, | ||
294 | i, | ||
295 | span { | ||
296 | color: $menuText; | ||
297 | } | ||
298 | } | ||
299 | } | ||
300 | |||
301 | // the scroll bar appears when the subMenu is too long | ||
302 | >.el-menu--popup { | ||
303 | max-height: 100vh; | ||
304 | overflow-y: auto; | ||
305 | background-color: #32ACFE !important; | ||
306 | border-top-right-radius: 8px; | ||
307 | border-bottom-right-radius: 8px; | ||
308 | min-width: 140px; | ||
309 | padding: 12px 0; | ||
310 | |||
311 | &::-webkit-scrollbar-track-piece { | ||
312 | background: #d3dce6; | ||
313 | } | ||
314 | |||
315 | &::-webkit-scrollbar { | ||
316 | width: 6px; | ||
317 | } | ||
318 | |||
319 | &::-webkit-scrollbar-thumb { | ||
320 | background: #99a9bf; | ||
321 | border-radius: 20px; | ||
322 | } | ||
323 | } | ||
324 | } | ||
325 | |||
326 | .el-submenu.is-active .el-submenu__title { | ||
327 | @include background_color("submenuBg"); | ||
328 | @include font_color("submenuColor"); | ||
329 | border-right: 5px solid #36CEB6; | ||
330 | } | ||
331 | |||
332 | .el-submenu.is-active .el-submenu__title:hover { | ||
333 | @include font_color("submenuColor"); | ||
334 | } | ||
335 | |||
336 | .el-submenu.is-active .el-submenu__title .svg-icon { | ||
337 | @include font_color("submenuColor"); | ||
338 | } | ||
339 | |||
340 | .el-submenu__title { | ||
341 | display: flex; | ||
342 | align-items: center; | ||
343 | } | ||
344 | |||
345 | .sidebar-container .submenu-title-noDropdown>i, | ||
346 | .sidebar-container .el-submenu__title>i { | ||
347 | color: #6D7278 !important; | ||
348 | } | ||
349 | |||
350 | .el-submenu.is-active .el-submenu__title>i { | ||
351 | color: #FFFFFF !important; | ||
352 | } | ||
353 | |||
354 | .el-submenu__title span { | ||
355 | white-space: normal; | ||
356 | word-break: break-all; | ||
357 | line-height: 20px; | ||
358 | flex: 1; | ||
359 | padding-right: 20px; | ||
360 | } | ||
361 | |||
362 | .el-menu-item { | ||
363 | height: 42px; | ||
364 | display: flex; | ||
365 | align-items: center; | ||
366 | padding-right: 20px !important; | ||
367 | } | ||
368 | |||
369 | .el-menu-item span { | ||
370 | // white-space: nowrap !important; | ||
371 | word-break: break-all; | ||
372 | line-height: 20px; | ||
373 | flex: 1; | ||
374 | } | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | /* | 1 | /* |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-03-24 16:44:54 | 4 | * @LastEditTime: 2023-05-11 17:23:08 |
5 | */ | 5 | */ |
6 | import Vue from 'vue' | 6 | export default function getTheme () { |
7 | export default function getTheme (theme = Vue.prototype.BASE_API.THEME) { | 7 | import("@/styles/jgPublic.scss") |
8 | const resultMap = { | ||
9 | 'jg': function () { | ||
10 | return import("@/styles/jgPublic.scss"); | ||
11 | }, | ||
12 | 'sb': function () { | ||
13 | return import("@/styles/sbPublic.scss"); | ||
14 | }, | ||
15 | 'default': function () { | ||
16 | throw new Error(`Unsupported theme: ${theme}`); | ||
17 | }, | ||
18 | }; | ||
19 | const result = resultMap[theme](); | ||
20 | if (result instanceof Promise) { | ||
21 | return result; | ||
22 | } else { | ||
23 | return resultMap.default(); | ||
24 | } | ||
25 | } | 8 | } |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
1 | <template> | ||
2 | <!-- 接收报文查询 --> | ||
3 | <div class="reportLog from-clues"> | ||
4 | <!-- 头部搜索 --> | ||
5 | <div class="from-clues-header"> | ||
6 | <el-form ref="ruleForm" :model="form" label-width="100px"> | ||
7 | <el-form-item v-if="BASE_API.THEME == 'jg'"> | ||
8 | <Breadcrumb /> | ||
9 | </el-form-item> | ||
10 | <el-row class="mb-5"> | ||
11 | <el-col :span="6"> | ||
12 | <el-form-item label="权利人名称" prop="qlrmc"> | ||
13 | <el-input v-model.trim="form.qlrmc" clearable class="width100" placeholder="权利人名称"></el-input> | ||
14 | </el-form-item> | ||
15 | </el-col> | ||
16 | <el-col :span="6"> | ||
17 | <el-form-item label="证件号" prop="zjh"> | ||
18 | <el-input v-model.trim="form.zjh" clearable class="width100" placeholder="证件号"></el-input> | ||
19 | </el-form-item> | ||
20 | </el-col> | ||
21 | <!-- 按钮操作 --> | ||
22 | <el-col :span="6" class="btnColRight"> | ||
23 | <el-form-item> | ||
24 | <btn nativeType="cx" @click="handleSearchResult">查询</btn> | ||
25 | </el-form-item> | ||
26 | </el-col> | ||
27 | </el-row> | ||
28 | </el-form> | ||
29 | </div> | ||
30 | <!-- 列表区域 --> | ||
31 | <div class="from-clues-content"> | ||
32 | <lb-table ref="table" :page-size="pageData.size" :current-page.sync="pageData.current" :total="tableData.total" | ||
33 | @size-change="handleSizeChange" @p-current-change="handleCurrentChange" :column="tableData.columns" | ||
34 | :data="tableData.data"> | ||
35 | </lb-table> | ||
36 | </div> | ||
37 | </div> | ||
38 | </template> | ||
39 | |||
40 | <script> | ||
41 | import Vue from 'vue' | ||
42 | // 接收报文查询 | ||
43 | // 引入表格头部数据 | ||
44 | import data from "../data"; | ||
45 | // 引入table混入方法 | ||
46 | import tableMixin from "@/mixins/tableMixin.js"; | ||
47 | import { saveSearchRecord } from "@/api/searchRecord.js"; | ||
48 | //引入日期处理方法 | ||
49 | import { timeFormat } from "@/utils/operation"; | ||
50 | export default { | ||
51 | name: "jsbwcx", | ||
52 | mixins: [tableMixin], | ||
53 | // 注册组件 | ||
54 | components: { | ||
55 | }, | ||
56 | data () { | ||
57 | return { | ||
58 | |||
59 | pickerOptionsStart: { | ||
60 | disabledDate: (time) => { | ||
61 | let endDateVal = this.form.receiveEndTime; | ||
62 | if (endDateVal) { | ||
63 | return ( | ||
64 | time.getTime() >= | ||
65 | new Date(endDateVal).getTime() | ||
66 | ); | ||
67 | } | ||
68 | }, | ||
69 | }, | ||
70 | pickerOptionsEnd: { | ||
71 | disabledDate: (time) => { | ||
72 | let beginDateVal = this.form.receiveStartTime; | ||
73 | if (beginDateVal) { | ||
74 | return ( | ||
75 | time.getTime() < | ||
76 | new Date(beginDateVal).getTime() | ||
77 | ); | ||
78 | } | ||
79 | }, | ||
80 | }, | ||
81 | // 表格数据 | ||
82 | form: { | ||
83 | qlrmc: "", // 行政区 | ||
84 | zjh: "", // 开始日期 | ||
85 | }, | ||
86 | // 校验规则 | ||
87 | rules: { | ||
88 | pcode: [{ required: true, message: "请选择行政区", trigger: "change" }], | ||
89 | startTime: [ | ||
90 | { required: true, message: "请选择开始日期", trigger: "change" }, | ||
91 | ], | ||
92 | endTime: [ | ||
93 | { required: true, message: "请选择结束日期", trigger: "change" }, | ||
94 | ], | ||
95 | bdcdyh: [ | ||
96 | { required: true, message: "不动产单元号", trigger: "change" }, | ||
97 | ], | ||
98 | ywmc: [{ required: true, message: "业务名称", trigger: "change" }], | ||
99 | jcjg: [{ required: true, message: "检查结果", trigger: "change" }], | ||
100 | rkjg: [{ required: true, message: "入库结果", trigger: "change" }], | ||
101 | }, | ||
102 | // 表格数据 | ||
103 | tableData: { | ||
104 | // 表格头部 | ||
105 | columns: [ | ||
106 | { | ||
107 | label: "序号", | ||
108 | type: "index", | ||
109 | width: "50", | ||
110 | index: this.indexMethod, | ||
111 | }, | ||
112 | { | ||
113 | prop: 'bdcdyh', | ||
114 | label: '不动产单元号', | ||
115 | width: 200 | ||
116 | }, | ||
117 | { | ||
118 | prop: "bdcqzh", | ||
119 | label: "不动产权证号", | ||
120 | width: 160, | ||
121 | }, | ||
122 | { | ||
123 | prop: 'djsj', | ||
124 | label: '登记时间', | ||
125 | width: 200 | ||
126 | }, | ||
127 | { | ||
128 | prop: "fdzl", | ||
129 | label: "坐落", | ||
130 | width: 160, | ||
131 | }, | ||
132 | { | ||
133 | prop: 'ghyt', | ||
134 | label: '用途', | ||
135 | width: 200 | ||
136 | }, | ||
137 | { | ||
138 | prop: "gyqk", | ||
139 | label: "共有情况", | ||
140 | width: 160, | ||
141 | }, | ||
142 | { | ||
143 | prop: 'jzmj', | ||
144 | label: '建筑面积', | ||
145 | width: 100 | ||
146 | }, | ||
147 | { | ||
148 | prop: "qlrmc", | ||
149 | label: "权利人", | ||
150 | width: 100, | ||
151 | }, | ||
152 | { | ||
153 | prop: "zjh", | ||
154 | label: "证件号", | ||
155 | width: 260, | ||
156 | }, | ||
157 | ], | ||
158 | // 表格列表数据 | ||
159 | total: 0, | ||
160 | data: [], | ||
161 | }, | ||
162 | // 分页 | ||
163 | pageData: { | ||
164 | total: 0, | ||
165 | pageSize: 10, | ||
166 | current: 1 | ||
167 | }, | ||
168 | title: "", | ||
169 | }; | ||
170 | }, | ||
171 | methods: { | ||
172 | //截止日期变化 | ||
173 | endTimeChange (val) { | ||
174 | this.form.receiveEndTime = timeFormat(new Date(val), true) | ||
175 | }, | ||
176 | // 初始化数据 | ||
177 | queryClickSearch () { | ||
178 | saveSearchRecord({ ...this.form, ...this.formData }).then( | ||
179 | (res) => { | ||
180 | if (res.code === 200) { | ||
181 | this.tableData.data = res.result | ||
182 | } else { | ||
183 | this.$message.warning(res.message) | ||
184 | } | ||
185 | } | ||
186 | ) | ||
187 | }, | ||
188 | // 重置 | ||
189 | resetForm () { | ||
190 | this.$refs.ruleForm.resetFields(); | ||
191 | this.form.currentPage = 1 | ||
192 | }, | ||
193 | featchData () {}, | ||
194 | // 结果 | ||
195 | handleResult (row) { | ||
196 | this.$popupDialog('响应结果', 'views/jsbwcx/components/result', row) | ||
197 | }, | ||
198 | handleSearchResult() { | ||
199 | this.queryClickSearch() | ||
200 | }, | ||
201 | // 详情 | ||
202 | handleDetails (row) {}, | ||
203 | } | ||
204 | } | ||
205 | </script> | ||
206 | <style scoped lang="scss"> | ||
207 | .lastdom:nth-child(3) { | ||
208 | margin-bottom: 0px; | ||
209 | } | ||
210 | </style> | ||
211 |
src/views/gbxxcx/data/index.js
deleted
100644 → 0
1 | /* | ||
2 | * @Description: | ||
3 | * @Autor: renchao | ||
4 | * @LastEditTime: 2023-03-17 15:10:43 | ||
5 | */ | ||
6 | import filter from '@/utils/filter.js' | ||
7 | class data extends filter { | ||
8 | constructor() { | ||
9 | super() | ||
10 | } | ||
11 | columns () { | ||
12 | return [ | ||
13 | { | ||
14 | prop: 'name', | ||
15 | label: '查询人员', | ||
16 | }, | ||
17 | { | ||
18 | prop: 'zjh', | ||
19 | label: '查询证件号', | ||
20 | }, | ||
21 | { | ||
22 | prop: "zjmc", | ||
23 | label: "查询证件名称", | ||
24 | }, | ||
25 | { | ||
26 | prop: "createtime", | ||
27 | label: "查询时间", | ||
28 | }, | ||
29 | // { | ||
30 | // prop: "result", | ||
31 | // label: "查询结果", | ||
32 | // } | ||
33 | ] | ||
34 | } | ||
35 | } | ||
36 | export default new data() |
src/views/gbxxcx/index.vue
deleted
100644 → 0
1 | <template> | ||
2 | <!-- 接收报文查询 --> | ||
3 | <div class="reportLog from-clues"> | ||
4 | <!-- 头部搜索 --> | ||
5 | <div class="from-clues-header"> | ||
6 | <el-form ref="ruleForm" :model="form" label-width="100px"> | ||
7 | <el-form-item v-if="BASE_API.THEME == 'jg'"> | ||
8 | <Breadcrumb /> | ||
9 | </el-form-item> | ||
10 | <el-row class="mb-5"> | ||
11 | <el-col :span="6"> | ||
12 | <el-form-item label="查询人员" prop="qxdm"> | ||
13 | <el-input v-model.trim="form.name" clearable class="width100" placeholder="查询人员"></el-input> | ||
14 | </el-form-item> | ||
15 | </el-col> | ||
16 | <el-col :span="6"> | ||
17 | <el-form-item label="查询日期" prop="startTime"> | ||
18 | <el-date-picker type="date" class="width100" placeholder="开始日期" :picker-options="pickerOptionsStart" | ||
19 | clearable v-model="form.startTime" value-format="yyyy-MM-dd HH:mm:ss"></el-date-picker> | ||
20 | </el-form-item> | ||
21 | </el-col> | ||
22 | <el-col :span="6"> | ||
23 | <el-form-item label="至" prop="endTime" label-width="35px"> | ||
24 | <el-date-picker type="date" class="width100" placeholder="结束日期" :picker-options="pickerOptionsEnd" clearable | ||
25 | v-model="form.endTime" value-format="yyyy-MM-dd HH:mm:ss" @change="endTimeChange"></el-date-picker> | ||
26 | </el-form-item> | ||
27 | </el-col> | ||
28 | <el-col :span="6"> | ||
29 | <el-form-item label="证件号" prop="zjh"> | ||
30 | <el-input v-model.trim="form.zjh" clearable class="width100" placeholder="不动产单元号"></el-input> | ||
31 | </el-form-item> | ||
32 | </el-col> | ||
33 | </el-row> | ||
34 | <el-row class="mt-10"> | ||
35 | <el-col :span="6"> | ||
36 | <el-form-item label="查询证件名称" prop="zjmc"> | ||
37 | <el-input v-model.trim="form.zjmc" clearable class="width100" placeholder="业务流水号"></el-input> | ||
38 | </el-form-item> | ||
39 | </el-col> | ||
40 | <!-- 按钮操作 --> | ||
41 | <el-col :span="6" class="btnColRight"> | ||
42 | <el-form-item> | ||
43 | <btn nativeType="cz" @click="save">新增</btn> | ||
44 | <btn nativeType="cx" @click="handleSearch">查询</btn> | ||
45 | <!-- <btn nativeType="resetForm">重置</btn> --> | ||
46 | </el-form-item> | ||
47 | </el-col> | ||
48 | </el-row> | ||
49 | </el-form> | ||
50 | </div> | ||
51 | <!-- 列表区域 --> | ||
52 | <div class="from-clues-content"> | ||
53 | <lb-table ref="table" :page-size="pageData.size" :current-page.sync="pageData.current" :total="tableData.total" | ||
54 | @size-change="handleSizeChange" @p-current-change="handleCurrentChange" :column="tableData.columns" | ||
55 | :data="tableData.data"> | ||
56 | </lb-table> | ||
57 | </div> | ||
58 | <!-- 编辑 --> | ||
59 | <el-dialog :close-on-click-modal="false" top="0" | ||
60 | custom-class="dialogBox dataReporting editDialogBox sbdialog commonDialog mainCenter" :visible.sync="dialogVisible" | ||
61 | width="92%"> | ||
62 | <search-result></search-result> | ||
63 | </el-dialog> | ||
64 | </div> | ||
65 | </template> | ||
66 | |||
67 | <script> | ||
68 | import Vue from 'vue' | ||
69 | // 接收报文查询 | ||
70 | // 引入表格头部数据 | ||
71 | import data from "./data"; | ||
72 | // 引入table混入方法 | ||
73 | import tableMixin from "@/mixins/tableMixin.js"; | ||
74 | import { getSearchRecordList } from "@/api/searchRecord.js"; | ||
75 | // 引入详情弹框 | ||
76 | import SearchResult from "./components/result"; | ||
77 | //引入日期处理方法 | ||
78 | import { timeFormat } from "@/utils/operation"; | ||
79 | export default { | ||
80 | name: "jsbwcx", | ||
81 | mixins: [tableMixin], | ||
82 | // 注册组件 | ||
83 | components: { | ||
84 | SearchResult | ||
85 | }, | ||
86 | data () { | ||
87 | return { | ||
88 | dialogVisible: false, | ||
89 | pickerOptionsStart: { | ||
90 | disabledDate: (time) => { | ||
91 | let endDateVal = this.form.receiveEndTime; | ||
92 | if (endDateVal) { | ||
93 | return ( | ||
94 | time.getTime() >= | ||
95 | new Date(endDateVal).getTime() | ||
96 | ); | ||
97 | } | ||
98 | }, | ||
99 | }, | ||
100 | pickerOptionsEnd: { | ||
101 | disabledDate: (time) => { | ||
102 | let beginDateVal = this.form.receiveStartTime; | ||
103 | if (beginDateVal) { | ||
104 | return ( | ||
105 | time.getTime() < | ||
106 | new Date(beginDateVal).getTime() | ||
107 | ); | ||
108 | } | ||
109 | }, | ||
110 | }, | ||
111 | // 表格数据 | ||
112 | form: { | ||
113 | qxdm: "", // 行政区 | ||
114 | receiveStartTime: "", // 开始日期 | ||
115 | receiveEndTime: "", // 结束日期 | ||
116 | bdcdyh: "", // 不动产单元号 | ||
117 | ywh: "", // 业务号 | ||
118 | qllx: "", // 权利类型 | ||
119 | djlx: "", // 登记类型 | ||
120 | jcjg: "", // 检查结果 | ||
121 | rkjg: "", //入库结果 | ||
122 | currentPage: 1 | ||
123 | }, | ||
124 | // 校验规则 | ||
125 | rules: { | ||
126 | pcode: [{ required: true, message: "请选择行政区", trigger: "change" }], | ||
127 | startTime: [ | ||
128 | { required: true, message: "请选择开始日期", trigger: "change" }, | ||
129 | ], | ||
130 | endTime: [ | ||
131 | { required: true, message: "请选择结束日期", trigger: "change" }, | ||
132 | ], | ||
133 | bdcdyh: [ | ||
134 | { required: true, message: "不动产单元号", trigger: "change" }, | ||
135 | ], | ||
136 | ywmc: [{ required: true, message: "业务名称", trigger: "change" }], | ||
137 | jcjg: [{ required: true, message: "检查结果", trigger: "change" }], | ||
138 | rkjg: [{ required: true, message: "入库结果", trigger: "change" }], | ||
139 | }, | ||
140 | // 表格数据 | ||
141 | tableData: { | ||
142 | // 表格头部 | ||
143 | columns: [ | ||
144 | { | ||
145 | label: "序号", | ||
146 | type: "index", | ||
147 | width: "50", | ||
148 | index: this.indexMethod, | ||
149 | } | ||
150 | ] | ||
151 | .concat(data.columns()) | ||
152 | .concat([ | ||
153 | { | ||
154 | label: "操作", | ||
155 | width: "90", | ||
156 | render: (h, scope) => { | ||
157 | return ( | ||
158 | <div> | ||
159 | <el-button | ||
160 | type="text" | ||
161 | class='btnColor' | ||
162 | onClick={() => { | ||
163 | this.handleDetails(scope.row); | ||
164 | }} | ||
165 | > | ||
166 | 详情 | ||
167 | </el-button> | ||
168 | </div> | ||
169 | ) | ||
170 | } | ||
171 | } | ||
172 | ]), | ||
173 | // 表格列表数据 | ||
174 | total: 0, | ||
175 | data: [], | ||
176 | }, | ||
177 | // 分页 | ||
178 | pageData: { | ||
179 | total: 0, | ||
180 | pageSize: 10, | ||
181 | current: 1 | ||
182 | }, | ||
183 | title: "", | ||
184 | }; | ||
185 | }, | ||
186 | methods: { | ||
187 | //截止日期变化 | ||
188 | endTimeChange (val) { | ||
189 | this.form.receiveEndTime = timeFormat(new Date(val), true) | ||
190 | }, | ||
191 | // 初始化数据 | ||
192 | queryClick () { | ||
193 | getSearchRecordList({ ...this.form, ...this.formData }).then( | ||
194 | (res) => { | ||
195 | if (res.code === 200) { | ||
196 | let { total, records, current } = res.result; | ||
197 | this.tableData.total = total; | ||
198 | this.tableData.data = records ? records : []; | ||
199 | this.pageData.current = current | ||
200 | } | ||
201 | } | ||
202 | ) | ||
203 | }, | ||
204 | // 重置 | ||
205 | resetForm () { | ||
206 | this.$refs.ruleForm.resetFields(); | ||
207 | this.form.currentPage = 1 | ||
208 | this.queryClick(); | ||
209 | }, | ||
210 | featchData () { | ||
211 | this.queryClick(); | ||
212 | }, | ||
213 | // 结果 | ||
214 | handleResult (row) { | ||
215 | this.$popupDialog('响应结果', 'views/jsbwcx/components/result', row) | ||
216 | }, | ||
217 | // 详情 | ||
218 | handleDetails (row) {}, | ||
219 | save() { | ||
220 | this.dialogVisible = true; | ||
221 | }, | ||
222 | } | ||
223 | } | ||
224 | </script> | ||
225 | <style scoped lang="scss"> | ||
226 | .lastdom:nth-child(3) { | ||
227 | margin-bottom: 0px; | ||
228 | } | ||
229 | </style> | ||
230 |
... | @@ -136,7 +136,7 @@ | ... | @@ -136,7 +136,7 @@ |
136 | // 生成文件名 | 136 | // 生成文件名 |
137 | generateFileName () { | 137 | generateFileName () { |
138 | var reg = /(\d{4})\-(\d{2})\-(\d{2})/; | 138 | var reg = /(\d{4})\-(\d{2})\-(\d{2})/; |
139 | this.downTitle = `汉中市不动产登记增量数据接入质量评价表(${this.form.startTime.replace(reg, "$1年$2月$3日")}至${this.form.endTime.replace(reg, "$1年$2月$3日")})` | 139 | this.downTitle = this.BASE_API.XZQ + `不动产登记增量数据接入质量评价表(${this.form.startTime.replace(reg, "$1年$2月$3日")}至${this.form.endTime.replace(reg, "$1年$2月$3日")})` |
140 | }, | 140 | }, |
141 | headerStyle ({ row, rowIndex }) { | 141 | headerStyle ({ row, rowIndex }) { |
142 | if (rowIndex == 4) { | 142 | if (rowIndex == 4) { | ... | ... |
src/views/jktj/index.vue
deleted
100644 → 0
1 | <template> | ||
2 | <el-table :data="tableData" style="width: 100%"> | ||
3 | <el-table-column prop="date" label="日期" width="150"> | ||
4 | </el-table-column> | ||
5 | <el-table-column label="配送信息"> | ||
6 | <el-table-column prop="name" label="姓名" width="120"> | ||
7 | </el-table-column> | ||
8 | <el-table-column label="地址"> | ||
9 | <el-table-column prop="province" label="省份" width="120"> | ||
10 | </el-table-column> | ||
11 | <el-table-column prop="city" label="市区" width="120"> | ||
12 | </el-table-column> | ||
13 | <el-table-column prop="address" label="地址" width="300"> | ||
14 | </el-table-column> | ||
15 | <el-table-column prop="zip" label="邮编" width="120"> | ||
16 | </el-table-column> | ||
17 | </el-table-column> | ||
18 | </el-table-column> | ||
19 | </el-table> | ||
20 | </template> | ||
21 | |||
22 | <script> | ||
23 | export default { | ||
24 | data () { | ||
25 | return { | ||
26 | tableData: [{ | ||
27 | date: '2016-05-03', | ||
28 | name: '王小虎', | ||
29 | province: '上海', | ||
30 | city: '普陀区', | ||
31 | address: '上海市普陀区金沙江路 1518 弄', | ||
32 | zip: 200333 | ||
33 | }, { | ||
34 | date: '2016-05-02', | ||
35 | name: '王小虎', | ||
36 | province: '上海', | ||
37 | city: '普陀区', | ||
38 | address: '上海市普陀区金沙江路 1518 弄', | ||
39 | zip: 200333 | ||
40 | }, { | ||
41 | date: '2016-05-04', | ||
42 | name: '王小虎', | ||
43 | province: '上海', | ||
44 | city: '普陀区', | ||
45 | address: '上海市普陀区金沙江路 1518 弄', | ||
46 | zip: 200333 | ||
47 | }, { | ||
48 | date: '2016-05-01', | ||
49 | name: '王小虎', | ||
50 | province: '上海', | ||
51 | city: '普陀区', | ||
52 | address: '上海市普陀区金沙江路 1518 弄', | ||
53 | zip: 200333 | ||
54 | }, { | ||
55 | date: '2016-05-08', | ||
56 | name: '王小虎', | ||
57 | province: '上海', | ||
58 | city: '普陀区', | ||
59 | address: '上海市普陀区金沙江路 1518 弄', | ||
60 | zip: 200333 | ||
61 | }, { | ||
62 | date: '2016-05-06', | ||
63 | name: '王小虎', | ||
64 | province: '上海', | ||
65 | city: '普陀区', | ||
66 | address: '上海市普陀区金沙江路 1518 弄', | ||
67 | zip: 200333 | ||
68 | }, { | ||
69 | date: '2016-05-07', | ||
70 | name: '王小虎', | ||
71 | province: '上海', | ||
72 | city: '普陀区', | ||
73 | address: '上海市普陀区金沙江路 1518 弄', | ||
74 | zip: 200333 | ||
75 | }] | ||
76 | } | ||
77 | } | ||
78 | } | ||
79 | </script> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
File moved
... | @@ -44,17 +44,17 @@ | ... | @@ -44,17 +44,17 @@ |
44 | </template> | 44 | </template> |
45 | 45 | ||
46 | <script> | 46 | <script> |
47 | // 相关字段空置率统计 | 47 | // 相关字段空置率统计 |
48 | // 引入表格头部数据 | 48 | // 引入表格头部数据 |
49 | import data from "./data"; | 49 | import data from "./data"; |
50 | // 引入table混入方法 | 50 | // 引入table混入方法 |
51 | import tableMixin from "@/mixins/tableMixin.js"; | 51 | import tableMixin from "@/mixins/tableMixin.js"; |
52 | // 导出excel表格 | 52 | // 导出excel表格 |
53 | import downLbTable from '@/components/DownLbTable' | 53 | import downLbTable from '@/components/DownLbTable' |
54 | // 获取时间 | 54 | // 获取时间 |
55 | import { getCurrentDate, setExport2Excel } from "@/utils/tools"; | 55 | import { getCurrentDate, setExport2Excel } from "@/utils/tools"; |
56 | import { nonNullSta } from "@/api/statistics.js"; | 56 | import { nonNullSta } from "@/api/statistics.js"; |
57 | export default { | 57 | export default { |
58 | name: "jsbwcx", | 58 | name: "jsbwcx", |
59 | components: { | 59 | components: { |
60 | downLbTable | 60 | downLbTable |
... | @@ -131,7 +131,7 @@ export default { | ... | @@ -131,7 +131,7 @@ export default { |
131 | // 生成文件名 | 131 | // 生成文件名 |
132 | generateFileName () { | 132 | generateFileName () { |
133 | var reg = /(\d{4})\-(\d{2})\-(\d{2})/; | 133 | var reg = /(\d{4})\-(\d{2})\-(\d{2})/; |
134 | this.downTitle = `汉中市不动产登记增量数据相关字段空项率统计(${this.form.startTime.replace(reg, "$1年$2月$3日")}至${this.form.endTime.replace(reg, "$1年$2月$3日")})` | 134 | this.downTitle = this.BASE_API.XZQ + `不动产登记增量数据相关字段空项率统计(${this.form.startTime.replace(reg, "$1年$2月$3日")}至${this.form.endTime.replace(reg, "$1年$2月$3日")})` |
135 | }, | 135 | }, |
136 | handlesetExport2Excel (val) { | 136 | handlesetExport2Excel (val) { |
137 | setExport2Excel(val) | 137 | setExport2Excel(val) |
... | @@ -150,14 +150,14 @@ export default { | ... | @@ -150,14 +150,14 @@ export default { |
150 | this.featchDataSelf() | 150 | this.featchDataSelf() |
151 | } | 151 | } |
152 | } | 152 | } |
153 | } | 153 | } |
154 | </script> | 154 | </script> |
155 | <style scoped lang="scss"> | 155 | <style scoped lang="scss"> |
156 | // 引入表单整体样式 | 156 | // 引入表单整体样式 |
157 | @import "../css/index.scss"; | 157 | @import "../css/index.scss"; |
158 | 158 | ||
159 | /deep/.el-table thead.is-group th.el-table__cell { | 159 | /deep/.el-table thead.is-group th.el-table__cell { |
160 | height: 14px !important; | 160 | height: 14px !important; |
161 | } | 161 | } |
162 | </style> | 162 | </style> |
163 | 163 | ... | ... |
... | @@ -2,7 +2,7 @@ | ... | @@ -2,7 +2,7 @@ |
2 | * @Author: yangwei | 2 | * @Author: yangwei |
3 | * @Date: 2023-02-17 16:32:50 | 3 | * @Date: 2023-02-17 16:32:50 |
4 | * @LastEditors: Please set LastEditors | 4 | * @LastEditors: Please set LastEditors |
5 | * @LastEditTime: 2023-03-28 10:24:52 | 5 | * @LastEditTime: 2023-05-11 10:11:15 |
6 | * @FilePath: \bdcjg-web\src\views\statistics\registerBookQuality\index.vue | 6 | * @FilePath: \bdcjg-web\src\views\statistics\registerBookQuality\index.vue |
7 | * @Description: | 7 | * @Description: |
8 | * | 8 | * |
... | @@ -54,18 +54,18 @@ | ... | @@ -54,18 +54,18 @@ |
54 | </template> | 54 | </template> |
55 | 55 | ||
56 | <script> | 56 | <script> |
57 | // 登簿质量评价表 | 57 | // 登簿质量评价表 |
58 | // 引入表格头部数据 | 58 | // 引入表格头部数据 |
59 | import data from "./data"; | 59 | import data from "./data"; |
60 | // 引入table混入方法 | 60 | // 引入table混入方法 |
61 | import tableMixin from "@/mixins/tableMixin.js"; | 61 | import tableMixin from "@/mixins/tableMixin.js"; |
62 | // 导出excel表格 | 62 | // 导出excel表格 |
63 | import downLbTable from '@/components/DownLbTable' | 63 | import downLbTable from '@/components/DownLbTable' |
64 | // 获取时间 | 64 | // 获取时间 |
65 | import { getCurrentDate, setExport2Excel } from "@/utils/tools"; | 65 | import { getCurrentDate, setExport2Excel } from "@/utils/tools"; |
66 | import { registerBookQuality } from "@/api/statistics.js"; | 66 | import { registerBookQuality } from "@/api/statistics.js"; |
67 | 67 | ||
68 | export default { | 68 | export default { |
69 | name: "jsbwcx", | 69 | name: "jsbwcx", |
70 | components: { | 70 | components: { |
71 | downLbTable | 71 | downLbTable |
... | @@ -155,7 +155,7 @@ export default { | ... | @@ -155,7 +155,7 @@ export default { |
155 | // 生成文件名 | 155 | // 生成文件名 |
156 | generateFileName () { | 156 | generateFileName () { |
157 | var reg = /(\d{4})\-(\d{2})\-(\d{2})/; | 157 | var reg = /(\d{4})\-(\d{2})\-(\d{2})/; |
158 | this.downTitle = `汉中市不动产登记增量数据登簿质量评价表(${this.form.startTime.replace(reg, "$1年$2月$3日")}至${this.form.endTime.replace(reg, "$1年$2月$3日")})` | 158 | this.downTitle = this.BASE_API.XZQ + `不动产登记增量数据登簿质量评价表(${this.form.startTime.replace(reg, "$1年$2月$3日")}至${this.form.endTime.replace(reg, "$1年$2月$3日")})` |
159 | }, | 159 | }, |
160 | handlesetExport2Excel (val) { | 160 | handlesetExport2Excel (val) { |
161 | setExport2Excel(val) | 161 | setExport2Excel(val) |
... | @@ -188,14 +188,14 @@ export default { | ... | @@ -188,14 +188,14 @@ export default { |
188 | this.featchDataSelf() | 188 | this.featchDataSelf() |
189 | } | 189 | } |
190 | } | 190 | } |
191 | } | 191 | } |
192 | </script> | 192 | </script> |
193 | <style scoped lang="scss"> | 193 | <style scoped lang="scss"> |
194 | // 引入表单整体样式 | 194 | // 引入表单整体样式 |
195 | @import "../css/index.scss"; | 195 | @import "../css/index.scss"; |
196 | 196 | ||
197 | /deep/.el-table thead.is-group th.el-table__cell { | 197 | /deep/.el-table thead.is-group th.el-table__cell { |
198 | height: 14px !important; | 198 | height: 14px !important; |
199 | } | 199 | } |
200 | </style> | 200 | </style> |
201 | 201 | ... | ... |
1 | /* | 1 | /* |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-03-17 15:10:43 | 4 | * @LastEditTime: 2023-05-11 10:02:44 |
5 | */ | 5 | */ |
6 | import filter from '@/utils/filter.js' | 6 | import filter from '@/utils/filter.js' |
7 | class data extends filter { | 7 | class data extends filter { |
... | @@ -10,6 +10,20 @@ class data extends filter { | ... | @@ -10,6 +10,20 @@ class data extends filter { |
10 | } | 10 | } |
11 | columns () { | 11 | columns () { |
12 | return [ | 12 | return [ |
13 | // { | ||
14 | // prop: 'sjlx', | ||
15 | // label: '数据类型', | ||
16 | // width: 90, | ||
17 | // render: (h, scope) => { | ||
18 | // return ( | ||
19 | // <div> | ||
20 | // <span v-show={scope.row.sjlx == 1}>ftp上传</span> | ||
21 | // <span v-show={scope.row.sjlx == 2}>业务库抽取</span> | ||
22 | // <span v-show={scope.row.sjlx == 3}>存量数据</span> | ||
23 | // </div> | ||
24 | // ) | ||
25 | // } | ||
26 | // }, | ||
13 | { | 27 | { |
14 | prop: 'jcjg', | 28 | prop: 'jcjg', |
15 | label: '检查结果', | 29 | label: '检查结果', | ... | ... |
... | @@ -79,10 +79,14 @@ | ... | @@ -79,10 +79,14 @@ |
79 | </el-col> | 79 | </el-col> |
80 | <!-- 按钮操作 --> | 80 | <!-- 按钮操作 --> |
81 | <el-col :span="6" class="btnColRight"> | 81 | <el-col :span="6" class="btnColRight"> |
82 | <el-form-item> | 82 | <el-form-item class="d-flex"> |
83 | <btn nativeType="cz" @click="resetForm">重置</btn> | 83 | <btn nativeType="cz" @click="resetForm">重置</btn> |
84 | <btn nativeType="cx" @click="handleSearch">查询</btn> | 84 | <btn nativeType="cx" @click="handleSearch">查询</btn> |
85 | <btn nativeType="cx">存量导入</btn> | 85 | <el-upload ref="upload" style="display:inline-block;margin-left: 10px" action="" :auto-upload="false" |
86 | :limit="1" accept=".xml" :show-file-list="false" | ||
87 | :file-list="fileList" :before-upload="uploadRecord" :on-change="fileChange"> | ||
88 | <btn nativeType="cx">xml导入</btn> | ||
89 | </el-upload> | ||
86 | </el-form-item> | 90 | </el-form-item> |
87 | </el-col> | 91 | </el-col> |
88 | </el-row> | 92 | </el-row> |
... | @@ -101,7 +105,7 @@ | ... | @@ -101,7 +105,7 @@ |
101 | </template> | 105 | </template> |
102 | 106 | ||
103 | <script> | 107 | <script> |
104 | import Vue from 'vue' | 108 | import { storage } from '@/api/file' |
105 | // 接收报文查询 | 109 | // 接收报文查询 |
106 | // 引入表格头部数据 | 110 | // 引入表格头部数据 |
107 | import data from "./data"; | 111 | import data from "./data"; |
... | @@ -121,7 +125,7 @@ | ... | @@ -121,7 +125,7 @@ |
121 | }, | 125 | }, |
122 | data () { | 126 | data () { |
123 | return { | 127 | return { |
124 | 128 | fileList: [], | |
125 | pickerOptionsStart: { | 129 | pickerOptionsStart: { |
126 | disabledDate: (time) => { | 130 | disabledDate: (time) => { |
127 | let endDateVal = this.form.receiveEndTime; | 131 | let endDateVal = this.form.receiveEndTime; |
... | @@ -232,6 +236,36 @@ | ... | @@ -232,6 +236,36 @@ |
232 | }; | 236 | }; |
233 | }, | 237 | }, |
234 | methods: { | 238 | methods: { |
239 | uploadRecord (file) { | ||
240 | this.requested = true | ||
241 | this.files = file; | ||
242 | const extension = file.name.split('.')[1] === 'xml' | ||
243 | const isLt5M = file.size / 1024 / 1024 < 5 | ||
244 | if (!extension) { | ||
245 | this.$message.warning('上传模板只能是 xml格式!') | ||
246 | this.requested = false | ||
247 | } | ||
248 | if (!isLt5M) { | ||
249 | this.$message.warning('上传模板大小不能超过 5MB!') | ||
250 | this.requested = false | ||
251 | } | ||
252 | return (extension) && isLt5M | ||
253 | }, | ||
254 | fileChange (res) { | ||
255 | let fd = new FormData() | ||
256 | fd.append('files', res.raw)// 文件对象 | ||
257 | storage(fd).then(res => { | ||
258 | if (res.code === 200) { | ||
259 | this.requested = false | ||
260 | this.$message({ | ||
261 | message: '上传成功', | ||
262 | type: 'success', | ||
263 | }) | ||
264 | } else { | ||
265 | this.$message.error(res.message) | ||
266 | } | ||
267 | }) | ||
268 | }, | ||
235 | //截止日期变化 | 269 | //截止日期变化 |
236 | endTimeChange (val) { | 270 | endTimeChange (val) { |
237 | this.form.receiveEndTime = timeFormat(new Date(val), true) | 271 | this.form.receiveEndTime = timeFormat(new Date(val), true) |
... | @@ -299,3 +333,4 @@ | ... | @@ -299,3 +333,4 @@ |
299 | } | 333 | } |
300 | </style> | 334 | </style> |
301 | 335 | ||
336 | ... | ... |
src/views/loginsb/index.vue
deleted
100644 → 0
1 | <template> | ||
2 | <div class="bg"> | ||
3 | <div class="title"> | ||
4 | <img src="../../image/bdclogo.png" alt=""> | ||
5 | <h2>{{ BASE_API.TITLE }}</h2> | ||
6 | </div> | ||
7 | <div class="login-inner-bg login"> | ||
8 | <div class="user_style"> | ||
9 | <h3>用户登录</h3> | ||
10 | <el-form :model="user" :rules="rules" ref="user" id="loginform" class="demo-ruleForm"> | ||
11 | <el-form-item prop="account"> | ||
12 | <el-input class="username" v-model="user.account" placeholder="请输入用户名"></el-input> | ||
13 | </el-form-item> | ||
14 | <el-form-item prop="password"> | ||
15 | <el-input type="password" class="password" @keyup.enter.native="login('user')" v-model="user.password" | ||
16 | placeholder="请输入密码" show-password></el-input> | ||
17 | </el-form-item> | ||
18 | <!-- <el-form-item prop="yz"> | ||
19 | <div class="flex-container"> | ||
20 | <div class="flex-input"> | ||
21 | <el-input class="yz" @keyup.native="login('user')" v-model="user.yz" placeholder="请输入验证码"></el-input> | ||
22 | </div> | ||
23 | <div class="flex-line"></div> | ||
24 | <div class="flex-img"><canvas id="s-canvas" ref="s-canvas"></canvas></div> | ||
25 | <div class="flex-renovate"> | ||
26 | <font id="renovate" @click="verification">换一批</font> | ||
27 | </div> | ||
28 | </div> | ||
29 | </el-form-item> --> | ||
30 | <el-form-item class="login-btn"> | ||
31 | <el-button type="primary" style="width: 100%" @click="login('user')">登录</el-button> | ||
32 | </el-form-item> | ||
33 | </el-form> | ||
34 | </div> | ||
35 | </div> | ||
36 | </div> | ||
37 | </template> | ||
38 | |||
39 | <script> | ||
40 | import { getMenuInfo } from "@/api/user"; | ||
41 | import { loginIn } from "@/api/login.js"; | ||
42 | export default { | ||
43 | name: "sbLogin", | ||
44 | data () { | ||
45 | return { | ||
46 | user: { | ||
47 | account: "", | ||
48 | password: "", | ||
49 | yz: "", | ||
50 | checkStatus: false, | ||
51 | }, | ||
52 | productName: "", | ||
53 | rules: { | ||
54 | account: [{ required: true, message: "请填写帐号", trigger: "blur" }], | ||
55 | password: [{ required: true, message: "请填写密码", trigger: "blur" }], | ||
56 | }, | ||
57 | }; | ||
58 | }, | ||
59 | methods: { | ||
60 | verification () { | ||
61 | let str = '1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ', code = '', i = 0; | ||
62 | for (; i++ < 4;) code += str[Math.floor(Math.random() * (str.length - 0) + 0)]; | ||
63 | setTimeout(() => { | ||
64 | let canvas = document.getElementById("s-canvas"), ctx = canvas.getContext("2d"); | ||
65 | canvas.width = 80; | ||
66 | canvas.height = 28; | ||
67 | ctx.fillStyle = '#ffffff'; | ||
68 | ctx.fillRect(0, 0, 80, 28); | ||
69 | for (i = 0; i < code.length; i++) { this.drawText(ctx, code[i], i); } | ||
70 | }, 0); | ||
71 | }, | ||
72 | drawText (ctx, txt, i) { | ||
73 | ctx.fillStyle = this.randomColor(50, 160); | ||
74 | ctx.font = "18px SimHei"; | ||
75 | let x = (i + 1) * (80 / (4 + 1)), y = this.randomNum(18, 28 - 5); | ||
76 | ctx.translate(x, y); | ||
77 | ctx.fillText(txt, 0, 0); | ||
78 | ctx.rotate((-0 * Math.PI) / 180); | ||
79 | ctx.translate(-x, -y); | ||
80 | }, | ||
81 | randomColor (min, max) { | ||
82 | let r = this.randomNum(min, max); | ||
83 | let g = this.randomNum(min, max); | ||
84 | let b = this.randomNum(min, max); | ||
85 | return "rgb(" + r + "," + g + "," + b + ")"; | ||
86 | }, | ||
87 | randomNum (min, max) { | ||
88 | return Math.floor(Math.random() * (max - min) + min); | ||
89 | }, | ||
90 | //记住用户名 | ||
91 | checkUserName: function (flag) { | ||
92 | this.user.checkStatus = flag; | ||
93 | if (this.user.checkStatus) { | ||
94 | localStorage.setItem("accountId", this.user.account); | ||
95 | let name = localStorage.getItem("accountId"); | ||
96 | if (name === "") { | ||
97 | return; | ||
98 | } else { | ||
99 | this.user.account = name; | ||
100 | } | ||
101 | } else { | ||
102 | this.user.account = localStorage.getItem("accountId"); | ||
103 | } | ||
104 | }, | ||
105 | login (user) { | ||
106 | var self = this | ||
107 | this.$refs[user].validate(async (valid) => { | ||
108 | if (valid) { | ||
109 | let res = await loginIn(self.user.account, self.user.password) | ||
110 | if (res.status == 1) { | ||
111 | let code = this.BASE_API.CODE; | ||
112 | localStorage.setItem("token", `Bearer ${res.content}`); | ||
113 | const { result: getMenuData } = (await getMenuInfo(code)) || []; | ||
114 | let path1 = JSON.parse(getMenuData[0].metadata)?.path + '/' + JSON.parse(getMenuData[0].children[0].metadata)?.path | ||
115 | //登录成功后需判断有无重定向,没有重定向则跳转首页 | ||
116 | const accessRoutes = await this.$store.dispatch( | ||
117 | "permission/generateRoutes", | ||
118 | getMenuData | ||
119 | ); | ||
120 | this.$router.addRoutes([ | ||
121 | ...accessRoutes, | ||
122 | { path: "*", redirect: "/404", hidden: true }, | ||
123 | ]); | ||
124 | this.$router.replace(this.$route.query.redirect || path1); | ||
125 | } else { | ||
126 | this.$message.error(res.message); | ||
127 | } | ||
128 | } | ||
129 | }) | ||
130 | } | ||
131 | } | ||
132 | } | ||
133 | </script> | ||
134 | <style scoped lang="scss"> | ||
135 | .username, | ||
136 | .password, | ||
137 | .yz { | ||
138 | position: relative; | ||
139 | |||
140 | &:before { | ||
141 | content: ""; | ||
142 | display: block; | ||
143 | width: 16px; | ||
144 | height: 16px; | ||
145 | position: absolute; | ||
146 | left: 10px; | ||
147 | top: 7px; | ||
148 | background-size: 100% 100%; | ||
149 | } | ||
150 | |||
151 | /deep/ .el-input__inner { | ||
152 | color: #000 !important; | ||
153 | text-indent: 24px; | ||
154 | } | ||
155 | } | ||
156 | |||
157 | .flex-container { | ||
158 | position: relative; | ||
159 | display: -webkit-flex; | ||
160 | display: flex; | ||
161 | } | ||
162 | |||
163 | .flex-input { | ||
164 | width: 100%; | ||
165 | } | ||
166 | |||
167 | .flex-line { | ||
168 | position: absolute; | ||
169 | width: 1px; | ||
170 | height: 64%; | ||
171 | margin: 5px; | ||
172 | right: 36%; | ||
173 | background-color: #CCCCCC; | ||
174 | } | ||
175 | |||
176 | .flex-img { | ||
177 | position: absolute; | ||
178 | margin: 2px; | ||
179 | right: 16%; | ||
180 | } | ||
181 | |||
182 | .flex-renovate { | ||
183 | position: absolute; | ||
184 | margin: 1px; | ||
185 | right: 3%; | ||
186 | } | ||
187 | |||
188 | #renovate { | ||
189 | color: #3F8FEA; | ||
190 | font-size: 16px; | ||
191 | font-weight: 700; | ||
192 | cursor: pointer; | ||
193 | } | ||
194 | |||
195 | .username::before { | ||
196 | background-image: url(../../image/userlogo.png); | ||
197 | } | ||
198 | |||
199 | .password::before { | ||
200 | background-image: url(../../image/passlogo.png); | ||
201 | } | ||
202 | |||
203 | .yz::before { | ||
204 | background-image: url(../../image/yzlogo.png); | ||
205 | } | ||
206 | |||
207 | .bg { | ||
208 | width: 100%; | ||
209 | height: 100%; | ||
210 | min-width: 1440px; | ||
211 | min-height: 560px; | ||
212 | background: url(../../image/loginBoxsb.png) no-repeat; | ||
213 | background-size: 100% 100%; | ||
214 | overflow: hidden; | ||
215 | position: relative; | ||
216 | } | ||
217 | |||
218 | .title { | ||
219 | width: 24%; | ||
220 | height: 6%; | ||
221 | top: 20%; | ||
222 | right: 38%; | ||
223 | position: absolute; | ||
224 | |||
225 | img { | ||
226 | width: 60px; | ||
227 | height: 60px; | ||
228 | top: 0%; | ||
229 | left: 2%; | ||
230 | position: absolute; | ||
231 | } | ||
232 | |||
233 | h2 { | ||
234 | top: 25%; | ||
235 | left: 22%; | ||
236 | position: absolute; | ||
237 | width: 383px; | ||
238 | height: 42px; | ||
239 | font-size: 28px; | ||
240 | font-weight: 600; | ||
241 | color: #ffffff; | ||
242 | text-shadow: 0px 4px 4px #002c95; | ||
243 | } | ||
244 | } | ||
245 | |||
246 | .login-inner-bg { | ||
247 | background: white; | ||
248 | width: 24.6%; | ||
249 | min-width: 360px; | ||
250 | top: 30%; | ||
251 | right: 38%; | ||
252 | position: absolute; | ||
253 | background-size: 100% 100%; | ||
254 | box-sizing: border-box; | ||
255 | padding: 56px; | ||
256 | } | ||
257 | |||
258 | .login { | ||
259 | .user_style { | ||
260 | h3 { | ||
261 | font-weight: normal; | ||
262 | text-align: center; | ||
263 | margin: -10px auto 28px; | ||
264 | font-weight: 400; | ||
265 | width: 125px; | ||
266 | height: 29px; | ||
267 | font-size: 20px; | ||
268 | font-family: Source Han Sans CN; | ||
269 | font-weight: 400; | ||
270 | color: #333333; | ||
271 | } | ||
272 | } | ||
273 | |||
274 | .btn { | ||
275 | width: 100%; | ||
276 | height: 6vh; | ||
277 | background-color: #00c2de; | ||
278 | border-radius: 5px; | ||
279 | font-size: 1.4vw; | ||
280 | color: #000; | ||
281 | } | ||
282 | |||
283 | .btn:hover { | ||
284 | cursor: pointer; | ||
285 | background-color: #2d8cf0; | ||
286 | } | ||
287 | } | ||
288 | |||
289 | .login #loginform { | ||
290 | .el-form-item { | ||
291 | margin-bottom: 24px !important; | ||
292 | } | ||
293 | |||
294 | .login-btn { | ||
295 | margin-top: 30px !important; | ||
296 | } | ||
297 | |||
298 | .el-button { | ||
299 | font-size: 18px; | ||
300 | border-radius: 0; | ||
301 | background: #4162d8 !important; | ||
302 | color: #ffffff !important; | ||
303 | cursor: pointer !important; | ||
304 | } | ||
305 | |||
306 | .el-input__inner { | ||
307 | width: 100% !important; | ||
308 | } | ||
309 | |||
310 | .el-checkbox__label { | ||
311 | color: #fff; | ||
312 | } | ||
313 | } | ||
314 | |||
315 | .inputUser .ivu-input { | ||
316 | padding: 6px 24px !important; | ||
317 | border: 1px solid #9f9f9f !important; | ||
318 | } | ||
319 | </style> |
-
Please register or sign in to post a comment