|
@@ -2,8 +2,8 @@
|
|
|
* @Author: 倚楼听风雨 18408246387@163.com
|
|
* @Author: 倚楼听风雨 18408246387@163.com
|
|
|
* @Date: 2022-11-16 17:16:17
|
|
* @Date: 2022-11-16 17:16:17
|
|
|
* @LastEditors: 倚楼听风雨 18408246387@163.com
|
|
* @LastEditors: 倚楼听风雨 18408246387@163.com
|
|
|
- * @LastEditTime: 2023-03-14 16:32:48
|
|
|
|
|
- * @FilePath: \log-server-web\src\view\logComputer\list_computer_distinct.vue
|
|
|
|
|
|
|
+ * @LastEditTime: 2023-03-30 16:20:57
|
|
|
|
|
+ * @FilePath: \log-server-web\src\view\rentComputer\rent_computer.vue
|
|
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
|
-->
|
|
-->
|
|
|
<template>
|
|
<template>
|
|
@@ -42,6 +42,7 @@
|
|
|
<el-option label="否" value="0" />
|
|
<el-option label="否" value="0" />
|
|
|
<el-option label="是" value="1" />
|
|
<el-option label="是" value="1" />
|
|
|
<el-option label="明日到期" value="2" />
|
|
<el-option label="明日到期" value="2" />
|
|
|
|
|
+ <el-option label="一周内到期" value="3" />
|
|
|
</el-select>
|
|
</el-select>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item label="使用人">
|
|
<el-form-item label="使用人">
|
|
@@ -105,20 +106,28 @@
|
|
|
@click="deletesMenu()"
|
|
@click="deletesMenu()"
|
|
|
>删除</el-button
|
|
>删除</el-button
|
|
|
>
|
|
>
|
|
|
- <!-- <el-popover v-model="deleteVisible" placement="top" width="160">
|
|
|
|
|
- <p>确定要删除吗?</p>
|
|
|
|
|
- <div style="text-align: right; margin-top: 8px;">
|
|
|
|
|
- <el-button size="small" type="primary" link @click="deleteVisible = false">取消</el-button>
|
|
|
|
|
- <el-button size="small" type="primary" @click="onDelete">确定</el-button>
|
|
|
|
|
- </div>
|
|
|
|
|
- <template #reference>
|
|
|
|
|
- <el-button icon="delete" size="small" :disabled="!apis.length" style="margin-left: 10px;" @click="deleteVisible = true">删除</el-button>
|
|
|
|
|
- </template>
|
|
|
|
|
- </el-popover> -->
|
|
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ icon="money"
|
|
|
|
|
+ size="small"
|
|
|
|
|
+ type="success"
|
|
|
|
|
+ :disabled="!apis.length"
|
|
|
|
|
+ style="margin-left: 10px"
|
|
|
|
|
+ @click="switchRenews()"
|
|
|
|
|
+ >批量续费</el-button
|
|
|
|
|
+ >
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="row center">
|
|
<div class="row center">
|
|
|
<el-tag size="large">电脑数量 : {{ computerNum }} </el-tag>
|
|
<el-tag size="large">电脑数量 : {{ computerNum }} </el-tag>
|
|
|
|
|
+ <el-tag
|
|
|
|
|
+ size="large"
|
|
|
|
|
+ type="danger"
|
|
|
|
|
+ hit
|
|
|
|
|
+ effect="dark"
|
|
|
|
|
+ style="margin-left: 20px"
|
|
|
|
|
+ v-if="tagExpire"
|
|
|
|
|
+ >有租机即将到期,请注意续费!!!</el-tag
|
|
|
|
|
+ >
|
|
|
</div>
|
|
</div>
|
|
|
<div class="gva-table-box">
|
|
<div class="gva-table-box">
|
|
|
<!-- <el-scrollbar height="550px"> -->
|
|
<!-- <el-scrollbar height="550px"> -->
|
|
@@ -205,24 +214,27 @@
|
|
|
>
|
|
>
|
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
|
<el-button
|
|
<el-button
|
|
|
- v-if="scope.row.is_expire == 2"
|
|
|
|
|
|
|
+ v-if="scope.row.is_expire == 3"
|
|
|
size="small"
|
|
size="small"
|
|
|
type="warning"
|
|
type="warning"
|
|
|
plain
|
|
plain
|
|
|
>即将到期</el-button
|
|
>即将到期</el-button
|
|
|
>
|
|
>
|
|
|
<el-button
|
|
<el-button
|
|
|
- v-if="scope.row.is_expire == 1"
|
|
|
|
|
|
|
+ v-else-if="scope.row.is_expire == 2"
|
|
|
size="small"
|
|
size="small"
|
|
|
- type="info"
|
|
|
|
|
|
|
+ type="danger"
|
|
|
plain
|
|
plain
|
|
|
- >到期未续</el-button
|
|
|
|
|
|
|
+ >明日到期</el-button
|
|
|
>
|
|
>
|
|
|
<el-button
|
|
<el-button
|
|
|
- v-if="scope.row.is_expire == 0"
|
|
|
|
|
|
|
+ v-else-if="scope.row.is_expire == 1"
|
|
|
size="small"
|
|
size="small"
|
|
|
- type="success"
|
|
|
|
|
|
|
+ type="info"
|
|
|
plain
|
|
plain
|
|
|
|
|
+ >到期未续</el-button
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-button v-else size="small" type="success" plain
|
|
|
>在租期中</el-button
|
|
>在租期中</el-button
|
|
|
>
|
|
>
|
|
|
</template>
|
|
</template>
|
|
@@ -270,11 +282,37 @@
|
|
|
/>
|
|
/>
|
|
|
<el-table-column
|
|
<el-table-column
|
|
|
align="left"
|
|
align="left"
|
|
|
- label="备注"
|
|
|
|
|
|
|
+ label="最近一次修改日志"
|
|
|
min-width="250"
|
|
min-width="250"
|
|
|
- prop="remark"
|
|
|
|
|
show-overflow-tooltip
|
|
show-overflow-tooltip
|
|
|
- />
|
|
|
|
|
|
|
+ >
|
|
|
|
|
+ <template #default="scope">
|
|
|
|
|
+ <el-row>
|
|
|
|
|
+ <el-col :span="20">
|
|
|
|
|
+ <span
|
|
|
|
|
+ style="
|
|
|
|
|
+ display: block;
|
|
|
|
|
+ max-width: 15em;
|
|
|
|
|
+ overflow: hidden;
|
|
|
|
|
+ white-space: nowrap;
|
|
|
|
|
+ text-overflow: ellipsis;
|
|
|
|
|
+ "
|
|
|
|
|
+ >{{ scope.row.remark }}</span
|
|
|
|
|
+ >
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="4">
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ size="small"
|
|
|
|
|
+ type="warning"
|
|
|
|
|
+ link
|
|
|
|
|
+ icon="tickets"
|
|
|
|
|
+ @click="switchLog(scope.row)"
|
|
|
|
|
+ >more</el-button
|
|
|
|
|
+ >
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ </el-row>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
<el-table-column
|
|
<el-table-column
|
|
|
align="left"
|
|
align="left"
|
|
|
label="更新时间"
|
|
label="更新时间"
|
|
@@ -512,6 +550,15 @@
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
|
+ <!--日志-->
|
|
|
|
|
+ <el-dialog v-model="visible_log" title="操作日志">
|
|
|
|
|
+ <el-table :data="logData">
|
|
|
|
|
+ <el-table-column property="create_time" label="操作时间" width="150" />
|
|
|
|
|
+ <el-table-column property="pc_num" label="租机编号" width="80" />
|
|
|
|
|
+ <el-table-column property="log" label="日志" />
|
|
|
|
|
+ </el-table>
|
|
|
|
|
+ </el-dialog>
|
|
|
|
|
+ <!--租机续费-->
|
|
|
<el-dialog title="租机续费" v-model="visible_renew">
|
|
<el-dialog title="租机续费" v-model="visible_renew">
|
|
|
<el-form :model="renewForm" size="default" label-width="100px">
|
|
<el-form :model="renewForm" size="default" label-width="100px">
|
|
|
<el-row>
|
|
<el-row>
|
|
@@ -565,6 +612,51 @@
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-form>
|
|
</el-form>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
|
+ <!-- 批量续费 -->
|
|
|
|
|
+ <el-dialog title="批量续费" v-model="visible_renews">
|
|
|
|
|
+ <p style="color: red; font-size: larger">严重警告:请勿随意操作!!!</p>
|
|
|
|
|
+ <span style="font-size: larger">续费天数:</span>
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ v-model="renewsDay"
|
|
|
|
|
+ size="small"
|
|
|
|
|
+ style="width: 30%"
|
|
|
|
|
+ placeholder="天数"
|
|
|
|
|
+ ></el-input>
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ style="margin-left: 20px"
|
|
|
|
|
+ size="small"
|
|
|
|
|
+ @click="calculateRenewEnd()"
|
|
|
|
|
+ >计算</el-button
|
|
|
|
|
+ >
|
|
|
|
|
+ <p style="font-size: larger">续费明细如下,请认真核对后再提交:</p>
|
|
|
|
|
+ <el-table size="small" height="400px" :data="renewDatas" border>
|
|
|
|
|
+ <el-table-column type="index" width="55" />
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ align="left"
|
|
|
|
|
+ label="编号"
|
|
|
|
|
+ min-width="70"
|
|
|
|
|
+ prop="pc_num"
|
|
|
|
|
+ />
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ align="left"
|
|
|
|
|
+ label="当前到期时间"
|
|
|
|
|
+ min-width="100"
|
|
|
|
|
+ prop="rent_end"
|
|
|
|
|
+ />
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ align="left"
|
|
|
|
|
+ label="续费后到期时间"
|
|
|
|
|
+ min-width="100"
|
|
|
|
|
+ prop="rent_end_new"
|
|
|
|
|
+ />
|
|
|
|
|
+ </el-table>
|
|
|
|
|
+ <el-divider />
|
|
|
|
|
+ <el-button size="small" @click="visible_renews = false">取消</el-button>
|
|
|
|
|
+ <el-button type="primary" size="small" @click="renewByBatch()"
|
|
|
|
|
+ >提交</el-button
|
|
|
|
|
+ >
|
|
|
|
|
+ </el-dialog>
|
|
|
<!--退租-->
|
|
<!--退租-->
|
|
|
<el-dialog title="租机退租" v-model="visible_rentingOut">
|
|
<el-dialog title="租机退租" v-model="visible_rentingOut">
|
|
|
<el-form
|
|
<el-form
|
|
@@ -747,15 +839,17 @@ import {
|
|
|
deleteRentComputerById,
|
|
deleteRentComputerById,
|
|
|
deleteRentComputerByIds,
|
|
deleteRentComputerByIds,
|
|
|
renewRentComputer,
|
|
renewRentComputer,
|
|
|
|
|
+ renewRentComputerByBatch,
|
|
|
replaceNumRentComputer,
|
|
replaceNumRentComputer,
|
|
|
rentingOutRentComputer,
|
|
rentingOutRentComputer,
|
|
|
offShelfRentComputer,
|
|
offShelfRentComputer,
|
|
|
|
|
+ queryRentComputerLogByPcNum,
|
|
|
} from "@/api/rentComputer";
|
|
} from "@/api/rentComputer";
|
|
|
import { getDirectorList } from "@/api/responsiblePerson";
|
|
import { getDirectorList } from "@/api/responsiblePerson";
|
|
|
import { useUserStore } from "@/pinia/modules/user";
|
|
import { useUserStore } from "@/pinia/modules/user";
|
|
|
import { toSQLLine } from "@/utils/stringFun";
|
|
import { toSQLLine } from "@/utils/stringFun";
|
|
|
import { ref } from "vue";
|
|
import { ref } from "vue";
|
|
|
-import { ElMessage, ElMessageBox } from "element-plus";
|
|
|
|
|
|
|
+import { ElMessage, ElMessageBox, ElLoading } from "element-plus";
|
|
|
import { formatDate } from "@/utils/format";
|
|
import { formatDate } from "@/utils/format";
|
|
|
import { downloadTemplate } from "@/api/excel";
|
|
import { downloadTemplate } from "@/api/excel";
|
|
|
import dayjs from "dayjs";
|
|
import dayjs from "dayjs";
|
|
@@ -798,9 +892,16 @@ const page = ref(1);
|
|
|
const total = ref(0);
|
|
const total = ref(0);
|
|
|
const pageSize = ref(20);
|
|
const pageSize = ref(20);
|
|
|
const tableData = ref([]);
|
|
const tableData = ref([]);
|
|
|
|
|
+const renewDatas = ref([]);
|
|
|
|
|
+const logData = ref([]);
|
|
|
const loading = ref(false);
|
|
const loading = ref(false);
|
|
|
-const searchInfo = ref({});
|
|
|
|
|
|
|
+const searchInfo = ref({
|
|
|
|
|
+ is_expire: -1,
|
|
|
|
|
+ is_off_shelf: -1,
|
|
|
|
|
+ director_name: "ALL",
|
|
|
|
|
+});
|
|
|
const computerNum = ref("");
|
|
const computerNum = ref("");
|
|
|
|
|
+const tagExpire = ref(false);
|
|
|
const shopOptions = ref();
|
|
const shopOptions = ref();
|
|
|
const directorOptions = ref();
|
|
const directorOptions = ref();
|
|
|
const setMealOptions = ref();
|
|
const setMealOptions = ref();
|
|
@@ -808,8 +909,10 @@ const defaultTime = ref(new Date(2000, 1, 1, 12, 0, 0));
|
|
|
const path = ref(import.meta.env.VITE_BASE_API);
|
|
const path = ref(import.meta.env.VITE_BASE_API);
|
|
|
const userStore = useUserStore();
|
|
const userStore = useUserStore();
|
|
|
const visible_renew = ref(false);
|
|
const visible_renew = ref(false);
|
|
|
|
|
+const visible_renews = ref(false);
|
|
|
const visible_rentingOut = ref(false);
|
|
const visible_rentingOut = ref(false);
|
|
|
const visible_replaceNum = ref(false);
|
|
const visible_replaceNum = ref(false);
|
|
|
|
|
+const visible_log = ref(false);
|
|
|
const rent_end = ref("");
|
|
const rent_end = ref("");
|
|
|
const renewForm = ref({
|
|
const renewForm = ref({
|
|
|
pc_num: "",
|
|
pc_num: "",
|
|
@@ -817,6 +920,7 @@ const renewForm = ref({
|
|
|
day: 0,
|
|
day: 0,
|
|
|
rent_renew: dayjs(new Date()).format("YYYY-MM-DD HH:mm:ss"),
|
|
rent_renew: dayjs(new Date()).format("YYYY-MM-DD HH:mm:ss"),
|
|
|
});
|
|
});
|
|
|
|
|
+const renewsDay = ref(0);
|
|
|
const rentingOutForm = ref({
|
|
const rentingOutForm = ref({
|
|
|
pc_num: "",
|
|
pc_num: "",
|
|
|
pc_id: 0,
|
|
pc_id: 0,
|
|
@@ -869,6 +973,29 @@ function calculateRenewDay(scope) {
|
|
|
)
|
|
)
|
|
|
);
|
|
);
|
|
|
}
|
|
}
|
|
|
|
|
+// 查询日志
|
|
|
|
|
+async function switchLog(rowData) {
|
|
|
|
|
+ const loadingLog = ElLoading.service({
|
|
|
|
|
+ lock: true,
|
|
|
|
|
+ text: "查询日志中...",
|
|
|
|
|
+ background: "rgba(0, 0, 0, 0.7)",
|
|
|
|
|
+ });
|
|
|
|
|
+ let logForm = {
|
|
|
|
|
+ pc_num: rowData.pc_num,
|
|
|
|
|
+ shop_id: Number(rowData.shop_id),
|
|
|
|
|
+ // set_meal_id: Number(rowData.set_meal_id),
|
|
|
|
|
+ };
|
|
|
|
|
+ // console.log(logForm);
|
|
|
|
|
+ const data = await queryRentComputerLogByPcNum(logForm);
|
|
|
|
|
+ if (data.code == 0) {
|
|
|
|
|
+ visible_log.value = true;
|
|
|
|
|
+ loadingLog.close();
|
|
|
|
|
+ // ElMessage.success(data.msg);
|
|
|
|
|
+ logData.value = data.data.list;
|
|
|
|
|
+ } else {
|
|
|
|
|
+ ElMessage.error(data.msg);
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
// 拉起续费弹窗
|
|
// 拉起续费弹窗
|
|
|
async function switchRenew(rowData) {
|
|
async function switchRenew(rowData) {
|
|
|
// console.log(rowData);
|
|
// console.log(rowData);
|
|
@@ -902,6 +1029,63 @@ async function renew(rowData) {
|
|
|
ElMessage.error(data.msg);
|
|
ElMessage.error(data.msg);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+// 拉起批量续费弹窗
|
|
|
|
|
+async function switchRenews(rowData) {
|
|
|
|
|
+ renewDatas.value = [];
|
|
|
|
|
+ if (visible_renews.value == false) {
|
|
|
|
|
+ visible_renews.value = true;
|
|
|
|
|
+ }
|
|
|
|
|
+ calculateRenewEnd();
|
|
|
|
|
+}
|
|
|
|
|
+// 计算批量续费到期时间
|
|
|
|
|
+function calculateRenewEnd() {
|
|
|
|
|
+ renewDatas.value = [];
|
|
|
|
|
+ //
|
|
|
|
|
+ apis.value.map((item) => {
|
|
|
|
|
+ // console.log(item);
|
|
|
|
|
+ let temp = {
|
|
|
|
|
+ pc_id: item.id,
|
|
|
|
|
+ pc_num: item.pc_num,
|
|
|
|
|
+ rent_end: item.rent_end,
|
|
|
|
|
+ rent_end_new: dayjs(new Date(item.rent_end))
|
|
|
|
|
+ .add(renewsDay.value, "day")
|
|
|
|
|
+ .format("YYYY-MM-DD HH:mm:ss"),
|
|
|
|
|
+ };
|
|
|
|
|
+ renewDatas.value.push(temp);
|
|
|
|
|
+ });
|
|
|
|
|
+}
|
|
|
|
|
+// 批量续费
|
|
|
|
|
+const renewByBatch = async () => {
|
|
|
|
|
+ const loadingByBatch = ElLoading.service({
|
|
|
|
|
+ lock: true,
|
|
|
|
|
+ text: "批量续费中,请勿操作界面...",
|
|
|
|
|
+ background: "rgba(0, 0, 0, 0.7)",
|
|
|
|
|
+ });
|
|
|
|
|
+ let rentMessage = [];
|
|
|
|
|
+ renewDatas.value.map((item) => {
|
|
|
|
|
+ let temp = {
|
|
|
|
|
+ pc_num: item.pc_num,
|
|
|
|
|
+ pc_id: item.pc_id,
|
|
|
|
|
+ rent_renew: item.rent_end_new,
|
|
|
|
|
+ day: Number(renewsDay.value),
|
|
|
|
|
+ };
|
|
|
|
|
+ rentMessage.push(temp);
|
|
|
|
|
+ });
|
|
|
|
|
+ let xxxx = {
|
|
|
|
|
+ rent_message: rentMessage,
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
|
|
+ const data = await renewRentComputerByBatch(xxxx);
|
|
|
|
|
+ if (data.code == 0) {
|
|
|
|
|
+ visible_renews.value = false;
|
|
|
|
|
+ loadingByBatch.close();
|
|
|
|
|
+ ElMessage.success(data.msg);
|
|
|
|
|
+ getTableData();
|
|
|
|
|
+ } else {
|
|
|
|
|
+ ElMessage.error(data.msg);
|
|
|
|
|
+ }
|
|
|
|
|
+};
|
|
|
|
|
+
|
|
|
// 拉起退租弹窗
|
|
// 拉起退租弹窗
|
|
|
async function switchRentingOut(rowData) {
|
|
async function switchRentingOut(rowData) {
|
|
|
cardList.value = [];
|
|
cardList.value = [];
|
|
@@ -1072,7 +1256,6 @@ const onSubmit = () => {
|
|
|
|
|
|
|
|
getTableData();
|
|
getTableData();
|
|
|
};
|
|
};
|
|
|
-
|
|
|
|
|
// 查询
|
|
// 查询
|
|
|
const getTableData = async () => {
|
|
const getTableData = async () => {
|
|
|
loading.value = true;
|
|
loading.value = true;
|
|
@@ -1086,12 +1269,37 @@ const getTableData = async () => {
|
|
|
total.value = table.data.total;
|
|
total.value = table.data.total;
|
|
|
page.value = table.data.page;
|
|
page.value = table.data.page;
|
|
|
pageSize.value = table.data.pageSize;
|
|
pageSize.value = table.data.pageSize;
|
|
|
- // getSpanArr(table.data.list);
|
|
|
|
|
getComputerNum();
|
|
getComputerNum();
|
|
|
getSelectList();
|
|
getSelectList();
|
|
|
}
|
|
}
|
|
|
|
|
+ await getIsExpireData();
|
|
|
loading.value = false;
|
|
loading.value = false;
|
|
|
};
|
|
};
|
|
|
|
|
+// 查询是否有到期
|
|
|
|
|
+const getIsExpireData = async () => {
|
|
|
|
|
+ loading.value = true;
|
|
|
|
|
+ tagExpire.value = false;
|
|
|
|
|
+ const table = await getRentComputerList({
|
|
|
|
|
+ page: 1,
|
|
|
|
|
+ pageSize: 999,
|
|
|
|
|
+ ...searchInfo.value,
|
|
|
|
|
+ });
|
|
|
|
|
+ // console.log(table.data.list)
|
|
|
|
|
+ if (table.code === 0 && table.data.list != null) {
|
|
|
|
|
+ for (const item of table.data.list) {
|
|
|
|
|
+ if (item.is_expire >= 2) {
|
|
|
|
|
+ ElMessageBox.alert("有租机即将到期,请注意续费!!!", "警告", {
|
|
|
|
|
+ confirmButtonText: "好的",
|
|
|
|
|
+ type: "warning",
|
|
|
|
|
+ callback: (action) => {
|
|
|
|
|
+ tagExpire.value = true;
|
|
|
|
|
+ },
|
|
|
|
|
+ });
|
|
|
|
|
+ break;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+};
|
|
|
|
|
|
|
|
//获取下拉框list
|
|
//获取下拉框list
|
|
|
const getSelectList = async () => {
|
|
const getSelectList = async () => {
|
|
@@ -1132,7 +1340,7 @@ const getSelectList = async () => {
|
|
|
const directorRes = await getDirectorList();
|
|
const directorRes = await getDirectorList();
|
|
|
let directorList = [
|
|
let directorList = [
|
|
|
{ value: "ALL", label: "所有机器" },
|
|
{ value: "ALL", label: "所有机器" },
|
|
|
- { value: "", label: "备用" },
|
|
|
|
|
|
|
+ // { value: "", label: "备用" },
|
|
|
];
|
|
];
|
|
|
const data3 = directorRes.data.list;
|
|
const data3 = directorRes.data.list;
|
|
|
data3.forEach((e) => {
|
|
data3.forEach((e) => {
|
|
@@ -1155,8 +1363,8 @@ const linkTd = async (row) => {
|
|
|
let todesk_password = row.todesk_password;
|
|
let todesk_password = row.todesk_password;
|
|
|
todesk_id = todesk_id.replace(/\s*/g, "");
|
|
todesk_id = todesk_id.replace(/\s*/g, "");
|
|
|
todesk_password = todesk_password.replace(/\s*/g, "");
|
|
todesk_password = todesk_password.replace(/\s*/g, "");
|
|
|
- console.log(todesk_id);
|
|
|
|
|
- console.log(todesk_password);
|
|
|
|
|
|
|
+ // console.log(todesk_id);
|
|
|
|
|
+ // console.log(todesk_password);
|
|
|
if (todesk_id == "" || todesk_password == "") {
|
|
if (todesk_id == "" || todesk_password == "") {
|
|
|
ElMessage({
|
|
ElMessage({
|
|
|
type: "error",
|
|
type: "error",
|
|
@@ -1302,6 +1510,7 @@ const deletesMenu = async () => {
|
|
|
});
|
|
});
|
|
|
});
|
|
});
|
|
|
};
|
|
};
|
|
|
|
|
+
|
|
|
// 删除菜单
|
|
// 删除菜单
|
|
|
const deleteMenu = async (id) => {
|
|
const deleteMenu = async (id) => {
|
|
|
ElMessageBox.confirm("确定删除?", "提示", {
|
|
ElMessageBox.confirm("确定删除?", "提示", {
|
|
@@ -1310,7 +1519,7 @@ const deleteMenu = async (id) => {
|
|
|
type: "warning",
|
|
type: "warning",
|
|
|
})
|
|
})
|
|
|
.then(async () => {
|
|
.then(async () => {
|
|
|
- console.log(id);
|
|
|
|
|
|
|
+ // console.log(id);
|
|
|
|
|
|
|
|
const res = await deleteRentComputerById({ id });
|
|
const res = await deleteRentComputerById({ id });
|
|
|
if (res.code === 0) {
|
|
if (res.code === 0) {
|