leisure-core 0.5.26 → 0.5.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -42,6 +42,7 @@ import LeDatePicker from "./le-date-picker/index.js";
42
42
  import LeUrl from "./le-url/index.js";
43
43
  import LeSpan from "./le-span/index.js";
44
44
  import LeInputAdvanced from "./le-input-advanced/index.js";
45
+ import LeButtonAudit from "./le-button-audit/index.js";
45
46
 
46
47
 
47
48
  const components = [
@@ -83,7 +84,9 @@ const components = [
83
84
  LeDatePicker,
84
85
  LeSpan,
85
86
  LeUrl,
86
- LeInputAdvanced
87
+ LeInputAdvanced,
88
+ LeButtonAudit,
89
+
87
90
  ];
88
91
 
89
92
  const install = function (Vue) {
@@ -192,5 +195,6 @@ export default {
192
195
  LeDatePicker,
193
196
  LeUrl,
194
197
  LeSpan,
195
- LeInputAdvanced
198
+ LeInputAdvanced,
199
+ LeButtonAudit
196
200
  };
@@ -9,7 +9,6 @@
9
9
  </template>
10
10
  <script>
11
11
  import { getAreas } from "@/api/system-area.js";
12
- import { number } from "echarts";
13
12
  export default {
14
13
  name: "le-area",
15
14
  props: {
@@ -0,0 +1,7 @@
1
+ import LeButtonAudit from "./src/main.vue";
2
+
3
+ LeButtonAudit.install = function (Vue) {
4
+ Vue.component(LeButtonAudit.name, LeButtonAudit);
5
+ };
6
+
7
+ export default LeButtonAudit;
@@ -0,0 +1,107 @@
1
+ <template>
2
+ <div>
3
+ <el-button type="primary" id="btnSelectMedia" @click="onClick">
4
+ 审核
5
+ </el-button>
6
+ <el-dialog
7
+ :width="width"
8
+ :title="title"
9
+ :visible.sync="showAuditDialog"
10
+ :close-on-click-modal="closeMode"
11
+ append-to-body
12
+ v-el-drag-dialog
13
+ >
14
+ <el-form label-width="78px" v-if="showAuditDialog" width="98%">
15
+ <el-form-item label="审批意见:" prop="opinion" style="width: 100%">
16
+ <el-input
17
+ v-model="opinion"
18
+ type="textarea"
19
+ :rows="3"
20
+ show-word-limit
21
+ placeholder="请输入审批意见"
22
+ ></el-input>
23
+ </el-form-item>
24
+ </el-form>
25
+ <div class="dialog-footer">
26
+ <template>
27
+ <le-button type="primary" @click="passClick">{{
28
+ passBtnText
29
+ }}</le-button>
30
+ <le-button type="info" @click="reJectClick">{{
31
+ rejectBtnText
32
+ }}</le-button>
33
+ </template>
34
+ </div>
35
+ </el-dialog>
36
+ </div>
37
+ </template>
38
+ <script>
39
+ export default {
40
+ name: "le-button-audit",
41
+ props: {
42
+ cid: {
43
+ //审核单据信息,例如审核企业,则为企业id
44
+ type: String,
45
+ default: "",
46
+ },
47
+ width: {
48
+ type: String,
49
+ default: "40%",
50
+ },
51
+ title: {
52
+ type: String,
53
+ default: "审批",
54
+ },
55
+ closeMode: {
56
+ type: Boolean,
57
+ default: false,
58
+ },
59
+ passBtnText: {
60
+ type: String,
61
+ default: "通 过",
62
+ },
63
+ rejectBtnText: {
64
+ type: String,
65
+ default: "驳 回",
66
+ },
67
+ },
68
+ data() {
69
+ return {
70
+ showAuditDialog: false,
71
+ opinion: "", //审批意见
72
+ passed: 0, //审批结果 0:驳回 1:通过
73
+ };
74
+ },
75
+ computed: {},
76
+ mounted() {},
77
+ methods: {
78
+ passClick() {
79
+ this.aduit(1);
80
+ },
81
+ reJectClick() {
82
+ this.aduit(0);
83
+ },
84
+ aduit(passParam) {
85
+ let param = {};
86
+ param.cid = this.cid;
87
+ param.opinion = this.opinion;
88
+ param.passed = passParam;
89
+ this.$emit("audit", param);
90
+ },
91
+ onClick() {
92
+ this.showAuditDialog = true;
93
+ },
94
+ closeDialog() {
95
+ this.showAuditDialog = false;
96
+ },
97
+ },
98
+ };
99
+ </script>
100
+ <style lang="scss" scoped>
101
+ .dialog-footer {
102
+ display: block;
103
+ width: 130px;
104
+ margin-left: auto;
105
+ margin-right: auto;
106
+ }
107
+ </style>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "leisure-core",
3
- "version": "0.5.26",
3
+ "version": "0.5.28",
4
4
  "description": "leisure-core是京心数据基于vue2.x开发的一套后台管理系统桌面端组件库,封装了大量实用的UI控件模板,非常方便开发者快速搭建前端应用",
5
5
  "private": false,
6
6
  "author": "北方乐逍遥(zcx7878)",