diff --git a/project/xiushan/apps/AppAdministrativeLicense/AppAdministrativeLicense.vue b/project/xiushan/apps/AppAdministrativeLicense/AppAdministrativeLicense.vue index 440f39dd..c78d73ec 100644 --- a/project/xiushan/apps/AppAdministrativeLicense/AppAdministrativeLicense.vue +++ b/project/xiushan/apps/AppAdministrativeLicense/AppAdministrativeLicense.vue @@ -9,7 +9,6 @@ - - \ No newline at end of file diff --git a/project/xiushan/apps/AppAdministrativeLicense/components/List.vue b/project/xiushan/apps/AppAdministrativeLicense/components/List.vue index 26114e53..10bd6bc9 100644 --- a/project/xiushan/apps/AppAdministrativeLicense/components/List.vue +++ b/project/xiushan/apps/AppAdministrativeLicense/components/List.vue @@ -8,15 +8,22 @@ 添加 @@ -41,6 +48,7 @@ export default { page: { current: 1, size: 10, total: 0 }, dialog: false, form: { name: "" }, + data: {}, }; }, computed: { @@ -61,8 +69,10 @@ export default { this.getTableData() }, methods: { - import() {}, - export() {}, + // search() { + // this.forms.licenseCode = this.search.name + // this.getTableData() + // }, getTableData() { this.instance.post("/appcreditadminstrativelicense/list", null, { params: {...this.page, ...this.search, ...this.select} @@ -73,11 +83,13 @@ export default { } }) }, + toAdd(id) { this.$emit('change', { type: 'Add', params: { - id: id || '' + id: id || '', + isEdit: true } }) }, @@ -91,14 +103,6 @@ export default { }) }) }, - toDetail(id) { - this.$emit('change', { - type: 'Detail', - params: { - id: id || '' - } - }) - }, }, }; diff --git a/project/xiushan/apps/AppAdministrativePenalty/AppAdministrativePenalty.vue b/project/xiushan/apps/AppAdministrativePenalty/AppAdministrativePenalty.vue index 29808b53..b28270b3 100644 --- a/project/xiushan/apps/AppAdministrativePenalty/AppAdministrativePenalty.vue +++ b/project/xiushan/apps/AppAdministrativePenalty/AppAdministrativePenalty.vue @@ -9,7 +9,6 @@ - - \ No newline at end of file diff --git a/project/xiushan/apps/AppAdministrativePenalty/components/List.vue b/project/xiushan/apps/AppAdministrativePenalty/components/List.vue index e7b6aba2..a6d644ef 100644 --- a/project/xiushan/apps/AppAdministrativePenalty/components/List.vue +++ b/project/xiushan/apps/AppAdministrativePenalty/components/List.vue @@ -8,10 +8,16 @@ 添加 import List from "./components/List.vue"; import Add from "./components/Add.vue"; -import Detail from "./components/Detail.vue"; export default { name: "AppDishonestExecutee", @@ -18,7 +17,7 @@ export default { instance: Function, dict: Object, }, - components: {Add, List,Detail}, + components: {Add, List}, data() { return { component: "List", diff --git a/project/xiushan/apps/AppDishonestExecutee/components/Add.vue b/project/xiushan/apps/AppDishonestExecutee/components/Add.vue index c723d8a1..ac91b799 100644 --- a/project/xiushan/apps/AppDishonestExecutee/components/Add.vue +++ b/project/xiushan/apps/AppDishonestExecutee/components/Add.vue @@ -1,8 +1,8 @@ @@ -83,6 +112,10 @@ export default { }, created() { this.$dict.load('dishonestPersonSituation') + if (this.params && this.params.id) { + this.id = this.params.id + this.getDetail(this.params.id) + } }, data() { return { @@ -94,7 +127,10 @@ export default { enterpriseName: '', unifiedCode: '', dishonestFact: '', - } + }, + data: {}, + isEdit: false, + id: '', } }, methods: { @@ -104,13 +140,19 @@ export default { isRefresh: !!isRefresh, }) }, + getDetail(id) { + this.instance.post(`/appcreditdishonestperson/queryDetailById?id=${id}`).then(res => { + if (res.code === 0) { + this.data = res.data + } + }) + }, confirm( ) { this.$refs.forms.validate((valid) => { if (valid) { - this.instance.post(`/appcreditdishonestperson/addOrUpdate`, { + this.instance.post(`/appcreditdishonestperson/queryDetailById`, { ...this.forms, id: this.params.id || '', - // picture: this.form.picture.length ? this.form.picture[0].url : '' }).then(res => { if (res.code == 0) { this.$message.success('提交成功') @@ -146,6 +188,10 @@ export default { background: #fff !important; } + ::v-deep .ai-info-item label { + width: 100px; + } + ::v-deep .ai-detail__content--active { padding: 20px; diff --git a/project/xiushan/apps/AppDishonestExecutee/components/Detail.vue b/project/xiushan/apps/AppDishonestExecutee/components/Detail.vue deleted file mode 100644 index 934e4ef1..00000000 --- a/project/xiushan/apps/AppDishonestExecutee/components/Detail.vue +++ /dev/null @@ -1,155 +0,0 @@ - - - - - \ No newline at end of file diff --git a/project/xiushan/apps/AppDishonestExecutee/components/List.vue b/project/xiushan/apps/AppDishonestExecutee/components/List.vue index f62ff5c9..5f9aeeae 100644 --- a/project/xiushan/apps/AppDishonestExecutee/components/List.vue +++ b/project/xiushan/apps/AppDishonestExecutee/components/List.vue @@ -18,7 +18,7 @@ @getList="getTableData" :col-configs="colConfigs" :dict="dict"> @@ -79,14 +79,14 @@ export default { } }) }, - toDetail(id) { - this.$emit('change', { - type: 'Detail', - params: { - id: id || '' - } - }) - }, + // toDetail(id) { + // this.$emit('change', { + // type: 'Detail', + // params: { + // id: id || '' + // } + // }) + // }, handleDelete(id) { this.$confirm("是否要删除?").then(() => { this.instance.post(`/appcreditdishonestperson/delete?ids=${id}`).then(res => { diff --git a/project/xiushan/apps/AppRatepayingInfo/AppRatepayingInfo.vue b/project/xiushan/apps/AppRatepayingInfo/AppRatepayingInfo.vue index c2eddf3d..c38030f8 100644 --- a/project/xiushan/apps/AppRatepayingInfo/AppRatepayingInfo.vue +++ b/project/xiushan/apps/AppRatepayingInfo/AppRatepayingInfo.vue @@ -9,7 +9,6 @@ - - \ No newline at end of file diff --git a/project/xiushan/apps/AppRatepayingInfo/components/List.vue b/project/xiushan/apps/AppRatepayingInfo/components/List.vue index 30ea0ac7..75c58114 100644 --- a/project/xiushan/apps/AppRatepayingInfo/components/List.vue +++ b/project/xiushan/apps/AppRatepayingInfo/components/List.vue @@ -18,7 +18,7 @@ @getList="getTableData" :col-configs="colConfigs" :dict="dict"> @@ -79,14 +79,6 @@ export default { } }) }, - toDetail(id) { - this.$emit('change', { - type: 'Detail', - params: { - id: id || '' - } - }) - }, handleDelete(id) { this.$confirm("是否要删除?").then(() => { this.instance.post(`/appcredittaxinfo/delete?ids=${id}`).then(res => {