微调
This commit is contained in:
@@ -10,7 +10,8 @@
|
||||
maxlength="32"
|
||||
placeholder="请输入项目名称"
|
||||
show-word-limit
|
||||
style="width: 300px; margin-left: 10px"
|
||||
clearable
|
||||
style="width: 240px; margin-left: 10px"
|
||||
size="small"
|
||||
/>
|
||||
</div>
|
||||
@@ -35,6 +36,8 @@
|
||||
margin-top: 10px;
|
||||
height: 660px;
|
||||
"
|
||||
v-loading="loading"
|
||||
:element-loading-background="'rgba(122, 122, 122, 0.8)'"
|
||||
>
|
||||
<el-row :gutter="12">
|
||||
<el-col
|
||||
@@ -226,6 +229,7 @@ const projectData = ref([]);
|
||||
const dialogVisible = ref(false);
|
||||
|
||||
const innerVisible = ref(false);
|
||||
const loading = ref(false);
|
||||
|
||||
const projectName = ref("");
|
||||
|
||||
@@ -299,6 +303,7 @@ const sendToIframe = (type: string, data: any) => {
|
||||
};
|
||||
|
||||
const fetachData = async () => {
|
||||
loading.value = true;
|
||||
const res = await projectList({
|
||||
pageNum: params.pageNum,
|
||||
pageSize: params.pageSize,
|
||||
@@ -307,7 +312,7 @@ const fetachData = async () => {
|
||||
// projectData.splice(0, projectData.length, ...res.records);
|
||||
projectData.value = res.data.records;
|
||||
params.total = res.data.total;
|
||||
|
||||
loading.value = false;
|
||||
if (res.data.records.length > 0) {
|
||||
firstForm.value.id = res.data.records[0].id;
|
||||
firstForm.value.name = res.data.records[0].name;
|
||||
@@ -421,14 +426,14 @@ const onTableCurrentChange = (page: number) => {
|
||||
|
||||
// 设计
|
||||
const Aclick = (e: any) => {
|
||||
// window.open("http://192.168.1.179:4001" + `/zutai/?id=${e.id}&&name=decodeURI(${e.name})&&flag=false`)
|
||||
// window.open( window.location.origin + `/zutai/?id=${e.id}&&name=decodeURI(${e.name})&&flag=false`)
|
||||
// window.open(
|
||||
// window.location.origin +
|
||||
// `/zutai/?id=${e.id}&&name=${e.name}&&preview=false&&graphicDisplay=true`
|
||||
// );
|
||||
// 无锡项目进去不展示数据绑定图元
|
||||
window.open(
|
||||
"http://192.168.1.179:4001" +
|
||||
window.location.origin +
|
||||
`/zutai/?id=${e.id}&&name=${e.name}&&preview=false&&graphicDisplay=wx`
|
||||
);
|
||||
};
|
||||
@@ -470,7 +475,7 @@ const imgData = (e: any) => {
|
||||
// `/zutai/?id=${e.id}&&name=${e.name}&&preview=true#/preview`
|
||||
// );
|
||||
window.open(
|
||||
"http://192.168.1.179:4001" +
|
||||
window.location.origin +
|
||||
`/zutai/?id=${e.id}&&name=${e.name}&&preview=true&&graphicDisplay=wx#/preview`
|
||||
);
|
||||
};
|
||||
|
||||
@@ -36,7 +36,7 @@ watch(
|
||||
if (newVal && newVal.id && newVal.name) {
|
||||
// window.location.origin
|
||||
iframeSrc.value =
|
||||
"http://192.168.1.179:4001" +
|
||||
window.location.origin +
|
||||
`/zutai/?id=${newVal.id}&&name=${encodeURIComponent(
|
||||
newVal.name
|
||||
)}&&preview=true&&display=true&&graphicDisplay=wx#/preview`;
|
||||
@@ -55,7 +55,7 @@ onMounted(() => {
|
||||
if (res.code == "A0000") {
|
||||
// window.location.origin
|
||||
iframeSrc.value =
|
||||
"http://192.168.1.179:4001" +
|
||||
window.location.origin +
|
||||
`/zutai/?id=${res.data.id}&&name=${encodeURIComponent(
|
||||
res.data.name
|
||||
)}&&preview=true&&display=true&&graphicDisplay=wx#/preview`;
|
||||
|
||||
Reference in New Issue
Block a user