|
|
@ -35,8 +35,8 @@
|
|
|
|
<% } %>
|
|
|
|
<% } %>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<snowy-empty :fixed="true" v-if="$utils.isEmpty(${classNameFirstLower}Data)" />
|
|
|
|
<snowy-empty :fixed="true" v-show="$xeu.isEmpty(${classNameFirstLower}Data)" />
|
|
|
|
<snowy-float-btn v-if="hasPerm('mobile${className}Add')" @click="add"></snowy-float-btn>
|
|
|
|
<snowy-float-btn v-if="$snowy.hasPerm('mobile${className}Add')" @click="add"></snowy-float-btn>
|
|
|
|
<more ref="moreRef" @handleOk="loadData(true)"></more>
|
|
|
|
<more ref="moreRef" @handleOk="loadData(true)"></more>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
@ -46,7 +46,6 @@
|
|
|
|
<% } %>
|
|
|
|
<% } %>
|
|
|
|
import { ${classNameFirstLower}Page } from '@/api/${moduleName}/${classNameFirstLower}Api'
|
|
|
|
import { ${classNameFirstLower}Page } from '@/api/${moduleName}/${classNameFirstLower}Api'
|
|
|
|
import more from './more.vue'
|
|
|
|
import more from './more.vue'
|
|
|
|
import XEUtils from 'xe-utils'
|
|
|
|
|
|
|
|
import { onLoad, onShow, onReady, onPullDownRefresh, onReachBottom } from "@dcloudio/uni-app"
|
|
|
|
import { onLoad, onShow, onReady, onPullDownRefresh, onReachBottom } from "@dcloudio/uni-app"
|
|
|
|
import { reactive, ref, getCurrentInstance } from "vue"
|
|
|
|
import { reactive, ref, getCurrentInstance } from "vue"
|
|
|
|
const { proxy } = getCurrentInstance()
|
|
|
|
const { proxy } = getCurrentInstance()
|
|
|
@ -71,7 +70,7 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Object.assign(parameter, searchFormState)
|
|
|
|
Object.assign(parameter, searchFormState)
|
|
|
|
${classNameFirstLower}Page(parameter).then(res => {
|
|
|
|
${classNameFirstLower}Page(parameter).then(res => {
|
|
|
|
if (XEUtils.isEmpty(res?.data?.records)){
|
|
|
|
if (uni.$xeu.isEmpty(res?.data?.records)){
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
${classNameFirstLower}Data.value = ${classNameFirstLower}Data.value.concat(res.data.records)
|
|
|
|
${classNameFirstLower}Data.value = ${classNameFirstLower}Data.value.concat(res.data.records)
|
|
|
|