|  | @@ -1,7 +1,7 @@
 | 
	
		
			
				|  |  |  <template>
 | 
	
		
			
				|  |  |  	<div>
 | 
	
		
			
				|  |  |  		<!-- 临时任务弹窗 -->
 | 
	
		
			
				|  |  | -		<el-dialog :title="showTitle" :visible.sync="dialogVisible" :close-on-click-modal="false" :before-close="closeDialog" width="600px" top="5%">
 | 
	
		
			
				|  |  | +		<el-dialog :title="showTitle" :visible.sync="dialogVisible" :close-on-click-modal="false" :before-close="closeDialog" width="600px" top="3%">
 | 
	
		
			
				|  |  |  			<div>
 | 
	
		
			
				|  |  |  				<el-form :model="formData" ref="formData" label-width="80px" v-loading="taskload">
 | 
	
		
			
				|  |  |  					<el-form-item
 | 
	
	
		
			
				|  | @@ -121,8 +121,10 @@
 | 
	
		
			
				|  |  |  					<el-form-item v-show="false" prop="timeout_deduction_point_limit" ></el-form-item>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  					<el-form-item>
 | 
	
		
			
				|  |  | -						<el-button type="primary" @click="sub('formData')">提交</el-button>
 | 
	
		
			
				|  |  | -						<el-button @click="resetForm('formData')">取消</el-button>
 | 
	
		
			
				|  |  | +						<div class="flex-box-end">
 | 
	
		
			
				|  |  | +							<el-button @click="resetForm('formData')">取消</el-button>
 | 
	
		
			
				|  |  | +							<el-button type="primary" @click="sub('formData')">提交</el-button>
 | 
	
		
			
				|  |  | +						</div>
 | 
	
		
			
				|  |  |  					</el-form-item>
 | 
	
		
			
				|  |  |  				</el-form>
 | 
	
		
			
				|  |  |  			</div>
 | 
	
	
		
			
				|  | @@ -344,25 +346,24 @@ export default {
 | 
	
		
			
				|  |  |  			}
 | 
	
		
			
				|  |  |  			if(this.ahead_timeout(data.ahead_award_point,data.ahead_award_point_limit,'提前奖分','奖分')) return
 | 
	
		
			
				|  |  |  			if(this.ahead_timeout(data.timeout_deduction_point,data.timeout_deduction_point_limit,'逾期扣分','扣分')) return
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -			let entry_limit =  Number(this.$getUserData().point_config.point_limit[1].point)
 | 
	
		
			
				|  |  | -			if(!this.$getIsCreator('creator') && entry_limit > 0){
 | 
	
		
			
				|  |  | -				if(data.ahead_award_point > entry_limit || data.timeout_deduction_point > entry_limit ){
 | 
	
		
			
				|  |  | -					this.$message.warning('每日奖扣分 不能超过您的奖扣分权限(您的奖扣分权限:' + entry_limit + '分)')
 | 
	
		
			
				|  |  | -					return
 | 
	
		
			
				|  |  | -				}
 | 
	
		
			
				|  |  | -				if(data.ahead_award_point_limit > entry_limit*10 || data.timeout_deduction_point_limit > entry_limit*10 ){
 | 
	
		
			
				|  |  | -					this.$message.warning('奖扣分上限不能超过' + entry_limit*10 + '分(您的奖扣分权限' + entry_limit + '分*10)')
 | 
	
		
			
				|  |  | -					return
 | 
	
		
			
				|  |  | +			if(!this.$getIsCreator('creator')||this.$getUserData().point_config.point_limit.length!=0){
 | 
	
		
			
				|  |  | +				let entry_limit =  Number(this.$getUserData().point_config.point_limit[1].point)
 | 
	
		
			
				|  |  | +				if(entry_limit > 0){
 | 
	
		
			
				|  |  | +					if(data.ahead_award_point > entry_limit || data.timeout_deduction_point > entry_limit ){
 | 
	
		
			
				|  |  | +						this.$message.warning('每日奖扣分 不能超过您的奖扣分权限(您的奖扣分权限:' + entry_limit + '分)')
 | 
	
		
			
				|  |  | +						return
 | 
	
		
			
				|  |  | +					}
 | 
	
		
			
				|  |  | +					if(data.ahead_award_point_limit > entry_limit*10 || data.timeout_deduction_point_limit > entry_limit*10 ){
 | 
	
		
			
				|  |  | +						this.$message.warning('奖扣分上限不能超过' + entry_limit*10 + '分(您的奖扣分权限' + entry_limit + '分*10)')
 | 
	
		
			
				|  |  | +						return
 | 
	
		
			
				|  |  | +					}
 | 
	
		
			
				|  |  |  				}
 | 
	
		
			
				|  |  |  			}
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |  			let add = ['ahead_award_point', 'ahead_award_point_limit', 'timeout_deduction_point', 'timeout_deduction_point_limit']
 | 
	
		
			
				|  |  |  			add.forEach(item =>{
 | 
	
		
			
				|  |  |  				this.deletedata(data,item)
 | 
	
		
			
				|  |  |  			})
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |  			this.taskload = true;
 | 
	
		
			
				|  |  |  			self.$axios('post', self.formData.task_cycle == 0 ? '/api/integral/work/publish' : '/api/integral/schedule/publish/work', data)
 | 
	
		
			
				|  |  |  				.then(res => {
 |