From 43d86830f4696c3ba2250a961d26377e1ff6cc32 Mon Sep 17 00:00:00 2001
From: zhoushihao <zsh19950802@163.com>
Date: 星期三, 17 十二月 2025 10:39:43 +0800
Subject: [PATCH] 1、 查询是否除膜优化
---
UI-Project/src/views/User/userlist.vue | 866 ++++++++++++++++++++++++++++++++++----------------------
1 files changed, 524 insertions(+), 342 deletions(-)
diff --git a/UI-Project/src/views/User/userlist.vue b/UI-Project/src/views/User/userlist.vue
index aa8c386..db9da3f 100644
--- a/UI-Project/src/views/User/userlist.vue
+++ b/UI-Project/src/views/User/userlist.vue
@@ -1,387 +1,569 @@
<script setup>
-import {Search} from "@element-plus/icons-vue";
-import {reactive} from "vue";
-import {useRouter} from "vue-router"
-const router = useRouter()
-const add = ref(false)
-const adda = ref(false)
-
-import request from "@/utils/request"
-import { ref, onMounted } from "vue";
-// import { ref } from 'vue'
-import { ElMessage, ElMessageBox } from 'element-plus'
-// import LanguageMixin from './lang/LanguageMixin'
-const selectedProjectNoa = ref(''); // 褰撳墠閫変腑鐨勮鑹�
-// const options = ref<any[]>([]); // 涓嬫媺閫夐」鍒楄〃
- const userName = ref('');
- const password = ref('');
-
-const tableData = ref([])
-const slot = ref('')
-request.post("/loadGlass/sys/user/listByUserName",{
- key: ''
-}).then((res) => {
- if (res.code == 200) {
- console.log(res.data);
- tableData.value = res.data
- } else {
- ElMessage.warning(res.msg)
-
- }
- });
-// 閲嶇疆瀵嗙爜
- const open = async(row) => {
- try {
- const confirmResult = await ElMessageBox.confirm(
- '鏄惁閲嶇疆鐢ㄦ埛瀵嗙爜?',
- '鎻愮ず',
- {
- confirmButtonText: '鏄�',
- cancelButtonText: '鍙栨秷',
- type: 'warning',
- }
- );
- if (confirmResult === 'confirm') {
- // 鐢ㄦ埛鐐瑰嚮浜嗏�滄槸鈥濓紝鐜板湪璋冪敤鍒犻櫎鎺ュ彛
- var url="/loadGlass/sys/user/resetPassword?userId="+row.id;
- console.log(url);
- const response = await request.post(url, {
- esdId: row.esdId
- })
- if (response.code === 200) {
- ElMessage.success(response.message);
- } else {
- // 鍒犻櫎澶辫触锛屾偍鍙互澶勭悊閿欒鎴栨樉绀洪敊璇俊鎭粰鐢ㄦ埛
- ElMessage.error(response.msg);
- // alert('鍒犻櫎澶辫触锛�' + deleteResponse.message);
- }
- }
- } catch (error) {
- // 澶勭悊鍙兘鍑虹幇鐨勯敊璇紝姣斿 ElMessageBox 鎶涘嚭鐨勫紓甯哥瓑
- console.error('鍙戠敓閿欒:', error);
- }
-};
-const titleSelectJsona = ref({
- processType: [],
-
-})
-// const handleInputChangea = async (value: string) => {
-// if (value) {
-// await fetchOptionsa(value);
-// } else {
-// options.value = []; // 娓呯┖閫夐」鍒楄〃
-// }
-// };
-onMounted(() => {
- // 鍦ㄧ粍浠舵寕杞藉悗璋冪敤 fetchOptions('') 鏉ュ姞杞藉垵濮嬫暟鎹紙濡傛灉闇�瑕侊級
- fetchOptionsa('');
-});
- // 瑙掕壊涓嬫媺閫�
- const fetchOptionsa = async () => {
- try {
- // 鍙戦�佽姹傚埌鍚庣鎺ュ彛
- const response = await request.post('/loadGlass/sys/role/queryRole',{
- key: ''
-});
- if (response.code == 200) {
- titleSelectJsona.value.processTypea = response.data;
- console.log(response.data);
-
- } else {
- ElMessage.warning(response.data);
- }
- } catch (error) {
- console.error('Error fetching options:', error);
- }
-};
-// 娣诲姞
-const getTableRow = async () => {
+import { Search, Lock } from "@element-plus/icons-vue"; // 鏂板Lock鍥炬爣瀵煎叆
+import { reactive, ref, onMounted } from "vue";
+import { useRouter } from "vue-router";
+const router = useRouter();
+import request from "@/utils/request";
+import { ElMessage, ElMessageBox } from "element-plus";
+import { useI18n } from "vue-i18n";
+const { t } = useI18n();
+const selectedProjectNoa = ref(null);
+const userName = ref("");
+const password = ref("");
+const confirmPassword = ref("");
+const editPassword = ref("");
+const editConfirmPassword = ref("");
+const tableData = ref([]);
+const slot = ref("");
+const add = ref(false);
+const adda = ref(false);
+let language = ref(localStorage.getItem("lang") || "zh");
+// 鑾峰彇鐢ㄦ埛鍒楄〃
+const listByUserName = async () => {
try {
- const response = await request.post('/loadGlass/sys/user/saveUser', {
- userName: userName.value,
- password: password.value,
- name: selectedProjectNoa.value,
- });
-
- if (response.code == 200) {
- // 缁戝畾鎴愬姛锛屽鐞嗛�昏緫
- ElMessage.success(response.message);
- add.value = false;
- tableData.value = response.data;
+ const response = await request.post("/loadGlass/sys/user/listByUserName", {
+ key: "",
+ });
+ if (response.code === 200) {
+ tableData.value = response.data;
} else {
- // 璇锋眰澶辫触锛屾樉绀洪敊璇秷鎭�
- ElMessage.error(response.msg);
+ ElMessage.warning(response.msg);
}
} catch (error) {
- // 澶勭悊閿欒
- console.error(error);
+ ElMessage.error( );
}
};
-// 鍒犻櫎
- const opena = async(row) => {
- try {
- const confirmResult = await ElMessageBox.confirm(
- '鏄惁鍒犻櫎璇ョ敤鎴�?',
- '鎻愮ず',
- {
- confirmButtonText: '鏄�',
- cancelButtonText: '鍙栨秷',
- type: 'warning',
- }
- );
- if (confirmResult === 'confirm') {
- // 鐢ㄦ埛鐐瑰嚮浜嗏�滄槸鈥濓紝鐜板湪璋冪敤鍒犻櫎鎺ュ彛
- const response = await request.post("/cacheGlass/edgStorageCage/edgReportStatus", {
- glassId: row.GlassId,
- controlsId: 301
- })
+// 閲嶇疆瀵嗙爜
+const open = async (row) => {
+ try {
+ const confirmResult = await ElMessageBox.confirm(
+ t("productStock.repassword"),
+ t("productStock.prompt"),
+ {
+ confirmButtonText: t("productStock.yes"),
+ cancelButtonText: t("productStock.cancel"),
+ type: "warning",
+ }
+ );
+ if (confirmResult === "confirm") {
+ const url = "/loadGlass/sys/user/resetPassword?userId=" + row.id;
+ const response = await request.post(url, {
+ esdId: row.esdId,
+ });
+ if (response.code === 200) {
+ ElMessage.success(response.message);
+ } else {
+ ElMessage.error(response.msg);
+ }
+ }
+ } catch (error) {
+ if (error !== "cancel") { // 鎺掗櫎鍙栨秷鎿嶄綔鐨勯敊璇�
+ ElMessage.error( );
+ console.error("閲嶇疆瀵嗙爜澶辫触锛�", error);
+ }
+ }
+};
+const titleSelectJsona = ref({
+ processTypea: [],
+});
+// 鑾峰彇瑙掕壊鍒楄〃
+const fetchOptionsa = async () => {
+ try {
+ const response = await request.post("/loadGlass/sys/role/queryRole", {
+ key: "",
+ });
+ if (response.code === 200) {
+ titleSelectJsona.value.processTypea = response.data;
+ } else {
+ ElMessage.warning(response.msg);
+ }
+ } catch (error) {
+ ElMessage.error( );
+ }
+};
+// 澶勭悊缂栬緫鎸夐挳鐐瑰嚮
+function handleEdit(row) {
+ userName.value = row.userName;
+ editPassword.value = "";
+ editConfirmPassword.value = "";
+ if (row.roleList && row.roleList.length > 0) {
+ const firstRole = row.roleList[0];
+ selectedProjectNoa.value = firstRole.id;
+ }
+ adda.value = true;
+ window.localStorage.setItem("id", row.id);
+}
+// 鍏抽棴娣诲姞寮圭獥
+function closeDialog() {
+ add.value = false;
+ userName.value = "";
+ password.value = "";
+ confirmPassword.value = "";
+ selectedProjectNoa.value = "";
+}
+// 鍏抽棴缂栬緫寮圭獥
+function closeDialoga() {
+ adda.value = false;
+ userName.value = "";
+ editPassword.value = "";
+ editConfirmPassword.value = "";
+ selectedProjectNoa.value = "";
+}
+// 娣诲姞鐢ㄦ埛
+const getTableRow = async () => {
+ // 楠岃瘉鐢ㄦ埛鍚�
+ if (!userName.value) {
+ ElMessage.error(t("productStock.inusername"));
+ return;
+ }
+ // 楠岃瘉瑙掕壊
+ if (!selectedProjectNoa.value) {
+ ElMessage.error(t("productStock.inrole"));
+ return;
+ }
+ // 楠岃瘉瀵嗙爜
+ if (!password.value) {
+ ElMessage.error(t("productStock.inpassword"));
+ return;
+ }
+ // 楠岃瘉纭瀵嗙爜
+ if (!confirmPassword.value) {
+ ElMessage.error(t("productStock.inconfirmpassword"));
+ return;
+ }
+ // 楠岃瘉瀵嗙爜涓�鑷存��
+ if (password.value !== confirmPassword.value) {
+ ElMessage.error(t("productStock.passwordNotMatch"));
+ return;
+ }
+ try {
+ const response = await request.post("/loadGlass/sys/user/saveUser", {
+ userName: userName.value,
+ nickName: userName.value,
+ password: password.value,
+ roleList: [
+ {
+ id: selectedProjectNoa.value,
+ },
+ ],
+ });
if (response.code === 200) {
ElMessage.success(response.message);
- } else {
- // 鍒犻櫎澶辫触锛屾偍鍙互澶勭悊閿欒鎴栨樉绀洪敊璇俊鎭粰鐢ㄦ埛
- ElMessage.error(response.msg);
- // alert('鍒犻櫎澶辫触锛�' + deleteResponse.message);
- }
- }
- } catch (error) {
- // 澶勭悊鍙兘鍑虹幇鐨勯敊璇紝姣斿 ElMessageBox 鎶涘嚭鐨勫紓甯哥瓑
- console.error('鍙戠敓閿欒:', error);
- }
-};
-
-const gridOptions = reactive({
- border: "full",//琛ㄦ牸鍔犺竟妗�
- keepSource: true,//淇濇寔婧愭暟鎹�
- align: 'center',//鏂囧瓧灞呬腑
- stripe:true,//鏂戦┈绾�
- rowConfig: {isCurrent: true, isHover: true,height: 50},//榧犳爣绉诲姩鎴栭�夋嫨楂樹寒
- id: 'OrderList',
- showFooter: true,//鏄剧ず鑴�
- printConfig: {},
- importConfig: {},
- exportConfig: {},
- scrollY:{ enabled: true },//寮�鍚櫄鎷熸粴鍔�
- showOverflow:true,
- columnConfig: {
- resizable: true,
- useKey: true
- },
- filterConfig: { //绛涢�夐厤缃」
- remote: true
- },
- customConfig: {
- storage: true
- },
- editConfig: {
- trigger: 'click',
- mode: 'row',
- showStatus: true
- },
- data: [
- {
- 'id': '1',
- 'long': '5',
- 'wide': '1005',
- 'thick': '183.6',
+ closeDialog(); // 鍏抽棴寮圭獥骞舵竻绌鸿〃鍗�
+ listByUserName(); // 鍒锋柊鍒楄〃
+ } else {
+ ElMessage.error(response.message);
}
- ]
-
-})
+ } catch (error) {
+ ElMessage.error( );
+ }
+};
+// 缂栬緫鐢ㄦ埛
+const getTableRowa = async () => {
+ // 楠岃瘉鐢ㄦ埛鍚�
+ if (!userName.value) {
+ ElMessage.error(t("productStock.inusername"));
+ return;
+ }
+ // 楠岃瘉瑙掕壊
+ if (!selectedProjectNoa.value) {
+ ElMessage.error(t("productStock.inrole"));
+ return;
+ }
+ if (editPassword.value || editConfirmPassword.value) {
+ if (!editPassword.value) {
+ ElMessage.error(t("productStock.inpassword"));
+ return;
+ }
+ if (!editConfirmPassword.value) {
+ ElMessage.error(t("productStock.inconfirmpassword"));
+ return;
+ }
+ if (editPassword.value !== editConfirmPassword.value) {
+ ElMessage.error(t("productStock.passwordNotMatch"));
+ return;
+ }
+ }
+ let id = window.localStorage.getItem("id");
+ if (!id) {
+ ElMessage.error(t("productStock.userIdError"));
+ return;
+ }
+ try {
+ const requestData = {
+ id: id,
+ userName: userName.value,
+ roleList: [
+ {
+ id: selectedProjectNoa.value,
+ },
+ ],
+ };
+ if (editPassword.value) {
+ requestData.password = editPassword.value;
+ }
+ const response = await request.post("/loadGlass/sys/user/updateUser", requestData);
+ if (response.code === 200) {
+ ElMessage.success(response.message);
+ closeDialoga();
+ listByUserName();
+ } else {
+ ElMessage.error(response.message);
+ }
+ } catch (error) {
+ ElMessage.error( );
+ }
+};
+// 鍒犻櫎鐢ㄦ埛
+const opena = async (row) => {
+ try {
+ const confirmResult = await ElMessageBox.confirm(
+ t("productStock.deusername"),
+ t("productStock.prompt"),
+ {
+ confirmButtonText: t("productStock.yes"),
+ cancelButtonText: t("productStock.cancel"),
+ type: "warning",
+ }
+ );
+ if (confirmResult === "confirm") {
+ const response = await request.post("/loadGlass/sys/user/deleteUser", [row.id]);
+ if (response.code === 200) {
+ ElMessage.success(response.message);
+ listByUserName(); // 鍒锋柊鍒楄〃
+ } else {
+ ElMessage.error(response.msg);
+ }
+ }
+ } catch (error) {
+ if (error !== "cancel") {
+ ElMessage.error( );
+ }
+ }
+};
+onMounted(() => {
+ fetchOptionsa();
+ listByUserName();
+});
</script>
-
<template>
<div>
- <el-button type="primary" style="margin-top: 10px;margin-left: 10px;" size="mini" id="searchButton" @click="add = true">娣诲姞鐢ㄦ埛</el-button>
- <el-card style="flex: 1;margin-left: 10px;margin-top: 20px;" v-loading="loading">
- <div style="width: 98%; height: calc(100% - 35px); overflow-y: auto;">
- <el-table height="240" ref="table"
- @selection-change="handleSelectionChange"
- :data="tableData" :header-cell-style="{background:'#F2F3F5 ',color:'#1D2129'}">
- <el-table-column prop="userName" align="center" label="鐢ㄦ埛鍚�" min-width="180" />
- <el-table-column align="center" label="瑙掕壊" min-width="80">
- <template #default="scope">
- <el-tag v-for="role in scope.row.roleList">
- {{role.name}}
- </el-tag>
- </template>
- </el-table-column>
- <el-table-column fixed="right" label="鎿嶄綔" align="center" width="200">
+ <el-button
+ type="primary"
+ style="margin-top: 10px; margin-left: 10px"
+ id="searchButton"
+ @click="add = true"
+ >
+ {{ $t("productStock.addusers") }}
+ </el-button>
+ <el-card style="flex: 1; margin-left: 10px; margin-top: 20px">
+ <div style="width: 98%; height: calc(100% - 35px); overflow-y: auto">
+ <el-table
+ height="750"
+ ref="table"
+ :data="tableData"
+ :header-cell-style="{ background: '#F2F3F5 ', color: '#1D2129' }"
+ >
+ <el-table-column
+ prop="userName"
+ align="center"
+ :label="$t('productStock.username')"
+ min-width="180"
+ />
+ <el-table-column
+ align="center"
+ :label="$t('productStock.role')"
+ min-width="80"
+ >
<template #default="scope">
- <el-button size="mini" type="text" plain @click="open(scope.row)">閲嶇疆瀵嗙爜</el-button>
- <el-button size="mini" type="text" plain @click="adda = true">缂栬緫</el-button>
- <el-button size="mini" type="text" plain @click="opena(scope.row)">鍒犻櫎</el-button>
+ <el-tag v-for="role in scope.row.roleList" :key="role.id">
+ {{ role.name }}
+ </el-tag>
</template>
- </el-table-column>
+ </el-table-column>
+ <el-table-column
+ fixed="right"
+ :label="$t('productStock.operate')"
+ align="center"
+ width="270"
+ >
+ <template #default="scope">
+ <el-button
+ type="text"
+ plain
+ @click="open(scope.row)"
+ >
+ {{ $t('productStock.resetpassword') }}
+ </el-button>
+ <el-button
+ type="text"
+ plain
+ @click="handleEdit(scope.row)"
+ >
+ {{ $t('productStock.exit') }}
+ </el-button>
+ <el-button
+ type="text"
+ plain
+ @click="opena(scope.row)"
+ >
+ {{ $t('productStock.delete') }}
+ </el-button>
+ </template>
+ </el-table-column>
</el-table>
</div>
</el-card>
</div>
- <el-dialog v-model="add" top="23vh" width="37%" title="娣诲姞鐢ㄦ埛" >
- <div style="margin-left: -50px;margin-top: 10px;margin-bottom: 10px;">
- <el-form size="mini" label-width="150px">
- <el-form label-width="100px" label-position="right">
- <el-row style="margin-top: -15px;margin-bottom: -2px;">
- <el-col :span="6">
- <div id="dt" style="font-size: 15px;">
- <div>
- <el-form-item label="鐢ㄦ埛鍚嶏細" :required="true" style="width: 25vw">
- <el-input v-model="userName" autocomplete="off" />
- </el-form-item></div></div>
- </el-col>
- </el-row>
- <el-row style="margin-top: 10px;">
- <el-col :span="6">
- <div id="dt" style="font-size: 15px;">
- <div>
- <el-form-item label="瑙掕壊锛�" :required="true" style="width: 25vw;">
- <el-select
- v-model="selectedProjectNoa"
- filterable
- clearable
- placeholder="璇烽�夋嫨瑙掕壊"
- style="width: 330px"
- >
- <el-option
- v-for="item in titleSelectJsona['processTypea']"
- :key="item.id"
- :label="item.name"
- :value="item.name"
- />
- </el-select>
- </el-form-item></div></div>
- </el-col>
- </el-row>
- <el-row style="margin-top: 10px;">
- <el-col :span="6">
- <div id="dt" style="font-size: 15px;">
- <div>
- <el-form-item label="瀵嗙爜锛�" :required="true" style="width: 25vw;">
- <el-input style="width: 340px;"
- v-model="password"
- autocomplete="off"
- :prefix-icon="Lock"
- show-password/>
- </el-form-item></div></div>
- </el-col>
- </el-row>
+ <!-- 娣诲姞鐢ㄦ埛寮圭獥 -->
+ <el-dialog
+ v-model="add"
+ top="23vh"
+ width="37%"
+ :title="$t('productStock.addusers')"
+ @close="closeDialog"
+ >
+ <div style="margin-left: -50px; margin-top: 10px; margin-bottom: 10px">
+ <el-form label-width="150px">
+ <el-form label-width="105px" label-position="right">
+ <el-row style="margin-top: -15px; margin-bottom: -2px">
+ <el-col :span="6">
+ <div id="dt" style="font-size: 15px">
+ <el-form-item
+ :label="$t('productStock.usernamea')"
+ :required="true"
+ style="width: 25vw"
+ >
+ <el-input
+ v-model="userName"
+ autocomplete="off"
+ style="width: 350px"
+ :placeholder="$t('productStock.inusername')"
+ />
+ </el-form-item>
+ </div>
+ </el-col>
+ </el-row>
+ <el-row style="margin-top: 10px">
+ <el-col :span="6">
+ <div id="dt" style="font-size: 15px">
+ <el-form-item
+ :label="$t('productStock.rolea')"
+ :required="true"
+ style="width: 25vw"
+ >
+ <el-select
+ v-model="selectedProjectNoa"
+ filterable
+ clearable
+ :placeholder="$t('productStock.inrole')"
+ style="width: 350px"
+ >
+ <el-option
+ v-for="item in titleSelectJsona.processTypea"
+ :key="item.id"
+ :label="item.name"
+ :value="item.id"
+ />
+ </el-select>
+ </el-form-item>
+ </div>
+ </el-col>
+ </el-row>
+ <el-row style="margin-top: 10px">
+ <el-col :span="6">
+ <div id="dt" style="font-size: 15px">
+ <el-form-item
+ :label="$t('productStock.password')"
+ :required="true"
+ style="width: 25vw"
+ >
+ <el-input
+ v-model="password"
+ :placeholder="$t('productStock.inpassword')"
+ autocomplete="off"
+ :prefix-icon="Lock"
+ show-password
+ style="width: 350px"
+ />
+ </el-form-item>
+ </div>
+ </el-col>
+ </el-row>
+ <!-- 鏂板纭瀵嗙爜 -->
+ <el-row style="margin-top: 10px">
+ <el-col :span="6">
+ <div id="dt" style="font-size: 15px">
+ <el-form-item
+ :label="$t('productStock.confirmpassword')"
+ :required="true"
+ style="width: 25vw"
+ >
+ <el-input
+ v-model="confirmPassword"
+ :placeholder="$t('productStock.inconfirmpassword')"
+ autocomplete="off"
+ :prefix-icon="Lock"
+ show-password
+ style="width: 350px"
+ />
+ </el-form-item>
+ </div>
+ </el-col>
+ </el-row>
</el-form>
- </el-form>
- </div>
+ </el-form>
+ </div>
<template #footer>
<div id="dialog-footer">
<el-button type="primary" @click="getTableRow">
- 纭
+ {{ $t('productStock.sure') }}
</el-button>
- <el-button @click="add = false">鍙栨秷</el-button>
+ <el-button @click="closeDialog">
+ {{ $t('productStock.cancel') }}
+ </el-button>
</div>
</template>
- </el-dialog>
- <el-dialog v-model="adda" top="23vh" width="37%" title="淇敼鐢ㄦ埛" >
- <div style="margin-left: -50px;margin-top: 10px;margin-bottom: 10px;">
- <el-form size="mini" label-width="150px">
- <el-form label-width="100px" label-position="right">
- <el-row style="margin-top: -15px;margin-bottom: -2px;">
- <el-col :span="6">
- <div id="dt" style="font-size: 15px;">
- <div>
- <el-form-item label="鐢ㄦ埛鍚嶏細" :required="true" style="width: 25vw">
- <el-input autocomplete="off" />
- </el-form-item></div></div>
- </el-col>
- </el-row>
- <el-row style="margin-top: 10px;">
- <el-col :span="6">
- <div id="dt" style="font-size: 15px;">
- <div>
- <el-form-item label="瑙掕壊锛�" :required="true" style="width: 25vw;">
- <el-select
- v-model="value"
- clearable
- placeholder="璇烽�夋嫨瑙掕壊"
- style="width: 330px"
- >
- <el-option
- v-for="item in options"
- :key="item.value"
- :label="item.label"
- :value="item.value"
- />
- </el-select>
- </el-form-item></div></div>
- </el-col>
- </el-row>
- <el-row style="margin-top: 10px;">
- <el-col :span="6">
- <div id="dt" style="font-size: 15px;">
- <div>
- <el-form-item label="閭锛�" :required="true" style="width: 25vw;">
- <el-input autocomplete="off" />
- </el-form-item></div></div>
- </el-col>
- </el-row>
- <el-row style="margin-top: 10px;">
- <el-col :span="6">
- <div id="dt" style="font-size: 15px;">
- <div>
- <el-form-item label="鏄惁绂佺敤" :required="true" style="width: 25vw;">
- <el-select
- v-model="value"
- clearable
- placeholder="璇烽�夋嫨鏄惁绂佺敤"
- style="width: 330px"
- >
- <el-option
- v-for="item in optionsa"
- :key="item.valuea"
- :label="item.labela"
- :value="item.valuea"
- />
- </el-select>
- </el-form-item></div></div>
- </el-col>
- </el-row>
- <el-row style="margin-top: 10px;">
- <el-col :span="6">
- <div id="dt" style="font-size: 15px;">
- <div>
- <el-form-item label="瀵嗙爜锛�" :required="true" style="width: 25vw;">
- <el-input autocomplete="off" />
- </el-form-item></div></div>
- </el-col>
- </el-row>
+ </el-dialog>
+ <!-- 缂栬緫鐢ㄦ埛寮圭獥 -->
+ <el-dialog
+ v-model="adda"
+ top="23vh"
+ width="37%"
+ :title="$t('productStock.reusername')"
+ @close="closeDialoga"
+ >
+ <div style="margin-left: -50px; margin-top: 10px; margin-bottom: 10px">
+ <el-form ref="formRef" label-width="150px">
+ <el-form label-width="105px" label-position="right">
+ <el-row style="margin-top: -15px; margin-bottom: -2px">
+ <el-col :span="6">
+ <div id="dt" style="font-size: 15px">
+ <el-form-item
+ :label="$t('productStock.usernamea')"
+ :required="true"
+ style="width: 25vw"
+ >
+ <el-input
+ v-model="userName"
+ :placeholder="$t('productStock.inusername')"
+ autocomplete="off"
+ style="width: 350px"
+ />
+ </el-form-item>
+ </div>
+ </el-col>
+ </el-row>
+ <el-row style="margin-top: 10px">
+ <el-col :span="6">
+ <div id="dt" style="font-size: 15px">
+ <el-form-item
+ :label="$t('productStock.rolea')"
+ :required="true"
+ style="width: 25vw"
+ >
+ <el-select
+ v-model="selectedProjectNoa"
+ filterable
+ clearable
+ :placeholder="$t('productStock.inrole')"
+ style="width: 350px"
+ >
+ <el-option
+ v-for="item in titleSelectJsona.processTypea"
+ :key="item.id"
+ :label="item.name"
+ :value="item.id"
+ />
+ </el-select>
+ </el-form-item>
+ </div>
+ </el-col>
+ </el-row>
+ <!-- 鏂板缂栬緫瀵嗙爜 -->
+ <el-row style="margin-top: 10px">
+ <el-col :span="6">
+ <div id="dt" style="font-size: 15px">
+ <el-form-item
+ :label="$t('productStock.password')"
+ :required="false"
+ style="width: 25vw"
+ >
+ <el-input
+ v-model="editPassword"
+ :placeholder="$t('productStock.inputNewPassword')"
+ autocomplete="off"
+ :prefix-icon="Lock"
+ show-password
+ style="width: 350px"
+ />
+ </el-form-item>
+ </div>
+ </el-col>
+ </el-row>
+ <!-- 鏂板缂栬緫纭瀵嗙爜 -->
+ <el-row style="margin-top: 10px">
+ <el-col :span="6">
+ <div id="dt" style="font-size: 15px">
+ <el-form-item
+ :label="$t('productStock.confirmpassword')"
+ :required="false"
+ style="width: 25vw"
+ >
+ <el-input
+ v-model="editConfirmPassword"
+ :placeholder="$t('productStock.inconfirmpassword')"
+ autocomplete="off"
+ :prefix-icon="Lock"
+ show-password
+ style="width: 350px"
+ />
+ </el-form-item>
+ </div>
+ </el-col>
+ </el-row>
</el-form>
- </el-form>
- </div>
+ </el-form>
+ </div>
<template #footer>
<div id="dialog-footer">
- <el-button type="primary" @click="getTableRow('edit')">
- 纭
+ <el-button type="primary" @click="getTableRowa">
+ {{ $t('productStock.sure') }}
</el-button>
- <el-button @click="adda = false">鍙栨秷</el-button>
+ <el-button @click="closeDialoga">
+ {{ $t('productStock.cancel') }}
+ </el-button>
</div>
</template>
</el-dialog>
</template>
-
<style scoped>
-
-#dt { display:block; float:left;line-height: 20px;margin-left: 100px;}
-#dta { display:block; float:left;line-height: 20px;margin-left: 80%;}
-#dialog-footer{
+#dt {
+ display: block;
+ float: left;
+ line-height: 20px;
+ margin-left: 100px;
+}
+#dta {
+ display: block;
+ float: left;
+ line-height: 20px;
+ margin-left: 80%;
+}
+#dialog-footer {
text-align: center;
margin-top: -15px;
}
-#message{
+#message {
text-align: center;
align-items: center;
color: black;
- width: 200px;
- height: 100px;
- background-color: #337ecc;
- margin-left: 28%;
+ width: 200px;
+ height: 100px;
+ background-color: #337ecc;
+ margin-left: 28%;
}
-#awatch{
+#awatch {
height: 460px;
- /* margin-top: -60px; */
}
</style>
\ No newline at end of file
--
Gitblit v1.8.0