|
@@ -7,7 +7,7 @@
|
|
<a-col :md="6" :sm="8">
|
|
<a-col :md="6" :sm="8">
|
|
<a-form-item label="分类(class)">
|
|
<a-form-item label="分类(class)">
|
|
<!-- <a-input placeholder="请输入" v-model:value="queryParams.classId"></a-input> -->
|
|
<!-- <a-input placeholder="请输入" v-model:value="queryParams.classId"></a-input> -->
|
|
- <JDictSelectTag v-model:value="queryParams.classId" placeholder="请选择" dictCode="project-class"/>
|
|
|
|
|
|
+ <JSelectInput v-model:value="queryParams.classId" placeholder="请选择" :options="classOption" ></JSelectInput>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :md="6" :sm="8">
|
|
<a-col :md="6" :sm="8">
|
|
@@ -142,8 +142,10 @@
|
|
import { message } from 'ant-design-vue';
|
|
import { message } from 'ant-design-vue';
|
|
import { filterObj, getFileAccessHttpUrl } from '/@/utils/common/compUtils';
|
|
import { filterObj, getFileAccessHttpUrl } from '/@/utils/common/compUtils';
|
|
import { JDictSelectTag} from '/@/components/Form';
|
|
import { JDictSelectTag} from '/@/components/Form';
|
|
|
|
+ import JSelectInput from '/@/components/Form/src/jeecg/components/JSelectInput.vue';
|
|
import productArchiveModel from './components/productArchiveModel.vue';
|
|
import productArchiveModel from './components/productArchiveModel.vue';
|
|
const productArchiveModelRef = ref()
|
|
const productArchiveModelRef = ref()
|
|
|
|
+ let classOption = ref([])
|
|
const columns = [
|
|
const columns = [
|
|
{
|
|
{
|
|
title: '分类(class)',
|
|
title: '分类(class)',
|
|
@@ -295,6 +297,7 @@
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
//初始加载页面
|
|
//初始加载页面
|
|
loadData();
|
|
loadData();
|
|
|
|
+ getOptiom()
|
|
});
|
|
});
|
|
function loadData(){
|
|
function loadData(){
|
|
let params = getQueryParams();
|
|
let params = getQueryParams();
|
|
@@ -326,6 +329,25 @@
|
|
pagination.value.pageSize = paginations.pageSize;
|
|
pagination.value.pageSize = paginations.pageSize;
|
|
loadData()
|
|
loadData()
|
|
};
|
|
};
|
|
|
|
+ function getOptiom(){
|
|
|
|
+ defHttp
|
|
|
|
+ .get({ url: 'baseCode/baseProductClass/list'}, { isTransformResponse: false })
|
|
|
|
+ .then((res) => {
|
|
|
|
+ if (res.success) {
|
|
|
|
+ classOption.value = []
|
|
|
|
+ res.result.records.forEach(element => {
|
|
|
|
+ var obj = {
|
|
|
|
+ label: element.name?element.name:'无名称请维护',
|
|
|
|
+ value: element.id?element.id:''
|
|
|
|
+ };
|
|
|
|
+ classOption.value.push( obj)
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ .finally(() => {
|
|
|
|
+ // loading.value = false;
|
|
|
|
+ });
|
|
|
|
+ }
|
|
function searchQuery(){
|
|
function searchQuery(){
|
|
loadData();
|
|
loadData();
|
|
}
|
|
}
|