| | |
| | | selectedRows: [], |
| | | currentFilterName: '', |
| | | activeCollapse: ['more'], |
| | | baseURL: process.env.VUE_APP_BASE_URL || "http://47.96.97.237/API/" |
| | | baseURL: process.env.VUE_APP_BASE_API || "http://47.96.97.237/API/" |
| | | } |
| | | }, |
| | | watch: { |
| | |
| | | } |
| | | console.log('请求参数:', requestParams) |
| | | const response = await axios.get(`${this.baseURL}/Gy_Employee/list`, { params: requestParams }) |
| | | |
| | | |
| | | if (response.data.count === 1) { |
| | | this.tableData = response.data.data || [] |
| | | this.total = response.data.count || 0 |
| | | |
| | | |
| | | if (response.data.list.length > 0) { |
| | | this.setTableColumns(response.data.list) |
| | | } |
| | |
| | | return ` and ${col} ${com}` |
| | | } |
| | | |
| | | if (q.ColName && q.Comparator && q.Comparator !== '0' && q.ColContent) |
| | | if (q.ColName && q.Comparator && q.Comparator !== '0' && q.ColContent) |
| | | sWhereParts.push(buildComparator(q.ColName, q.Comparator, q.ColContent)) |
| | | if (q.ColName1 && q.Comparator1 && q.Comparator1 !== '0' && q.ColContent1) |
| | | if (q.ColName1 && q.Comparator1 && q.Comparator1 !== '0' && q.ColContent1) |
| | | sWhereParts.push(buildComparator(q.ColName1, q.Comparator1, q.ColContent1)) |
| | | if (q.ColName2 && q.Comparator2 && q.Comparator2 !== '0' && q.ColContent2) |
| | | if (q.ColName2 && q.Comparator2 && q.Comparator2 !== '0' && q.ColContent2) |
| | | sWhereParts.push(buildComparator(q.ColName2, q.Comparator2, q.ColContent2)) |
| | | |
| | | if (q.HNumber) sWhereParts.push(` and 职员代码 like '%${q.HNumber}%'`) |
| | |
| | | this.getEmployeeList(this.buildWhereClause()) |
| | | }, |
| | | |
| | | |
| | | |
| | | handleConfirm() { |
| | | if (this.selectedRows.length === 0) { |
| | | this.$message.warning('请选择职员') |
| | |
| | | this.$emit('update:visible', false) |
| | | }, |
| | | |
| | | |
| | | |
| | | handleCancel() { |
| | | this.$emit('update:visible', false) |
| | | }, |
| | |
| | | ::v-deep .el-table .cell { |
| | | padding: 8px 12px; |
| | | } |
| | | </style> |
| | | </style> |