1.修复部分bug

master
x_z 3 years ago
parent a1b3b583ba
commit fa59021fa6

@ -666,7 +666,7 @@
</el-col> </el-col>
<el-col :span="3" class="el-col"> <el-col :span="3" class="el-col">
<el-form-item prop="name"> <el-form-item prop="name">
<el-checkbox :disabled="!checked" v-model="editQuery.disable" class="text item itemTag" <el-checkbox :disabled="!checked" v-model="editQuery.isDisable" class="text item itemTag"
@change="diableChange" @change="diableChange"
>是否禁用 >是否禁用
</el-checkbox> </el-checkbox>

@ -165,10 +165,11 @@
<el-radio :label="1">正常</el-radio> <el-radio :label="1">正常</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<el-form-item label="角色"> <el-form-item v-if="showRole" label="角色">
<el-checkbox-group v-model="formData.roles" :disabled="formData.id === 1"> <el-checkbox-group v-model="formData.roles">
<el-checkbox <el-checkbox
v-for="item in roles" v-for="item in roles"
v-model="item.id"
:key="item.id" :key="item.id"
:label="item.id" :label="item.id"
>{{ item.name }} >{{ item.name }}
@ -343,13 +344,14 @@ export default {
this.$nextTick(() => { this.$nextTick(() => {
if (this.formName === "add") { if (this.formName === "add") {
this.formData = { this.formData = {
id: null,
userName: null, userName: null,
employeeName: null, employeeName: null,
passWord: null, passWord: null,
checkPassword: null, checkPassword: null,
comments: null, comments: null,
userFlag: 1, userFlag: 1,
roles: null roles: []
}; };
} }
this.$refs["dataForm"].clearValidate(); this.$refs["dataForm"].clearValidate();
@ -366,8 +368,10 @@ export default {
handleForm(index, row) { handleForm(index, row) {
this.formVisible = true; this.formVisible = true;
this.resetForm(); this.resetForm();
this.formData = JSON.parse(JSON.stringify(formJson));
if (row !== null) { if (row !== null) {
this.index = index;
this.formName = "edit";
this.formRules = this.editRules;
this.formData = { this.formData = {
id: row.id, id: row.id,
passWord: row.passWord, passWord: row.passWord,
@ -379,13 +383,14 @@ export default {
roles: row.roles, roles: row.roles,
dept: row.dept, dept: row.dept,
}; };
} else {
this.formName = "add";
this.formRules = this.addRules;
this.formData.roles = [];
} }
this.formName = "add";
this.formRules = this.addRules; if (this.$store.getters.customerId === 110) {
if (index !== null) { this.showRole = true;
this.index = index;
this.formName = "edit";
this.formRules = this.editRules;
} }
}, },
formSubmit() { formSubmit() {

@ -359,7 +359,10 @@
title="字段说明" title="字段说明"
:visible.sync="centerDialogVisible" :visible.sync="centerDialogVisible"
width="40%" width="40%"
center> center
:close-on-click-modal="false"
:close-on-press-escape="false"
>
<span style="white-space: pre-wrap;">{{ currentRow }}</span> <span style="white-space: pre-wrap;">{{ currentRow }}</span>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button type="primary" @click="centerDialogVisible = false"> </el-button> <el-button type="primary" @click="centerDialogVisible = false"> </el-button>

@ -33,21 +33,15 @@
<el-table-column label="序号" type="index"></el-table-column> <el-table-column label="序号" type="index"></el-table-column>
<el-table-column label="企业名称" prop="companyName" width="230"></el-table-column> <el-table-column label="企业名称" prop="companyName" width="230"></el-table-column>
<el-table-column label="IMEI唯一识别码" prop="imei" width="230"></el-table-column> <el-table-column label="IMEI唯一识别码" prop="imei" width="230"></el-table-column>
<el-table-column <el-table-column label="登记说明" prop="remark"></el-table-column>
label="登记说明" <el-table-column label="申请人" prop="applicant"></el-table-column>
prop="remark"
></el-table-column>
<el-table-column
label="申请人"
prop="applicant"
></el-table-column>
<el-table-column label="审核状态" prop="isCheck" width="120"> <el-table-column label="审核状态" prop="isCheck" width="120">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ checkFlag[scope.row.isCheck] }}</span> <span>{{ checkFlag[scope.row.isCheck] }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="注册时间" prop="date"></el-table-column>
<el-table-column label="审核时间" prop="auditTime"></el-table-column>
<el-table-column label="操作" fixed="right"> <el-table-column label="操作" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">

@ -298,6 +298,12 @@ export default {
this.curIndex = row.id; this.curIndex = row.id;
this.dialogTableVisible = true; this.dialogTableVisible = true;
this.curOrderId = row.orderId; this.curOrderId = row.orderId;
this.unitquery = {
key: "",
page: 1,
limit: 10
}
this.getUnitList();
}, },
closeDetailDialog(val) { closeDetailDialog(val) {
this.codeDetailVisible = false; this.codeDetailVisible = false;

Loading…
Cancel
Save