| | |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="禁用OCR:" prop="disableocr" v-if="isAdmin"> |
| | | <el-radio-group v-model="dataForm.disableocr"> |
| | | <el-radio :label="1">是</el-radio> |
| | | <el-radio :label="0">否</el-radio> |
| | | </el-radio-group> |
| | | </el-form-item> |
| | | <el-form-item label="收费:" prop="ischarge" v-if="isAdmin"> |
| | | <el-radio-group v-model="dataForm.ischarge"> |
| | | <el-radio :label="1">是</el-radio> |
| | | <el-radio :label="0">否</el-radio> |
| | | </el-radio-group> |
| | | </el-form-item> |
| | | </el-form> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button @click="dialogFormVisible = false">取消</el-button> |
| | |
| | | community: '', |
| | | type:'', |
| | | job:'', |
| | | disableocr: null, |
| | | ischarge: null |
| | | }, |
| | | enterpriseId:'', |
| | | authDialogVisible:false, |
| | |
| | | confirmPasswordType: 'password', |
| | | templateRadio: '', |
| | | instituteList: [], |
| | | departmentList: [] |
| | | departmentList: [], |
| | | isAdmin: false |
| | | } |
| | | }, |
| | | created() { |
| | | this.getUserList() |
| | | this.getProvince() |
| | | const roles = JSON.parse(Cookies.get('roles')) |
| | | if(roles.find(i=>i.name == '管理员')){ |
| | | this.isAdmin = true |
| | | }else{ |
| | | this.isAdmin = false |
| | | } |
| | | }, |
| | | methods: { |
| | | refreshHandle: function() { |
| | |
| | | town: '', |
| | | community: '', |
| | | type: '', |
| | | job: '' |
| | | job: '', |
| | | disableocr: null, |
| | | ischarge: null |
| | | } |
| | | this.cityList = [] |
| | | this.areaList = [] |
| | |
| | | this.dataForm.community = row.community |
| | | this.dataForm.job = row.job |
| | | this.dataForm.type = row.type |
| | | this.dataForm.disableocr = row.disableocr |
| | | this.dataForm.ischarge = row.ischarge |
| | | this.dialogFormVisible = true |
| | | this.$nextTick(() => { |
| | | this.$refs['dataForm'].clearValidate() |