|
@@ -50,6 +50,7 @@ const handleQueryFormBtn_search = () => {
|
|
|
}
|
|
|
const handleQueryFormBtn_clear = () => {
|
|
|
queryForm_Data.value = {}
|
|
|
+ queryApi()
|
|
|
}
|
|
|
// #endregion
|
|
|
|
|
@@ -77,7 +78,12 @@ const handleTableRowBtn_add = () => {
|
|
|
dialogVisible_addOrEdit.value = true
|
|
|
}
|
|
|
const handleTableRowBtn_delete = async () => {
|
|
|
- await deleteApi(multipleSelection.value.map((item: TYPE_TABLE_FIELD) => item[TABLE_KEY]))
|
|
|
+ const res = await deleteApi(multipleSelection.value.map((item: TYPE_TABLE_FIELD) => item[TABLE_KEY]))
|
|
|
+ console.log(res);
|
|
|
+
|
|
|
+// if(res.code==1){
|
|
|
+
|
|
|
+// }
|
|
|
queryApi()
|
|
|
}
|
|
|
// #endregion
|
|
@@ -153,11 +159,13 @@ function queryApi() {
|
|
|
limit: limit.value,
|
|
|
page: currentPage.value,
|
|
|
cs_pid: 837,
|
|
|
+ sort_field: 'cs_id',
|
|
|
+ sort_type:'DESC'
|
|
|
}
|
|
|
}).then((response: { data: { total_rows: string, page_data: TYPE_TABLE_FIELD[] } }) => {
|
|
|
const { data } = response
|
|
|
total.value = parseInt(data.total_rows)
|
|
|
- tableData.value = data.page_data
|
|
|
+ tableData.value = data.page_data;
|
|
|
return response
|
|
|
}).then(() => {
|
|
|
loading_table.value = false
|
|
@@ -287,7 +295,7 @@ init()
|
|
|
</el-form>
|
|
|
<div class="divider"></div>
|
|
|
<div>
|
|
|
- <import-button @success="queryApi" :url="URL_CUT_REF"></import-button>
|
|
|
+ <import-button @success="queryApi" :url="URL_CUT_REF" exportKey="cs_pid=837"></import-button>
|
|
|
<el-button @click="handleTableRowBtn_export" type="success">导出</el-button>
|
|
|
<el-button @click="handleTableRowBtn_add" type="primary">新增</el-button>
|
|
|
<el-button @click="handleTableRowBtn_delete" type="danger">删除</el-button>
|