@@ -227,9 +224,9 @@ const districtList = ref([])
const ishopList = ref([])
const operateList = ref([
- { id: 'reservation', icon: 'View', name: '预约', title: '预约', hasPermi: ['invest:iuser:query'] },
- { id: 'travel', icon: 'View', name: '旅行', title: '旅行', hasPermi: ['invest:iuser:query'] },
- { id: 'token', icon: 'View', name: '刷新token', title: '刷新token', hasPermi: ['invest:iuser:query'] },
+ { id: 'reservation', icon: 'View', name: '预约', title: '预约', hasPermi: ['invest:iuser:edit'] },
+ { id: 'travel', icon: 'View', name: '旅行', title: '旅行', hasPermi: ['invest:iuser:edit'] },
+ { id: 'token', icon: 'View', name: '刷新token', title: '刷新token', hasPermi: ['invest:iuser:edit'] },
{ id: 'edit', icon: 'Edit', name: '修改', title: '修改', hasPermi: ['invest:iuser:edit'] },
{ id: 'delete', icon: 'Delete', name: '删除', title: '删除', hasPermi: ['invest:iuser:remove'] }
])
@@ -396,9 +393,9 @@ function reset() {
address: null,
lat: null,
lng: null,
- minute: null,
- shopType: null,
- randomMinute: null,
+ minute: 8,
+ shopType: '1',
+ randomMinute: '0',
pushPlusToken: null,
jsonResult: null,
remark: null,
@@ -441,14 +438,23 @@ function handleSelectionChange(selection) {
/** 修改按钮操作 */
function handleUpdate(row) {
reset()
- getProvinceList()
- getCityList()
- getDistrictList()
- getShopList()
const _mobile = row.mobile || ids.value
getIuser(_mobile).then((response) => {
form.value = response.data
-
+ queryDistrictParams.value.provinceName = form.value.provinceName
+ listCity(queryDistrictParams.value).then((response) => {
+ cityList.value = response.rows
+ queryDistrictParams.value.cityName = form.value.cityName
+ listDistrict(queryDistrictParams.value).then((response) => {
+ districtList.value = response.rows
+ queryShopParams.value.provinceName = form.value.provinceName
+ queryShopParams.value.cityName = form.value.cityName
+ queryShopParams.value.districtName = form.value.districtName
+ listIshop(queryShopParams.value).then((response) => {
+ ishopList.value = response.rows
+ })
+ })
+ })
open.value = true
itemSelect.value = []
if (form.value.itemCode.indexOf('@') == -1 && form.value.itemCode !== '') {
@@ -461,7 +467,7 @@ function handleUpdate(row) {
}
})
}
- title.value = '修改账号管理'
+ title.value = '修改账号'
})
}