马宇豪
2025-01-13 8e74a6244f598146351f55ee4ac576c1b101bd32
src/views/enterprise/saleuser.vue
@@ -260,6 +260,18 @@
                        </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>
@@ -418,6 +430,8 @@
                    community: '',
                    type:'',
                    job:'',
                    disableocr: null,
                    ischarge: null
                },
                enterpriseId:'',
                authDialogVisible:false,
@@ -451,12 +465,19 @@
                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() {
@@ -598,7 +619,9 @@
                    town: '',
                    community: '',
                    type: '',
                    job: ''
                    job: '',
                    disableocr: null,
                    ischarge: null
                }
                this.cityList = []
                this.areaList = []
@@ -715,6 +738,8 @@
                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()