|  |  | @ -72,7 +72,6 @@ | 
			
		
	
		
			
				
					|  |  |  |       <div class="setting-dialog"> | 
			
		
	
		
			
				
					|  |  |  |         <div class="dialog-delt"> | 
			
		
	
		
			
				
					|  |  |  |           <p><span>确定要删除当前字段吗?</span></p> | 
			
		
	
		
			
				
					|  |  |  |           <p class="delt-tip"><span>提示:如果删除当前字典,此字典内所属内容会一并删除</span></p> | 
			
		
	
		
			
				
					|  |  |  |         </div> | 
			
		
	
		
			
				
					|  |  |  |         <div slot="footer" class="dialog-footer"> | 
			
		
	
		
			
				
					|  |  |  |           <el-button type="primary" @click.native="handleConfirm">确定</el-button> | 
			
		
	
	
		
			
				
					|  |  | @ -83,7 +82,7 @@ | 
			
		
	
		
			
				
					|  |  |  | </template> | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | <script> | 
			
		
	
		
			
				
					|  |  |  | import { add, edit } from '@/api/category/fieldManage' | 
			
		
	
		
			
				
					|  |  |  | import fieldCrudMethod from '@/api/category/fieldManage' | 
			
		
	
		
			
				
					|  |  |  | import eForm from './module/form' | 
			
		
	
		
			
				
					|  |  |  | import CRUD, { presenter } from '@crud/crud' | 
			
		
	
		
			
				
					|  |  |  | import crudOperation from '@crud/CRUD.operation' | 
			
		
	
	
		
			
				
					|  |  | @ -98,7 +97,7 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |       debugger: 'true', | 
			
		
	
		
			
				
					|  |  |  |       tag: 'field', | 
			
		
	
		
			
				
					|  |  |  |       url: 'api/archives-type/manage', | 
			
		
	
		
			
				
					|  |  |  |       crudMethod: { add, edit }, | 
			
		
	
		
			
				
					|  |  |  |       crudMethod: fieldCrudMethod, | 
			
		
	
		
			
				
					|  |  |  |       title: '字段', | 
			
		
	
		
			
				
					|  |  |  |       optShow: { | 
			
		
	
		
			
				
					|  |  |  |         add: true, | 
			
		
	
	
		
			
				
					|  |  | @ -126,12 +125,6 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |       }, | 
			
		
	
		
			
				
					|  |  |  |       deleteVisible: false, | 
			
		
	
		
			
				
					|  |  |  |       deleteData: {}, | 
			
		
	
		
			
				
					|  |  |  |       // form: { | 
			
		
	
		
			
				
					|  |  |  |       //   verifyCode: '' | 
			
		
	
		
			
				
					|  |  |  |       // }, | 
			
		
	
		
			
				
					|  |  |  |       // formLabelWidth: '110px', | 
			
		
	
		
			
				
					|  |  |  |       // btn: '', | 
			
		
	
		
			
				
					|  |  |  |       // showVerifyDialog: true, | 
			
		
	
		
			
				
					|  |  |  |       delLoading: false | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |   }, | 
			
		
	
	
		
			
				
					|  |  | @ -140,18 +133,6 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |       this.crud.refresh() | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |   }, | 
			
		
	
		
			
				
					|  |  |  |   // beforeCreate() { | 
			
		
	
		
			
				
					|  |  |  |   //   this.crud.query = { | 
			
		
	
		
			
				
					|  |  |  |   //     categoryId: this.selectedCategory.id | 
			
		
	
		
			
				
					|  |  |  |   //   } | 
			
		
	
		
			
				
					|  |  |  |   // }, | 
			
		
	
		
			
				
					|  |  |  |   // created() { | 
			
		
	
		
			
				
					|  |  |  |   //   // this.crud.title = this.title | 
			
		
	
		
			
				
					|  |  |  |   //   // this.crud.query = { | 
			
		
	
		
			
				
					|  |  |  |   //   //   isType: this.isType | 
			
		
	
		
			
				
					|  |  |  |   //   // } | 
			
		
	
		
			
				
					|  |  |  |   //   // this.crud.toQuery() | 
			
		
	
		
			
				
					|  |  |  |   // }, | 
			
		
	
		
			
				
					|  |  |  |   methods: { | 
			
		
	
		
			
				
					|  |  |  |     // 获取数据前设置默认参数 | 
			
		
	
		
			
				
					|  |  |  |     [CRUD.HOOK.beforeRefresh]() { | 
			
		
	
	
		
			
				
					|  |  | @ -193,6 +174,14 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |     toDelete(data) { | 
			
		
	
		
			
				
					|  |  |  |       if (data[0].isSystem) { | 
			
		
	
		
			
				
					|  |  |  |         this.$notify({ | 
			
		
	
		
			
				
					|  |  |  |           title: '系统字段不可删除', | 
			
		
	
		
			
				
					|  |  |  |           type: 'warning', | 
			
		
	
		
			
				
					|  |  |  |           duration: 2500 | 
			
		
	
		
			
				
					|  |  |  |         }) | 
			
		
	
		
			
				
					|  |  |  |         return | 
			
		
	
		
			
				
					|  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |       this.deleteData = data | 
			
		
	
		
			
				
					|  |  |  |       this.deleteVisible = true | 
			
		
	
		
			
				
					|  |  |  |     }, | 
			
		
	
	
		
			
				
					|  |  | 
 |