孙家正 1 year ago
parent
commit
0ad8752cbc
  1. 1
      pages/home/login.vue
  2. 2
      pages/massif/myPlant.vue
  3. 1
      pages/massif/plant_plan.vue
  4. 2
      uni_modules/d-form/components/d-form/d-form.vue

1
pages/home/login.vue

@ -112,7 +112,6 @@ export default {
//#ifdef APP-PLUS //#ifdef APP-PLUS
this.getVersion() this.getVersion()
plus.runtime.getProperty(plus.runtime.appid, async info=>{ plus.runtime.getProperty(plus.runtime.appid, async info=>{
console.log("app ",info)
this.versionCode = info.versionCode this.versionCode = info.versionCode
}) })
//#endif //#endif

2
pages/massif/myPlant.vue

@ -173,9 +173,7 @@
</template> </template>
<script> <script>
import request,{host} from '@/common/request.js' import request,{host} from '@/common/request.js'
import dSearch from '../../uni_modules/d-search/components/d-search/d-search.vue'
export default { export default {
components: { dSearch },
data(){ data(){
return{ return{
host:host('imgUrl'), host:host('imgUrl'),

1
pages/massif/plant_plan.vue

@ -119,7 +119,6 @@ export default {
} }
}, },
submit(){ submit(){
console.log(this.formData,'----formData-----')
this.$refs.form.validate().then(async valid=>{ this.$refs.form.validate().then(async valid=>{
if(valid){ if(valid){
var res=await request("/api/plantPlan/add",{ var res=await request("/api/plantPlan/add",{

2
uni_modules/d-form/components/d-form/d-form.vue

@ -578,7 +578,7 @@ import {computeArea} from '@/common/utils'
pickerContent(){// pickerContent(){//
if(this.type=='select'){ if(this.type=='select'){
var column=this.$defineArray(setPickerVal(this.columns[0], this.value).filter(v=>v)); var column=this.$defineArray(setPickerVal(this.columns[0], this.value).filter(v=>v));
return this.showValue(column)||column.at(-1)?.label||this.placeholder||`请选择${this.labelName}` return this.showValue(column)||column.slice(-1)[0]?.label||this.placeholder||`请选择${this.labelName}`
} }
return '' return ''
}, },

Loading…
Cancel
Save