880ffe12 by 任超

chore:文件夹整理

1 parent 062fcba2
import request from '@/utils/request'
import SERVER from './config'
export function uploadUrl () {
return process.env.VUE_APP_BASE_API + SERVER.SERVERAPI + '/file/upload'
}
// 上传单个文件
export function sjClmxUpload (data) {
return request({
......
import SERVER from './config'
class fileController {
uploadUrl () {
return process.env.VUE_APP_BASE_API + SERVER.SERVERAPI + '/file/upload'
}
}
export default new fileController()
import request from '@/utils/request'
import SERVER from './config'
/*
楼盘查询
*/
// 根据条件进行列表查询
export function getLpZrz (data) {
return request({
url: SERVER.SERVERAPI + '/rest/zhcx/lpcx/getLpZrz',
method: 'post',
data: data
})
}
// 获取楼盘表
export function getLpb (zrzbsm) {
return request({
url: SERVER.SERVERAPI + '/rest/zhcx/lpcx/getLpb?zrzbsm=' + zrzbsm,
method: 'get'
})
}
......@@ -140,3 +140,24 @@ export function getJdcxBysearch (data) {
data
})
}
/*
楼盘查询
*/
// 根据条件进行列表查询
export function getLpZrz (data) {
return request({
url: SERVER.SERVERAPI + '/rest/zhcx/lpcx/getLpZrz',
method: 'post',
data: data
})
}
// 获取楼盘表
export function getLpb (zrzbsm) {
return request({
url: SERVER.SERVERAPI + '/rest/zhcx/lpcx/getLpb?zrzbsm=' + zrzbsm,
method: 'get'
})
}
......
......@@ -189,12 +189,12 @@
</div>
</template>
<script>
import { getLpb } from '@/api/lpb'
import { getLpb } from '@/api/zhcx'
import { Message } from 'element-ui';
import hbj from "../hbj/lpb-hbj/index";
export default {
name: "",
components: { hbj },
components: { hbj },
props: {
zrzbsm: {
type: String,
......
......@@ -4,13 +4,13 @@
<ul class="edit-title-list" v-if="titleList.length > 0">
<li v-for="(item, index) in titleList" @click="handleTitleSelct(item, index)" :key="index"
:class="{ active: index == tn }">{{
item.nodename
item.nodename
}}</li>
</ul>
<div class="sqywgz-edit">
<ul class="sqywgz-edit-left">
<li v-for="(item, index) in leftList" :key="index" :class="{ active: index == n }" @click="hanldeItem(index)">{{
item.name
item.name
}}</li>
</ul>
<div class="sqywgz-edit-right">
......@@ -122,9 +122,8 @@
</div>
</dialogBox>
</template>
<script>
import fileController from '@/api/fileController'
import { uploadUrl } from '@/api/file'
import djqxsd from './djqxsd.vue'
import clgzsd from './clgzsd.vue'
import dyztsd from './dyztsd.vue'
......@@ -170,7 +169,7 @@ export default {
btnDisabled: false,
tn: 0,
titleList: [],
imgUploadUrl: fileController.uploadUrl(),
imgUploadUrl: uploadUrl(),
n: 0,
leftList: [
{
......
......@@ -52,10 +52,10 @@
</div>
</template>
<script>
import { mapGetters } from "vuex";
import table from "@/utils/mixin/table";
import { datas, sendThis } from "./djbcxdata";
import { getDjbBysearch } from "@/api/zhcx.js";
import { mapGetters } from "vuex";
export default {
name: "djbcx",
......
......@@ -50,7 +50,7 @@
<script>
import table from "@/utils/mixin/table";
import { datas, sendThis } from "./lpcxdata";
import { getLpZrz, getLpb } from "@/api/lpb.js";
import { getLpZrz, getLpb } from "@/api/zhcx.js";
export default {
name: "lpcx",
components: {},
......