| 1 |
- export default {"list":[{"type":"divider","icon":"icon-fengexian","options":{"hidden":false,"contentPosition":"left","remoteFunc":"func_8hwswegx","remoteOption":"option_8hwswegx"},"name":"主表省市区联动","key":"8hwswegx","model":"divider_8hwswegx","rules":[]},{"type":"select","icon":"icon-select","options":{"defaultValue":"","multiple":false,"disabled":false,"clearable":false,"placeholder":"","required":false,"requiredMessage":"","validatorCheck":false,"validator":"","showLabel":false,"width":"","options":[{"value":"1111"},{"value":"2222"},{"value":"3333"}],"remote":true,"remoteType":"datasource","remoteOption":"option_fsorqbls","filterable":false,"remoteOptions":[],"props":{"value":"id","label":"name"},"remoteFunc":"func_fsorqbls","customClass":"","labelWidth":100,"isLabelWidth":false,"hidden":false,"dataBind":true,"tableColumn":false,"remoteDataSource":"8dl33dn7","remoteArgs":"{\n\t\"fid\": \"\"\n}"},"events":{"onChange":"99wd1n9f","onFocus":"","onBlur":""},"name":"省","key":"fsorqbls","model":"province","rules":[]},{"type":"select","icon":"icon-select","options":{"defaultValue":"","multiple":false,"disabled":false,"clearable":false,"placeholder":"","required":false,"requiredMessage":"","validatorCheck":false,"validator":"","showLabel":false,"width":"","options":[{"value":"1111"},{"value":"2222"},{"value":"3333"}],"remote":true,"remoteType":"datasource","remoteOption":"option_ilx7spgg","filterable":false,"remoteOptions":[],"props":{"value":"id","label":"name"},"remoteFunc":"func_ilx7spgg","customClass":"","labelWidth":100,"isLabelWidth":false,"hidden":false,"dataBind":true,"tableColumn":false,"remoteDataSource":"8dl33dn7","remoteArgs":"{\n\t\"fid\": \"\"\n}"},"events":{"onChange":"x3ctac19","onFocus":"","onBlur":""},"name":"市","key":"ilx7spgg","model":"city","rules":[]},{"type":"select","icon":"icon-select","options":{"defaultValue":"","multiple":false,"disabled":false,"clearable":false,"placeholder":"","required":false,"requiredMessage":"","validatorCheck":false,"validator":"","showLabel":false,"width":"","options":[{"value":"1111"},{"value":"2222"},{"value":"3333"}],"remote":true,"remoteType":"datasource","remoteOption":"option_w0k4bvqu","filterable":false,"remoteOptions":[],"props":{"value":"id","label":"name"},"remoteFunc":"func_w0k4bvqu","customClass":"","labelWidth":100,"isLabelWidth":false,"hidden":false,"dataBind":true,"tableColumn":false,"remoteDataSource":"8dl33dn7","remoteArgs":"{\n\t\"fid\": \"\"\n}"},"events":{"onChange":"","onFocus":"","onBlur":""},"name":"区","key":"w0k4bvqu","model":"district","rules":[]},{"type":"divider","icon":"icon-fengexian","options":{"hidden":false,"contentPosition":"left","remoteFunc":"func_p7dp4c6l","remoteOption":"option_p7dp4c6l","tableColumn":false},"name":"子表省市区联动","key":"p7dp4c6l","model":"divider_p7dp4c6l","rules":[]},{"type":"table","icon":"icon-table","options":{"defaultValue":[],"customClass":"","labelWidth":100,"isLabelWidth":false,"hidden":false,"dataBind":true,"disabled":false,"required":false,"validatorCheck":false,"validator":"","paging":false,"pageSize":5,"remoteFunc":"func_um6w6fsm","remoteOption":"option_um6w6fsm","tableColumn":false},"events":{"onChange":"","onRowAdd":"","onRowRemove":"","onRowChange":""},"tableColumns":[{"type":"select","icon":"icon-select","options":{"defaultValue":"","multiple":false,"disabled":false,"clearable":false,"placeholder":"","required":false,"requiredMessage":"","validatorCheck":false,"validator":"","showLabel":false,"width":"","options":[{"value":"1111"},{"value":"2222"},{"value":"3333"}],"remote":true,"remoteType":"datasource","remoteOption":"option_j1b0qfbj","filterable":false,"remoteOptions":[],"props":{"value":"id","label":"name"},"remoteFunc":"func_j1b0qfbj","customClass":"","labelWidth":100,"isLabelWidth":false,"hidden":false,"dataBind":true,"tableColumn":true,"remoteDataSource":"8dl33dn7","remoteArgs":{"fid":""}},"events":{"onChange":"emw05xs6","onFocus":"","onBlur":""},"name":"省","novalid":{},"key":"j1b0qfbj","model":"province","rules":[]},{"type":"select","icon":"icon-select","options":{"defaultValue":"","multiple":false,"disabled":false,"clearable":false,"placeholder":"","required":false,"requiredMessage":"","validatorCheck":false,"validator":"","showLabel":false,"width":"","options":[{"value":"1111"},{"value":"2222"},{"value":"3333"}],"remote":true,"remoteType":"datasource","remoteOption":"option_j1b0qfbj","filterable":false,"remoteOptions":[],"props":{"value":"id","label":"name"},"remoteFunc":"func_j1b0qfbj","customClass":"","labelWidth":100,"isLabelWidth":false,"hidden":false,"dataBind":true,"tableColumn":true,"remoteDataSource":"8dl33dn7","remoteArgs":{"fid":""}},"events":{"onChange":"orm0adyu","onFocus":"","onBlur":""},"name":"市","novalid":{},"key":"heq9xwyk","model":"city","rules":[]},{"type":"select","icon":"icon-select","options":{"defaultValue":"","multiple":false,"disabled":false,"clearable":false,"placeholder":"","required":false,"requiredMessage":"","validatorCheck":false,"validator":"","showLabel":false,"width":"","options":[{"value":"1111"},{"value":"2222"},{"value":"3333"}],"remote":true,"remoteType":"datasource","remoteOption":"option_j1b0qfbj","filterable":false,"remoteOptions":[],"props":{"value":"id","label":"name"},"remoteFunc":"func_j1b0qfbj","customClass":"","labelWidth":100,"isLabelWidth":false,"hidden":false,"dataBind":true,"tableColumn":true,"remoteDataSource":"8dl33dn7","remoteArgs":{"fid":""}},"events":{"onChange":"","onFocus":"","onBlur":""},"name":"区","novalid":{},"key":"vcwbadlj","model":"district","rules":[]}],"name":"地区列表","key":"um6w6fsm","model":"areas","rules":[]}],"config":{"labelWidth":100,"labelPosition":"right","size":"default","customClass":"","ui":"element","layout":"horizontal","width":"100%","hideLabel":false,"hideErrorMessage":false,"eventScript":[{"key":"mounted","name":"mounted","func":"// 调用对应字段的数据源请求\nthis.refreshFieldDataSource('province')\n\nthis.refreshFieldDataSource('areas.province')"},{"key":"99wd1n9f","name":"onChange_99wd1n9f","func":"const {value} = arguments[0]\n\nthis.refreshFieldDataSource('city', {fid: value})\n\nthis.setData({\n city: '',\n district: ''\n})"},{"key":"x3ctac19","name":"onChange_x3ctac19","func":"const {value} = arguments[0]\n\nif (value) {\n this.refreshFieldDataSource('district', {fid: value})\n \n this.setData({\n district: ''\n })\n}"},{"key":"emw05xs6","name":"onChange_emw05xs6","func":"const {value, rowIndex} = arguments[0]\n\n// 此处需要对每行的数据进行单独联动,不能直接用\n// this.refreshFieldDataSource('areas.city', {fid: value})\n// 我们采用获取到选项数据后,通过 setOptionData 方法单独给组件赋值\nthis.sendRequest('getCityData', {fid: value}).then(data => {\n this.setOptionData([`areas.${rowIndex}.city`], data)\n})\n\nlet areas = this.getValue('areas')\n\nareas[rowIndex].city = ''\nareas[rowIndex].district = ''\n\nthis.setData({\n areas: areas\n})"},{"key":"orm0adyu","name":"onChange_orm0adyu","func":"const {value, rowIndex} = arguments[0]\n\nthis.sendRequest('getCityData', {fid: value}).then(data => {\n this.setOptionData([`areas.${rowIndex}.district`], data)\n})\n\nlet areas = this.getValue('areas')\n\nareas[rowIndex].district = ''\n\nthis.setData({\n areas: areas\n})"}],"dataSource":[{"key":"8dl33dn7","name":"getCityData","url":"https://tools-server.making.link/api/new/address","method":"GET","auto":false,"params":{},"headers":{},"responseFunc":"return res.data;","requestFunc":"config.params['fid'] = args.fid\nreturn config;","args":["fid"]}],"platform":"pad"}}
|