审核 验证

This commit is contained in:
cxc
2022-11-22 17:31:33 +08:00
parent 212c847a4a
commit 69d6c487ac
8 changed files with 110 additions and 67 deletions

View File

@ -33,7 +33,7 @@
</el-select>
</el-form-item>
<el-form-item label="站点">
<SiteOptions
<site-options
v-model="queryData.tenantId"
:site-list="siteList"
style="width: 160px"
@ -109,7 +109,7 @@
<!-- 设置企业类型弹框 -->
<el-dialog title="设置企业类型" v-model="isShow">
<el-row type="flex" justify="center" style="height: 100px">
<el-radio-group v-model="radioList">
<el-radio-group v-model="setTypeRow.kind">
<el-radio
v-for="{ key, value } in enterpriseOptions"
:key="key"
@ -136,6 +136,7 @@ import { tenantSelect } from "@/api/subPlatform/tenant";
import { enterpriseOptions } from "@/utils/parameter";
import { reactive, ref } from "vue";
import { ElMessageBox } from "element-plus";
import { cloneDeep } from "lodash";
import { useRouter } from "vue-router";
const data = reactive({
queryData: {
@ -143,11 +144,12 @@ const data = reactive({
pageSize: 10,
examineStatus: "",
},
setTypeRow: {},
});
const router = useRouter();
const total = ref(0);
const dataList = ref([]);
const { queryData } = toRefs(data);
const { queryData, setTypeRow } = toRefs(data);
const siteList = ref([]);
const isShow = ref(false);
const radioList = ref("");
@ -184,16 +186,15 @@ const resetQuery = () => {
};
// 企业类型弹框
const setType = (row) => {
radioList.value = row.kind;
// radioList.value = row.kind;
isShow.value = true;
id.value = row.id;
// id.value = row.id;
setTypeRow.value = cloneDeep(row);
};
// 发送修改类型请求
const btnType = async () => {
await editType({
kind: radioList.value,
id: id.value,
});
await editType({ id: setTypeRow.value.id, kind: setTypeRow.value.kind });
getList();
isShow.value = false;
};