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