调整部分bug
This commit is contained in:
@@ -82,11 +82,9 @@ export default defineComponent({
|
||||
operationsModal:false,
|
||||
operationsEdit:false,
|
||||
loadingShow:false,
|
||||
title:''
|
||||
})
|
||||
let operationsData = reactive({
|
||||
title:'',
|
||||
name:'',
|
||||
type:'Enterprise',
|
||||
systemUser:'Enterprise',
|
||||
})
|
||||
let state = ref([
|
||||
{
|
||||
@@ -104,38 +102,37 @@ export default defineComponent({
|
||||
operations.title = funStr
|
||||
if(funStr == 'Add') operations.operationsEdit = false
|
||||
if(funStr == 'Edit'){
|
||||
operationsData.name=data.name
|
||||
operationsData.type=data.type
|
||||
operations.systemUser=data.type
|
||||
operations.name=data.name
|
||||
}
|
||||
|
||||
}
|
||||
let setAddData = ()=>{
|
||||
return {
|
||||
"name": operationsData.name,
|
||||
"type": operationsData.type,
|
||||
"type": operations.systemUser,
|
||||
name:operations.name,
|
||||
}
|
||||
}
|
||||
let setEditData = ()=>{
|
||||
return {
|
||||
"name": operationsData.country,
|
||||
"type": operationsData.credits,
|
||||
"type": operations.systemUser,
|
||||
name:operations.name,
|
||||
}
|
||||
}
|
||||
let cancelDsign = ()=>{
|
||||
operationsData.name=''
|
||||
operationsData.type='Enterprise'
|
||||
operations.value='Enterprise'
|
||||
operations.operationsModal = false
|
||||
operations.operationsEdit = false
|
||||
}
|
||||
let setOk = ()=>{
|
||||
let data
|
||||
if(operations.title == 'Add'){
|
||||
data = setAddData()
|
||||
if(!data.name)return message.warning('Please check the input box marked with *')
|
||||
Https.axiosPost(Https.httpUrls.addOrganization, data).then(
|
||||
Https.axiosGet(Https.httpUrls.addOrganization, {params:data}).then(
|
||||
(rv) => {
|
||||
if (rv) {
|
||||
cancelDsign()
|
||||
emit('searchHistoryList')
|
||||
}
|
||||
cancelDsign()
|
||||
emit('searchHistoryList')
|
||||
}
|
||||
);
|
||||
}
|
||||
@@ -143,7 +140,6 @@ export default defineComponent({
|
||||
}
|
||||
return {
|
||||
...toRefs(operations),
|
||||
...toRefs(operationsData),
|
||||
state,
|
||||
cancelDsign,
|
||||
init,
|
||||
|
||||
@@ -104,39 +104,37 @@ export default defineComponent({
|
||||
const columns: any = computed(() => {
|
||||
return [
|
||||
{
|
||||
title: "City",
|
||||
title: "Id",
|
||||
align: "center",
|
||||
dataIndex: "city",
|
||||
key: "city",
|
||||
dataIndex: "id",
|
||||
key: "id",
|
||||
width:150,
|
||||
ellipsis:true
|
||||
},
|
||||
{
|
||||
title: "Country",
|
||||
title: "Name",
|
||||
align: "center",
|
||||
dataIndex: "country",
|
||||
key: "country",
|
||||
dataIndex: "name",
|
||||
key: "name",
|
||||
width:150,
|
||||
ellipsis:true
|
||||
},
|
||||
{
|
||||
{
|
||||
title: "Create Time",
|
||||
align: "center",
|
||||
dataIndex: "createTime",
|
||||
key: "createTime",
|
||||
width:150,
|
||||
ellipsis:true,
|
||||
ellipsis:true
|
||||
},
|
||||
{
|
||||
title: "Status",
|
||||
title: "Type",
|
||||
align: "center",
|
||||
dataIndex: "status",
|
||||
key: "status",
|
||||
fixed: "right",
|
||||
dataIndex: "type",
|
||||
key: "type",
|
||||
width:150,
|
||||
Operations: true,
|
||||
ellipsis:true,
|
||||
}
|
||||
},
|
||||
];
|
||||
});
|
||||
//改变页码
|
||||
@@ -158,9 +156,9 @@ export default defineComponent({
|
||||
(rv: any) => {
|
||||
if (rv) {
|
||||
console.log(rv)
|
||||
// this.dataList = rv
|
||||
filter.dataList = rv.content;
|
||||
filterData.total = rv.total;
|
||||
filter.dataList = rv
|
||||
// filter.dataList = rv.content;
|
||||
// filterData.total = rv.total;
|
||||
filter.tableLoading = false;
|
||||
|
||||
// this.workspaceItem.position = this.singleTypeList[0].label
|
||||
|
||||
Reference in New Issue
Block a user