From 8c6cf205affbbc8ada74f00a7ca25ebca867e9ed Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Mon, 27 Sep 2021 11:44:44 +0800
Subject: [PATCH] 图表颜色
---
src/views/securityUnitChild/index.vue | 76 +++++---------------------------------
1 files changed, 10 insertions(+), 66 deletions(-)
diff --git a/src/views/securityUnitChild/index.vue b/src/views/securityUnitChild/index.vue
index d58ac7d..c458472 100644
--- a/src/views/securityUnitChild/index.vue
+++ b/src/views/securityUnitChild/index.vue
@@ -2,33 +2,6 @@
<div class="dispatch">
<avue-tabs :option="optionTABS" @change="handleChangeTABS"></avue-tabs>
<span v-if="typeTABS.prop === 'tab1'" class="tab">
- <!-- <avue-crud
- :option="option"
- :data="data"
- :page.sync="page"
- ref="crudrec"
- @on-load="onLoad"
- :table-loading="loading"
- @row-save="rowSave"
- @search-change="searchChange"
- @search-reset="searchReset"
- @row-update="rowUpdate"
- @row-del="rowDel"
- @selection-change="selectionChange"
- @refresh-change="refreshChange"
- >
- <template slot="menuLeft">
- <el-button
- type="danger"
- size="small"
- plain
- icon="el-icon-delete"
- @click="handleDelete"
- >删 除
- </el-button>
- </template>
- </avue-crud>-->
- <!-- 表单组件 -->
<basic-container>
<avue-form
ref="form"
@@ -36,40 +9,10 @@
:option="option0"
@submit="submit0"
>
- <!-- <template slot-scope="scope" slot="menuForm">
- <el-button @click="tip">自定义按钮</el-button>
- </template> -->
</avue-form>
</basic-container>
</span>
<span v-if="typeTABS.prop === 'tab11'" class="tab">
- <!-- <avue-crud
- :option="option"
- :data="data"
- :page.sync="page"
- ref="crudrec"
- @on-load="onLoad"
- :table-loading="loading"
- @row-save="rowSave"
- @search-change="searchChange"
- @search-reset="searchReset"
- @row-update="rowUpdate"
- @row-del="rowDel"
- @selection-change="selectionChange"
- @refresh-change="refreshChange"
- >
- <template slot="menuLeft">
- <el-button
- type="danger"
- size="small"
- plain
- icon="el-icon-delete"
- @click="handleDelete"
- >删 除
- </el-button>
- </template>
- </avue-crud>-->
- <!-- 表单组件 -->
<basic-container>
<avue-form
ref="form"
@@ -77,9 +20,6 @@
:option="option01"
@submit="submit0"
>
- <!-- <template slot-scope="scope" slot="menuForm">
- <el-button @click="tip">自定义按钮</el-button>
- </template> -->
</avue-form>
</basic-container>
</span>
@@ -303,7 +243,7 @@
res: "data",
},
tip: "请上传 .xls,.xlsx 标准格式文件",
- action: "/api/car/import-examSubject",
+ action: "/api/shareholder/import-share",
},
{
label: "模板下载",
@@ -331,7 +271,7 @@
res: "data",
},
tip: "请上传 .xls,.xlsx 标准格式文件",
- action: "/api/examSubjectChoices/import-examSubject",
+ action: "/api/member/import-member",
},
{
label: "模板下载",
@@ -495,6 +435,9 @@
},
methods: {
submit0(row, done, loading) {
+ if (this.userInfo.role_name == "保安公司管理员") {
+ row["departmentid"] = this.userInfo.dept_id;
+ }
console.log(row);
update(row).then(
() => {
@@ -504,6 +447,7 @@
type: "success",
message: "操作成功!",
});
+ this.onloads();
done();
},
(error) => {
@@ -521,11 +465,11 @@
uploadAfter(res, done, loading, column) {
window.console.log(column);
this.excelBox = false;
- this.refreshChange();
+ this.refreshChange1();
done();
},
handleTemplate() {
- window.open(`/api/car/export-template`);
+ window.open(`/api/shareholder/export-template`);
},
handleImport1() {
@@ -535,11 +479,11 @@
uploadAfter1(res, done, loading, column) {
window.console.log(column);
this.excelBox1 = false;
- // this.refreshChange();
+ this.refreshChange2();
done();
},
handleTemplate1() {
- window.open(`/api/examSubjectChoices/export-template`);
+ window.open(`/api/member/export-template`);
},
handleChangeTABS(column) {
--
Gitblit v1.9.3