Commit a96d893f by zhengxiaokui

zxk

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