|  | @@ -102,7 +102,7 @@
 | 
	
		
			
				|  |  |                size="mini"
 | 
	
		
			
				|  |  |                @click="showDialogEdit(0)"
 | 
	
		
			
				|  |  |                v-hasPermi="['system:dept:add']"
 | 
	
		
			
				|  |  | -              >新增离行式自助银行</el-button
 | 
	
		
			
				|  |  | +              ></el-button
 | 
	
		
			
				|  |  |              >
 | 
	
		
			
				|  |  |              <el-button
 | 
	
		
			
				|  |  |                type="primary"
 | 
	
	
		
			
				|  | @@ -291,6 +291,9 @@
 | 
	
		
			
				|  |  |                    :key="dict.value"
 | 
	
		
			
				|  |  |                    :label="dict.label"
 | 
	
		
			
				|  |  |                    :value="dict.value"
 | 
	
		
			
				|  |  | +                  v-show="addIndex == 2
 | 
	
		
			
				|  |  | +                  || (addIndex == 3 && dict.value == 5)
 | 
	
		
			
				|  |  | +                  || (addIndex == 3 && dict.value == 6)"
 | 
	
		
			
				|  |  |                  />
 | 
	
		
			
				|  |  |                </el-select>
 | 
	
		
			
				|  |  |              </el-form-item>
 | 
	
	
		
			
				|  | @@ -399,6 +402,8 @@ export default {
 | 
	
		
			
				|  |  |        deptList: [],
 | 
	
		
			
				|  |  |        // 总条数
 | 
	
		
			
				|  |  |        total: 0,
 | 
	
		
			
				|  |  | +      //新增机构打开标识
 | 
	
		
			
				|  |  | +      addIndex: 1,
 | 
	
		
			
				|  |  |        // 机构树选项
 | 
	
		
			
				|  |  |        deptOptions: [],
 | 
	
		
			
				|  |  |        deptOptions2: [],
 | 
	
	
		
			
				|  | @@ -575,6 +580,7 @@ export default {
 | 
	
		
			
				|  |  |      async handleAdd() {
 | 
	
		
			
				|  |  |        // console.log(this.queryParams.parentId, "this.queryParams.parentId");
 | 
	
		
			
				|  |  |        // console.log(this.form.parentId, "this.form.parentId");
 | 
	
		
			
				|  |  | +      this.addIndex = 3;
 | 
	
		
			
				|  |  |        this.reset();
 | 
	
		
			
				|  |  |        if (this.queryParams.parentId != undefined) {
 | 
	
		
			
				|  |  |          if (this.pId != -1) {
 | 
	
	
		
			
				|  | @@ -598,10 +604,11 @@ export default {
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      /** 修改按钮操作 */
 | 
	
		
			
				|  |  |      async handleUpdate(row) {
 | 
	
		
			
				|  |  | +      this.addIndex = 2;
 | 
	
		
			
				|  |  |        this.reset();
 | 
	
		
			
				|  |  |        getDept(row.id).then((response) => {
 | 
	
		
			
				|  |  |          this.form = response.data;
 | 
	
		
			
				|  |  | -        
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |          this.pId = response.data.parentId;
 | 
	
		
			
				|  |  |        });
 | 
	
		
			
				|  |  |        if (this.pId != -1) {
 | 
	
	
		
			
				|  | @@ -619,9 +626,10 @@ export default {
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      /** 提交按钮 */
 | 
	
		
			
				|  |  |      changeSubmitForm() {
 | 
	
		
			
				|  |  | +      this.addIndex = 2;
 | 
	
		
			
				|  |  | +      debugger
 | 
	
		
			
				|  |  |        this.$refs["form"].validate((valid) => {
 | 
	
		
			
				|  |  |          if (valid) {
 | 
	
		
			
				|  |  | -          console.log(this.form, "this.form");
 | 
	
		
			
				|  |  |            updateDept(this.form).then((response) => {
 | 
	
		
			
				|  |  |              this.$modal.msgSuccess("处理成功");
 | 
	
		
			
				|  |  |              this.open = false;
 | 
	
	
		
			
				|  | @@ -632,6 +640,7 @@ export default {
 | 
	
		
			
				|  |  |        });
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      addSubmitForm() {
 | 
	
		
			
				|  |  | +      this.addIndex = 3;
 | 
	
		
			
				|  |  |        this.$refs["form"].validate((valid) => {
 | 
	
		
			
				|  |  |          if (valid) {
 | 
	
		
			
				|  |  |            addDept(this.form).then((response) => {
 |