From a4cf773aaabbd3cbe9459c53ba0aca5309178d8e Mon Sep 17 00:00:00 2001 From: zcxee <495141071@qq.com> Date: Sat, 15 Apr 2023 13:39:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/sch/file.js | 30 +- src/views/sch/file/index.vue | 175 +--- .../sch/rules/components/RuleDialogForm.vue | 115 +++ src/views/sch/rules/components/SearchForm.vue | 46 ++ src/views/sch/rules/index.vue | 195 +---- src/views/zs/clue.vue | 769 ------------------ src/views/zs/clue/components/UploadDialog.vue | 2 - src/views/zs/sign.vue | 411 ---------- 8 files changed, 238 insertions(+), 1505 deletions(-) create mode 100644 src/views/sch/rules/components/RuleDialogForm.vue create mode 100644 src/views/sch/rules/components/SearchForm.vue delete mode 100644 src/views/zs/clue.vue delete mode 100644 src/views/zs/sign.vue diff --git a/src/api/sch/file.js b/src/api/sch/file.js index 8aa1d40..e7f6a1a 100644 --- a/src/api/sch/file.js +++ b/src/api/sch/file.js @@ -9,36 +9,12 @@ export function listFile(query) { }) } -// 查询文件详细 -export function getFile(fileId) { - return request({ - url: '/sch/file/' + fileId, - method: 'get' - }) -} -// 新增文件 -export function addFile(data) { - return request({ - url: '/sch/file', - method: 'post', - data: data - }) -} - -// 修改文件 -export function updateFile(data) { +// 删除文件 +export function delFile(data) { return request({ url: '/sch/file', - method: 'put', + method: 'delete', data: data }) } - -// 删除文件 -export function delFile(fileId) { - return request({ - url: '/sch/file/' + fileId, - method: 'delete' - }) -} diff --git a/src/views/sch/file/index.vue b/src/views/sch/file/index.vue index 0d37914..1aa6f4e 100644 --- a/src/views/sch/file/index.vue +++ b/src/views/sch/file/index.vue @@ -1,22 +1,9 @@ + \ No newline at end of file diff --git a/src/views/sch/rules/components/SearchForm.vue b/src/views/sch/rules/components/SearchForm.vue new file mode 100644 index 0000000..9892188 --- /dev/null +++ b/src/views/sch/rules/components/SearchForm.vue @@ -0,0 +1,46 @@ + + + diff --git a/src/views/sch/rules/index.vue b/src/views/sch/rules/index.vue index 0005ac1..32d2020 100644 --- a/src/views/sch/rules/index.vue +++ b/src/views/sch/rules/index.vue @@ -1,42 +1,17 @@ \ No newline at end of file