审查视图

src/views/nav1/role.vue 24.2 KB
1 2 3 4 5 6
<template>
	<section>
		<!--工具条-->
		<el-col :span="24" class="toolbar" style="padding-bottom: 0px;">
			<el-form :inline="true" :model="filters">
				<el-form-item>
朱兆平 authored
7 8 9
					<el-input v-model="filters.roleName" placeholder="岗位/角色名称">
						<template slot="prepend">岗位名称</template>
					</el-input>
10 11
				</el-form-item>
				<el-form-item>
朱兆平 authored
12
					<el-button type="primary" v-on:click="getRoles()" icon="el-icon-search">查&emsp;&emsp;询</el-button>
13 14
				</el-form-item>
				<el-form-item>
朱兆平 authored
15
					<el-button type="success" @click="handleAdd" icon="el-icon-document">新&emsp;&emsp;增</el-button>
16
				</el-form-item>
朱兆平 authored
17
				<el-form-item>
18
					<el-button type="danger" @click="batchRemove" :disabled="this.sels.length===0" icon="el-icon-delete">批量删除</el-button>
朱兆平 authored
19
				</el-form-item>
20 21 22 23 24
				<el-form-item>
					<el-button type="warning"  @click="toggleRowExpansion" icon="el-icon-sort" size="mini">
						全部{{ isExpansion ? "折叠" : "展开" }}
					</el-button>
				</el-form-item>
25 26 27
			</el-form>
		</el-col>
28 29
		<el-col :gutter="0" class="toolbar toobar_analysis" style="padding-top:0">
			<el-col :span="7">
30 31
				<div class="analysis_title">机构数量:</div>
				<div class="analysis_text">20</div>
32 33 34 35 36 37
			</el-col>
			<el-col :span="1">
				<el-divider direction="vertical"></el-divider>
			</el-col>
			<el-col :span="7">
				<div class="analysis_title">公司数量:</div>
38
				<div class="analysis_text">50</div>
39 40 41 42 43 44
			</el-col>
			<el-col :span="1">
				<el-divider direction="vertical"></el-divider>
			</el-col>
			<el-col :span="8">
				<div class="analysis_title">数据量共:</div>
45
				<div class="analysis_text">150</div>
46 47 48
			</el-col>
		</el-col>
49
		<!--列表-->
50
		<el-table :data="roles" highlight-current-row v-loading="listLoading" @selection-change="selsChange"
51
					default-expand-all
52 53
				  ref="dataTreeList"
				  row-key="roleId"
54
					border
55
				  tooltip-effect="dark"
56
				  style="border-radius: 10px 10px 0px 0px;line-height: 25px;min-height: 500px"
57
				  :header-cell-style="{background:'#6F8294',color:'#FFFFFF'}" size="small"
58
					:tree-props="{children: 'children', hasChildren: 'hasChildren'}">
59 60
			<el-table-column type="selection" width="55">
			</el-table-column>
61
			<!--<el-table-column type="index" width="60">-->
62
			<!--</el-table-column>-->
63 64
			<el-table-column prop="roleId" label="ID" width="120">
			</el-table-column>
shenhailong authored
65
			<el-table-column prop="roleName" label="岗位/角色名称" min-width="200" sortable>
66
			</el-table-column>
67 68
			<!--<el-table-column prop="departmentName" label="部门名称" min-width="200" sortable>-->
			<!--</el-table-column>-->
69 70
			<el-table-column prop="description" label="描述" min-width="160" >
			</el-table-column>
shenhailong authored
71
			<el-table-column prop="type" label="类型" min-width="80" sortable>
72 73 74
			</el-table-column>
			<el-table-column prop="businessLicense" label="工商代码" min-width="180" >
			</el-table-column>
75
			<el-table-column prop="orgtype" label="业务类型" min-width="150" :formatter="formatState">
76
			</el-table-column>
77
			<el-table-column prop="departmentid" label="简码" min-width="150" >
78
			</el-table-column>
79
			<el-table-column label="操作" min-width="260" fixed="right">
80
				<template slot-scope="scope">
朱兆平 authored
81 82 83 84 85 86 87 88
					<el-row>
						<el-button type="success" @click="handleAdd(scope.$index, scope.row)">新增下级</el-button>
						<el-button  @click="setPerm(scope.$index, scope.row)">设置权限</el-button>
					</el-row>
					<el-row>
						<el-button  @click="handleEdit(scope.$index, scope.row)">编&emsp;&emsp;辑</el-button>
						<el-button type="danger" @click="handleDel(scope.$index, scope.row)">删&emsp;&emsp;除</el-button>
					</el-row>
89 90 91 92 93
				</template>
			</el-table-column>
		</el-table>
		<!--工具条-->
		<el-col :span="24" class="toolbar">
shenhailong authored
94
			<el-pagination layout="total, prev, pager, next" @current-change="handleCurrentChange" :page-size="5" :total="total" style="float:right;">
95 96 97 98
			</el-pagination>
		</el-col>

		<!--新增界面-->
99
		<el-dialog :title="dialogMap[dialogStatus]" :visible.sync="addFormVisible" :close-on-click-modal="false">
100 101 102 103
			<el-form :model="addForm" label-width="120px" :rules="addFormRules" ref="addForm">
				<el-form-item label="上级组织机构">
					<span>{{addForm.parentName}}</span>
				</el-form-item>
104
				<el-form-item label=" " prop="type">
105 106 107 108 109
					<el-select
							v-model="addForm.type"
							filterable
							allow-create
							default-first-option
110
							placeholder="组织机构类型">
111
						<el-option
112 113 114 115
								v-for="item in companyOption"
								:key="item.value"
								:label="item.label"
								:value="item.value">
116 117
						</el-option>
					</el-select>
118
				</el-form-item>
119 120 121 122
				<el-form-item label=" " prop="roleName">
					<el-input v-model="addForm.roleName" auto-complete="off" placeholder="请输入组织机构名称:例如:公司名称">
						<template slot="prepend">组织机构名称</template>
					</el-input>
123
				</el-form-item>
124 125 126 127
				<el-form-item label=" " prop="description">
					<el-input v-model="addForm.description" auto-complete="off" placeholder="组织机构描述:例如:组织机构简介">
						<template slot="prepend">组织机构描述</template>
					</el-input>
128
				</el-form-item>
129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147
				<el-form-item label=" " prop="businessLicense">
					<el-input v-model="addForm.businessLicense" auto-complete="off" placeholder="社会信用代码或者组织机构代码">
						<template slot="prepend">企业信用代码</template>
					</el-input>
				</el-form-item>
				<el-form-item label=" " prop="customsRegCode">
					<el-input v-model="addForm.customsRegCode" auto-complete="off" placeholder="海关备案后返回的备案代码">
						<template slot="prepend">海关备案代码</template>
					</el-input>
				</el-form-item>
				<el-form-item label=" " prop="mqcode">
					<el-input v-model="addForm.mqcode" auto-complete="off" placeholder="海关通道编号">
						<template slot="prepend">海关通道编号</template>
					</el-input>
				</el-form-item>
				<el-form-item label=" " prop="departmentid">
					<el-input v-model="addForm.departmentid" auto-complete="off" placeholder="航司承运人代码,组织机构为航司时必填">
						<template slot="prepend"> 承运人代码&nbsp;&nbsp;&nbsp; </template>
					</el-input>
148
				</el-form-item>
149 150 151
			</el-form>
			<div slot="footer" class="dialog-footer">
				<el-button @click.native="addFormVisible = false">取消</el-button>
152
				<el-button type="primary" @click="dialogStatus==='create'?addSubmit():editSubmit()" :loading="addLoading" >提交</el-button>
153 154
			</div>
		</el-dialog>
155 156

		<!--权限设置界面-->
157 158 159 160 161 162 163 164 165 166 167 168 169
		<el-dialog title="岗位的权限设置"
				   :visible.sync="PermFormVisible"
				   :close-on-click-modal="false"
				   top="5vh"
		>
			<el-row>
				<el-col :span="4" >
					<el-button type="primary" @click.native="treeMerge(false)">合并节点</el-button>
				</el-col>
				<el-col :span="4">
					<el-button type="success" @click.native="treeMerge(true)">展开节点</el-button>
				</el-col>
			</el-row>
170
			<el-divider></el-divider>
171
			<el-form :model="permForm" label-width="80px"  ref="permForm">
172 173
				<el-tree :data="permissons" :props="treeDefaultProps"
					@check="clickDeal"
174 175
					:default-expand-all = "treeExpand"
					show-checkbox highlight-current  check-on-click-node check-strictly
176 177
					node-key="permissionId" ref="tree">
				</el-tree>
178 179 180 181 182 183
			</el-form>
			<div slot="footer" class="dialog-footer">
				<el-button @click.native="PermFormVisible = false">取消</el-button>
				<el-button type="primary" @click.native="setPermSubmit" :loading="addLoading">提交</el-button>
			</div>
		</el-dialog>
184 185 186 187 188
	</section>
</template>

<script>
	import util from '../../common/js/util'
189 190
	import NProgress from 'nprogress'
	import { getList, remove, batchRemove, edit, add, updateRolePerm } from '../../api/role_api';
191
	import { getList as getDepartmentList} from '../../api/department';
192
    import { getList as permList } from '../../api/perm_api';
193 194
    import moment from 'moment'
	export default {
195
    	name:'Role',
196 197 198 199 200
		data() {
			return {
				filters: {
                    roleName: ''
				},
201 202 203
                companyOption: [
					{
						label: "集团",
204
						value: "集团",
205 206 207
					},
					{
                        label: "公司",
shenhailong authored
208
                        value: "公司"
209 210 211 212 213 214 215 216 217 218 219 220
					},
					{
						label: "部门",
						value: "部门"
					},
					{
						label: "航司",
						value: "航司"
					},
					{
						label: "货代",
						value: "货代"
221 222 223 224 225 226
					}
				],
                treeDefaultProps: {
                    children: 'children',
                    label: 'name',
                },
227
				treeExpand: false,
228
                departmentNameList:[],
229
				roles: [],
230 231
				permissons: [],
				permIds: [],
232 233 234 235 236
				total: 0,
                pageNum: 1,
                pageSize: 5,
				listLoading: false,
				sels: [],//列表选中列
237 238 239 240 241
				dialogMap: {
					update: '编辑',
					create: '新增',
				},
				dialogStatus: 'create',
242 243 244 245
                //新增界面是否显示
				addFormVisible: false,
				//设置权限界面是否显示
                PermFormVisible: false,
246 247 248
				addLoading: false,
				addFormRules: {
                    roleName: [
shenhailong authored
249
						{ required: true, message: '请输入岗位/角色名称', trigger: 'blur' }
250
					],
251 252
					type: [
						{ required: true, message: '请选择组织机构类型', trigger: 'blur' }
253 254 255 256 257 258
					]
				},
				//新增界面数据
				addForm: {
                    description: '',
                    roleName: '',
259
                    roleSign: 1,
260
					departmentid:'',
261 262 263
					type: '',
                    businessLicense: '',
                    customsRegCode: '',
264 265
					parentName: '',
					mqcode: ''
266
267
				},
268 269
				isExpansion:true,
				permForm: {
270 271 272 273 274
                    roleId: 1,
                    description: '',
                    roleName: '',
                    roleSign: 1,
                    permissions: []
275 276 277 278 279
				}

			}
		},
		methods: {
280 281 282 283 284 285 286 287 288 289 290 291 292 293 294
			formatState: function (row, column) {
				switch (row.orgtype) {
					case "M":
						return '自身'
						break;
					case "C":
						return '客户'
						break;
					case "S":
						return '供应商'
						break;
					default:
						return ""
				}
			},
295 296 297 298 299 300 301 302 303 304 305 306
			toggleRowExpansion() {
				this.isExpansion = !this.isExpansion;
				this.toggleRowExpansionAll(this.roles, this.isExpansion);
			},
			toggleRowExpansionAll(data, isExpansion) {
				data.forEach((item) => {
					this.$refs.dataTreeList.toggleRowExpansion(item, isExpansion);
					if (item.children !== undefined && item.children !== null) {
						this.toggleRowExpansionAll(item.children, isExpansion);
					}
				});
			},
307 308 309 310 311 312
			treeMerge: function (expand) {
				this.treeExpand = expand;
				for(var i=0;i<this.$refs.tree.store._getAllNodes().length;i++){
					this.$refs.tree.store._getAllNodes()[i].expanded=this.treeExpand;
				}
			},
313 314 315 316
			handleCurrentChange(val) {
				this.pageNum = val;
				this.getRoles();
			},
317
			//获取角色列表
318
			getRoles() {
319
				let _this= this;
320 321 322 323 324 325 326 327 328 329 330 331 332 333 334
				let para = {
                    pageNum: this.pageNum,
                    pageSize: this.pageSize,
                    roleName: this.filters.roleName
				};
				this.listLoading = true;
				//NProgress.start();
                getList(para).then((res) => {
					this.total = res.data.total;
					this.roles = res.data.list;
					//NProgress.done();
				}).catch((error) => {
                    if(null!= error.response && error.response!==undefined){
                        let status= error.response.status;
                        let msg = error.response.statusText;
335
						return _this.$message.error(status+msg)
336
					}else {
337
						return _this.$message.error(error.toString())
338
					}
339 340
				}).finally(()=>{
					this.listLoading = false;
341 342 343
				});

			},
344 345 346 347 348 349 350 351 352 353 354 355

            //获取部门列表
            getdepartmentNames() {

                this.listLoading = true;
                //NProgress.start();
                getDepartmentList().then((res) => {
                    this.total = res.data.total;
                    this.departmentNameList = res.data.list;
                    this.listLoading = false;
                    //NProgress.done();
                }).catch((error) => {
小范 authored
356
357 358 359 360 361 362 363 364 365 366 367 368 369
                    this.listLoading = false;
                    if(null!= error.response && error.response!==undefined){
                        let status= error.response.status;
                        let msg = error.response.statusText;
                        alert(status+msg);
                    }else {
                        alert(error);
                    }

                });

            },
370 371 372 373
			//获取权限列表
            getPermList() {
                let para = {
                    pageNum: 1,
小范 authored
374
                    pageSize: 700
375 376 377 378 379 380 381 382 383
                };
                NProgress.start();
                permList(para).then((res) => {
                    this.permissons = res.data.list;
                    NProgress.done();
                }).catch((error) => {
                    if(null!= error.response && error.response!==undefined){
                        let status= error.response.status;
                        let msg = error.response.statusText;
384 385 386 387 388
                        message({
                            //  饿了么的消息弹窗组件
                            message: status+msg,
                            type: "error"
                        });
389 390 391 392 393 394
                    }else {
                        alert(error);
                    }
                });

            },
395 396 397 398 399 400 401
			//删除
			handleDel: function (index, row) {
				this.$confirm('确认删除该记录吗?', '提示', {
					type: 'warning'
				}).then(() => {
					this.listLoading = true;
					//NProgress.start();
402
					let para = { roleId: row.roleId };
403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422
                    remove(para).then((res) => {
						this.listLoading = false;
						//NProgress.done();
						this.$message({
							message: '删除成功',
							type: 'success'
						});
						this.getRoles();
					}).catch((error) => {
                        this.listLoading = false;
                        alert(error);
					});
				}).catch();
			},
            /**
			 * 显示编辑界面
             * @param index
             * @param row 为这行的数据对象
             */
			handleEdit: function (index, row) {
423 424 425 426
				this.addFormVisible = true;
				this.dialogStatus= 'update',
				this.addForm = Object.assign({}, row);
				// this.getdepartmentNames();
427
			},
428
            setPerm: function (index, row) {
429 430
                this.PermFormVisible = true;
                this.getPermList();
431 432 433 434 435 436 437 438 439 440 441
				var _this = this;
				this.permIds = [];
                this.permForm = Object.assign({}, row);
				let rolePerms = this.permForm.permissions;
                if (util.checkNull(rolePerms)){
                    rolePerms.forEach(function (perm,v_index,v_arr) {
                        if(util.checkNull(perm)){
                            _this.permIds[v_index] = perm.permissionId;
						}
                    });
                }
442 443 444 445 446 447

                this.$nextTick(() => {

                    //反向适配
                    this.$refs.tree.setCheckedKeys(this.permIds);
                });
448
            },
449
			//显示新增界面,每次点开初始化数据
450
			handleAdd: function (index,row) {
451
				this.addFormVisible = true;
452
				this.dialogStatus= 'create';
453
				this.addForm = {
454 455 456
                    description: '',
                    roleName: '',
                    roleSign: 1,
457
					departmentid:'',
458 459 460
                    type: '',
                    businessLicense: '',
                    customsRegCode: '',
461
					mqcode: '',
462
                    parentid: 0,
463 464 465 466 467 468 469 470 471 472 473

                };
				//如果新增下级
				if(util.checkNull(row)){
					//传递上级ID
                    let parentRole = Object.assign({}, row);
                    this.addForm.parentid = parentRole.roleId;
                    this.addForm.parentName = parentRole.roleName;
				}

//				this.getdepartmentNames();
474 475 476
			},
			//编辑
			editSubmit: function () {
477
				this.$refs.addForm.validate((valid) => {
478 479
					if (valid) {
						this.$confirm('确认提交吗?', '提示', {}).then(() => {
480
							this.addLoading = true;
481
							//NProgress.start();
482
							let para = Object.assign({}, this.addForm);
483 484 485 486
							//不需要提交的 去掉,后端不好接收
							para.authorities = null;
							para.permissions = null;
							para.roles = null;
487
							para.children = null;
488 489 490 491 492 493 494 495
//							para.birth = (!para.birth || para.birth == '') ? '' : util.formatDate.format(new Date(para.birth), 'yyyy-MM-dd');
                            /*
        					查询之后格式this.filters.column.create_start_date中日期发生变化;
        					Wed Aug 09 2017 00:00:00 GMT+0800 (中国标准时间) 变成了 "2017-08-08T16:00:00.000Z";
        					所以使用 moment 日期格式化插件将时间转换成 [ Wed Aug 09 2017 00:00:00 GMT+0800 (中国标准时间) ] 格
        					式;
    						*/
							/*moment 安装 npm install moment --save*/
496
                            // para.creattime = moment(para.creattime).format('YYYY-MM-DD HH:mm:ss');
朱兆平 authored
497
							this.addLoading = false;
498 499 500 501 502 503 504
                            edit(para).then((res) => {

								//NProgress.done();
								this.$message({
									message: '提交成功',
									type: 'success'
								});
505 506
								this.$refs['addForm'].resetFields();
								this.addFormVisible = false;
507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535
								this.getRoles();
							}).catch(error => alert(error));
						});
					}
				});
			},
			//新增
			addSubmit: function () {
				this.$refs.addForm.validate((valid) => {
					if (valid) {
						this.$confirm('确认提交吗?', '提示', {}).then(() => {
							this.addLoading = true;
							//NProgress.start();
							let para = Object.assign({}, this.addForm);
                            add(para).then((res) => {
								this.addLoading = false;
								//NProgress.done();
								this.$message({
									message: '提交成功',
									type: 'success'
								});
								this.$refs['addForm'].resetFields();
								this.addFormVisible = false;
								this.getRoles();
							}).catch(error => alert(error));
						});
					}
				});
			},
536 537 538 539 540 541 542 543 544
			//设置角色提交
            setPermSubmit: function () {
                this.$refs.permForm.validate((valid) => {
                    if (valid) {
                        this.$confirm('确认提交吗?', '提示', {}).then(() => {
                            this.addLoading = true;
                            //NProgress.start();
                            let role = Object.assign({}, this.permForm);
                            let roleId = role.roleId;
545
                            let permissionIds = this.$refs.tree.getCheckedKeys();
546 547 548 549 550 551 552 553 554 555 556 557 558
							let para = {roleId,permissionIds};
                            updateRolePerm(para).then((res) => {
                                this.addLoading = false;
                                if (res.status ===200) {
                                    this.$message({
                                        message: '提交成功',
                                        type: 'success'
                                    });
                                    this.$refs['permForm'].resetFields();
                                }
                                //NProgress.done();
                                this.PermFormVisible = false;
                                this.getRoles();
559 560 561 562
                            }).catch(error => alert(error))
									.finally(()=>{
										this.addLoading = false
									});
563 564 565 566
                        });
                    }
                });
            },
567 568 569 570 571
			selsChange: function (sels) {
				this.sels = sels;
			},
			//批量删除
			batchRemove: function () {
572
				var ids = this.sels.map(item => item.roleId).toString();
573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590
				this.$confirm('确认删除选中记录吗?', '提示', {
					type: 'warning'
				}).then(() => {
					this.listLoading = true;
					//NProgress.start();
					let para = { ids: ids };
                    batchRemove(para).then((res) => {
						this.listLoading = false;
						//NProgress.done();
						this.$message({
							message: '删除成功',
							type: 'success'
						});
						this.getRoles();
					});
				}).catch(() => {

				});
591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649
			},
            treeHandleCheckChange: function (data, checked, indeterminate) {
                if(checked) {
                    this.permIds.push(data.permissionId);
                }else {
                    this.permIds.splice(this.permIds.contains(data.permissionId),1);
                }
                console.log(data, checked, indeterminate);

            },
            uniteParentSame(id,treeStatus){//当子节点全为未选中时父节点也变为未选中状态
                let node = this.$refs.tree.getNode(permissionId);//获取当前节点的节点树
                if (node.parent !== null && node.parent !== undefined) {
                    let parentNode =   node.parent.data;//获取当前节点的父节点树
                    if (parentNode != undefined){//判断父节点是否存在
                        for (let i = 0; i < parentNode.children.length; i++) {
                            let checkedKeys = this.$refs.tree.getCheckedKeys();
                            let hafCheckedKeys = this.$refs.tree.getHalfCheckedKeys();
                            let selectNodes = checkedKeys.concat(hafCheckedKeys);//获取已选择树节点
                            let selected = selectNodes.indexOf(parentNode.children[i].permissionId); // -1当前节点的同级节点是否全部未选中
                            if (selected !== -1){
                                return;
                            }
                        }
                    }else {
                        return;
                    }
                    this.$refs.tree.setChecked(parentNode.permissionId, false);//修改节点为未选择
                    if(node.level>2){//判断是否是最上级节点
                        this.uniteParentSame(parentNode.permissionId,treeStatus)
                    }
                }else {
                    return;
                }
            },

            // 统一处理子节点为相同的勾选状态
            uniteChildSame(treeList, isSelected){
                this.$refs.tree.setChecked(treeList.permissionId, isSelected);
                if (treeList.children !== undefined){
                    for (let i = 0; i < treeList.children.length; i++) {
                        this.uniteChildSame(treeList.children[i], isSelected)
                    }
                }
            },
            // 统一处理父节点为选中
            selectedParent(currentObj){
                let currentNode = this.$refs.tree.getNode(currentObj);
                if (currentNode.parent.key !== undefined) {
                    this.$refs.tree.setChecked(currentNode.parent, true);
                    this.selectedParent(currentNode.parent)
                }
            },
            clickDeal: function (currentObj, treeStatus){
				// 用于:父子节点严格互不关联时,父节点勾选变化时通知子节点同步变化,实现单向关联。
				let selected = treeStatus.checkedKeys.indexOf(currentObj.permissionId); // -1未选中
				// 选中
				if (selected !== -1) {
					// 子节点只要被选中父节点就被选中
650
					// this.selectedParent(currentObj);
651 652 653 654 655 656 657 658 659 660 661 662 663 664 665
					// 统一处理子节点为相同的勾选状态
					this.uniteChildSame(currentObj, true)
				} else {
					// 未选中 处理子节点全部未选中
					if (currentObj.children !== undefined){
						if (currentObj.children.length !== 0) {
							this.uniteChildSame(currentObj, false)
						}
						//放开时为当子节点全为未选中时父节点也变为未选中状态   注释后就是父节点不和子节点强制绑定
						// this.uniteParentSame(currentObj.id,treeStatus)//当子节点全为未选中时父节点也变为未选中状态
					}
					// else {
					//     this.uniteParentSame(currentObj.id,treeStatus)
					// }
				}
666 667 668 669
			}
		},
		mounted() {
			this.getRoles();
朱兆平 authored
670 671 672 673 674 675 676
			let _this = this;
			document.onkeydown = function (e) {
				let key = window.event.keyCode;
				if (key == 13) {
					_this.getRoles();
				}
			};
677
			this.isExpansion=true;
678 679 680 681 682
		}
	}

</script>
朱兆平 authored
683
<style>
684 685 686 687

</style>

<style lang="scss">
688 689 690 691
	.grid-content {
		height: 36px;
		line-height: 36px;
	}
692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711
	.toobar_analysis{
		padding-top: 0;
		.el-col{
			margin-right: 0;
		}
		.analysis_title{
			color: #a6b6c6;
			font-size: 12px;
			height: 34px;
			line-height: 34px;
		}
		.analysis_text{
			color: #5473E8;
			font-size: 16px;
			height: 16px;
			line-height: 16px;
		}
		.el-divider--vertical{
			height:2em;
		}
朱兆平 authored
712
	}
713
714
</style>