From 0b750c864ec673c52425be252df72edb0790c4f4 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期二, 05 十二月 2023 09:47:06 +0800
Subject: [PATCH] 提交信息
---
src/views/followvisit/record/index.vue | 313 ++++++++-------------------------------------------
1 files changed, 53 insertions(+), 260 deletions(-)
diff --git a/src/views/followvisit/record/index.vue b/src/views/followvisit/record/index.vue
index 6d8904c..87ee39a 100644
--- a/src/views/followvisit/record/index.vue
+++ b/src/views/followvisit/record/index.vue
@@ -2,7 +2,6 @@
<div class="app-container">
<el-row :gutter="20">
<!--鐢ㄦ埛鏁版嵁-->
-
<el-form
:model="topqueryParams"
ref="queryForm"
@@ -88,12 +87,36 @@
>
</el-col>
<el-col :span="1.5">
+ <el-button
+ type="success"
+ plain
+ icon="el-icon-edit"
+ size="medium"
+ :disabled="single"
+ @click="handleUpdate"
+ v-hasPermi="['system:user:edit']"
+ >淇敼</el-button
+ >
+ </el-col>
+ <el-col :span="1.5">
+ <el-button
+ type="danger"
+ plain
+ icon="el-icon-delete"
+ size="medium"
+ :disabled="multiple"
+ @click="handleDelete"
+ v-hasPermi="['system:user:remove']"
+ >鍒犻櫎</el-button
+ >
+ </el-col>
+ <el-col :span="19">
<div class="documentf">
<div class="document">
<el-button
type="warning"
plain
- icon="el-icon-upload2"
+ icon="el-icon-download"
size="medium"
@click="handleExport"
v-hasPermi="['system:user:export']"
@@ -102,78 +125,6 @@
</div>
</div>
</el-col>
- <el-col :span="1.5">
- <div class="documentf">
- <div class="document">
- <el-button
- type="success"
- plain
- icon="el-icon-download"
- size="medium"
- @click="toleadExport"
- v-hasPermi="['system:user:export']"
- >瀵煎叆</el-button
- >
- </div>
- </div>
- </el-col>
- <el-col :span="1.5">
- <div class="documentf">
- <div class="document">
- <el-button
- type="info"
- icon="el-icon-refresh"
- size="medium"
- @click="TaskReset"
- v-hasPermi="['system:user:export']"
- >浠诲姟閲嶇疆</el-button
- >
- </div>
- </div>
- </el-col>
- <el-col :span="1.5">
- <div class="documentf">
- <div class="document">
- <el-button
- type="success"
- icon="el-icon-position"
- size="medium"
- @click="AllStarted"
- v-hasPermi="['system:user:export']"
- >鍏ㄩ儴寮�濮�</el-button
- >
- </div>
- </div>
- </el-col>
- <el-col :span="1.5">
- <div class="documentf">
- <div class="document">
- <el-button
- type="warning"
- icon="el-icon-remove"
- size="medium"
- @click="AllStop"
- v-hasPermi="['system:user:export']"
- >鍏ㄩ儴鍋滄</el-button
- >
- </div>
- </div>
- </el-col>
- <el-col :span="1.5">
- <div class="documentf">
- <div class="document">
- <el-button
- type="primary"
- icon="el-icon-remove"
- size="medium"
- @click="Sendtimesetting"
- v-hasPermi="['system:user:export']"
- >鍙戦�佹椂闂磋缃�</el-button
- >
- </div>
- </div>
- </el-col>
-
<!-- <el-col :span="1.5"> </el-col> -->
</el-row>
<el-table
@@ -232,7 +183,7 @@
</template>
</el-table-column>
<el-table-column
- label="闅忚鐘舵��"
+ label="閫氱煡鐘舵��"
align="center"
key="topicnumber"
prop="topicnumber"
@@ -244,7 +195,7 @@
</template>
</el-table-column>
<el-table-column
- label="闅忚鏂规"
+ label="瀹f暀鍐呭"
align="center"
key="topicnumberaa"
prop="topicnumberaa"
@@ -258,14 +209,14 @@
width="120"
/>
<el-table-column
- label="闅忚鏂瑰紡"
+ label="瀹f暀鏂瑰紡"
align="center"
key="topicnumberaa"
prop="topicnumberaa"
width="120"
/>
<el-table-column
- label="闅忚浜哄憳"
+ label="瀹f暀浜哄憳"
align="center"
key="topicnumberaa"
prop="topicnumberaa"
@@ -284,7 +235,7 @@
</template>
</el-table-column>
<el-table-column
- label="闅忚鏃堕棿"
+ label="瀹f暀鏃堕棿"
sortable
align="center"
prop="createTime"
@@ -306,9 +257,8 @@
</template>
</el-table-column>
-
<el-table-column
- label="鎿嶄綔"
+ label="浠诲姟璇︽儏"
align="center"
width="200"
class-name="small-padding fixed-width"
@@ -317,28 +267,19 @@
<el-button
size="medium"
type="text"
- @click="followupvisit(scope.row)"
+ @click="handleUpdate(scope.row)"
v-hasPermi="['system:user:edit']"
- ><span class="button-bb"
- ><i class="el-icon-s-promotion"></i>閲嶆柊闅忚</span
+ ><span class="button-xq"
+ ><i class="el-icon-s-data"></i>璇︽儏</span
></el-button
>
<el-button
size="medium"
type="text"
- @click="handlestop(scope.row)"
+ @click="handleUpdate(scope.row)"
v-hasPermi="['system:user:edit']"
><span class="button-sc"
- ><i class="el-icon-delete"></i>鍋滄</span
- ></el-button
- >
- <el-button
- size="medium"
- type="text"
- @click="Seedetails(scope.row)"
- v-hasPermi="['system:user:edit']"
- ><span class="button-zx"
- ><i class="el-icon-s-order"></i>鏌ョ湅璇︽儏</span
+ ><i class="el-icon-delete"></i>鍒犻櫎</span
></el-button
>
</template>
@@ -407,81 +348,6 @@
<el-button @click="cancel">杩� 鍥�</el-button>
</div>
</el-dialog>
- <!-- 淇敼鍙戦�佹椂闂村璇濇 -->
- <el-dialog
- title="鍙戦�佹椂闂磋缃�"
- :visible.sync="modificationVisible"
- width="45%"
- >
- <div style="margin-bottom: 20px; color: red">
- 缁熶竴淇敼褰撳ぉ鏈彂閫佺殑浠诲姟鏃堕棿
- </div>
-
- <el-form
- :model="ruleForm"
- :rules="rules"
- ref="ruleForm"
- label-width="120px"
- class="demo-ruleForm"
- >
- <el-form-item label="鍙戦�佹棩鏈�">
- <el-date-picker
- v-model="ruleForm.value1"
- type="date"
- placeholder="閫夋嫨鏃ユ湡"
- >
- </el-date-picker>
- </el-form-item>
-
- <el-form-item label="鏃堕棿娈�" prop="type">
- <el-checkbox-group v-model="ruleForm.type">
- <el-checkbox label="涓婂崍" name="type"></el-checkbox>
- <el-checkbox label="涓嬪崍" name="type"></el-checkbox>
- <el-checkbox label="鏅氫笂" name="type"></el-checkbox>
- </el-checkbox-group>
- </el-form-item>
- <el-form-item label="涓婂崍鏃堕棿鍖洪棿" required>
- <el-time-picker
- is-range
- v-model="ruleForm.value2"
- range-separator="鑷�"
- start-placeholder="寮�濮嬫椂闂�"
- end-placeholder="缁撴潫鏃堕棿"
- placeholder="閫夋嫨鏃堕棿鑼冨洿"
- >
- </el-time-picker>
- </el-form-item>
- <el-form-item label="涓嬪崍鏃堕棿鍖洪棿" required>
- <el-time-picker
- is-range
- v-model="ruleForm.value3"
- range-separator="鑷�"
- start-placeholder="寮�濮嬫椂闂�"
- end-placeholder="缁撴潫鏃堕棿"
- placeholder="閫夋嫨鏃堕棿鑼冨洿"
- >
- </el-time-picker>
- </el-form-item>
- <el-form-item label="鏅氫笂鏃堕棿鍖洪棿" required>
- <el-time-picker
- is-range
- v-model="ruleForm.value4"
- range-separator="鑷�"
- start-placeholder="寮�濮嬫椂闂�"
- end-placeholder="缁撴潫鏃堕棿"
- placeholder="閫夋嫨鏃堕棿鑼冨洿"
- >
- </el-time-picker>
- </el-form-item>
- </el-form>
-
- <span slot="footer" class="dialog-footer">
- <el-button @click="modificationVisible = false">鍙� 娑�</el-button>
- <el-button type="primary" @click="modificationVisible = false"
- >纭� 瀹�</el-button
- >
- </span>
- </el-dialog>
</div>
</template>
@@ -522,8 +388,6 @@
title: "鏂板闂ㄨ瘖闅忚",
// 鏄惁鏄剧ず淇敼銆佹坊鍔犲脊鍑哄眰
addalteropen: false,
- // 淇敼鍙戦�佹椂闂村璇濇
- modificationVisible: false,
// 閮ㄩ棬鍚嶇О
deptName: undefined,
// 榛樿瀵嗙爜
@@ -532,9 +396,8 @@
dateRange: [],
// 宀椾綅閫夐」
postOptions: [],
- ruleForm: {
- type: [],
- },
+ // 瑙掕壊閫夐」
+ roleOptions: [],
dynamicTags: ["閫夐」涓�", "閫夐」浜�", "閫夐」涓�"], //閫夐」
inputVisible: false,
inputValue: "",
@@ -850,20 +713,12 @@
// });
},
/** 淇敼鎸夐挳鎿嶄綔 */
- // handleUpdate(row) {
- // this.reset();
- // const userId = row.userId || this.ids;
- // getUser(userId).then((response) => {
- // this.form = response.data;
- // this.postOptions = response.posts;
- // this.roleOptions = response.roles;
- // this.$set(this.form, "postIds", response.postIds);
- // this.$set(this.form, "roleIds", response.roleIds);
- // this.addalteropen = true;
- // this.title = "淇敼鐢ㄦ埛";
- // this.form.password = "";
- // });
- // },
+ handleUpdate(row) {
+ this.$router.push({
+ path: "/followvisit/particty",
+ query: { type: 1, },
+ });
+ },
/** 閲嶇疆瀵嗙爜鎸夐挳鎿嶄綔 */
handleResetPwd(row) {
this.$prompt('璇疯緭鍏�"' + row.userName + '"鐨勬柊瀵嗙爜', "鎻愮ず", {
@@ -915,58 +770,6 @@
})
.catch(() => {});
},
- // 鍏ㄩ儴鍋滄
- AllStop() {
- this.$modal
- .confirm("鏄惁鍋滄鍏ㄩ儴浠诲姟锛�")
- .then(function () {
- return console.log("鍋滄鎴愬姛");
- })
- .then(() => {
- this.getList();
- this.$modal.msgWarning("鍋滄鎴愬姛");
- })
- .catch(() => {});
- },
- // 鍏ㄩ儴寮�濮�
- AllStarted() {
- this.$modal
- .confirm("鏄惁寮�鍚叏閮ㄤ换鍔★紵")
- .then(function () {
- return console.log("寮�鍚垚鍔�");
- })
- .then(() => {
- this.getList();
- this.$modal.msgSuccess("寮�鍚垚鍔�");
- })
- .catch(() => {});
- },
- // 浠诲姟閲嶇疆
- TaskReset() {
- this.$modal
- .confirm("鏄惁閲嶇疆閫変腑鐨勪换鍔¢」锛�")
- .then(function () {
- return console.log("閫変腑鎴愬姛");
- })
- .then(() => {
- this.getList();
- this.$modal.msgSuccess("閲嶇疆鎴愬姛");
- })
- .catch(() => {});
- },
- // 璁剧疆鍙戦�佹椂闂�
- Sendtimesetting() {
- this.modificationVisible = true;
- },
- // 璺宠浆璇︽儏椤�
- Seedetails() {
- this.$router.push({
- path: "/followvisit/record/detailpage/",
- query: { id: "1" },
- });
- },
- // 瀵煎叆鎸夐挳
- toleadExport() {},
/** 瀵煎嚭鎸夐挳鎿嶄綔 */
handleExport() {
this.download(
@@ -989,7 +792,7 @@
}
.document {
- // width: 100px;
+ width: 100px;
height: 50px;
}
@@ -1072,24 +875,15 @@
}
.button-bb {
font-weight: 500;
- background-color: #2ba05c;
- padding: 5px;
- border-radius: 1px;
- color: #ffffff;
+ color: #2ba05c;
}
.button-xq {
font-weight: 500;
- background-color: #409eff;
- padding: 5px;
- border-radius: 1px;
- color: #ffffff;
+ color: #409eff;
}
.button-sc {
font-weight: 500;
- background-color: #dd302a;
- padding: 5px;
- border-radius: 1px;
- color: #ffffff;
+ color: #dd302a;
}
.button-zx {
background: #4fabe9;
@@ -1104,10 +898,9 @@
}
}
-// 閫夐」瀛椾綋鏀惧ぇ
-// ::v-deep.el-checkbox-group {
-// span {
-// font-size: 24px;
-// }
-// }
+::v-deep.el-checkbox-group {
+ span {
+ font-size: 24px;
+ }
+}
</style>
--
Gitblit v1.9.3