Loading...
{ item.fquestion||item.fdisp }必須
this.item = opts.item this.val = this.item.val||'' this.h = {} var self = this this.kvs = this.item.foptions.split(/\n/).map(function(s){var sa=s.split(/:/,2);self.h[sa[0]]=sa[1];return {k:sa[0],v:sa[1]}}) edit(e){ this.val = e.target.value }{ item.fquestion||item.fdisp }必須
this.item = opts.item this.val = this.item.val||'' this.h = {} var self = this this.kvs = this.item.foptions.split(/\n/).map(function(s){var sa=s.split(/:/,2);self.h[sa[0]]=sa[1];return {k:sa[0],v:sa[1]}}) edit(e){ this.val = e.target.value }{ item.fquestion||item.fdisp }必須
this.item = opts.item this.val = this.item.val||'' this.delkey = this.item.unables ? this.item.unables.split(',') : [] this.checkval = this.item.fvalues ? this.item.fvalues : '' this.val = this.checkval this.h = {} var self = this this.kvs = this.item.foptions.split(/\n/).map(function(s){var sa=s.split(/:/,2);self.h[sa[0]]=sa[1];return {k:sa[0],v:sa[1]}}).filter(function(kv){ return !( self.delkey.indexOf(kv.k)>=0 ) }) edit(e){ this.val = e.target.value }{ item.fquestion||item.fdisp }必須
this.item = opts.item this.val = this.item.val||'' this.delkey = this.item.unables ? this.item.unables.split(',') : [] this.checkval = this.item.fvalues ? this.item.fvalues : '' this.val = this.checkval this.h = {} var self = this this.kvs = this.item.foptions.split(/\n/).map(function(s){var sa=s.split(/:/,2);self.h[sa[0]]=sa[1];return {k:sa[0],v:sa[1]}}).filter(function(kv){ return !( self.delkey.indexOf(kv.k)>=0 ) }) edit(e){ this.val = e.target.value }{ item.fquestion||item.fdisp }必須
this.item = opts.item this.val = [] this.delkey = this.item.unables ? this.item.unables.split(',') : [] this.checkval = this.item.fvalues ? this.item.fvalues.split(',') : [] this.val = this.checkval; this.h = {} var self = this this.kvs = this.item.foptions.split(/\n/).map(function(s){var sa=s.split(/:/,2);self.h[sa[0]]=sa[1];return {k:sa[0],v:sa[1]}}).filter(function(kv){ return !( self.delkey.indexOf(kv.k)>=0 ) }) show_values(vals){ return vals.map(function(v){ return self.h[v]; }).join(','); } edit(e){ if (e.target.checked){ if (self.val.indexOf(e.target.value)<0){ this.val.push(e.target.value); } }else{ if (self.val.indexOf(e.target.value)>=0){ this.val = this.val.filter(function(v){ return v != e.target.value; }); } } }