Commit a96d893f by zhengxiaokui

zxk

parent 82d239cf
<template>
<c-row>
<c-col :span="22" style="margin-bottom: 18px" :offset="1">
<c-col :span="21" style="margin-bottom: 18px" :offset="1">
<c-table
style="text-align: center"
:ref="urls"
......@@ -11,7 +11,8 @@
:row-class-name="tableRowClassName"
@row-click="handleClick"
>
<el-table-column type="index" width="50"> </el-table-column>
<el-table-column v-if="isIndex" type="index" width="50">
</el-table-column>
<template v-for="item in columns">
<el-table-column
:label="item.title"
......@@ -45,13 +46,12 @@
</c-row>
</template>
<script>
import Api from "~/service/Api";
import CommonProcess from "~/mixin/CommonProcess";
import _ from "~/utils/Lodash.js";
import Col from "../../components/Col.vue";
import Table from "./Table.vue";
export default {
components: { Col },
components: { "c-table": Table },
inject: ["root"],
mixins: [CommonProcess],
......@@ -93,6 +93,10 @@ export default {
type: Boolean,
default: true,
},
isIndex: {
type: Boolean,
default: false,
},
},
computed: {},
......@@ -126,6 +130,7 @@ export default {
this.dataSource.push({ ...arr });
},
handleDelete() {
if (this.dataSource.length === 0) return;
if (this.rowIndex === null) {
this.rowIndex = this.dataSource[this.dataSource.length - 1].row_index; //没有选中删除最后一行
}
......@@ -144,7 +149,7 @@ export default {
margin-left: 2px;
display: flex;
flex-direction: column;
text-align: right;
/* text-align: right; */
}
.add_del_button {
display: block;
......
......@@ -2,7 +2,7 @@ import c_page from "./c-page.vue"
import PtyPicker from "./PtyPicker"
import UnicodePicker from "./UnicodePicker"
import DocShow from "./DocShow"
import EditTable from "./EditTable"
import Col from "./Col.vue"
import Row from "./Row.vue";
import Input from "./Input.vue"
......@@ -44,6 +44,7 @@ import BusinessButon from "./BusinessButton"
export default {
install(Vue) {
Vue.component("c-page", c_page)
Vue.component("c-edit-table", EditTable)
Vue.component("c-col", Col)
Vue.component("c-row", Row)
Vue.component('c-input', Input)
......@@ -80,8 +81,8 @@ export default {
Vue.component("c-checkbox-group", CheckboxGroup)
Vue.component("c-cascader", Cascader)
Vue.component("c-highlight-content", HighlightContent)
Vue.component("c-paged-select",PagedSelect)
Vue.component("c-paged-select", PagedSelect)
Vue.component("c-function-btn", FunctionBtn)
Vue.component("c-bus-button",BusinessButon)
Vue.component("c-bus-button", BusinessButon)
}
}
\ No newline at end of file
......@@ -158,6 +158,9 @@ export default class Letopn {
dadsnd: "", // Drag Drop Sender .letp.recget.sdamod.dadsnd
},
},
ptsaddp: {
ptsaddg: [], // .letp.ptsaddp.ptsaddg
},
usr: {
extkey: "", // Responsible User .letp.usr.extkey
},
......
......@@ -91,7 +91,7 @@
></c-input>
</el-form-item>
</c-col>
<c-editTable :model="model" v-bind="doceot"> </c-editTable>
<c-edit-table :model="model" v-bind="doceot"> </c-edit-table>
</div>
</template>
<script>
......@@ -99,12 +99,10 @@ import Api from "~/service/Api";
import CommonProcess from "~/mixin/CommonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Letopn/Event";
import EditTable from "~/views/Public/EditTable";
export default {
inject: ["root"],
props: ["model", "codes"],
components: { "c-editTable": EditTable },
mixins: [CommonProcess],
data() {
return {
......
......@@ -94,6 +94,7 @@
</el-form-item>
</c-col>
</c-col>
<c-edit-table :model="model" v-bind="ptsaddg"> </c-edit-table>
</c-row>
</template>
<script>
......@@ -109,7 +110,34 @@ export default {
props: ["model", "codes"],
mixins: [CommonProcess],
data() {
return {};
return {
ptsaddg: {
columns: [
{
title: "角色",
width: "120px",
dataIndex: "rol",
show: "select",
},
{
title: "机构实体",
width: "180px",
dataIndex: "ptyextkey",
},
{
title: "名称",
width: "300px",
dataIndex: "nam",
},
{
title: "参考地址",
width: "300px",
dataIndex: "ref",
},
],
urls: "letp.ptsaddp.ptsaddg",
},
};
},
methods: { ...Event },
created: function () {},
......
......@@ -37,7 +37,9 @@
<!--PD000042 -->
<el-tab-pane label="银行信息" name="ptyp">
<c-content>
<m-ptyp :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!--PD000055 -->
......
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