|  | @@ -1,9 +1,9 @@
 | 
	
		
			
				|  |  |  <template>
 | 
	
		
			
				|  |  |    <div class="app-container">
 | 
	
		
			
				|  |  |      <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch">
 | 
	
		
			
				|  |  | -      <el-form-item label="部门名称" prop="deptName">
 | 
	
		
			
				|  |  | +      <el-form-item label="部门名称" prop="fName">
 | 
	
		
			
				|  |  |          <el-input
 | 
	
		
			
				|  |  | -          v-model="queryParams.deptName"
 | 
	
		
			
				|  |  | +          v-model="queryParams.fName"
 | 
	
		
			
				|  |  |            placeholder="请输入部门名称"
 | 
	
		
			
				|  |  |            clearable
 | 
	
		
			
				|  |  |            size="small"
 | 
	
	
		
			
				|  | @@ -42,13 +42,13 @@
 | 
	
		
			
				|  |  |      <el-table
 | 
	
		
			
				|  |  |        v-loading="loading"
 | 
	
		
			
				|  |  |        :data="deptList"
 | 
	
		
			
				|  |  | -      row-key="deptId"
 | 
	
		
			
				|  |  | +      row-key="fId"
 | 
	
		
			
				|  |  |        default-expand-all
 | 
	
		
			
				|  |  |        :tree-props="{children: 'children', hasChildren: 'hasChildren'}"
 | 
	
		
			
				|  |  |      >
 | 
	
		
			
				|  |  | -      <el-table-column prop="deptName" label="部门名称" width="260"></el-table-column>
 | 
	
		
			
				|  |  | +      <el-table-column prop="fName" label="部门名称" width="260"></el-table-column>
 | 
	
		
			
				|  |  |        <el-table-column prop="orderNum" label="排序" width="200"></el-table-column>
 | 
	
		
			
				|  |  | -      <el-table-column prop="status" label="状态" :formatter="statusFormat" width="100"></el-table-column>
 | 
	
		
			
				|  |  | +      <el-table-column prop="fStatus" label="状态" :formatter="statusFormat" width="100"></el-table-column>
 | 
	
		
			
				|  |  |        <el-table-column label="创建时间" align="center" prop="createTime" width="200">
 | 
	
		
			
				|  |  |          <template slot-scope="scope">
 | 
	
		
			
				|  |  |            <span>{{ parseTime(scope.row.createTime) }}</span>
 | 
	
	
		
			
				|  | @@ -92,8 +92,8 @@
 | 
	
		
			
				|  |  |              </el-form-item>
 | 
	
		
			
				|  |  |            </el-col>
 | 
	
		
			
				|  |  |            <el-col :span="8">
 | 
	
		
			
				|  |  | -            <el-form-item label="部门名称" prop="deptName">
 | 
	
		
			
				|  |  | -              <el-input v-model="form.deptName" placeholder="请输入部门名称" />
 | 
	
		
			
				|  |  | +            <el-form-item label="部门名称" prop="fName">
 | 
	
		
			
				|  |  | +              <el-input v-model="form.fName" placeholder="请输入部门名称" />
 | 
	
		
			
				|  |  |              </el-form-item>
 | 
	
		
			
				|  |  |            </el-col>
 | 
	
		
			
				|  |  |            <el-col :span="8">
 | 
	
	
		
			
				|  | @@ -210,7 +210,7 @@ export default {
 | 
	
		
			
				|  |  |        statusOptions: [],
 | 
	
		
			
				|  |  |        // 查询参数
 | 
	
		
			
				|  |  |        queryParams: {
 | 
	
		
			
				|  |  | -        deptName: undefined,
 | 
	
		
			
				|  |  | +        fName: undefined,
 | 
	
		
			
				|  |  |          status: undefined
 | 
	
		
			
				|  |  |        },
 | 
	
		
			
				|  |  |        // 表单参数
 | 
	
	
		
			
				|  | @@ -220,7 +220,7 @@ export default {
 | 
	
		
			
				|  |  |          parentId: [
 | 
	
		
			
				|  |  |            { required: true, message: "上级部门不能为空", trigger: "blur" }
 | 
	
		
			
				|  |  |          ],
 | 
	
		
			
				|  |  | -        deptName: [
 | 
	
		
			
				|  |  | +        fName: [
 | 
	
		
			
				|  |  |            { required: true, message: "部门名称不能为空", trigger: "blur" }
 | 
	
		
			
				|  |  |          ],
 | 
	
		
			
				|  |  |          orderNum: [
 | 
	
	
		
			
				|  | @@ -254,7 +254,7 @@ export default {
 | 
	
		
			
				|  |  |      getList() {
 | 
	
		
			
				|  |  |        this.loading = true;
 | 
	
		
			
				|  |  |        listDept(this.queryParams).then(response => {
 | 
	
		
			
				|  |  | -        this.deptList = this.handleTree(response.data, "deptId");
 | 
	
		
			
				|  |  | +        this.deptList = this.handleTree(response.data, "fId");
 | 
	
		
			
				|  |  |          this.loading = false;
 | 
	
		
			
				|  |  |        });
 | 
	
		
			
				|  |  |      },
 | 
	
	
		
			
				|  | @@ -264,8 +264,8 @@ export default {
 | 
	
		
			
				|  |  |          delete node.children;
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  |        return {
 | 
	
		
			
				|  |  | -        id: node.deptId,
 | 
	
		
			
				|  |  | -        label: node.deptName,
 | 
	
		
			
				|  |  | +        id: node.fId,
 | 
	
		
			
				|  |  | +        label: node.fName,
 | 
	
		
			
				|  |  |          children: node.children
 | 
	
		
			
				|  |  |        };
 | 
	
		
			
				|  |  |      },
 | 
	
	
		
			
				|  | @@ -281,9 +281,9 @@ export default {
 | 
	
		
			
				|  |  |      // 表单重置
 | 
	
		
			
				|  |  |      reset() {
 | 
	
		
			
				|  |  |        this.form = {
 | 
	
		
			
				|  |  | -        deptId: undefined,
 | 
	
		
			
				|  |  | +        fId: undefined,
 | 
	
		
			
				|  |  |          parentId: undefined,
 | 
	
		
			
				|  |  | -        deptName: undefined,
 | 
	
		
			
				|  |  | +        fName: undefined,
 | 
	
		
			
				|  |  |          orderNum: undefined,
 | 
	
		
			
				|  |  |          leader: undefined,
 | 
	
		
			
				|  |  |          phone: undefined,
 | 
	
	
		
			
				|  | @@ -305,31 +305,31 @@ export default {
 | 
	
		
			
				|  |  |      handleAdd(row) {
 | 
	
		
			
				|  |  |        this.reset();
 | 
	
		
			
				|  |  |        if (row != undefined) {
 | 
	
		
			
				|  |  | -        this.form.parentId = row.deptId;
 | 
	
		
			
				|  |  | +        this.form.parentId = row.fId;
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  |        this.open = true;
 | 
	
		
			
				|  |  |        this.title = "添加部门";
 | 
	
		
			
				|  |  |        listDept().then(response => {
 | 
	
		
			
				|  |  | -	        this.deptOptions = this.handleTree(response.data, "deptId");
 | 
	
		
			
				|  |  | +	        this.deptOptions = this.handleTree(response.data, "fId");
 | 
	
		
			
				|  |  |        });
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      /** 修改按钮操作 */
 | 
	
		
			
				|  |  |      handleUpdate(row) {
 | 
	
		
			
				|  |  |        this.reset();
 | 
	
		
			
				|  |  | -      getDept(row.deptId).then(response => {
 | 
	
		
			
				|  |  | +      getDept(row.fId).then(response => {
 | 
	
		
			
				|  |  |          this.form = response.data;
 | 
	
		
			
				|  |  |          this.open = true;
 | 
	
		
			
				|  |  |          this.title = "修改部门";
 | 
	
		
			
				|  |  |        });
 | 
	
		
			
				|  |  | -      listDeptExcludeChild(row.deptId).then(response => {
 | 
	
		
			
				|  |  | -	        this.deptOptions = this.handleTree(response.data, "deptId");
 | 
	
		
			
				|  |  | +      listDeptExcludeChild(row.fId).then(response => {
 | 
	
		
			
				|  |  | +	        this.deptOptions = this.handleTree(response.data, "fId");
 | 
	
		
			
				|  |  |        });
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      /** 提交按钮 */
 | 
	
		
			
				|  |  |      submitForm: function() {
 | 
	
		
			
				|  |  |        this.$refs["form"].validate(valid => {
 | 
	
		
			
				|  |  |          if (valid) {
 | 
	
		
			
				|  |  | -          if (this.form.deptId != undefined) {
 | 
	
		
			
				|  |  | +          if (this.form.fId != undefined) {
 | 
	
		
			
				|  |  |              updateDept(this.form).then(response => {
 | 
	
		
			
				|  |  |                this.msgSuccess("修改成功");
 | 
	
		
			
				|  |  |                this.open = false;
 | 
	
	
		
			
				|  | @@ -347,12 +347,12 @@ export default {
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      /** 删除按钮操作 */
 | 
	
		
			
				|  |  |      handleDelete(row) {
 | 
	
		
			
				|  |  | -      this.$confirm('是否确认删除名称为"' + row.deptName + '"的数据项?', "警告", {
 | 
	
		
			
				|  |  | +      this.$confirm('是否确认删除名称为"' + row.fName + '"的数据项?', "警告", {
 | 
	
		
			
				|  |  |            confirmButtonText: "确定",
 | 
	
		
			
				|  |  |            cancelButtonText: "取消",
 | 
	
		
			
				|  |  |            type: "warning"
 | 
	
		
			
				|  |  |          }).then(function() {
 | 
	
		
			
				|  |  | -          return delDept(row.deptId);
 | 
	
		
			
				|  |  | +          return delDept(row.fId);
 | 
	
		
			
				|  |  |          }).then(() => {
 | 
	
		
			
				|  |  |            this.getList();
 | 
	
		
			
				|  |  |            this.msgSuccess("删除成功");
 |