quanyawei
2023-09-25 aa08c684def3ade794a48c592b033f2824354ce0
fix:新增系统管理
1 files modified
18 ■■■■■ changed files
src/views/list/Unit.vue 18 ●●●●● patch | view | raw | blame | history
src/views/list/Unit.vue
@@ -406,10 +406,11 @@
    private handleAssert(record: any){
       get("unit/state",{
         id: record.unitId,
         unitId: record.unitId,
          
        }).then(res => {
          <a-alert message="生效成功" type="success" />
       }).then(res => {
           this.handleSearch()
           this.$message.success('操作成功')
        })
        .catch(err=>{
            console.log(err);
@@ -430,8 +431,9 @@
              unitId: this.recordTableData.unitId,
              invalidReason:this.createForm.getFieldValue('code')
            }).then(res => { 
              <a-alert message="已作废" type="success" />
              this.visibleInvalidityModal=false
              this.$message.success('操作成功')
              this.visibleInvalidityModal = false
              this.handleSearch()
            })
            .catch(err=>{
                console.log(err);
@@ -440,7 +442,7 @@
  }
    
    private progressStateRender(text: string) {
        if (text === 0) {
        if (text === '0') {
            return <a-badge status = 'success' text = '生效' />;
        }
        return <a-badge status = 'processing' text = '未生效' />;
@@ -525,10 +527,10 @@
              <a onClick = {
                () => this.handleDetailModalVisible(true, record)
            } > 详情 </a>
            <a-divider type = 'vertical'  / >
            </div>
        }
      }
    }
      this.handleSearch();
    }
}