From 32d69fcb07f2325d9b93ce1a8b3716eec73ae70f Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期一, 08 四月 2024 18:24:07 +0800
Subject: [PATCH] 测试完成
---
src/views/followvisit/record/index.vue | 358 +++++++++++++----------------------------------------------
1 files changed, 78 insertions(+), 280 deletions(-)
diff --git a/src/views/followvisit/record/index.vue b/src/views/followvisit/record/index.vue
index 6d8904c..9159b14 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
@@ -184,11 +135,19 @@
<el-table-column type="selection" width="50" align="center" />
<el-table-column
label="搴忓彿"
+ fixed
align="center"
key="userId"
prop="userId"
/>
+ <el-table-column
+ label="濮撳悕"
+ fixed
+ align="center"
+ key="types"
+ prop="types"
+ />
<el-table-column
label="鐥呭巻鍙�"
align="center"
@@ -197,7 +156,6 @@
prop="userName"
width="120"
/>
- <el-table-column label="濮撳悕" align="center" key="types" prop="types" />
<el-table-column
label="骞撮緞"
align="center"
@@ -232,19 +190,7 @@
</template>
</el-table-column>
<el-table-column
- label="闅忚鐘舵��"
- align="center"
- key="topicnumber"
- prop="topicnumber"
- width="120"
- :show-overflow-tooltip="true"
- >
- <template slot-scope="scope">
- <div>鏈畬鎴�</div>
- </template>
- </el-table-column>
- <el-table-column
- label="闅忚鏂规"
+ label="瀹f暀鍐呭"
align="center"
key="topicnumberaa"
prop="topicnumberaa"
@@ -258,14 +204,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 +230,7 @@
</template>
</el-table-column>
<el-table-column
- label="闅忚鏃堕棿"
+ label="瀹f暀鏃堕棿"
sortable
align="center"
prop="createTime"
@@ -306,9 +252,22 @@
</template>
</el-table-column>
-
<el-table-column
- label="鎿嶄綔"
+ label="閫氱煡鐘舵��"
+ fixed="right"
+ align="center"
+ key="topicnumber"
+ prop="topicnumber"
+ width="120"
+ :show-overflow-tooltip="true"
+ >
+ <template slot-scope="scope">
+ <div>鏈畬鎴�</div>
+ </template>
+ </el-table-column>
+ <el-table-column
+ label="浠诲姟璇︽儏"
+ fixed="right"
align="center"
width="200"
class-name="small-padding fixed-width"
@@ -317,28 +276,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="handleDelete(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 +357,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 +397,6 @@
title: "鏂板闂ㄨ瘖闅忚",
// 鏄惁鏄剧ず淇敼銆佹坊鍔犲脊鍑哄眰
addalteropen: false,
- // 淇敼鍙戦�佹椂闂村璇濇
- modificationVisible: false,
// 閮ㄩ棬鍚嶇О
deptName: undefined,
// 榛樿瀵嗙爜
@@ -532,9 +405,8 @@
dateRange: [],
// 宀椾綅閫夐」
postOptions: [],
- ruleForm: {
- type: [],
- },
+ // 瑙掕壊閫夐」
+ roleOptions: [],
dynamicTags: ["閫夐」涓�", "閫夐」浜�", "閫夐」涓�"], //閫夐」
inputVisible: false,
inputValue: "",
@@ -840,30 +712,18 @@
},
/** 鏂板鎸夐挳鎿嶄綔 */
handleAdd() {
- this.reset();
- this.addalteropen = true;
- // getUser().then((response) => {
- // this.postOptions = response.posts;
- // this.roleOptions = response.roles;
- // this.title = "鏂板闂ㄨ瘖闅忚";
- // this.form.password = this.initPassword;
- // });
+ this.$router.push({
+ path: "/followvisit/particty",
+ query: { type: 1 },
+ });
},
/** 淇敼鎸夐挳鎿嶄綔 */
- // 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/record/detailpage/",
+ query: { id: "1" },
+ });
+ },
/** 閲嶇疆瀵嗙爜鎸夐挳鎿嶄綔 */
handleResetPwd(row) {
this.$prompt('璇疯緭鍏�"' + row.userName + '"鐨勬柊瀵嗙爜', "鎻愮ず", {
@@ -915,58 +775,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 +797,7 @@
}
.document {
- // width: 100px;
+ width: 100px;
height: 50px;
}
@@ -1072,24 +880,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 +903,9 @@
}
}
-// 閫夐」瀛椾綋鏀惧ぇ
-// ::v-deep.el-checkbox-group {
-// span {
-// font-size: 24px;
-// }
-// }
+::v-deep.el-checkbox-group {
+ span {
+ font-size: 24px;
+ }
+}
</style>
--
Gitblit v1.9.3