| | |
| | | <!-- 集成日志 任务 数据全部公用--> |
| | | <el-form-item label="集成查询:" size="small"> |
| | | <el-select v-model="formInline.type" placeholder="请选择分类" @change="SelectChange"> |
| | | <el-option :label="item.label" :value="item.value" v-for="item in SearchObject.searchData" ></el-option> |
| | | <el-option :label="item.label" :value="item.value" :key="item.value" v-for="(item,index) in SearchObject.searchData"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <!-- 集成日志 是否成功--> |
| | |
| | | </el-form-item> |
| | | <!-- 查询按钮--> |
| | | <el-form-item size="small" v-if="shouldShowButton"> |
| | | <el-button type="success" size="small">查询</el-button> |
| | | <el-button type="success" size="small" @click="handleSearch">查询</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | |
| | | }, |
| | | SaveHandler(){ |
| | | let name = this.SearchObject.searchData[this.formInline.type].prop; |
| | | getList(this.page.currentPage, this.page.pageSize, {[name]: this.formInline.text}).then(res => { |
| | | getList(this.page.currentPage, this.page.pageSize, { [`conditionMap['${name}_like']`]: this.formInline.text}).then(res => { |
| | | console.log(res); |
| | | }); |
| | | }, |
| | | handleSearch(){ |
| | | let formattedDate = this.$moment(this.formInline.Date).format('YYYY-M-D'); |
| | | console.log('formattedDate',formattedDate); |
| | | } |
| | | } |
| | | } |