quanyawei
2023-09-25 07ff240d2b2b89d04fa3054fa1e9c3d32f1c33fb
fix:新增系统管理
1 files modified
26 ■■■■ changed files
src/views/list/Unit.vue 26 ●●●● patch | view | raw | blame | history
src/views/list/Unit.vue
@@ -351,8 +351,22 @@
    private handleCreateModalCancel(): any {
        this.visibleCreateModal = false;
      this.editForm = {
        unitName:'',
        parentCode: [],
        areaCode:'',
        state: Number,
        parentCodeList:[]
      }
    }
    private handleInvalidityModalCancel(): any {
      this.editForm = {
        unitName:'',
        parentCode: [],
        areaCode:'',
        state: Number,
        parentCodeList:[]
      }
        this.visibleInvalidityModal = false;
    }
@@ -448,9 +462,9 @@
        return <a-badge status = 'processing' text = '未生效' />;
  }
    
    private handleUpdateModalVisible(visible: boolean, record: any): void {
    private async handleUpdateModalVisible(visible: boolean, record: any): void {
      this.visibleCreateModal = true;
      this.positionLevel(record.parentCodeList)
      await this.positionLevel(record.parentCodeList)
      this.title = '编辑责任单位'
      let params = _.cloneDeep(record)
      console.log(params)
@@ -459,10 +473,14 @@
      this.pageState='edit'
      console.log('editForm',record)
    }
    private handleDetailModalVisible(visible: boolean, record: any): void {
    private async handleDetailModalVisible(visible: boolean, record: any): void {
      this.visibleCreateModal = true;
      await this.positionLevel(record.parentCodeList)
      this.title = '责任单位详情'
      this.editForm = record
       let params = _.cloneDeep(record)
      console.log(params)
      params.parentCode=record.parentCodeList
      this.editForm = params
      this.pageState='view'
    }
  private opRender(text: string, record: any, index: number) {