|
@@ -30,12 +30,14 @@
|
|
|
</el-button>
|
|
|
</template>
|
|
|
</avue-crud>
|
|
|
+ <reportTemplate v-model="showStatus" :detail="detail" />
|
|
|
</div>
|
|
|
</template>
|
|
|
+
|
|
|
<script setup>
|
|
|
import { ref, getCurrentInstance } from "vue";
|
|
|
import { useCrud } from "@/hooks/userCrud";
|
|
|
-
|
|
|
+import reportTemplate from "@/components/ReportView/reportTemplate.vue";
|
|
|
// 传入一个url,后面不带/
|
|
|
const { form, data, option, search, page, toDeleteIds, Methords, Utils } =
|
|
|
useCrud({
|
|
@@ -45,22 +47,24 @@ const { dataList, createRow, updateRow, deleteRow, searchChange, resetChange } =
|
|
|
Methords; //增删改查
|
|
|
const { selectionChange, multipleDelete } = Methords; //选中和批量删除事件
|
|
|
const { checkBtnPerm, downloadTemplate, exportData } = Utils; //按钮权限等工具
|
|
|
-
|
|
|
+const tablesData=ref([]);
|
|
|
const crudRef = ref(null); //crudRef.value 获取avue-crud对象
|
|
|
|
|
|
onMounted(() => {
|
|
|
// console.log("crudRef", crudRef)
|
|
|
dataList();
|
|
|
});
|
|
|
-
|
|
|
+const showStatus=ref(false);
|
|
|
const importExcelData = () => {
|
|
|
if (uploadRef.value) {
|
|
|
uploadRef.value.show("/api/v1/plan/order/import");
|
|
|
}
|
|
|
};
|
|
|
|
|
|
+const detail=ref({});
|
|
|
const showDetail = (row) => {
|
|
|
- console.log(row, "showDetail");
|
|
|
+ showStatus.value=true;
|
|
|
+ detail.value=row;
|
|
|
};
|
|
|
|
|
|
// 设置表格列或者其他自定义的option
|