|
@@ -6,12 +6,39 @@
|
|
|
<el-button @click="test1">清空</el-button>
|
|
|
<el-button @click="generateData">生成数据</el-button>
|
|
|
|
|
|
- <el-button @click="testApi">API</el-button>
|
|
|
+ <!-- <InputAndTable v-model="tableValue" :data="tableData" :realPagination="false">-->
|
|
|
+ <!-- <template #aside>-->
|
|
|
+ <!-- <span @click="searchMethod = 'py'" label="1">拼音</span>-->
|
|
|
+ <!-- <span @click="te('bm')">编码</span>-->
|
|
|
+ <!-- <span @click="te('mc')">名称</span>-->
|
|
|
+ <!-- </template>-->
|
|
|
+ <!-- <template #tableItem>-->
|
|
|
+ <!-- <el-table-column label="编码" prop="code">-->
|
|
|
+ <!-- <template #default="scope">-->
|
|
|
+ <!-- <el-button @click="te( scope.row.code)">{{ scope.row.code }}</el-button>-->
|
|
|
+ <!-- </template>-->
|
|
|
+ <!-- </el-table-column>-->
|
|
|
+ <!-- <el-table-column label="名称" prop="name"></el-table-column>-->
|
|
|
+ <!-- <el-table-column label="其他" prop="qita"></el-table-column>-->
|
|
|
+ <!-- </template>-->
|
|
|
+ <!-- </InputAndTable>-->
|
|
|
+ <!-- <InputAndDialog v-model="inputdialog"/>-->
|
|
|
+ <xc-table></xc-table>
|
|
|
+
|
|
|
</template>
|
|
|
|
|
|
<script setup name='Test'>
|
|
|
import sleep from "@/utils/sleep";
|
|
|
-import {huoQuLinChuangZhenDuan} from "@/api/zhu-yuan-yi-sheng/jian-yan-jian-cha-shen-qing";
|
|
|
+import XcTable from "@/components/xc/xc-table/XcTable.vue";
|
|
|
+
|
|
|
+
|
|
|
+// const
|
|
|
+
|
|
|
+
|
|
|
+const vChange = (val) => {
|
|
|
+ console.log(val)
|
|
|
+}
|
|
|
+
|
|
|
|
|
|
const obj = $ref({
|
|
|
tcode: '',
|
|
@@ -59,16 +86,29 @@ const test1 = async () => {
|
|
|
console.log(obj.tcode)
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+let searchMethod = $ref('')
|
|
|
const te = (val) => {
|
|
|
+ searchMethod = val
|
|
|
console.log(val)
|
|
|
}
|
|
|
|
|
|
-const testApi = () => {
|
|
|
- huoQuLinChuangZhenDuan('123', 1).then((res) => {
|
|
|
- console.log(res)
|
|
|
+let tableValue = $ref('')
|
|
|
+
|
|
|
+let tableData = $ref({
|
|
|
+ data: [],
|
|
|
+ currentPage: 1,
|
|
|
+ total: 1000
|
|
|
+})
|
|
|
+
|
|
|
+for (let i = 0; i < 1000; i++) {
|
|
|
+ tableData.data.push({
|
|
|
+ code: 'code' + i,
|
|
|
+ name: 'name' + i,
|
|
|
+ qita: 'qita' + 12,
|
|
|
})
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
</script>
|
|
|
|
|
|
<style scoped>
|