Commit 75d0aaf4 by 杨明

fixed

1 parent ef6e4f34
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn * @Author: yangming yangming@didihu.com.cn
* @Date: 2023-06-02 14:10:14 * @Date: 2023-06-02 14:10:14
* @LastEditors: yangming yangming@didihu.com.cn * @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-06-13 17:16:07 * @LastEditTime: 2023-06-13 17:58:44
* @FilePath: \scrm-micro-home\src\views\home\ai\index.vue * @FilePath: \scrm-micro-home\src\views\home\ai\index.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
--> -->
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
<div class="form-name">导出表格</div> <div class="form-name">导出表格</div>
<el-button type="primary" size="small" @click="importUrl">导出</el-button> <el-button type="primary" size="small" @click="importUrl">导出</el-button>
</div> </div>
<GLTable @setTableFinishFun="setTableFinishFun" :searchForm="searchForm" :noDataImg="url" ref="taskForm" :getListApi="getListApi" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn"></GLTable> <GLTable @setTableFinishFun="setTableFinishFun" :searchForm="searchFormTabel" :noDataImg="url" ref="taskForm" :getListApi="getListApi" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn"></GLTable>
</div> </div>
</div> </div>
</template> </template>
...@@ -231,6 +231,7 @@ export default { ...@@ -231,6 +231,7 @@ export default {
}, },
detail: {}, detail: {},
searchForm: {}, searchForm: {},
searchFormTabel: {},
// 搜索 // 搜索
searchFormData: [ searchFormData: [
{ {
...@@ -307,10 +308,11 @@ export default { ...@@ -307,10 +308,11 @@ export default {
}, },
handleReset() { handleReset() {
this.searchForm = {} this.searchForm = {}
this.searchFormTabel = {}
this.$refs.taskForm.refreshTable() this.$refs.taskForm.refreshTable()
}, },
importUrl() { importUrl() {
this.$apis.aiCall.conditionExpost({ ...this.searchForm }).then(res => { this.$apis.aiCall.conditionExpost({ ...this.getParams() }).then(res => {
util.openUrl(res) util.openUrl(res)
}) })
}, },
...@@ -321,9 +323,20 @@ export default { ...@@ -321,9 +323,20 @@ export default {
this.notConnectPhoneStatusList = (notConnectPhoneStatusList.length && notConnectPhoneStatusList) || this.statusItem this.notConnectPhoneStatusList = (notConnectPhoneStatusList.length && notConnectPhoneStatusList) || this.statusItem
}) })
}, },
getParams() {
const params = this.$common.utils.deepClone(this.searchForm)
params.taskId = this.$route.query.id
if (params.answer && params.answer.includes('endType')) {
params.answer = params.answer.filter(item => item != 'endType')
params.endType = 1
} else {
params.endType = null
}
return params
},
beforeSearchFn() { beforeSearchFn() {
return new Promise(resolve => { return new Promise(resolve => {
this.searchForm.taskId = this.$route.query.id this.searchFormTabel = this.getParams()
resolve() resolve()
}) })
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!