|  | @@ -21,6 +21,7 @@
 | 
	
		
			
				|  |  |  						<el-button size="small" @click="del_item" type="danger" plain>批量删除</el-button>
 | 
	
		
			
				|  |  |  						<el-button size="small" @click="add_rule" type="primary">添加规则</el-button>
 | 
	
		
			
				|  |  |  						<el-button size="small" type="success" @click="import_rules_show = true" plain>导入规则</el-button>
 | 
	
		
			
				|  |  | +						<el-button size="small" type="success" @click="derivedRule" plain>导出规则</el-button>
 | 
	
		
			
				|  |  |  					</div>
 | 
	
		
			
				|  |  |  					<el-table stripe ref="multipleTable" :data="item_list" tooltip-effect="dark" @selection-change="handleSelectionChange" @row-click="editDetails" align="center">
 | 
	
		
			
				|  |  |  						<el-table-column type="selection" width="55"></el-table-column>
 | 
	
	
		
			
				|  | @@ -57,16 +58,6 @@
 | 
	
		
			
				|  |  |  				</div>
 | 
	
		
			
				|  |  |  			</div>
 | 
	
		
			
				|  |  |  		</div>
 | 
	
		
			
				|  |  | -		<!-- <el-dialog
 | 
	
		
			
				|  |  | -			width="280px"
 | 
	
		
			
				|  |  | -			@close="closeCode"
 | 
	
		
			
				|  |  | -			:visible.sync="innerVisible"
 | 
	
		
			
				|  |  | -			append-to-body>
 | 
	
		
			
				|  |  | -			<div class="paycode">
 | 
	
		
			
				|  |  | -				<div id="qrcode" ref="qrcode"></div>
 | 
	
		
			
				|  |  | -				<div @click.stop="downloadE">下载保存此二维码</div>
 | 
	
		
			
				|  |  | -			</div>
 | 
	
		
			
				|  |  | -		</el-dialog> -->
 | 
	
		
			
				|  |  |  		<el-dialog @close="closeCode" :visible.sync="innerVisible" width="444px" append-to-body>
 | 
	
		
			
				|  |  |  			<div style="border-radius: 15px;border: 1px solid #f1f1f1;padding: 10px; width: 346px;box-sizing: border-box;margin: 0 auto;">
 | 
	
		
			
				|  |  |  				<div id="qrcode" ref="qrcode"></div>
 | 
	
	
		
			
				|  | @@ -387,6 +378,11 @@ export default {
 | 
	
		
			
				|  |  |  		// },1000);
 | 
	
		
			
				|  |  |  	},
 | 
	
		
			
				|  |  |  	methods: {
 | 
	
		
			
				|  |  | +		//导出规则按钮
 | 
	
		
			
				|  |  | +		derivedRule(){
 | 
	
		
			
				|  |  | +		  let userData=this.$getUserData();
 | 
	
		
			
				|  |  | +		  window.open(process.env.VUE_APP_BASE_API+'/api/download/rule_item/item?employee_id='+userData.id)
 | 
	
		
			
				|  |  | +		},
 | 
	
		
			
				|  |  |  		downloadE() {
 | 
	
		
			
				|  |  |  			let rule_remark = '';
 | 
	
		
			
				|  |  |  			if (this.ruleDetails.remark.length > 10) {
 | 
	
	
		
			
				|  | @@ -567,7 +563,7 @@ export default {
 | 
	
		
			
				|  |  |  								.then(res => {
 | 
	
		
			
				|  |  |  									if (res.data.code == 1) {
 | 
	
		
			
				|  |  |  										self.$message.success(res.data.msg);
 | 
	
		
			
				|  |  | -										self.getData();
 | 
	
		
			
				|  |  | +										self.getData(true);
 | 
	
		
			
				|  |  |  										self.rule_close(form);
 | 
	
		
			
				|  |  |  									}
 | 
	
		
			
				|  |  |  								})
 | 
	
	
		
			
				|  | @@ -589,7 +585,7 @@ export default {
 | 
	
		
			
				|  |  |  							.then(res => {
 | 
	
		
			
				|  |  |  								if (res.data.code == 1) {
 | 
	
		
			
				|  |  |  									self.$message.success(res.data.msg);
 | 
	
		
			
				|  |  | -									self.getData();
 | 
	
		
			
				|  |  | +									self.getData(true);
 | 
	
		
			
				|  |  |  									self.rule_close(form);
 | 
	
		
			
				|  |  |  								}
 | 
	
		
			
				|  |  |  							})
 | 
	
	
		
			
				|  | @@ -608,8 +604,6 @@ export default {
 | 
	
		
			
				|  |  |  			let self = this;
 | 
	
		
			
				|  |  |  			self.$refs[form].validate(valid => {
 | 
	
		
			
				|  |  |  				if (valid) {
 | 
	
		
			
				|  |  | -					// self.rules_detail_form.min_point=self.rules_detail_form.min_point2;
 | 
	
		
			
				|  |  | -					// self.rules_detail_form.max_point=self.rules_detail_form.max_point2;
 | 
	
		
			
				|  |  |  					if (self.integral_select_name1 != '1' && self.rules_detail_form.min_point >= 0) {
 | 
	
		
			
				|  |  |  						self.rules_detail_form.min_point = '-' + self.rules_detail_form.min_point;
 | 
	
		
			
				|  |  |  					}
 | 
	
	
		
			
				|  | @@ -627,17 +621,7 @@ export default {
 | 
	
		
			
				|  |  |  						self.rules_detail_form.rule_id = self.rules_detail_form.rule_id[self.rules_detail_form.rule_id.length - 1];
 | 
	
		
			
				|  |  |  					}
 | 
	
		
			
				|  |  |  					if (parseFloat(self.rules_detail_form.min_point) > parseFloat(self.rules_detail_form.max_point)) {
 | 
	
		
			
				|  |  | -						this.$confirm(
 | 
	
		
			
				|  |  | -							'填写的规则积分是' +
 | 
	
		
			
				|  |  | -								self.rules_detail_form.min_point +
 | 
	
		
			
				|  |  | -								' ~ ' +
 | 
	
		
			
				|  |  | -								self.rules_detail_form.max_point +
 | 
	
		
			
				|  |  | -								',应该是 ' +
 | 
	
		
			
				|  |  | -								self.rules_detail_form.max_point +
 | 
	
		
			
				|  |  | -								' ~ ' +
 | 
	
		
			
				|  |  | -								self.rules_detail_form.min_point +
 | 
	
		
			
				|  |  | -								'吧?',
 | 
	
		
			
				|  |  | -							'提示',
 | 
	
		
			
				|  |  | +						this.$confirm('填写的规则积分是' +self.rules_detail_form.min_point +' ~ ' +self.rules_detail_form.max_point +',应该是 ' +self.rules_detail_form.max_point +' ~ ' +self.rules_detail_form.min_point +'吧?','提示',
 | 
	
		
			
				|  |  |  							{
 | 
	
		
			
				|  |  |  								confirmButtonText: '确定',
 | 
	
		
			
				|  |  |  								cancelButtonText: '取消',
 | 
	
	
		
			
				|  | @@ -660,7 +644,7 @@ export default {
 | 
	
		
			
				|  |  |  								.then(res => {
 | 
	
		
			
				|  |  |  									if (res.data.code == 1) {
 | 
	
		
			
				|  |  |  										self.$message.success(res.data.msg);
 | 
	
		
			
				|  |  | -										self.getData();
 | 
	
		
			
				|  |  | +										self.getData(true);
 | 
	
		
			
				|  |  |  										self.rule_close(form);
 | 
	
		
			
				|  |  |  									}
 | 
	
		
			
				|  |  |  								})
 | 
	
	
		
			
				|  | @@ -684,7 +668,7 @@ export default {
 | 
	
		
			
				|  |  |  							.then(res => {
 | 
	
		
			
				|  |  |  								if (res.data.code == 1) {
 | 
	
		
			
				|  |  |  									self.$message.success(res.data.msg);
 | 
	
		
			
				|  |  | -									self.getData();
 | 
	
		
			
				|  |  | +									self.getData(true);
 | 
	
		
			
				|  |  |  									self.rule_close(form);
 | 
	
		
			
				|  |  |  								}
 | 
	
		
			
				|  |  |  							})
 | 
	
	
		
			
				|  | @@ -775,8 +759,8 @@ export default {
 | 
	
		
			
				|  |  |  				this.$axios('post', '/api/integral/rule/items/destroy', data).then(res => {
 | 
	
		
			
				|  |  |  					if (res.data.code == 1) {
 | 
	
		
			
				|  |  |  						this.$message.success(res.data.msg);
 | 
	
		
			
				|  |  | -						this.getData();
 | 
	
		
			
				|  |  | -						this.handleNodeClick(this.selectItem);
 | 
	
		
			
				|  |  | +						this.getData(true);
 | 
	
		
			
				|  |  | +						// this.handleNodeClick(this.selectItem);
 | 
	
		
			
				|  |  |  					}
 | 
	
		
			
				|  |  |  				});
 | 
	
		
			
				|  |  |  			});
 | 
	
	
		
			
				|  | @@ -884,14 +868,7 @@ export default {
 | 
	
		
			
				|  |  |  					that.item_list = list;
 | 
	
		
			
				|  |  |  					that.all_item_list = list;
 | 
	
		
			
				|  |  |  					
 | 
	
		
			
				|  |  | -					// for(let i in item_list){
 | 
	
		
			
				|  |  | -					// 	item_list[i].forEach(arr=>{
 | 
	
		
			
				|  |  | -					// 		this.item_lists.push(arr)
 | 
	
		
			
				|  |  | -					// 	})
 | 
	
		
			
				|  |  | -					// }
 | 
	
		
			
				|  |  | -					// this.traverse(res.data.data.rule_tree)
 | 
	
		
			
				|  |  | -					// console.log(this.item_lists)
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | +					// console.log(this.selectItem)
 | 
	
		
			
				|  |  |  					if (is) {
 | 
	
		
			
				|  |  |  						that.handleNodeClick(that.selectItem);
 | 
	
		
			
				|  |  |  					} else {
 | 
	
	
		
			
				|  | @@ -902,20 +879,6 @@ export default {
 | 
	
		
			
				|  |  |  					this.rule_loading = false;
 | 
	
		
			
				|  |  |  				});
 | 
	
		
			
				|  |  |  		},
 | 
	
		
			
				|  |  | -		// traverse(rule_tree){
 | 
	
		
			
				|  |  | -		// 	// debugger
 | 
	
		
			
				|  |  | -		// 	rule_tree.forEach(item=>{
 | 
	
		
			
				|  |  | -		// 		if(item.child){
 | 
	
		
			
				|  |  | -		// 			for(let i in this.item_lists){
 | 
	
		
			
				|  |  | -		// 				if(this.item_lists[i].rule_id == item.id){
 | 
	
		
			
				|  |  | -		// 					this.item_lists[i].ruleName = item.name
 | 
	
		
			
				|  |  | -		// 					// break
 | 
	
		
			
				|  |  | -		// 				}
 | 
	
		
			
				|  |  | -		// 			}
 | 
	
		
			
				|  |  | -		// 			this.traverse(item.child)
 | 
	
		
			
				|  |  | -		// 		}
 | 
	
		
			
				|  |  | -		// 	})
 | 
	
		
			
				|  |  | -		// },
 | 
	
		
			
				|  |  |  		//编辑分组
 | 
	
		
			
				|  |  |  		edit_class() {
 | 
	
		
			
				|  |  |  			this.class_show = true;
 |