ludc
2023-07-26 74cac758319c66a5544a022362c0c61165138407
Source/UBCS-WEB/src/components/template/FlowPath.vue
@@ -11,6 +11,14 @@
export default {
    name: 'FlowPath',
    props: {
      checkStatus: {
        type: Boolean,
        default: false
      },
      crudLCStatus: {
        type: String,
        default: 'Editing'
      },
        code: {
            typeof: String,
            required: true,
@@ -40,6 +48,7 @@
                searchBtn: false,
                emptyBtn: false,
                columnBtn: false,
              addBtn: !this.checkStatus || this.crudLCStatus == 'Editing',
                defaultSort: {
                    prop: 'id,name,description,version',
                    order: 'descending'
@@ -92,7 +101,7 @@
                        type:'textarea'
                    },
                ]
            },
            }
        }
    },
    created() {
@@ -115,17 +124,18 @@
        // 获取列表
        async getDataList() {
            this.loading = false
            console.log(this.search)
          if(this.code){
            const { pageSize, currentPage } = this.page
            let param = { size: pageSize, current: currentPage }
            const response = await getFlowpathList({ ...param, ...{ templateId: this.code } })
            if (response.status === 200) {
                console.log(response)
                this.loading = false
                const data = response.data.data
                this.data = data.records
                this.page.total = data.total
            } else this.loading = false
          }
        },
        // 新增
        async handleSave(row, done, loading) {