This commit is contained in:
parent
de3dcb59ef
commit
9e8bc525b2
|
|
@ -17,7 +17,7 @@ const service = axios.create({
|
||||||
// axios中请求配置有baseURL选项,表示请求URL公共部分
|
// axios中请求配置有baseURL选项,表示请求URL公共部分
|
||||||
baseURL: process.env.VUE_APP_BASE_API,
|
baseURL: process.env.VUE_APP_BASE_API,
|
||||||
// 超时
|
// 超时
|
||||||
timeout: 10000,
|
timeout: 60000 * 2,
|
||||||
})
|
})
|
||||||
|
|
||||||
// request拦截器
|
// request拦截器
|
||||||
|
|
|
||||||
|
|
@ -19,12 +19,16 @@
|
||||||
<el-select
|
<el-select
|
||||||
clearable
|
clearable
|
||||||
filterable
|
filterable
|
||||||
placeholder="选择类型"
|
style="width: 100%"
|
||||||
v-model="queryParams.type"
|
placeholder="请选择类型"
|
||||||
|
v-model="queryParams.typeId"
|
||||||
>
|
>
|
||||||
<el-option value="1" label="智慧基建" />
|
<el-option
|
||||||
<el-option value="2" label="智慧后勤" />
|
:key="item.value"
|
||||||
<el-option value="3" label="数智装备" />
|
:label="item.label"
|
||||||
|
:value="item.value"
|
||||||
|
v-for="item in dict.type.tb_product_type"
|
||||||
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
|
|
@ -161,6 +165,7 @@ import DialogModel from '@/components/DialogModel'
|
||||||
import AddAndEditForm from './components/addAndEditForm.vue'
|
import AddAndEditForm from './components/addAndEditForm.vue'
|
||||||
export default {
|
export default {
|
||||||
name: 'ProMaterials',
|
name: 'ProMaterials',
|
||||||
|
dicts: ['tb_product_type'],
|
||||||
components: {
|
components: {
|
||||||
AddAndEditForm,
|
AddAndEditForm,
|
||||||
DialogModel,
|
DialogModel,
|
||||||
|
|
@ -228,14 +233,16 @@ export default {
|
||||||
this.total = res?.total
|
this.total = res?.total
|
||||||
},
|
},
|
||||||
onHandleQuery() {
|
onHandleQuery() {
|
||||||
console.log(this.queryParams)
|
|
||||||
this.getProMaterialsListFun()
|
this.getProMaterialsListFun()
|
||||||
},
|
},
|
||||||
onResetQuery() {
|
onResetQuery() {
|
||||||
this.queryParams = {
|
this.queryParams = {
|
||||||
name: undefined,
|
name: undefined,
|
||||||
type: undefined,
|
typeId: undefined,
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 10,
|
||||||
}
|
}
|
||||||
|
this.getProMaterialsListFun()
|
||||||
},
|
},
|
||||||
onHandleAdd() {
|
onHandleAdd() {
|
||||||
this.formType = 1
|
this.formType = 1
|
||||||
|
|
@ -268,9 +275,7 @@ export default {
|
||||||
this.onHandleQuery()
|
this.onHandleQuery()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {})
|
||||||
console.log('取消')
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
// 关闭弹框
|
// 关闭弹框
|
||||||
handleCloseDialogOuter() {
|
handleCloseDialogOuter() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue