|
@@ -16,21 +16,21 @@
|
|
|
@current-change="dataList"
|
|
|
@selection-change="selectionChange"
|
|
|
>
|
|
|
- <template #viewPath-form="scope">
|
|
|
+ <!-- <template #viewPath-form="scope">
|
|
|
<FilesUpload
|
|
|
v-model:src="fileUrl"
|
|
|
v-model:file-name-list="fileNameList"
|
|
|
:limit="1"
|
|
|
@finished="testFiles"
|
|
|
/>
|
|
|
- </template>
|
|
|
+ </template> -->
|
|
|
<template #menu="{ row, index, type }">
|
|
|
- <PDFView
|
|
|
+ <!-- <PDFView
|
|
|
:need-to-show-pdf="true"
|
|
|
content-type="button"
|
|
|
:is-link="true"
|
|
|
- :pdf-source="filePath + row.pdfPath"
|
|
|
- />
|
|
|
+ :pdf-source="filePath + row.viewPath"
|
|
|
+ /> -->
|
|
|
<el-button
|
|
|
@click="deleteRecord(row, index, done)"
|
|
|
text
|
|
@@ -40,8 +40,6 @@
|
|
|
>
|
|
|
</template>
|
|
|
</avue-crud>
|
|
|
-
|
|
|
- <ExcelUpload ref="uploadRef" @finished="uploadFinished" />
|
|
|
</div>
|
|
|
</template>
|
|
|
<script setup>
|
|
@@ -76,14 +74,22 @@ const { selectionChange } = Methords; //选中和批量删除事件
|
|
|
const crudRef = ref(null); //crudRef.value 获取avue-crud对象
|
|
|
const route = useRoute();
|
|
|
search.value['brazeId'] = route.params.id
|
|
|
+search.value.orders = [
|
|
|
+ {column: "created", isAsc: true}
|
|
|
+]
|
|
|
onMounted?.(() => {
|
|
|
// console.log("crudRef", crudRef)
|
|
|
dataEditList();
|
|
|
});
|
|
|
+//客户需要默认值
|
|
|
+form.value.length = "270"
|
|
|
+form.value.lineColor = "白色"
|
|
|
const addRow = (form2, done) => {
|
|
|
form.value.brazeId = route.params.id
|
|
|
createRow(form, done, done);
|
|
|
fileUrl.value = "";
|
|
|
+ form.value.length = "270"
|
|
|
+ form.value.lineColor = "白色"
|
|
|
fileNameList.value = [];
|
|
|
};
|
|
|
/**
|
|
@@ -105,7 +111,7 @@ option.value = Object.assign(option.value, {
|
|
|
menu: true,
|
|
|
column: [
|
|
|
{
|
|
|
- label: "起始段",
|
|
|
+ label: "起始端",
|
|
|
prop: "lineStart",
|
|
|
width: 150,
|
|
|
search: true,
|
|
@@ -113,7 +119,7 @@ option.value = Object.assign(option.value, {
|
|
|
rules: [
|
|
|
{
|
|
|
required: true,
|
|
|
- message: "请填写起始段",
|
|
|
+ message: "请填写起始端",
|
|
|
trigger: "blur",
|
|
|
},
|
|
|
],
|
|
@@ -133,19 +139,23 @@ option.value = Object.assign(option.value, {
|
|
|
],
|
|
|
},
|
|
|
{
|
|
|
- label: "线径",
|
|
|
+ label: "线型",
|
|
|
prop: "wireDiameter",
|
|
|
width: 150,
|
|
|
overHidden: true,
|
|
|
rules: [
|
|
|
{
|
|
|
required: true,
|
|
|
- message: "请填写线径",
|
|
|
+ message: "请填写线型",
|
|
|
trigger: "blur",
|
|
|
},
|
|
|
],
|
|
|
},
|
|
|
{
|
|
|
+ label: "线管",
|
|
|
+ prop: "lineNo",
|
|
|
+ },
|
|
|
+ {
|
|
|
label: "长度",
|
|
|
prop: "length",
|
|
|
type: "number",
|
|
@@ -156,21 +166,22 @@ option.value = Object.assign(option.value, {
|
|
|
label: "颜色",
|
|
|
prop: "lineColor",
|
|
|
},
|
|
|
- {
|
|
|
- label: "文件",
|
|
|
- prop: "viewPath",
|
|
|
- span: 24,
|
|
|
- slot: true,
|
|
|
- hide: true,
|
|
|
- },
|
|
|
- {
|
|
|
- label: "文件名称",
|
|
|
- prop: "viewName",
|
|
|
- span: 24,
|
|
|
- width: 120,
|
|
|
- overHidden: true,
|
|
|
- display: false,
|
|
|
- },
|
|
|
+
|
|
|
+ // {
|
|
|
+ // label: "文件",
|
|
|
+ // prop: "viewPath",
|
|
|
+ // span: 24,
|
|
|
+ // slot: true,
|
|
|
+ // hide: true,
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // label: "文件名称",
|
|
|
+ // prop: "viewName",
|
|
|
+ // span: 24,
|
|
|
+ // width: 120,
|
|
|
+ // overHidden: true,
|
|
|
+ // display: false,
|
|
|
+ // },
|
|
|
{
|
|
|
label: "创建时间",
|
|
|
prop: "created",
|