田源
2024-01-10 0df94050b5079d8a91172b0cbf472400a9750f7d
Source/UBCS-WEB/src/views/integration/applicationForm.vue
@@ -57,17 +57,17 @@
              {
                label: '申请单号',
                prop: 'id',
                width: 300,
                width: 200,
                fixed: true,
                search: true,
              }, {
                label: '集团码',
                width: 200,
                width: 150,
                prop: 'groupCode',
                search: true,
              }, {
                label: '操作类型',
                width: 200,
                width: 120,
                prop: 'operationType',
                type: 'select',
                search: true,
@@ -85,30 +85,33 @@
              },
              {
                label: '创建时间',
                width: 200,
                prop: 'createTime',
                type: 'datetime',
                search: true,
              },
              {
                label: '更改时间',
                width: 200,
                prop: 'lastModifyTime',
                type: 'datetime',
                search: true,
              }, {
                label: '返回标识',
                width: 100,
                prop: 'code'
                label: '是否成功',
                width: 120,
                prop: 'code',
                html: true,
                align:'center',
                formatter : function (row) {
                  return row.code == '1' ? '<i class="el-icon-check" style="color: #32cd32;font-size: 20px;font-weight: 800"></i>' : '<i class="el-icon-close" style="color: #ff0000;font-size: 20px;font-weight: 800"></i>'
                }
              },
              {
                label: '返回信息',
                width: 300,
                prop: 'content'
                prop: 'content',
                hide: true
              },
              {
                label: '消息信息',
                width: 300,
                width: 150,
                prop: 'msg'
              }
            ]
@@ -124,10 +127,10 @@
                    message: "请至少选择一条数据!"
                })
            } else {
                console.log(this.stateParam)
                // console.log(this.stateParam)
                const response = await queryApplyStat(this.stateParam)
                if (response.status === 200) {
                    console.log(response)
                    // console.log(response)
                }
            }
        },
@@ -135,15 +138,15 @@
            this.loading = true
            const { pageSize, currentPage, total } = this.page
            let param = { size: pageSize, current: currentPage }
            console.log(this.searchParam)
            // console.log(this.searchParam)
            this.searchParam = Object.keys(this.searchParam)
                .filter((key) => this.searchParam[key] !== null && this.searchParam[key] !== undefined && this.searchParam[key] !== "")
                .reduce((acc, key) => ({ ...acc, [key]: this.searchParam[key] }), {});
            console.log(this.searchParam)
            // console.log(this.searchParam)
            const response = await getList({ ...param, ...this.searchParam })
            if (response.status === 200) {
                this.loading = false
                console.log(response)
                // console.log(response)
                const data = response.data.data
                this.data = data.records
                this.page.total = data.total
@@ -160,7 +163,7 @@
            this.getDataList()
        },
        handleSearch(form, done) {
            console.log(form)
            // console.log(form)
            const { id, groupCode, operationType } = form
            let dataTime = { id, groupCode, operationType }
            if (form.hasOwnProperty('createTime')) {
@@ -175,13 +178,13 @@
            done()
        },
        selectionChange(list) {
            console.log(list)
            // console.log(list)
            let newData = list.map(item => {
                const { dataOid } = item
                return dataOid
            })
            this.stateParam = { oids: newData.toString() }
            console.log(newData)
            // console.log(newData)
        },
        handleRowClick(row) {
            this.$refs.crud.toggleRowSelection(row, true)