flx:修复车辆搜索输入框问题
This commit is contained in:
parent
9f0169daa9
commit
e5033f0b6c
@ -318,7 +318,7 @@
|
|||||||
<style scoped>
|
<style scoped>
|
||||||
.search {
|
.search {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
bottom: 395rpx;
|
bottom: 465rpx;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
transform: translateX(-50%);
|
transform: translateX(-50%);
|
||||||
z-index: 9999;
|
z-index: 9999;
|
||||||
|
|||||||
17
unpackage/dist/cache/.vite/deps/_metadata.json
vendored
17
unpackage/dist/cache/.vite/deps/_metadata.json
vendored
@ -1,8 +1,15 @@
|
|||||||
{
|
{
|
||||||
"hash": "6ab18a53",
|
"hash": "0f0fbf16",
|
||||||
"configHash": "87e744e2",
|
"configHash": "5bd87843",
|
||||||
"lockfileHash": "2ddd0eeb",
|
"lockfileHash": "33a33614",
|
||||||
"browserHash": "9b038b87",
|
"browserHash": "ba16bf7f",
|
||||||
"optimized": {},
|
"optimized": {
|
||||||
|
"@icon-park/vue-next": {
|
||||||
|
"src": "../../../../../node_modules/@icon-park/vue-next/es/index.js",
|
||||||
|
"file": "@icon-park_vue-next.js",
|
||||||
|
"fileHash": "9de4363e",
|
||||||
|
"needsInterop": false
|
||||||
|
}
|
||||||
|
},
|
||||||
"chunks": {}
|
"chunks": {}
|
||||||
}
|
}
|
||||||
53
unpackage/dist/dev/app-plus/app-service.js
vendored
53
unpackage/dist/dev/app-plus/app-service.js
vendored
@ -17392,6 +17392,7 @@ ${i3}
|
|||||||
},
|
},
|
||||||
emits: ["update:modelValue"],
|
emits: ["update:modelValue"],
|
||||||
setup(__props, { emit: __emit }) {
|
setup(__props, { emit: __emit }) {
|
||||||
|
const uniDateTime = vue.ref();
|
||||||
const props2 = __props;
|
const props2 = __props;
|
||||||
const _value = vue.computed({
|
const _value = vue.computed({
|
||||||
get() {
|
get() {
|
||||||
@ -17440,6 +17441,15 @@ ${i3}
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
const emits2 = __emit;
|
const emits2 = __emit;
|
||||||
|
const timeVal = vue.ref();
|
||||||
|
const changeTime = (e2) => {
|
||||||
|
setTimeout(function() {
|
||||||
|
formatAppLog("log", "at components/form/DateTime.vue:103", timeVal.value, 222333);
|
||||||
|
if (!props2.modelValue) {
|
||||||
|
uniDateTime.value.displayValue = "";
|
||||||
|
}
|
||||||
|
}, 100);
|
||||||
|
};
|
||||||
function timeChange(e2) {
|
function timeChange(e2) {
|
||||||
const indexs = e2.detail.value;
|
const indexs = e2.detail.value;
|
||||||
if (Array.isArray(indexs)) {
|
if (Array.isArray(indexs)) {
|
||||||
@ -17448,6 +17458,11 @@ ${i3}
|
|||||||
_value.value = `${range.value[0][indexs]}`;
|
_value.value = `${range.value[0][indexs]}`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
vue.watch(() => props2.modelValue, (newVal) => {
|
||||||
|
timeVal.value = newVal;
|
||||||
|
}, {
|
||||||
|
deep: true
|
||||||
|
});
|
||||||
return (_ctx, _cache) => {
|
return (_ctx, _cache) => {
|
||||||
const _component_uni_datetime_picker = resolveEasycom(vue.resolveDynamicComponent("uni-datetime-picker"), __easycom_0$2);
|
const _component_uni_datetime_picker = resolveEasycom(vue.resolveDynamicComponent("uni-datetime-picker"), __easycom_0$2);
|
||||||
const _component_uni_icons = resolveEasycom(vue.resolveDynamicComponent("uni-icons"), __easycom_3$2);
|
const _component_uni_icons = resolveEasycom(vue.resolveDynamicComponent("uni-icons"), __easycom_3$2);
|
||||||
@ -17460,6 +17475,10 @@ ${i3}
|
|||||||
vue.Fragment,
|
vue.Fragment,
|
||||||
{ key: 0 },
|
{ key: 0 },
|
||||||
[
|
[
|
||||||
|
vue.createCommentVNode(` <uni-datetime-picker v-if="format === 'yyyy-mm-dd hh:mm'" class="w-form-input" :border="false"\r
|
||||||
|
type="datetime" :clear-icon="false" v-model="_value" ref="uniDateTime" @change="changeTime"/>\r
|
||||||
|
<uni-datetime-picker v-else class="w-form-input" :border="false" type="date" ref="uniDateTime"\r
|
||||||
|
:clear-icon="false" v-model="_value" @change="changeTime"/> `),
|
||||||
format.value === "yyyy-mm-dd hh:mm" ? (vue.openBlock(), vue.createBlock(_component_uni_datetime_picker, {
|
format.value === "yyyy-mm-dd hh:mm" ? (vue.openBlock(), vue.createBlock(_component_uni_datetime_picker, {
|
||||||
key: 0,
|
key: 0,
|
||||||
class: "w-form-input",
|
class: "w-form-input",
|
||||||
@ -17467,15 +17486,21 @@ ${i3}
|
|||||||
type: "datetime",
|
type: "datetime",
|
||||||
"clear-icon": false,
|
"clear-icon": false,
|
||||||
modelValue: _value.value,
|
modelValue: _value.value,
|
||||||
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _value.value = $event)
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _value.value = $event),
|
||||||
|
ref_key: "uniDateTime",
|
||||||
|
ref: uniDateTime,
|
||||||
|
onChange: changeTime
|
||||||
}, null, 8, ["modelValue"])) : (vue.openBlock(), vue.createBlock(_component_uni_datetime_picker, {
|
}, null, 8, ["modelValue"])) : (vue.openBlock(), vue.createBlock(_component_uni_datetime_picker, {
|
||||||
key: 1,
|
key: 1,
|
||||||
class: "w-form-input",
|
class: "w-form-input",
|
||||||
border: false,
|
border: false,
|
||||||
type: "date",
|
type: "date",
|
||||||
|
ref_key: "uniDateTime",
|
||||||
|
ref: uniDateTime,
|
||||||
"clear-icon": false,
|
"clear-icon": false,
|
||||||
modelValue: _value.value,
|
modelValue: _value.value,
|
||||||
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => _value.value = $event)
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => _value.value = $event),
|
||||||
|
onChange: changeTime
|
||||||
}, null, 8, ["modelValue"])),
|
}, null, 8, ["modelValue"])),
|
||||||
vue.createVNode(_component_uni_icons, {
|
vue.createVNode(_component_uni_icons, {
|
||||||
type: "right",
|
type: "right",
|
||||||
@ -18298,6 +18323,7 @@ ${i3}
|
|||||||
if (res.confirm) {
|
if (res.confirm) {
|
||||||
this._value.splice(i2, 1);
|
this._value.splice(i2, 1);
|
||||||
this._value = this._value;
|
this._value = this._value;
|
||||||
|
this.resize();
|
||||||
setTimeout(() => uni.$emit("showFp"), 500);
|
setTimeout(() => uni.$emit("showFp"), 500);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -18774,7 +18800,6 @@ ${i3}
|
|||||||
}, null, 8, ["value", "placeholder"])
|
}, null, 8, ["value", "placeholder"])
|
||||||
], 40, ["value", "range"])) : (vue.openBlock(), vue.createElementBlock("picker", {
|
], 40, ["value", "range"])) : (vue.openBlock(), vue.createElementBlock("picker", {
|
||||||
key: 2,
|
key: 2,
|
||||||
class: "picker",
|
|
||||||
onChange: ok,
|
onChange: ok,
|
||||||
mode: "selector",
|
mode: "selector",
|
||||||
value: index2.value,
|
value: index2.value,
|
||||||
@ -32549,7 +32574,7 @@ ${i3}
|
|||||||
this.$refs["wflowForm"].validate().then((res) => {
|
this.$refs["wflowForm"].validate().then((res) => {
|
||||||
const dataList = Object.values(this.modelValue);
|
const dataList = Object.values(this.modelValue);
|
||||||
const result = dataList[0][dataList[0].length - 1];
|
const result = dataList[0][dataList[0].length - 1];
|
||||||
const flag = this.formFields[this.formFields.length - 1].props.columns.every((v2, i2) => {
|
const flag = this.formFields[this.formFields.length - 1].props.columns ? this.formFields[this.formFields.length - 1].props.columns.every((v2, i2) => {
|
||||||
if (i2 == this.formFields[this.formFields.length - 1].props.columns.length - 1 && result[v2.id]) {
|
if (i2 == this.formFields[this.formFields.length - 1].props.columns.length - 1 && result[v2.id]) {
|
||||||
if (result[v2.id][0].id) {
|
if (result[v2.id][0].id) {
|
||||||
return true;
|
return true;
|
||||||
@ -32560,11 +32585,13 @@ ${i3}
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
return v2.props.required == false || v2.props.required == true && result[v2.id] != null;
|
return v2.props.required == false || v2.props.required == true && result[v2.id] != null;
|
||||||
});
|
}) : true;
|
||||||
|
formatAppLog("log", "at components/FormRender.vue:144", 3333333, flag);
|
||||||
call(flag);
|
call(flag);
|
||||||
formatAppLog("log", "at components/FormRender.vue:145", "表单数据信息:", JSON.stringify(res));
|
formatAppLog("log", "at components/FormRender.vue:146", "表单数据信息:", JSON.stringify(res));
|
||||||
}).catch((err) => {
|
}).catch((err) => {
|
||||||
formatAppLog("log", "at components/FormRender.vue:148", "表单错误信息:", err);
|
call(false);
|
||||||
|
formatAppLog("log", "at components/FormRender.vue:149", "表单错误信息:", err);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
loadFormItemMap(forms, map) {
|
loadFormItemMap(forms, map) {
|
||||||
@ -32634,15 +32661,6 @@ ${i3}
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async analyseJsRules() {
|
async analyseJsRules() {
|
||||||
if (!(this.execute instanceof Function)) {
|
|
||||||
this.execute = new Function(`${this.config.ruleJs || "function doChange(){}"}\r
|
|
||||||
return doChange`);
|
|
||||||
this.execute = this.execute();
|
|
||||||
} else {
|
|
||||||
this.execute = new Function(`${this.config.ruleJs || "function doChange(){}"}\r
|
|
||||||
return doChange`);
|
|
||||||
this.execute = this.execute();
|
|
||||||
}
|
|
||||||
this.execute(this._value, this.formItemMap);
|
this.execute(this._value, this.formItemMap);
|
||||||
},
|
},
|
||||||
async analyseRules() {
|
async analyseRules() {
|
||||||
@ -32727,6 +32745,9 @@ ${i3}
|
|||||||
immediate: true,
|
immediate: true,
|
||||||
handler(newVal, oldVal) {
|
handler(newVal, oldVal) {
|
||||||
if (this.config) {
|
if (this.config) {
|
||||||
|
this.execute = new Function(`${this.config.ruleJs || "function doChange(){}"}\r
|
||||||
|
return doChange`);
|
||||||
|
this.execute = this.execute();
|
||||||
if (Object.keys(this.formPermHis).length === 0) {
|
if (Object.keys(this.formPermHis).length === 0) {
|
||||||
this.formItemMap.forEach((item) => {
|
this.formItemMap.forEach((item) => {
|
||||||
this.formPermHis[item.id] = item.perm;
|
this.formPermHis[item.id] = item.perm;
|
||||||
|
|||||||
10
unpackage/dist/dev/app-plus/app.css
vendored
10
unpackage/dist/dev/app-plus/app.css
vendored
@ -3454,12 +3454,14 @@ body[data-v-029c2886] {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* .picker {
|
.uni-picker-custom[data-v-efe1296e] {
|
||||||
position: relative;
|
height: 15rem;
|
||||||
} */
|
}
|
||||||
|
|
||||||
|
|
||||||
.search[data-v-efe1296e] {
|
.search[data-v-efe1296e] {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
bottom: 15.78125rem;
|
bottom: 12.34375rem;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
transform: translateX(-50%);
|
transform: translateX(-50%);
|
||||||
z-index: 9999;
|
z-index: 9999;
|
||||||
|
|||||||
@ -3389,12 +3389,14 @@ body[data-v-029c2886] {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* .picker {
|
.uni-picker-custom[data-v-efe1296e] {
|
||||||
position: relative;
|
height: 15rem;
|
||||||
} */
|
}
|
||||||
|
|
||||||
|
|
||||||
.search[data-v-efe1296e] {
|
.search[data-v-efe1296e] {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
bottom: 15.78125rem;
|
bottom: 12.34375rem;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
transform: translateX(-50%);
|
transform: translateX(-50%);
|
||||||
z-index: 9999;
|
z-index: 9999;
|
||||||
|
|||||||
@ -3455,12 +3455,14 @@ body[data-v-029c2886] {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* .picker {
|
.uni-picker-custom[data-v-efe1296e] {
|
||||||
position: relative;
|
height: 15rem;
|
||||||
} */
|
}
|
||||||
|
|
||||||
|
|
||||||
.search[data-v-efe1296e] {
|
.search[data-v-efe1296e] {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
bottom: 15.78125rem;
|
bottom: 12.34375rem;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
transform: translateX(-50%);
|
transform: translateX(-50%);
|
||||||
z-index: 9999;
|
z-index: 9999;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user