|
|
@ -3,8 +3,8 @@
|
|
|
|
<a-form ref="searchFormRef" name="advanced_search" class="ant-advanced-search-form" :model="searchFormState">
|
|
|
|
<a-form ref="searchFormRef" name="advanced_search" class="ant-advanced-search-form" :model="searchFormState">
|
|
|
|
<a-row :gutter="24">
|
|
|
|
<a-row :gutter="24">
|
|
|
|
<a-col :span="8">
|
|
|
|
<a-col :span="8">
|
|
|
|
<a-form-item name="engine" label="主题关键词">
|
|
|
|
<a-form-item name="searchKey" label="主题关键词">
|
|
|
|
<a-input v-model:value="searchFormState.searchKey" placeholder="请输入站内信主题关键词"></a-input>
|
|
|
|
<a-input v-model:value="searchFormState.searchKey" placeholder="请输入站内信主题关键词" />
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
|
<a-col :span="8">
|
|
|
|
<a-col :span="8">
|
|
|
@ -48,14 +48,14 @@
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</s-table>
|
|
|
|
</s-table>
|
|
|
|
</a-card>
|
|
|
|
</a-card>
|
|
|
|
<Form ref="form" @successful="table.refresh(true)" />
|
|
|
|
<Form ref="form" @successful="table.refresh()" />
|
|
|
|
<detail ref="detailRef" />
|
|
|
|
<detail ref="detailRef" />
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script setup name="devMessage">
|
|
|
|
<script setup name="devMessage">
|
|
|
|
import messageApi from '@/api/dev/messageApi'
|
|
|
|
import messageApi from '@/api/dev/messageApi'
|
|
|
|
import Form from './form.vue'
|
|
|
|
import Form from './form.vue'
|
|
|
|
import detail from './detail.vue'
|
|
|
|
import Detail from './detail.vue'
|
|
|
|
|
|
|
|
|
|
|
|
const columns = [
|
|
|
|
const columns = [
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -82,13 +82,13 @@
|
|
|
|
width: '150px'
|
|
|
|
width: '150px'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
]
|
|
|
|
let selectedRowKeys = ref([])
|
|
|
|
const selectedRowKeys = ref([])
|
|
|
|
// 列表选择配置
|
|
|
|
// 列表选择配置
|
|
|
|
const options = {
|
|
|
|
const options = {
|
|
|
|
alert: {
|
|
|
|
alert: {
|
|
|
|
show: false,
|
|
|
|
show: false,
|
|
|
|
clear: () => {
|
|
|
|
clear: () => {
|
|
|
|
selectedRowKeys = ref([])
|
|
|
|
selectedRowKeys.value = ref([])
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
rowSelection: {
|
|
|
|
rowSelection: {
|
|
|
@ -101,11 +101,11 @@
|
|
|
|
const table = ref(null)
|
|
|
|
const table = ref(null)
|
|
|
|
const form = ref()
|
|
|
|
const form = ref()
|
|
|
|
const searchFormRef = ref()
|
|
|
|
const searchFormRef = ref()
|
|
|
|
let searchFormState = reactive({})
|
|
|
|
const searchFormState = ref({})
|
|
|
|
const detailRef = ref()
|
|
|
|
const detailRef = ref()
|
|
|
|
// 表格查询 返回 Promise 对象
|
|
|
|
// 表格查询 返回 Promise 对象
|
|
|
|
const loadData = (parameter) => {
|
|
|
|
const loadData = (parameter) => {
|
|
|
|
return messageApi.messagePage(Object.assign(parameter, searchFormState)).then((data) => {
|
|
|
|
return messageApi.messagePage(Object.assign(parameter, searchFormState.value)).then((data) => {
|
|
|
|
return data
|
|
|
|
return data
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -133,7 +133,7 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
<style lang="less" scoped>
|
|
|
|
.ant-form-item {
|
|
|
|
.ant-form-item {
|
|
|
|
margin-bottom: 0 !important;
|
|
|
|
margin-bottom: 0 !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|