fix: BUG修改
This commit is contained in:
parent
1bf1b3f780
commit
797be28212
@ -2,9 +2,9 @@
|
|||||||
NODE_ENV = 'development'
|
NODE_ENV = 'development'
|
||||||
|
|
||||||
# 本地环境接口地址(/api/index.ts文件中使用)
|
# 本地环境接口地址(/api/index.ts文件中使用)
|
||||||
# VITE_API_URL = 'http://192.168.34.155:6688'
|
VITE_API_URL = 'http://192.168.34.155:6688'
|
||||||
VITE_WPAPI_URL = "http://182.90.224.147:8081"
|
VITE_WPAPI_URL = "http://182.90.224.147:8081"
|
||||||
VITE_API_URL = "http://182.90.224.147:6688"
|
# VITE_API_URL = "http://182.90.224.147:6688"
|
||||||
|
|
||||||
# 上传
|
# 上传
|
||||||
# VITE_ULD_API_URL = 'http://192.168.34.155:8012/onlinePreview?url='
|
# VITE_ULD_API_URL = 'http://192.168.34.155:8012/onlinePreview?url='
|
||||||
|
|||||||
@ -15,7 +15,7 @@
|
|||||||
>
|
>
|
||||||
<template #operation="{ row }">
|
<template #operation="{ row }">
|
||||||
<div class="txtLeft">
|
<div class="txtLeft">
|
||||||
<el-button type="primary" v-if="row.state !== 1" link @click="handleEditItem(1, row)">
|
<el-button type="primary" v-if="row.state === 0" link @click="handleEditItem(1, row)">
|
||||||
<img src="@/assets/images/tableIcon/问题整改.png" alt="" class="configureIcon" />
|
<img src="@/assets/images/tableIcon/问题整改.png" alt="" class="configureIcon" />
|
||||||
<span>问题整改</span>
|
<span>问题整改</span>
|
||||||
</el-button>
|
</el-button>
|
||||||
|
|||||||
@ -338,6 +338,13 @@ const rules = ref({
|
|||||||
trigger: "change"
|
trigger: "change"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
registeredCapital: [
|
||||||
|
{
|
||||||
|
pattern: /^[0-9\.]+$/,
|
||||||
|
message: "请输入整数或小数",
|
||||||
|
trigger: "blur"
|
||||||
|
}
|
||||||
|
],
|
||||||
email: [
|
email: [
|
||||||
{
|
{
|
||||||
type: "email",
|
type: "email",
|
||||||
|
|||||||
@ -161,7 +161,13 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<el-form-item label="参建单位:" prop="companySn">
|
<el-form-item label="参建单位:" prop="companySn">
|
||||||
<el-select v-model="form.companySn" :disabled="props.title == '查看人员'" placeholder="请选择" style="width: 100%">
|
<el-select
|
||||||
|
v-model="form.companySn"
|
||||||
|
:disabled="props.title == '查看人员'"
|
||||||
|
placeholder="请选择"
|
||||||
|
style="width: 100%"
|
||||||
|
@change="companySelect"
|
||||||
|
>
|
||||||
<el-option v-for="item in unitList" :key="item.value" :label="item.label" :value="item.value"> </el-option>
|
<el-option v-for="item in unitList" :key="item.value" :label="item.label" :value="item.value"> </el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@ -551,6 +557,9 @@ const bankTypeList: any = ref([
|
|||||||
{ label: "浙商银行", value: 15 }
|
{ label: "浙商银行", value: 15 }
|
||||||
]);
|
]);
|
||||||
const form = ref();
|
const form = ref();
|
||||||
|
const companySelect = () => {
|
||||||
|
getGroupList();
|
||||||
|
};
|
||||||
// 图片上传成功后的钩子
|
// 图片上传成功后的钩子
|
||||||
const handleAvatarSuccess: UploadProps["onSuccess"] = (response, uploadFile, index) => {
|
const handleAvatarSuccess: UploadProps["onSuccess"] = (response, uploadFile, index) => {
|
||||||
console.log(response.result.url);
|
console.log(response.result.url);
|
||||||
@ -623,7 +632,7 @@ const getUnitList = async () => {
|
|||||||
};
|
};
|
||||||
// 获取班组管理列表
|
// 获取班组管理列表
|
||||||
const getGroupList = async () => {
|
const getGroupList = async () => {
|
||||||
const res = await getClassGroupAll({ engineeringSn: props.engineeringSn });
|
const res = await getClassGroupAll({ companySn: form.value.companySn, engineeringSn: props.engineeringSn });
|
||||||
console.log(res);
|
console.log(res);
|
||||||
groupList.value = res.result.map(item => {
|
groupList.value = res.result.map(item => {
|
||||||
console.log(item);
|
console.log(item);
|
||||||
|
|||||||
@ -522,6 +522,7 @@ const handleAddItem = () => {
|
|||||||
};
|
};
|
||||||
// 修改数据按钮
|
// 修改数据按钮
|
||||||
const handleEditItem = async (row: any) => {
|
const handleEditItem = async (row: any) => {
|
||||||
|
ruleFormRef.value?.resetFields();
|
||||||
console.log(row);
|
console.log(row);
|
||||||
parentObj.value = row;
|
parentObj.value = row;
|
||||||
if (row.parentId != 0) {
|
if (row.parentId != 0) {
|
||||||
|
|||||||
@ -205,6 +205,12 @@
|
|||||||
.tabs-option {
|
.tabs-option {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
.el-progress-bar {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.el-progress__text {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// :deep(.el-dialog__body) {
|
// :deep(.el-dialog__body) {
|
||||||
// padding: 0 0 0 0 !important;
|
// padding: 0 0 0 0 !important;
|
||||||
|
|||||||
@ -14,7 +14,7 @@
|
|||||||
>
|
>
|
||||||
<template #operation="{ row }">
|
<template #operation="{ row }">
|
||||||
<div class="txtLeft">
|
<div class="txtLeft">
|
||||||
<el-button type="primary" v-if="row.state !== 1" link @click="handleEditItem(1, row)">
|
<el-button type="primary" v-if="row.state === 0" link @click="handleEditItem(1, row)">
|
||||||
<img src="@/assets/images/tableIcon/问题整改.png" alt="" class="configureIcon" />
|
<img src="@/assets/images/tableIcon/问题整改.png" alt="" class="configureIcon" />
|
||||||
<span>问题整改</span>
|
<span>问题整改</span>
|
||||||
</el-button>
|
</el-button>
|
||||||
|
|||||||
@ -344,6 +344,13 @@ const rules = ref({
|
|||||||
trigger: "change"
|
trigger: "change"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
registeredCapital: [
|
||||||
|
{
|
||||||
|
pattern: /^[0-9\.]+$/,
|
||||||
|
message: "请输入整数或小数",
|
||||||
|
trigger: "blur"
|
||||||
|
}
|
||||||
|
],
|
||||||
email: [
|
email: [
|
||||||
{
|
{
|
||||||
type: "email",
|
type: "email",
|
||||||
|
|||||||
@ -161,11 +161,17 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<el-form-item label="参建单位:" prop="companySn">
|
<el-form-item label="参建单位:" prop="companySn">
|
||||||
<el-select v-model="form.companySn" :disabled="props.title == '查看人员'" placeholder="请选择" style="width: 100%">
|
<el-select
|
||||||
|
v-model="form.companySn"
|
||||||
|
:disabled="props.title == '查看人员'"
|
||||||
|
placeholder="请选择"
|
||||||
|
style="width: 100%"
|
||||||
|
@change="companySelect"
|
||||||
|
>
|
||||||
<el-option v-for="item in unitList" :key="item.value" :label="item.label" :value="item.value"> </el-option>
|
<el-option v-for="item in unitList" :key="item.value" :label="item.label" :value="item.value"> </el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="班组 :" prop="teamSn">
|
<el-form-item label="班组 :" prop="teamSn" v-if="form.companySn">
|
||||||
<el-select v-model="form.teamSn" :disabled="props.title == '查看人员'" placeholder="请选择" style="width: 100%">
|
<el-select v-model="form.teamSn" :disabled="props.title == '查看人员'" placeholder="请选择" style="width: 100%">
|
||||||
<el-option v-for="item in groupList" :key="item.value" :label="item.label" :value="item.value"> </el-option>
|
<el-option v-for="item in groupList" :key="item.value" :label="item.label" :value="item.value"> </el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
@ -552,6 +558,9 @@ const bankTypeList: any = ref([
|
|||||||
{ label: "浙商银行", value: 15 }
|
{ label: "浙商银行", value: 15 }
|
||||||
]);
|
]);
|
||||||
const form = ref();
|
const form = ref();
|
||||||
|
const companySelect = () => {
|
||||||
|
getGroupList();
|
||||||
|
};
|
||||||
// 图片上传成功后的钩子
|
// 图片上传成功后的钩子
|
||||||
const handleAvatarSuccess: UploadProps["onSuccess"] = (response, uploadFile, index) => {
|
const handleAvatarSuccess: UploadProps["onSuccess"] = (response, uploadFile, index) => {
|
||||||
console.log(response.result.url);
|
console.log(response.result.url);
|
||||||
@ -634,7 +643,9 @@ const getUnitList = async () => {
|
|||||||
};
|
};
|
||||||
// 获取班组管理列表
|
// 获取班组管理列表
|
||||||
const getGroupList = async () => {
|
const getGroupList = async () => {
|
||||||
let requestData = {};
|
let requestData = {
|
||||||
|
companySn: form.value.companySn
|
||||||
|
};
|
||||||
if (props.active == "eng") {
|
if (props.active == "eng") {
|
||||||
requestData.engineeringSn = props.searchSn;
|
requestData.engineeringSn = props.searchSn;
|
||||||
} else if (props.active == "project") {
|
} else if (props.active == "project") {
|
||||||
|
|||||||
@ -560,6 +560,7 @@ const handleAddItem = () => {
|
|||||||
};
|
};
|
||||||
// 修改数据按钮
|
// 修改数据按钮
|
||||||
const handleEditItem = async (row: any) => {
|
const handleEditItem = async (row: any) => {
|
||||||
|
ruleFormRef.value?.resetFields();
|
||||||
console.log(row);
|
console.log(row);
|
||||||
parentObj.value = row;
|
parentObj.value = row;
|
||||||
if (row.parentId != 0) {
|
if (row.parentId != 0) {
|
||||||
|
|||||||
@ -152,7 +152,14 @@
|
|||||||
:deep(.el-form .el-form-item__content .el-range-editor) {
|
:deep(.el-form .el-form-item__content .el-range-editor) {
|
||||||
width: 200px;
|
width: 200px;
|
||||||
}
|
}
|
||||||
|
:deep() {
|
||||||
|
.el-progress-bar {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.el-progress__text {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
// :deep(.el-dialog__body) {
|
// :deep(.el-dialog__body) {
|
||||||
// padding: 0 0 0 0 !important;
|
// padding: 0 0 0 0 !important;
|
||||||
// background-color: pink;
|
// background-color: pink;
|
||||||
|
|||||||
@ -99,7 +99,6 @@
|
|||||||
class="upload-demo"
|
class="upload-demo"
|
||||||
:action="`${baseUrl}` + '/xmgl/file/upload'"
|
:action="`${baseUrl}` + '/xmgl/file/upload'"
|
||||||
:on-remove="onRemove"
|
:on-remove="onRemove"
|
||||||
multiple
|
|
||||||
:limit="1"
|
:limit="1"
|
||||||
:on-success="uploadSuccess"
|
:on-success="uploadSuccess"
|
||||||
:before-upload="beforeUpload"
|
:before-upload="beforeUpload"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user