|
|
@@ -37,6 +37,12 @@
|
|
|
<ElFormItem prop="operator" label="运营商">
|
|
|
<ElInput v-model="model.operator" placeholder="请输入运营商" />
|
|
|
</ElFormItem>
|
|
|
+ <ElFormItem prop="scope" label="IMSI范围">
|
|
|
+ <ElInput v-model="model.scope" placeholder="IMSI范围" type="textarea" />
|
|
|
+ </ElFormItem>
|
|
|
+ <ElFormItem prop="platform" label="平台">
|
|
|
+ <ElInput v-model="model.platform" placeholder="请输入运营商" />
|
|
|
+ </ElFormItem>
|
|
|
<ElFormItem prop="remark" label="备注">
|
|
|
<ElInput v-model="model.remark" placeholder="请输入备注" />
|
|
|
</ElFormItem>
|
|
|
@@ -63,11 +69,16 @@ const rules = {
|
|
|
mcc: [{ required: true, message: '请输入MCC', trigger: 'blur' }],
|
|
|
mnc: [{ required: true, message: '请输入MNC', trigger: 'blur' }],
|
|
|
country: [{ required: true, message: '请输入国家码', trigger: 'blur' }],
|
|
|
- operator: [{ required: true, message: '请输入运营商', trigger: 'blur' }]
|
|
|
+ platform: [{ required: true, message: '请输入平台名称', trigger: 'blur' }]
|
|
|
}
|
|
|
const { showEditDialog, onEdit } = setupEditDialog(model)
|
|
|
|
|
|
async function submit() {
|
|
|
+ if (model.value.scope) {
|
|
|
+ model.value.scope = model.value.scope.split('\n').map(Number);
|
|
|
+ } else {
|
|
|
+ model.value.scope = [];
|
|
|
+ }
|
|
|
await http.put('/channel', model.value)
|
|
|
ElMessage.success('保存成功')
|
|
|
}
|
|
|
@@ -76,15 +87,17 @@ function del(row) {
|
|
|
ElMessageBox.confirm('确定删除吗?', '提示', {
|
|
|
type: 'warning'
|
|
|
}).then(() => {
|
|
|
- http.delete(`/phone-list/${row.id}`).then(() => {
|
|
|
+ http.delete(`/channel/${row.id}`).then(() => {
|
|
|
ElMessage.success('删除成功')
|
|
|
table.value.refresh()
|
|
|
})
|
|
|
})
|
|
|
}
|
|
|
|
|
|
-function updateSwitch(row){
|
|
|
- http.get(`/channel/updateSwitch/${row.id}`)
|
|
|
+function updateSwitch(row) {
|
|
|
+ http.get(`/channel/updateSwitch/${row.id}`).then(() => {
|
|
|
+ table.value.refresh()
|
|
|
+ })
|
|
|
}
|
|
|
|
|
|
const selectedRow = ref(null)
|