接口调试
This commit is contained in:
parent
1ed8c71127
commit
2dac5e60a1
|
|
@ -12,6 +12,7 @@ declare module 'vue' {
|
||||||
EditorWang: typeof import('./src/components/com/editorWang.vue')['default']
|
EditorWang: typeof import('./src/components/com/editorWang.vue')['default']
|
||||||
ElButton: typeof import('element-plus/es')['ElButton']
|
ElButton: typeof import('element-plus/es')['ElButton']
|
||||||
ElCard: typeof import('element-plus/es')['ElCard']
|
ElCard: typeof import('element-plus/es')['ElCard']
|
||||||
|
ElCascader: typeof import('element-plus/es')['ElCascader']
|
||||||
ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider']
|
ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider']
|
||||||
ElDatePicker: typeof import('element-plus/es')['ElDatePicker']
|
ElDatePicker: typeof import('element-plus/es')['ElDatePicker']
|
||||||
ElDialog: typeof import('element-plus/es')['ElDialog']
|
ElDialog: typeof import('element-plus/es')['ElDialog']
|
||||||
|
|
|
||||||
|
|
@ -19,3 +19,6 @@ export const apiSelectInfo = (params: any) => {
|
||||||
export const apiOff = (params: any) => {
|
export const apiOff = (params: any) => {
|
||||||
return post(`/off/edit`, params)
|
return post(`/off/edit`, params)
|
||||||
}
|
}
|
||||||
|
export const typeTreeSelect = (params: any) => {
|
||||||
|
return get(`/type/treeSelect`, params)
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -102,8 +102,8 @@ const rejectCallBack = async (row: any, value: any) => {
|
||||||
maId: form.maId,
|
maId: form.maId,
|
||||||
id: form.creator,
|
id: form.creator,
|
||||||
applyCompany: form.companyName,
|
applyCompany: form.companyName,
|
||||||
type: "1",
|
type: "2",
|
||||||
status: '1'
|
status: '2'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
<!-- <el-form-item label="关键字">
|
<!-- <el-form-item label="关键字">
|
||||||
<el-input v-model="filterForm.keyword" placeholder="请输入关键字" clearable />
|
<el-input v-model="filterForm.keyword" placeholder="请输入关键字" clearable />
|
||||||
</el-form-item> -->
|
</el-form-item> -->
|
||||||
|
|
||||||
<el-form-item label="编码">
|
<el-form-item label="编码">
|
||||||
<el-input v-model="filterForm.code" placeholder="请输入编码" clearable />
|
<el-input v-model="filterForm.code" placeholder="请输入编码" clearable />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
@ -15,60 +15,81 @@
|
||||||
<el-form-item label="企业名称">
|
<el-form-item label="企业名称">
|
||||||
<el-input v-model="filterForm.companyName" placeholder="请输入企业名称" clearable />
|
<el-input v-model="filterForm.companyName" placeholder="请输入企业名称" clearable />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="企业名称">
|
<el-form-item label="装备类型">
|
||||||
<el-input v-model="filterForm.typeId" placeholder="请输入企业名称" clearable />
|
<el-cascader :options="treeList" filterable v-model="filterForm.typeId" clearable :props="{
|
||||||
|
label: 'name',
|
||||||
|
value: 'id'
|
||||||
|
|
||||||
|
}" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item >
|
<el-form-item>
|
||||||
<el-button type="primary" @click="serachFn">查询</el-button>
|
<el-button type="primary" @click="serachFn">查询</el-button>
|
||||||
<el-button type="plain" @click="resetFn">重置</el-button>
|
<el-button type="plain" @click="resetFn">重置</el-button>
|
||||||
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item >
|
<el-form-item>
|
||||||
<el-button type="primary" :disabled="props.selectItemList.length==0" @click="auditBatchFn">批量审批</el-button>
|
<el-button type="primary" :disabled="props.selectItemList.length == 0" @click="auditBatchFn">批量审批</el-button>
|
||||||
<!-- <el-button type="primary" :disabled="props.selectItemList.length==0" @click="deleteBatchFn">批量下架</el-button> -->
|
<!-- <el-button type="primary" :disabled="props.selectItemList.length==0" @click="deleteBatchFn">批量下架</el-button> -->
|
||||||
<el-button type="primary" @click="exportFn">导出</el-button>
|
<el-button type="primary" @click="exportFn">导出</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
</el-card>
|
</el-card>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
const emits = defineEmits(['search','reset','auditBatch','export','deleteBatch'])
|
const emits = defineEmits(['search', 'reset', 'auditBatch', 'export', 'deleteBatch'])
|
||||||
|
import { typeTreeSelect } from "http/api/equip"
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
selectItemList:{
|
selectItemList: {
|
||||||
type:Array,
|
type: Array,
|
||||||
default:[]
|
default: []
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
const filterForm = reactive({
|
const filterForm = reactive({
|
||||||
code:"",
|
code: "",
|
||||||
name:'',
|
name: '',
|
||||||
companyName:"",
|
companyName: "",
|
||||||
typeId:''
|
typeId: ''
|
||||||
})
|
})
|
||||||
|
|
||||||
|
const treeList = ref([])
|
||||||
|
|
||||||
const serachFn = () => {
|
const serachFn = () => {
|
||||||
emits('search',filterForm)
|
emits('search', filterForm)
|
||||||
}
|
}
|
||||||
|
|
||||||
const resetFn=()=>{
|
const resetFn = () => {
|
||||||
emits('reset')
|
filterForm.code = ""
|
||||||
|
filterForm.name = ''
|
||||||
|
filterForm.companyName = ""
|
||||||
|
filterForm.typeId = ''
|
||||||
|
|
||||||
|
emits('reset', filterForm)
|
||||||
}
|
}
|
||||||
|
|
||||||
const exportFn =()=>{
|
const exportFn = () => {
|
||||||
emits('export')
|
emits('export')
|
||||||
}
|
}
|
||||||
const auditBatchFn =()=>{
|
const auditBatchFn = () => {
|
||||||
emits('auditBatch')
|
emits('auditBatch')
|
||||||
}
|
}
|
||||||
const deleteBatchFn =()=>{
|
const deleteBatchFn = () => {
|
||||||
emits('deleteBatch')
|
emits('deleteBatch')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const initTreeData = async () => {
|
||||||
|
const res: any = await typeTreeSelect({})
|
||||||
|
console.log("RES", res)
|
||||||
|
treeList.value = res.data
|
||||||
|
}
|
||||||
|
|
||||||
|
onMounted(() => {
|
||||||
|
initTreeData()
|
||||||
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss"></style>
|
<style scoped lang="scss"></style>
|
||||||
|
|
|
||||||
|
|
@ -179,7 +179,7 @@ const auditBatchFn =()=>{
|
||||||
}
|
}
|
||||||
|
|
||||||
const batchFn=(ev:any)=>{
|
const batchFn=(ev:any)=>{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,12 @@ const serachFn = () => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const resetFn=()=>{
|
const resetFn=()=>{
|
||||||
emits('reset')
|
filterForm.keyword= ''
|
||||||
|
filterForm.companyName=''
|
||||||
|
filterForm.userName=''
|
||||||
|
filterForm.creditCode=''
|
||||||
|
filterForm.dataRange= getdatatime()
|
||||||
|
emits('reset',filterForm)
|
||||||
}
|
}
|
||||||
|
|
||||||
const exportFn =()=>{
|
const exportFn =()=>{
|
||||||
|
|
|
||||||
|
|
@ -124,8 +124,9 @@ const searchFn = (params:any) => {
|
||||||
initTableList()
|
initTableList()
|
||||||
}
|
}
|
||||||
|
|
||||||
const resetFn = () => {
|
const resetFn =(params:any) => {
|
||||||
|
searchParams = params
|
||||||
|
initTableList()
|
||||||
}
|
}
|
||||||
|
|
||||||
const exportFn = async () => {
|
const exportFn = async () => {
|
||||||
|
|
|
||||||
|
|
@ -28,8 +28,8 @@
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
const emits = defineEmits(['search', 'reset', 'export'])
|
const emits = defineEmits(['search', 'reset', 'export'])
|
||||||
import {getdatatime} from "utils/time"
|
import { getdatatime } from "utils/time"
|
||||||
const filterForm:any = reactive({
|
const filterForm: any = reactive({
|
||||||
keyword: '',
|
keyword: '',
|
||||||
companyName: '',
|
companyName: '',
|
||||||
creditCode: '',
|
creditCode: '',
|
||||||
|
|
@ -58,15 +58,20 @@ const serachFn = () => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const resetFn = () => {
|
const resetFn = () => {
|
||||||
emits('reset')
|
filterForm.keyword = ''
|
||||||
|
filterForm.companyName = ''
|
||||||
|
filterForm.creditCode = ''
|
||||||
|
filterForm.dataRange = getdatatime()
|
||||||
|
filterForm.userName = ''
|
||||||
|
emits('reset',filterForm)
|
||||||
}
|
}
|
||||||
|
|
||||||
const exportFn = () => {
|
const exportFn = () => {
|
||||||
emits('export')
|
emits('export')
|
||||||
}
|
}
|
||||||
|
|
||||||
onMounted(()=>{
|
onMounted(() => {
|
||||||
filterForm.dataRange = getdatatime()
|
filterForm.dataRange = getdatatime()
|
||||||
})
|
})
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -106,8 +106,12 @@ const searchFn = (params: any) => {
|
||||||
initTableList()
|
initTableList()
|
||||||
}
|
}
|
||||||
|
|
||||||
const resetFn = () => {
|
const resetFn =(params: any) => {
|
||||||
|
searchParams = params
|
||||||
|
console.log("searchParams", params)
|
||||||
|
searchParams.beginTime = moment(params.dataRange[0]).format('yyyy-MM-DD')
|
||||||
|
searchParams.endTime = moment(params.dataRange[1]).format('yyyy-MM-DD')
|
||||||
|
initTableList()
|
||||||
}
|
}
|
||||||
|
|
||||||
const exportFn = async () => {
|
const exportFn = async () => {
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,11 @@ const serachFn = () => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const resetFn=()=>{
|
const resetFn=()=>{
|
||||||
emits('reset')
|
filterForm.companyName=''
|
||||||
|
filterForm.creditCode=''
|
||||||
|
filterForm.userName=''
|
||||||
|
filterForm.dataRange=getdatatime()
|
||||||
|
emits('reset',filterForm)
|
||||||
}
|
}
|
||||||
|
|
||||||
const exportFn =()=>{
|
const exportFn =()=>{
|
||||||
|
|
|
||||||
|
|
@ -131,8 +131,9 @@ const searchFn = (params: any) => {
|
||||||
initTableList()
|
initTableList()
|
||||||
}
|
}
|
||||||
|
|
||||||
const resetFn = () => {
|
const resetFn = (params: any) => {
|
||||||
|
searchParams = params
|
||||||
|
initTableList()
|
||||||
}
|
}
|
||||||
|
|
||||||
const exportFn = () => {
|
const exportFn = () => {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<el-card shadow="always" class="search_header_top_row1">
|
<el-card shadow="always" class="search_header_top_row1">
|
||||||
<el-form :inline="true" :model="filterForm" class="demo-form-inline">
|
<el-form :inline="true" ref="formRef" :model="filterForm" class="demo-form-inline">
|
||||||
<el-form-item label="企业类型">
|
<el-form-item label="企业类型">
|
||||||
<el-input v-model.trim="filterForm.name" placeholder="请输入企业类型" clearable maxlength="30" />
|
<el-input v-model.trim="filterForm.name" placeholder="请输入企业类型" clearable maxlength="30" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
@ -24,7 +24,7 @@
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
const emits = defineEmits(['search', 'reset', 'export', 'add'])
|
const emits = defineEmits(['search', 'reset', 'export', 'add'])
|
||||||
|
const formRef = ref()
|
||||||
const isEnableList = reactive({
|
const isEnableList = reactive({
|
||||||
list: [{
|
list: [{
|
||||||
|
|
||||||
|
|
@ -47,7 +47,9 @@ const serachFn = () => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const resetFn = () => {
|
const resetFn = () => {
|
||||||
emits('reset')
|
filterForm.name = ''
|
||||||
|
filterForm.status = ''
|
||||||
|
emits('reset',filterForm)
|
||||||
}
|
}
|
||||||
|
|
||||||
const exportFn = () => {
|
const exportFn = () => {
|
||||||
|
|
|
||||||
|
|
@ -92,8 +92,9 @@ const searchFn = (params: any) => {
|
||||||
initTableList()
|
initTableList()
|
||||||
}
|
}
|
||||||
|
|
||||||
const resetFn = () => {
|
const resetFn = (params: any) => {
|
||||||
|
searchParams = params
|
||||||
|
initTableList()
|
||||||
}
|
}
|
||||||
|
|
||||||
const sortFn = () => {
|
const sortFn = () => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue