This commit is contained in:
ln1778 2024-05-08 18:07:29 +08:00
parent c7e03efeef
commit 8e2ee8e9b9
3 changed files with 46 additions and 17 deletions

View File

@ -104,6 +104,7 @@
<!-- 带弹窗 --> <!-- 带弹窗 -->
<div class="popover" v-if="tankuangVisible"> <div class="popover" v-if="tankuangVisible">
<div class="item"> <div class="item">
<el-select <el-select
v-model="value" v-model="value"
placeholder="请选择" placeholder="请选择"
@ -125,8 +126,8 @@
ref="popover" ref="popover"
popper-class="popperOptions" popper-class="popperOptions"
v-model="imeipopover" v-model="imeipopover"
> >
<el-input <el-input
v-model="textarea" v-model="textarea"
type="textarea" type="textarea"
:rows="12" :rows="12"
@ -153,8 +154,25 @@
>查询</el-button >查询</el-button
> >
</div> </div>
</div> </div>
<el-input <el-select
v-model="imeisn"
slot="reference"
class="dateselect"
placeholder="请选择"
v-if="selectdata.type=='el-select'"
size="small"
>
<el-option
v-for="item in selectdata.options"
:key="item.label"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select>
<el-input
v-if="selectdata.type=='el-input'"
slot="reference" slot="reference"
v-model="imeisn" v-model="imeisn"
size="small" size="small"
@ -416,7 +434,7 @@ export default {
arr = this.data.filter((item) => { arr = this.data.filter((item) => {
return flagarr.includes(item.lable); return flagarr.includes(item.lable);
}); });
console.log(arr, "arr-----------"); console.log(arr, "hboptionsarr-----------");
return arr; return arr;
}, },
//input //input
@ -444,7 +462,7 @@ export default {
? this.$set(this, "dateval", arr[0].enName) ? this.$set(this, "dateval", arr[0].enName)
: ""; : "";
} }
console.log(arr, "arr-----------日期"); console.log(arr, "dateoptionsarr-----------日期");
return arr; return arr;
}, },
// //
@ -453,7 +471,12 @@ export default {
arr = this.data.filter((item) => { arr = this.data.filter((item) => {
return item.ispopover == true; return item.ispopover == true;
}); });
console.log(arr, "arr-----------"); if(arr.length>0){
this.selectdata=arr[0];
this.value=arr[0].enName;
}
console.log(arr, "popoveroptionsarr-----------");
return arr; return arr;
}, },
// //
@ -467,7 +490,7 @@ export default {
!item.ispopover !item.ispopover
); );
}); });
console.log(arr, "arr-----------"); console.log(arr, "selectoptionsarr11-----------111");
return arr; return arr;
}, },
}, },
@ -481,6 +504,9 @@ export default {
dateval: "time", // dateval: "time", //
packupFlag: false, // packupFlag: false, //
cascaderFrom: [], cascaderFrom: [],
selectdata:{
type:"el-input"
},
cascaderProps: { cascaderProps: {
multiple: false, multiple: false,
checkStrictly: true, checkStrictly: true,
@ -774,7 +800,7 @@ export default {
// //
search(val) { search(val) {
this.imeipopover = false; this.imeipopover = false;
this.$emit("search"); this.$emit("search",this.value,this.imeisn);
}, },
// //
resetfrom() { resetfrom() {
@ -784,7 +810,7 @@ export default {
this.datevalue = ""; this.datevalue = "";
this.machineval = ""; //-input this.machineval = ""; //-input
this.$emit("resetfrom"); this.$emit("resetfrom");
this.$emit("search"); this.$emit("search",this.value,this.imeisn);
this.componentKey += 1; this.componentKey += 1;
// console.log( this.$children," this.$children"); // console.log( this.$children," this.$children");
}, },
@ -799,10 +825,13 @@ export default {
//imeichange //imeichange
imeiselectchange(e) { imeiselectchange(e) {
this.imeisn = ""; this.imeisn = "";
this.textarea = ""; this.textarea = "";
const find=this.popoveroptions.find((f)=>f.enName==e);
this.selectdata=find;
this.textarea ? (this.isinput = true) : (this.isinput = false); this.textarea ? (this.isinput = true) : (this.isinput = false);
this.$emit("imeichange", this.value, this.imeisn); this.$emit("imeichange", this.value, this.imeisn);
console.log(e, "imei下拉----------");
console.log(e, "imei下拉----------",this.value);
}, },
//change //change
dateselectchange(e) { dateselectchange(e) {

View File

@ -64,12 +64,12 @@ export default {
}, },
methods: { methods: {
// //
handleSizeChange() { handleSizeChange(value) {
this.$emit("handleSizeChange"); this.$emit("handleSizeChange",value);
}, },
// //
handleCurrentChange() { handleCurrentChange(value) {
this.$emit("gettbdata"); this.$emit("handleCurrentChange",value);
}, },
}, },
}; };

View File

@ -1,6 +1,6 @@
{ {
"name": "erp-element-ui", "name": "erp-element-ui",
"version": "1.0.23", "version": "1.0.24",
"description": "", "description": "",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {