优化用户体验

main
RogerWork 11 months ago
parent 45aaecc3ec
commit 2c482d2796
  1. 3
      src/apis/update.js
  2. 5
      src/views/update/index.vue

@ -3,13 +3,14 @@ import request from "@/request/index.js";
export const cinema_list = () => { export const cinema_list = () => {
// console.log('cinema_list') // console.log('cinema_list')
return request({ return request({
url: '/update/cinema/refresh', url: '/update/cinema/refresh/?ordering=ip',
method: 'get' method: 'get'
}) })
} }
export const cinema_search = (params) => { export const cinema_search = (params) => {
const req_params = { const req_params = {
ordering: 'ip',
search: params['version'], search: params['version'],
ip: params['ip'] ip: params['ip']
} }

@ -76,7 +76,8 @@ const resetSearch = (formEl) => {
formEl.resetFields() formEl.resetFields()
} }
const refresh = () => { const refresh = (formEL) => {
formEL.resetFields()
refresh_disable.value = true; refresh_disable.value = true;
refresh_loading.value = true; refresh_loading.value = true;
get_table_data() get_table_data()
@ -143,7 +144,7 @@ onMounted(
<el-button @click="resetSearch(cinemaSearchRef)">重置</el-button> <el-button @click="resetSearch(cinemaSearchRef)">重置</el-button>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button v-bind:disabled="refresh_disable" @click="refresh()" v-bind:loading="refresh_loading">刷新</el-button> <el-button v-bind:disabled="refresh_disable" @click="refresh(cinemaSearchRef)" v-bind:loading="refresh_loading">刷新</el-button>
</el-form-item> </el-form-item>
</el-col> </el-col>

Loading…
Cancel
Save