|
@@ -1,7 +1,13 @@
|
|
|
<template>
|
|
|
- <el-dialog title="生成执行条件" width="700px" top="10px" :close-on-click-modal="false" append-to-body :visible.sync="showCron">
|
|
|
+ <el-dialog title="生成执行条件" width="750px" top="10px" :close-on-click-modal="false" append-to-body :visible.sync="showCron">
|
|
|
<div class="content">
|
|
|
- <advanceQuery ref="advanceQuery" :selectOptions="selectOptions" @getAdvancedQueryData="getAdvancedQueryData" />
|
|
|
+ <advanceQuery ref="advanceQuery" style="height: 50vh;" :selectOptions="selectOptions" @getAdvancedQueryData="getAdvancedQueryData" />
|
|
|
+ <div class="queryYl">
|
|
|
+ <el-button @click="handleYlSubmit" type="primary" size="small">预览执行条件数据</el-button>
|
|
|
+ </div>
|
|
|
+ <div class="queryInput">
|
|
|
+ <el-input size="small" type="textarea" rows="8" v-model="dataRules"></el-input>
|
|
|
+ </div>
|
|
|
<div style="text-align: right;" class="d-foot">
|
|
|
<el-button @click="showCron=false" size="small">取消</el-button>
|
|
|
<el-button @click="handleSubmit" type="primary" size="small">确定</el-button>
|
|
@@ -45,15 +51,24 @@ export default {
|
|
|
})
|
|
|
const strmsg = `let indata = ${strdata} indata = JSON.stringify(indata) indata && ${strstring} ? 0 : 1`
|
|
|
this.dataRules = strmsg
|
|
|
- this.$emit('getColumnData', strmsg)
|
|
|
- this.showCron = false
|
|
|
},
|
|
|
- handleSubmit () {
|
|
|
+ handleYlSubmit () {
|
|
|
this.$refs['advanceQuery'].advancedQueryHandler()
|
|
|
+ },
|
|
|
+ handleSubmit () {
|
|
|
+ this.$emit('getColumnData', this.dataRules)
|
|
|
+ this.showCron = false
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
|
|
|
|
-<style>
|
|
|
+<style lang="scss" scoped>
|
|
|
+.queryYl {
|
|
|
+ margin-top: 35px;
|
|
|
+ text-align: right;
|
|
|
+}
|
|
|
+.queryInput {
|
|
|
+ padding: 35px 0;
|
|
|
+}
|
|
|
</style>
|