|
|
@@ -76,6 +76,7 @@
|
|
|
<el-select
|
|
|
style="width:200px"
|
|
|
clearable
|
|
|
+ size="small"
|
|
|
v-model="pageData.status"
|
|
|
placeholder="请选择"
|
|
|
>
|
|
|
@@ -84,14 +85,25 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="4">
|
|
|
- <el-form-item label="">
|
|
|
<el-button
|
|
|
size="small"
|
|
|
type="primary"
|
|
|
@click="queryStaffInfo"
|
|
|
>查询</el-button
|
|
|
>
|
|
|
- </el-form-item>
|
|
|
+ <div style="display:inline-block;margin:0 10px">
|
|
|
+ <el-upload
|
|
|
+ class="upload"
|
|
|
+ ref="upload"
|
|
|
+ :show-file-list="false"
|
|
|
+ :limit="1"
|
|
|
+ action="#"
|
|
|
+ :http-request="carfrontChange"
|
|
|
+ :multiple="false"
|
|
|
+ >
|
|
|
+ <el-button type="primary" size="small" @click="$refs.upload.clearFiles()">导入新用户</el-button>
|
|
|
+ </el-upload>
|
|
|
+ </div>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</el-form>
|
|
|
@@ -127,6 +139,7 @@
|
|
|
@close="closeDialog"
|
|
|
v-dialogDrag
|
|
|
>
|
|
|
+ <!-- <TemplateForm ref="TemplateForm" :formData="formData" :ruleForm="ruleForm"></TemplateForm> -->
|
|
|
<el-form
|
|
|
:model="formData"
|
|
|
:rules="formDataRules"
|
|
|
@@ -159,10 +172,11 @@
|
|
|
<el-input v-model="formData.id" disabled></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="8"></el-col>
|
|
|
- <el-form-item label="手机号" prop="mobile">
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="手机号" prop="mobile">
|
|
|
<el-input v-model="formData.mobile"></el-input>
|
|
|
</el-form-item>
|
|
|
+ </el-col>
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="邮箱" prop="email">
|
|
|
<el-input v-model="formData.email"></el-input>
|
|
|
@@ -238,12 +252,14 @@
|
|
|
import Cookies from "js-cookie";
|
|
|
import KtButton from "@/views/Core/KtButton"; // 按钮权限组件
|
|
|
import tree from "@/components/ztree.vue"; // 机构树组件
|
|
|
+import TemplateForm from "@/components/TemplateForm/index.vue"; // 机构树组件
|
|
|
import KtCommonTable from "@/views/Core/KtCommonTable.vue"; //表格组件
|
|
|
export default {
|
|
|
components: {
|
|
|
KtButton,
|
|
|
tree,
|
|
|
KtCommonTable,
|
|
|
+ TemplateForm
|
|
|
},
|
|
|
data() {
|
|
|
//验证身份证
|
|
|
@@ -280,6 +296,30 @@ export default {
|
|
|
};
|
|
|
|
|
|
return {
|
|
|
+ // ruleForm:[
|
|
|
+ // {
|
|
|
+ // label:'员工工号',
|
|
|
+ // prop:'111111111',
|
|
|
+ // type:'input'
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // label:'员工工号',
|
|
|
+ // prop:'111111111',
|
|
|
+ // type:'dept'
|
|
|
+ // },{
|
|
|
+ // label:'员工工号',
|
|
|
+ // prop:'111111111',
|
|
|
+ // type:'input'
|
|
|
+ // },{
|
|
|
+ // label:'员工工号',
|
|
|
+ // prop:'111111111',
|
|
|
+ // type:'input'
|
|
|
+ // },{
|
|
|
+ // label:'员工工号',
|
|
|
+ // prop:'111111111',
|
|
|
+ // type:'input'
|
|
|
+ // },
|
|
|
+ // ],
|
|
|
pageData:{
|
|
|
pageNum: 1,
|
|
|
pageSize: 20,
|
|
|
@@ -405,6 +445,23 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
methods: {
|
|
|
+ // excel导入
|
|
|
+ carfrontChange(file) {
|
|
|
+ const params = new FormData(); // 声明formData数据类型
|
|
|
+ params.append("file", file.file);
|
|
|
+ params.append("deptId", this.pageData.deptId);
|
|
|
+ this.$api.dept.newUserImport(params).then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.$message({
|
|
|
+ message: res.msg,
|
|
|
+ type: "success"
|
|
|
+ });
|
|
|
+ this.findPage();
|
|
|
+ } else {
|
|
|
+ this.$message.error(res.msg);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
// 查询Start
|
|
|
queryStaffInfo() {
|
|
|
this.findPage();
|
|
|
@@ -494,7 +551,7 @@ export default {
|
|
|
this.formData.password=''
|
|
|
}
|
|
|
})
|
|
|
- this.dialogTitle = "编辑后线人员";
|
|
|
+ this.dialogTitle = "编辑代理人";
|
|
|
this.dialogVisible = true;
|
|
|
},
|
|
|
// 删除单个人员
|
|
|
@@ -527,7 +584,7 @@ export default {
|
|
|
this.formData.deptId = this.formData.deptId.at(-1);
|
|
|
}
|
|
|
this.formData.roleId='20'
|
|
|
- this.dialogTitle = "新增后线人员";
|
|
|
+ this.dialogTitle = "新增代理人";
|
|
|
this.dialogVisible = true;
|
|
|
},
|
|
|
// 新增或修改的弹出框Start
|