|  | @ -25,18 +25,18 @@ | 
		
	
		
			
				|  |  |           <el-button |  |  |           <el-button | 
		
	
		
			
				|  |  |             type="text" |  |  |             type="text" | 
		
	
		
			
				|  |  |             size="small" |  |  |             size="small" | 
		
	
		
			
				|  |  |             @click="preview(scope.row.id,...scope.row)" |  |  |  | 
		
	
		
			
				|  |  |  |  |  |             @click="preview(scope.row.id,scope.row)" | 
		
	
		
			
				|  |  |           >{{ $t('preview') }}</el-button> |  |  |           >{{ $t('preview') }}</el-button> | 
		
	
		
			
				|  |  |           <el-button |  |  |           <el-button | 
		
	
		
			
				|  |  |             type="text" |  |  |             type="text" | 
		
	
		
			
				|  |  |             size="small" |  |  |             size="small" | 
		
	
		
			
				|  |  |             @click="addOrUpdateHandle(scope.row.id,...scope.row)" |  |  |  | 
		
	
		
			
				|  |  |  |  |  |             @click="addOrUpdateHandle(scope.row.id,scope.row)" | 
		
	
		
			
				|  |  |           >{{ $t('update') }}</el-button> |  |  |           >{{ $t('update') }}</el-button> | 
		
	
		
			
				|  |  |           <el-button |  |  |           <el-button | 
		
	
		
			
				|  |  |             type="text" |  |  |             type="text" | 
		
	
		
			
				|  |  |             size="small" |  |  |             size="small" | 
		
	
		
			
				|  |  |             style="color:red" |  |  |             style="color:red" | 
		
	
		
			
				|  |  |             @click="deleteHandle(scope.row.id)" |  |  |  | 
		
	
		
			
				|  |  |  |  |  |             @click="deleteCrfItem(scope.row.id)" | 
		
	
		
			
				|  |  |           >{{ $t('delete') }}</el-button> |  |  |           >{{ $t('delete') }}</el-button> | 
		
	
		
			
				|  |  |         </template> |  |  |         </template> | 
		
	
		
			
				|  |  |       </el-table-column> |  |  |       </el-table-column> | 
		
	
	
		
			
				|  | @ -77,9 +77,9 @@ export default { | 
		
	
		
			
				|  |  |     return { |  |  |     return { | 
		
	
		
			
				|  |  |       previewVisible: false, |  |  |       previewVisible: false, | 
		
	
		
			
				|  |  |       mixinViewModuleOptions: { |  |  |       mixinViewModuleOptions: { | 
		
	
		
			
				|  |  |         getDataListURL: '/crf/page', |  |  |  | 
		
	
		
			
				|  |  |  |  |  |         getDataListURL: '/project/crf/template/page', | 
		
	
		
			
				|  |  |         getDataListIsPage: true, |  |  |         getDataListIsPage: true, | 
		
	
		
			
				|  |  |         deleteURL: '/crf' |  |  |  | 
		
	
		
			
				|  |  |  |  |  |         deleteURL: '/project/crf/template' | 
		
	
		
			
				|  |  |       }, |  |  |       }, | 
		
	
		
			
				|  |  |       dataForm: { |  |  |       dataForm: { | 
		
	
		
			
				|  |  |         projectId: window.SITE_CONFIG['projectId'] |  |  |         projectId: window.SITE_CONFIG['projectId'] | 
		
	
	
		
			
				|  | @ -93,6 +93,14 @@ export default { | 
		
	
		
			
				|  |  |         this.$refs.preview.id = id |  |  |         this.$refs.preview.id = id | 
		
	
		
			
				|  |  |         this.$refs.preview.init() |  |  |         this.$refs.preview.init() | 
		
	
		
			
				|  |  |       }) |  |  |       }) | 
		
	
		
			
				|  |  |  |  |  |     }, | 
		
	
		
			
				|  |  |  |  |  |     deleteCrfItem(id) { | 
		
	
		
			
				|  |  |  |  |  |       this.$confirm('确认删除吗?').then(() => { | 
		
	
		
			
				|  |  |  |  |  |         this.$http.delete('/project/crf/template', { params: { id }}).then(() => { | 
		
	
		
			
				|  |  |  |  |  |           this.$message.success('删除成功') | 
		
	
		
			
				|  |  |  |  |  |           this.getDataList() | 
		
	
		
			
				|  |  |  |  |  |         }) | 
		
	
		
			
				|  |  |  |  |  |       }) | 
		
	
		
			
				|  |  |     } |  |  |     } | 
		
	
		
			
				|  |  |   } |  |  |   } | 
		
	
		
			
				|  |  | } |  |  | } | 
		
	
	
		
			
				|  | 
 |