diff --git a/src/mods/AppServiceOnlineNew/form.vue b/src/mods/AppServiceOnlineNew/form.vue index f20eb65..9cd8aad 100644 --- a/src/mods/AppServiceOnlineNew/form.vue +++ b/src/mods/AppServiceOnlineNew/form.vue @@ -154,6 +154,7 @@
+
选择
@@ -237,6 +238,20 @@ export default { this.$set(this.tableForm[this.index][this.i], 'fieldValue', value) }, + onPickerChange(e) { + console.log(e) + const index = e.target.dataset.index + const i = e.target.dataset.i + const dict = e.target.dataset.dict + const values = e.detail.value + // const key = this.$dict.getLabel(dict, value) + const value = this.$dict.getDict(dict)[values].dictValue + const key = this.$dict.getDict(dict)[values].dictName + + this.$set(this.tableForm[index][i], 'fieldValue', value) + this.$set(this.tableForm[index][i], 'fieldDictName', key) + }, + // clear() { // this.isTouch = false // this.handwriting.retDraw() @@ -402,20 +417,6 @@ export default { this.$set(this.tableForm[index][i], 'fieldValue', `${value[0]}年${value[1]}月${value[2]}日`) }, - onPickerChange(e) { - console.log(e) - const index = e.target.dataset.index - const i = e.target.dataset.i - const dict = e.target.dataset.dict - // const value = e.detail.value - // const key = this.$dict.getLabel(dict, value) - const value = this.$dict.getDict(dict)[0].dictValue - const key = this.$dict.getDict(dict)[0].dictName - - this.$set(this.tableForm[index][i], 'fieldValue', value) - this.$set(this.tableForm[index][i], 'fieldDictName', key) - }, - bindTimeChange(e) { const index = e.target.dataset.index const i = e.target.dataset.i