|
|
|
@ -28,11 +28,12 @@
|
|
|
|
|
@click="onReset"
|
|
|
|
|
></el-button>
|
|
|
|
|
<el-button type="primary" icon="search" @click="onSubmit"
|
|
|
|
|
>查询</el-button
|
|
|
|
|
>查询
|
|
|
|
|
</el-button
|
|
|
|
|
>
|
|
|
|
|
<el-button type="primary" @click.native="handleForm(null, null)"
|
|
|
|
|
<!--<el-button type="primary" @click.native="handleForm(null, null)"
|
|
|
|
|
>新增</el-button
|
|
|
|
|
>
|
|
|
|
|
>-->
|
|
|
|
|
</el-button-group>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-form>
|
|
|
|
@ -44,7 +45,8 @@
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-tag :type="scope.row.userFlag | statusFilterType">{{
|
|
|
|
|
scope.row.userFlag | statusFilterName
|
|
|
|
|
}}</el-tag>
|
|
|
|
|
}}
|
|
|
|
|
</el-tag>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="备注" prop="comments" fixed></el-table-column>
|
|
|
|
@ -157,7 +159,8 @@
|
|
|
|
|
v-for="item in roles"
|
|
|
|
|
:key="item.id"
|
|
|
|
|
:label="item.id"
|
|
|
|
|
>{{ item.name }}</el-checkbox
|
|
|
|
|
>{{ item.name }}
|
|
|
|
|
</el-checkbox
|
|
|
|
|
>
|
|
|
|
|
</el-checkbox-group>
|
|
|
|
|
</el-form-item>
|
|
|
|
@ -169,7 +172,8 @@
|
|
|
|
|
size="small"
|
|
|
|
|
@click.native="formSubmit()"
|
|
|
|
|
:loading="formLoading"
|
|
|
|
|
>提交</el-button
|
|
|
|
|
>提交
|
|
|
|
|
</el-button
|
|
|
|
|
>
|
|
|
|
|
</div>
|
|
|
|
|
</el-dialog>
|
|
|
|
@ -179,13 +183,12 @@
|
|
|
|
|
<script>
|
|
|
|
|
import {
|
|
|
|
|
authAdminList,
|
|
|
|
|
authAdminRoleList,
|
|
|
|
|
authAdminSave,
|
|
|
|
|
authAdminDelete,
|
|
|
|
|
roleCustomers
|
|
|
|
|
} from "../../../api/auth/authAdmin";
|
|
|
|
|
|
|
|
|
|
import store from "../../../store/index";
|
|
|
|
|
|
|
|
|
|
const formJson = {
|
|
|
|
|
id: "",
|
|
|
|
|
passWord: "",
|
|
|
|
@ -350,13 +353,7 @@
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
formSubmit() {
|
|
|
|
|
console.log(
|
|
|
|
|
this.formData.userName +
|
|
|
|
|
"-----" +
|
|
|
|
|
this.formData.employeeName +
|
|
|
|
|
this.formData.userFlag
|
|
|
|
|
);
|
|
|
|
|
this.$refs["dataForm"].validate(valid => {
|
|
|
|
|
this.$refs["formData"].validate(valid => {
|
|
|
|
|
if (valid) {
|
|
|
|
|
this.formLoading = true;
|
|
|
|
|
let data = Object.assign({}, this.formData);
|
|
|
|
@ -431,7 +428,8 @@
|
|
|
|
|
return statusMap[status];
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
mounted() {},
|
|
|
|
|
mounted() {
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|
// 将参数拷贝进查询对象
|
|
|
|
|
let query = this.$route.query;
|
|
|
|
|