From 08ddca0ca8e7189bb9843f13b158adca3b8f9514 Mon Sep 17 00:00:00 2001
From: sk1551 <15175617877@163.com>
Date: Wed, 27 May 2020 18:19:02 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=A0=87=E5=87=86=E6=8A=A5?=
=?UTF-8?q?=E9=94=99?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../api/benyi/dayflow/biaozhun/standard.js | 54 +++++++++++++++++++
ruoyi-ui/src/views/benyi/dayflow/standard.vue | 14 +++--
2 files changed, 60 insertions(+), 8 deletions(-)
create mode 100644 ruoyi-ui/src/api/benyi/dayflow/biaozhun/standard.js
diff --git a/ruoyi-ui/src/api/benyi/dayflow/biaozhun/standard.js b/ruoyi-ui/src/api/benyi/dayflow/biaozhun/standard.js
new file mode 100644
index 000000000..14c668135
--- /dev/null
+++ b/ruoyi-ui/src/api/benyi/dayflow/biaozhun/standard.js
@@ -0,0 +1,54 @@
+import request from '@/utils/request'
+
+// 查询一日流程标准列表
+export function listStandard(query) {
+ return request({
+ url: '/benyi/dayflow/biaozhun/standard/list',
+ method: 'get',
+ params: query
+ })
+}
+
+// 查询一日流程标准详细
+export function getStandard(sid) {
+ return request({
+ url: '/benyi/dayflow/biaozhun/standard/' + sid,
+ method: 'get'
+ })
+}
+
+
+// 新增一日流程标准
+export function addStandard(data) {
+ return request({
+ url: '/benyi/dayflow/biaozhun/standard',
+ method: 'post',
+ data: data
+ })
+}
+
+// 修改一日流程标准
+export function updateStandard(data) {
+ return request({
+ url: '/benyi/dayflow/biaozhun/standard',
+ method: 'put',
+ data: data
+ })
+}
+
+// 删除一日流程标准
+export function delStandard(sid) {
+ return request({
+ url: '/benyi/dayflow/biaozhun/standard/' + sid,
+ method: 'delete'
+ })
+}
+
+// 导出一日流程标准
+export function exportStandard(query) {
+ return request({
+ url: '/benyi/dayflow/biaozhun/standard/export',
+ method: 'get',
+ params: query
+ })
+}
\ No newline at end of file
diff --git a/ruoyi-ui/src/views/benyi/dayflow/standard.vue b/ruoyi-ui/src/views/benyi/dayflow/standard.vue
index e44678163..5bbf41f50 100644
--- a/ruoyi-ui/src/views/benyi/dayflow/standard.vue
+++ b/ruoyi-ui/src/views/benyi/dayflow/standard.vue
@@ -127,19 +127,19 @@
+
-
+
@@ -324,15 +324,13 @@ export default {
handleUpdate(row) {
this.imageUrl = ""; //清空图片
this.reset();
- const sid = row.sid || this.ids
+ const sid = row.sid || this.ids;
getStandard(sid).then(response => {
this.form = response.data;
console.log(process.env.VUE_APP_BASE_API + response.data.picture);
if (response.data.picture) {
this.imageUrl = process.env.VUE_APP_BASE_API + response.data.picture;
- }else {
- this.imageUrl = "";
- };
+ }
this.open = true;
this.title = "修改标准";
});