|
|
@@ -135,12 +135,20 @@
|
|
|
type: 'input',
|
|
|
placeholder: ''
|
|
|
},
|
|
|
+ // {
|
|
|
+ // label: '类型:',
|
|
|
+ // value: 'type',
|
|
|
+ // type: 'select',
|
|
|
+ // placeholder: '',
|
|
|
+ // planList: []
|
|
|
+ // },
|
|
|
{
|
|
|
label: '类型:',
|
|
|
value: 'type',
|
|
|
- type: 'select',
|
|
|
+ type: 'DictSelection',
|
|
|
+ dictName: '质检计划类型',
|
|
|
placeholder: '',
|
|
|
- planList: []
|
|
|
+
|
|
|
},
|
|
|
{
|
|
|
label: '状态:',
|
|
|
@@ -225,29 +233,24 @@
|
|
|
};
|
|
|
},
|
|
|
async created() {
|
|
|
- const res = await this.requestDict('质检计划类型');
|
|
|
- console.log(res, 'res 000');
|
|
|
- this.typeList = res.map((item) => {
|
|
|
- // let values = Object.keys(item);
|
|
|
- // return {
|
|
|
- // value: Number(values[0]),
|
|
|
- // label: item[values[0]]
|
|
|
- // };
|
|
|
- return {
|
|
|
- value: item.dictCode,
|
|
|
- label: item.dictValue
|
|
|
- };
|
|
|
- });
|
|
|
+ // const res = await this.requestDict('质检计划类型');
|
|
|
+ // console.log(res, 'res 000');
|
|
|
+ // this.typeList = res.map((item) => {
|
|
|
+ // console.log(item,'item')
|
|
|
+ // // let values = Object.keys(item);
|
|
|
+ // // return {
|
|
|
+ // // value: Number(values[0]),
|
|
|
+ // // label: item[values[0]]
|
|
|
+ // // };
|
|
|
+ // return {
|
|
|
+ // value: item.dictCode,
|
|
|
+ // label: item.dictValue
|
|
|
+ // };
|
|
|
+ // });
|
|
|
|
|
|
- const index = this.seekList.findIndex((item) => item.value === 'type');
|
|
|
+ // const index = this.seekList.findIndex((item) => item.value === 'type');
|
|
|
|
|
|
- this.$set(this.seekList, index, {
|
|
|
- label: '类型:',
|
|
|
- value: 'type',
|
|
|
- type: 'select',
|
|
|
- placeholder: '',
|
|
|
- planList: this.typeList
|
|
|
- });
|
|
|
+ // this.$set(this.seekList, index, );
|
|
|
this.renderFlag = true;
|
|
|
},
|
|
|
methods: {
|