Commit 1786d058 authored by chenqikuai's avatar chenqikuai

fix

parent 02c58ee7
......@@ -58,9 +58,10 @@
v-if="props.index.$index === expandTheListIndex"
v-for="(item2, index2) in props.incrementList"
:key="index2"
class="notFirstLineCell"
class="notFirstLineCell cursor-pointer overflow-ellipsis overflow-hidden whitespace-nowrap"
@click="enterDetails(item2, props, props.index.$index)"
>
{{ stringCutting(item2.name, 7) }}
{{ item2.name }}
</div>
</template>
<template #date="props">
......@@ -217,7 +218,9 @@
</template>
<template #proof="props">
<div class="firstLineCell">
<span v-if="props.status !== 2" class="text-gray text-xs">创建数字资产</span>
<span v-if="props.status !== 2" class="text-gray text-xs"
>创建数字资产</span
>
<el-button
class="text-btn text-xs"
type="text"
......@@ -226,8 +229,13 @@
>创建数字资产</el-button
>
<div v-else class="flex items-center">
<span class="text-black mr-2.5 whitespace-nowrap text-xs">已发行</span>
<el-button @click="checkPass(props)" class="text-btn text-xs" type="text"
<span class="text-black mr-2.5 whitespace-nowrap text-xs"
>已发行</span
>
<el-button
@click="checkPass(props)"
class="text-btn text-xs"
type="text"
>查询</el-button
>
</div>
......@@ -273,17 +281,42 @@
</div>
</template>
</syTable>
<syCommonDialog showMask v-if="passShow" @closePopup="passShow = false">
<IssuePass
@update="$emit('update')"
:content="curItem"
@closePopup="passShow = false"
></IssuePass>
<syCommonDialog
showMask
type="element"
:visible="passShow"
:title-align-center="true"
@closePopup="passShow = false"
:element-dialog-props="{
title: switchStatus === 'form' ? '创建数字资产' : '源文件上链',
width: '592px',
}"
:no-padding="true"
>
<template #titleLeft>
<div
class="back_btn cursor-pointer"
@click="switchStatus = 'form'"
v-if="switchStatus !== 'form'"
>
<i class="iconfont iconZUO1 header-btn_back-icon"></i>
返回
</div>
</template>
<template #default>
<IssuePass
@update="$emit('update')"
:setStatus="(v: string) => (switchStatus = v)"
:status="switchStatus"
:content="curItem"
@closePopup="passShow = false"
></IssuePass
></template>
</syCommonDialog>
</template>
<script lang="ts" setup>
import { $ajax } from "@/service";
import { setIncrementList } from "@/store/mutations";
import { setIncrementList, setTheAnchor } from "@/store/mutations";
import { globalState } from "@/store/state";
import IssuePass from "./IssuePass.vue";
import {
......@@ -295,11 +328,11 @@ import {
downloadQrCode,
openChainBrowser,
GO_URLS,
stringCutting,
syCommonDialog,
} from "cqk-sy-ui";
import { ElMessage, ElButton } from "element-plus";
import { ref, watch } from "vue";
import { router } from "@/router";
const getIndex = (index: number) => {
return (globalState.page - 1) * 10 + (index + 1);
......@@ -377,6 +410,9 @@ const passShow = ref(false);
const curItem = ref({});
const expandTheListIndex = ref(-1);
const dialogTitle = ref("创建数字资产");
const switchStatus = ref("form");
watch(
() => globalState.listOfInformation,
(newV, oldV) => {
......@@ -460,6 +496,23 @@ const getOperateList = (item: any) => {
});
};
const enterDetails = (
item2: { status: number; id: any },
item: { id: any; name: any },
index: any
) => {
if (item2.status === 1) return false;
setTheAnchor(index);
router.push({
path: "/editTemplate",
query: {
personalTemplateId: item.id, //父级id
personalTemplateName: item.name, // 父级name
childId: item2.id, // 当前存证id
},
});
};
const handleClickMoreOperateItem = (value: string, props: any) => {
operateList.find((i) => i.value === value)?.click(props);
};
......@@ -536,6 +589,18 @@ const openBlock = (item: any, index: any) => {
};
</script>
<style lang="scss" scoped>
.back_btn {
white-space: nowrap;
width: 62px;
font-weight: 400;
font-size: 16px;
cursor: pointer;
.header-btn_back-icon {
color: #d2d2d2;
font-size: 14px;
margin-right: 5px;
}
}
.iconerweima--check {
color: var(--sy-blue);
cursor: pointer;
......
<template>
<div class="issue-pass" v-loading="inSubmit">
<div class="head" v-show="switchStatus == 'form'">创建数字资产</div>
<div class="form" v-show="switchStatus == 'form'">
<div class="form" v-show="status == 'form'">
<div class="content">
<img
src="https://cdn.jsdelivr.net/npm/trace-resource@1.0.9/images/newProductList/pass.png"
......@@ -115,7 +114,7 @@
/>
</div>
<div class="file_name">{{ file.name }}</div>
<div class="reUpload" @click="switchStatus = 'upload'">
<div class="reUpload" @click="setStatus('upload')">
<img
src="https://cdn.jsdelivr.net/npm/trace-resource@1.0.9/images/newProductList/reUpload_icon.png"
alt=""
......@@ -138,16 +137,7 @@
预计扣除次数 <span class="fee">{{ fee }}</span>
</div>
</div>
<div class="head upload_head" v-show="switchStatus == 'upload'">
<div class="back_btn" @click="goForm">
<i class="iconfont iconZUO1 header-btn_back-icon"></i>
返回
</div>
源文件上链
<div class="back_btn"></div>
</div>
<div class="upload" v-show="switchStatus == 'upload'">
<div class="upload" v-show="status == 'upload'">
<UploadFileVue @uploaded="uploaded" :fileData="file"></UploadFileVue>
<Button
class="w-full"
......@@ -183,7 +173,7 @@ import { $ajax } from "@/service";
export default defineComponent({
name: "IssuePass",
props: ["content"],
props: ["content", "setStatus", "status"],
components: {
Button: syButton,
UploadFileVue,
......@@ -212,7 +202,6 @@ export default defineComponent({
fileUpload: [{ required: false, message: "点击上传", trigger: "blur" }],
},
amountDisable: false,
switchStatus: "form",
chainSelectAction: [
{
value: 0,
......@@ -264,10 +253,10 @@ export default defineComponent({
},
methods: {
goUpload() {
this.switchStatus = "upload";
this.setStatus("upload");
},
goForm() {
this.switchStatus = "form";
this.setStatus("form");
},
uploaded(payload: any) {
if (payload.file.name) {
......@@ -344,7 +333,7 @@ export default defineComponent({
width: 30%;
}
.el-form-item {
margin-bottom: 17px;
margin-bottom: 20px;
.el-form-item__label {
line-height: 35px;
......@@ -354,13 +343,7 @@ export default defineComponent({
padding-right: 22px;
}
.el-form-item__content {
height: 35px;
line-height: 35px;
.el-input {
width: 420px;
height: 35px;
line-height: 35px;
input::-webkit-outer-spin-button,
   input::-webkit-inner-spin-button {
-webkit-appearance: none;
......@@ -368,21 +351,10 @@ export default defineComponent({
   input[type="number"] {
-moz-appearance: textfield;
}
.el-input__inner {
height: 35px;
line-height: 35px;
}
}
.el-button--primary {
width: 30%;
height: 35px;
line-height: 35px;
padding: 0;
}
}
.el-form-item__error {
padding-left: 94px;
padding-left: 0px;
}
.el-input__icon {
line-height: 35px;
......@@ -434,10 +406,7 @@ export default defineComponent({
</style>
<style scoped lang="scss">
.issue-pass {
width: 592px;
min-height: 450px;
background: #ffffff;
border-radius: 4px;
.head {
line-height: 60px;
font-size: 18px;
......@@ -446,25 +415,9 @@ export default defineComponent({
text-align: center;
border-bottom: 1px solid #f0f1f5;
}
.upload_head {
display: flex;
justify-content: space-between;
padding: 0 34px;
.back_btn {
white-space: nowrap;
width: 62px;
font-weight: 400;
font-size: 16px;
cursor: pointer;
.header-btn_back-icon {
color: #d2d2d2;
font-size: 14px;
margin-right: 5px;
}
}
}
.form {
padding: 17px 37px 67px 38px;
padding: 20px 37px 0px 38px;
.content {
width: 517px;
......@@ -476,7 +429,7 @@ export default defineComponent({
color: #a6a6a6;
display: flex;
align-items: center;
margin-bottom: 14px;
margin-bottom: 20px;
img {
width: 30px;
......@@ -492,7 +445,7 @@ export default defineComponent({
}
}
.upload {
padding: 17px 37px 67px 38px;
padding: 17px 37px 0px 38px;
.upload_tip {
margin-top: 12px;
color: #ff8311;
......
......@@ -165,9 +165,7 @@
<script lang="ts">
import { defineComponent } from "vue";
import { GO_URLS } from "cqk-sy-ui";
import { ElMessage, ElRadio, ElProgress } from "element-plus";
import { $ajax } from "@/service";
enum UploadStatusType {
INIT = 1,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment