|
@@ -2,7 +2,7 @@
|
|
|
* @Author:
|
|
|
* @Date: 2023-03-01 19:20:44
|
|
|
* @LastEditors: guicheng 1625811865@qq.com
|
|
|
- * @LastEditTime: 2024-06-21 13:42:43
|
|
|
+ * @LastEditTime: 2024-07-10 12:05:52
|
|
|
* @Description: kxs files
|
|
|
* @filePath:
|
|
|
-->
|
|
@@ -162,68 +162,67 @@ const closeVisible = () => {
|
|
|
ruleFormRef.value.resetFields();
|
|
|
closeFn();
|
|
|
};
|
|
|
+// 弹窗是否全屏
|
|
|
+const isFullscreen = ref(false)
|
|
|
</script>
|
|
|
|
|
|
<template lang="pug">
|
|
|
.main
|
|
|
- el-dialog(v-model='props.addVisible' width="50%" title="新增" @close="closeVisible")
|
|
|
+ el-dialog(v-model='props.addVisible' width="50%" :fullscreen="isFullscreen" title="新增" draggable @close="closeVisible")
|
|
|
//- 有选项卡模板
|
|
|
el-tabs(v-model="activeId" class="demo-tabs" @tab-click="handleClick")
|
|
|
el-tab-pane(label="选项卡一" name="1")
|
|
|
el-form(ref="ruleFormRef" :model='UpdateForm' label-position="right" label-width="100px" :rules="rules")
|
|
|
el-form-item(label='账户名称1' prop="RealName")
|
|
|
- el-input(v-model='UpdateForm.RealName' autocomplete='off' class="!w-[230px]"
|
|
|
+ el-input(v-model='UpdateForm.RealName' autocomplete='off'
|
|
|
placeholder="请输入账户名称")
|
|
|
el-form-item(label='用户名' prop="AdminName")
|
|
|
- el-input(v-model='UpdateForm.AdminName' autocomplete='off' class="!w-[230px]"
|
|
|
+ el-input(v-model='UpdateForm.AdminName' autocomplete='off'
|
|
|
placeholder="请输入用户名")
|
|
|
el-form-item(label='密码' prop="PassWord")
|
|
|
- el-input(v-model='UpdateForm.PassWord' autocomplete='off' class="!w-[230px]"
|
|
|
+ el-input(v-model='UpdateForm.PassWord' autocomplete='off'
|
|
|
placeholder="请输入密码")
|
|
|
el-form-item(label="角色:", prop="RoleId")
|
|
|
el-select(
|
|
|
v-model="UpdateForm.RoleId",
|
|
|
placeholder="请选择用户角色",
|
|
|
- clearable,
|
|
|
- class="!w-[230px]"
|
|
|
+ clearable
|
|
|
)
|
|
|
el-option(:label="item.label", :value="item.Id" v-for="(item, index) in optionList")
|
|
|
el-tab-pane(label="选项卡二" name="2")
|
|
|
el-form(:model='UpdateForm' label-position="right" label-width="100px")
|
|
|
el-form-item(label='账户名称2' prop="RealName")
|
|
|
- el-input(v-model='UpdateForm.RealName' autocomplete='off' class="!w-[230px]"
|
|
|
+ el-input(v-model='UpdateForm.RealName' autocomplete='off'
|
|
|
placeholder="请输入账户名称")
|
|
|
el-form-item(label='用户名' prop="AdminName")
|
|
|
- el-input(v-model='UpdateForm.AdminName' autocomplete='off' class="!w-[230px]"
|
|
|
+ el-input(v-model='UpdateForm.AdminName' autocomplete='off'
|
|
|
placeholder="请输入用户名")
|
|
|
el-form-item(label='密码' prop="PassWord")
|
|
|
- el-input(v-model='UpdateForm.PassWord' autocomplete='off' class="!w-[230px]"
|
|
|
+ el-input(v-model='UpdateForm.PassWord' autocomplete='off'
|
|
|
placeholder="请输入密码")
|
|
|
el-form-item(label="角色:", prop="RoleId")
|
|
|
el-select(
|
|
|
v-model="UpdateForm.RoleId",
|
|
|
placeholder="请选择用户角色",
|
|
|
- clearable,
|
|
|
- class="!w-[230px]"
|
|
|
+ clearable
|
|
|
)
|
|
|
el-option(:label="item.label", :value="item.Id" v-for="(item, index) in optionList")
|
|
|
//- 无选项卡模板
|
|
|
el-form(:model='UpdateForm' label-position="right" label-width="100px")
|
|
|
el-form-item(label='账户名称' prop="RealName")
|
|
|
- el-input(v-model='UpdateForm.RealName' autocomplete='off' class="!w-[230px]"
|
|
|
+ el-input(v-model='UpdateForm.RealName' autocomplete='off'
|
|
|
placeholder="请输入账户名称")
|
|
|
el-form-item(label='用户名' prop="AdminName")
|
|
|
- el-input(v-model='UpdateForm.AdminName' autocomplete='off' class="!w-[230px]"
|
|
|
+ el-input(v-model='UpdateForm.AdminName' autocomplete='off'
|
|
|
placeholder="请输入用户名")
|
|
|
el-form-item(label='密码' prop="PassWord")
|
|
|
- el-input(v-model='UpdateForm.PassWord' autocomplete='off' class="!w-[230px]"
|
|
|
+ el-input(v-model='UpdateForm.PassWord' autocomplete='off'
|
|
|
placeholder="请输入密码")
|
|
|
el-form-item(label="角色:", prop="RoleId")
|
|
|
el-select(
|
|
|
v-model="UpdateForm.RoleId",
|
|
|
placeholder="请选择用户角色",
|
|
|
- clearable,
|
|
|
- class="!w-[230px]"
|
|
|
+ clearable
|
|
|
)
|
|
|
el-option(:label="item.label", :value="item.Id" v-for="(item, index) in optionList")
|
|
|
el-form-item(label='取色器' prop="PassWord")
|
|
@@ -244,21 +243,22 @@ const closeVisible = () => {
|
|
|
el-form-item(label='穿梭框' prop="AdminName")
|
|
|
el-transfer(v-model="UpdateForm.AdminName" :data="transferdata")
|
|
|
el-form-item(label='上传文件' prop="Uploadfile")
|
|
|
- el-input(v-model='UpdateForm.upLoadFile' autocomplete='off' class="!w-[230px]" disabled)
|
|
|
+ el-input(v-model='UpdateForm.upLoadFile' autocomplete='off' disabled)
|
|
|
Uploadfile(btntext="上传文件" :FilePath="UploadFileCallBack")
|
|
|
el-form-item(label='上传图片' prop="UploadImg")
|
|
|
UploadImg(:cropper="true" :callBack="UploadImgCallBack")
|
|
|
el-form-item(label='富文本' prop="childComp")
|
|
|
Editor(ref="childComp")
|
|
|
- el-button(
|
|
|
- :icon="useRenderIcon(Close)",
|
|
|
- @click="closeVisible"
|
|
|
- ) 关闭
|
|
|
- el-button(
|
|
|
- type="primary",
|
|
|
- :icon="useRenderIcon(Upload)",
|
|
|
- @click="submit(ruleFormRef)"
|
|
|
- ) 确认提交
|
|
|
+ .flex.justify-end
|
|
|
+ el-button(
|
|
|
+ :icon="useRenderIcon(Close)",
|
|
|
+ @click="closeVisible"
|
|
|
+ ) 关闭
|
|
|
+ el-button(
|
|
|
+ type="primary",
|
|
|
+ :icon="useRenderIcon(Upload)",
|
|
|
+ @click="submit(ruleFormRef)"
|
|
|
+ ) 确认提交
|
|
|
</template>
|
|
|
|
|
|
<style scoped lang="scss">
|
|
@@ -299,4 +299,8 @@ const closeVisible = () => {
|
|
|
:deep(.el-descriptions__header) {
|
|
|
margin: 16px 0 !important;
|
|
|
}
|
|
|
+
|
|
|
+.el-select {
|
|
|
+ width: 100%;
|
|
|
+}
|
|
|
</style>
|