cf6ab7ef by 任超

feat:工作流api文件夹整理

1 parent 5c0e7abb
import request from '@/utils/request'
import SERVER from './config'
import SERVER from '../config'
// 初始化内容
export function Init (data) {
......
import request from '@/utils/request'
import SERVER from './config'
import SERVER from '../config'
// 初始化内容
export function Init (data) {
let apiUrl = "";
......
......@@ -165,7 +165,7 @@
<el-row :gutter="10">
<el-col>
<el-form-item :class="flag ? 'marginBot0' : ''" label="附记:" prop="fj">
<el-input type="textarea" v-model="ruleForm.nydsyq.fj" :disabled="$route.query.viewtype==1"></el-input>
<el-input type="textarea" v-model="ruleForm.nydsyq.fj" :disabled="$route.query.viewtype == 1"></el-input>
</el-form-item>
</el-col>
</el-row>
......@@ -176,7 +176,7 @@
<el-row :gutter="10">
<el-col :span="14">
<el-form-item :class="flag ? 'marginBot0' : ''" label="共有方式:">
<el-radio-group :disabled="$route.query.viewtype==1" v-model="ruleForm.slywxx.gyfs">
<el-radio-group :disabled="$route.query.viewtype == 1" v-model="ruleForm.slywxx.gyfs">
<el-radio label="0">单独所有</el-radio>
<el-radio label="1">共同共有</el-radio>
<el-radio label="2">按份所有</el-radio>
......@@ -207,8 +207,8 @@
家庭成员
<div class="triangle"></div>
</div>
<JtcyTable :tableData="ruleForm.jtcyList" @upDateJtcyList="upDateJtcyList"
:viewtype="$route.query.viewtype" :gyfs="ruleForm.slywxx.gyfs" />
<JtcyTable :tableData="ruleForm.jtcyList" @upDateJtcyList="upDateJtcyList" :viewtype="$route.query.viewtype"
:gyfs="ruleForm.slywxx.gyfs" />
<div class="slxx_title title-block">
登记原因
<div class="triangle"></div>
......@@ -216,7 +216,8 @@
<el-row :gutter="10">
<el-col>
<el-form-item :class="flag ? 'marginBot0' : ''" label="登记原因:" prop="djyy">
<el-input class="textArea" type="textarea" :disabled="$route.query.viewtype==1" v-model="ruleForm.nydsyq.djyy">
<el-input class="textArea" type="textarea" :disabled="$route.query.viewtype == 1"
v-model="ruleForm.nydsyq.djyy">
</el-input>
</el-form-item>
</el-col>
......@@ -232,7 +233,7 @@
</template>
<script>
import { mapGetters } from "vuex"
import { Init, saveData } from "@/api/nydsyqFlow.js"
import { Init, saveData } from "@/api/workflow/nydsyqFlow.js"
import InformationTable from "@/views/workflow/components/InformationTable"
import JtcyTable from "@/views/workflow/components/JtcyTable"
export default {
......@@ -243,14 +244,14 @@ export default {
formdata.append("djlx", this.propsParam.djlx);
Init(formdata).then((res) => {
this.ruleForm = res.result;
if (res.code === 200 ) {
if (res.code === 200) {
}
else{
else {
this.$alert(res.message, '提示');
}
})
},
components: { InformationTable,JtcyTable },
components: { InformationTable, JtcyTable },
computed: {
...mapGetters(["dictData", "flag"])
},
......@@ -292,7 +293,7 @@ export default {
this.ruleForm.jtcyList = _.cloneDeep(val)
},
//水域滩涂类型变化事件
changeSyttlx(e){
changeSyttlx (e) {
let itemLx = {}
itemLx = this.dictData['A23'].find((item) => {
return item.dcode == e
......@@ -300,7 +301,7 @@ export default {
this.ruleForm.nydsyq.syttlxmc = itemLx.dname;
},
//养殖业方式变化事件
changeYzyfs(e){
changeYzyfs (e) {
let itemLx = {}
itemLx = this.dictData['A24'].find((item) => {
return item.dcode == e
......@@ -308,7 +309,7 @@ export default {
this.ruleForm.nydsyq.yzyfsmc = itemLx.dname;
},
//用地用海变化事件
changeYdyhfl(e){
changeYdyhfl (e) {
let itemLx = {}
itemLx = this.dictData['A51'].find((item) => {
return item.dcode == e
......
......@@ -165,7 +165,7 @@
<el-row :gutter="10">
<el-col>
<el-form-item :class="flag ? 'marginBot0' : ''" label="附记:" prop="fj">
<el-input type="textarea" v-model="ruleForm.nydsyq.fj" :disabled="$route.query.viewtype==1"></el-input>
<el-input type="textarea" v-model="ruleForm.nydsyq.fj" :disabled="$route.query.viewtype == 1"></el-input>
</el-form-item>
</el-col>
</el-row>
......@@ -176,7 +176,7 @@
<el-row :gutter="10">
<el-col :span="14">
<el-form-item :class="flag ? 'marginBot0' : ''" label="共有方式:">
<el-radio-group :disabled="$route.query.viewtype==1" v-model="ruleForm.slywxx.gyfs">
<el-radio-group :disabled="$route.query.viewtype == 1" v-model="ruleForm.slywxx.gyfs">
<el-radio label="0">单独所有</el-radio>
<el-radio label="1">共同共有</el-radio>
<el-radio label="2">按份所有</el-radio>
......@@ -213,8 +213,8 @@
家庭成员
<div class="triangle"></div>
</div>
<JtcyTable :tableData="ruleForm.jtcyList" @upDateJtcyList="upDateJtcyList"
:viewtype="$route.query.viewtype" :gyfs="ruleForm.slywxx.gyfs" />
<JtcyTable :tableData="ruleForm.jtcyList" @upDateJtcyList="upDateJtcyList" :viewtype="$route.query.viewtype"
:gyfs="ruleForm.slywxx.gyfs" />
<div class="slxx_title title-block">
登记原因
<div class="triangle"></div>
......@@ -222,7 +222,8 @@
<el-row :gutter="10">
<el-col>
<el-form-item :class="flag ? 'marginBot0' : ''" label="登记原因:" prop="djyy">
<el-input class="textArea" type="textarea" :disabled="$route.query.viewtype==1" v-model="ruleForm.nydsyq.djyy">
<el-input class="textArea" type="textarea" :disabled="$route.query.viewtype == 1"
v-model="ruleForm.nydsyq.djyy">
</el-input>
</el-form-item>
</el-col>
......@@ -238,7 +239,7 @@
</template>
<script>
import { mapGetters } from "vuex"
import { Init, saveData } from "@/api/nydsyqFlow.js"
import { Init, saveData } from "@/api/workflow/nydsyqFlow.js"
import InformationTable from "@/views/workflow/components/InformationTable"
import JtcyTable from "@/views/workflow/components/JtcyTable"
export default {
......@@ -249,14 +250,14 @@ export default {
formdata.append("djlx", this.propsParam.djlx);
Init(formdata).then((res) => {
this.ruleForm = res.result;
if (res.code === 200 ) {
if (res.code === 200) {
}
else{
else {
this.$alert(res.message, '提示');
}
})
},
components: { InformationTable,JtcyTable },
components: { InformationTable, JtcyTable },
computed: {
...mapGetters(["dictData", "flag"])
},
......@@ -304,7 +305,7 @@ export default {
this.ruleForm.jtcyList = _.cloneDeep(val)
},
//水域滩涂类型变化事件
changeSyttlx(e){
changeSyttlx (e) {
let itemLx = {}
itemLx = this.dictData['A23'].find((item) => {
return item.dcode == e
......@@ -312,7 +313,7 @@ export default {
this.ruleForm.nydsyq.syttlxmc = itemLx.dname;
},
//养殖业方式变化事件
changeYzyfs(e){
changeYzyfs (e) {
let itemLx = {}
itemLx = this.dictData['A24'].find((item) => {
return item.dcode == e
......@@ -320,7 +321,7 @@ export default {
this.ruleForm.nydsyq.yzyfsmc = itemLx.dname;
},
//用地用海变化事件
changeYdyhfl(e){
changeYdyhfl (e) {
let itemLx = {}
itemLx = this.dictData['A51'].find((item) => {
return item.dcode == e
......
......@@ -58,7 +58,7 @@
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="10" >
<el-row :gutter="10">
<el-col :span="8">
<el-form-item :class="flag ? 'marginBot0' : ''" label="规划用途:">
<el-input disabled v-model="ruleForm.ygdj.ghyt"></el-input>
......@@ -92,7 +92,7 @@
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="10" >
<el-row :gutter="10">
<el-col :span="8">
<el-form-item :class="flag ? 'marginBot0' : ''" label="所在层:">
<el-input disabled v-model="ruleForm.ygdj.szc"></el-input>
......@@ -133,7 +133,7 @@
<el-row :gutter="10">
<el-col :span="14" v-if="ruleForm.qlxx">
<el-form-item :class="flag ? 'marginBot0' : ''" label="共有方式:">
<el-radio-group :disabled="$route.query.viewtype==1" v-model="ruleForm.slywxx.gyfs">
<el-radio-group :disabled="$route.query.viewtype == 1" v-model="ruleForm.slywxx.gyfs">
<el-radio label="0">单独所有</el-radio>
<el-radio label="1">共同共有</el-radio>
<el-radio label="2">按份所有</el-radio>
......@@ -157,7 +157,7 @@
<el-row :gutter="10">
<el-col>
<el-form-item :class="flag ? 'marginBot0' : ''" label="登记原因:" prop="djyy">
<el-input class="textArea" type="textarea" :disabled="$route.query.viewtype==1"
<el-input class="textArea" type="textarea" :disabled="$route.query.viewtype == 1"
v-model="ruleForm.ygdj.djyy">
</el-input>
</el-form-item>
......@@ -174,7 +174,7 @@
</template>
<script>
import InformationTable from "@/views/workflow/components/InformationTable";
import { Init, saveData } from "@/api/ygdjFlow.js";
import { Init, saveData } from "@/api/workflow/ygdjFlow.js";
import { mapGetters } from "vuex";
export default {
async created () {
......
......@@ -47,7 +47,7 @@
<div class="triangle"></div>
</div>
<!-- <el-button type="primary" style="float: right;margin-right: 20px; " @click="onClick">数据查看</el-button>-->
<!-- <el-button type="primary" style="float: right;margin-right: 20px; " @click="onClick">数据查看</el-button>-->
<el-row :gutter="10" v-if="ruleForm.qlxx">
<el-col :span="8">
......@@ -95,7 +95,7 @@
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="10" >
<el-row :gutter="10">
<el-col :span="8">
<el-form-item :class="flag ? 'marginBot0' : ''" label="所在层:">
<el-input disabled v-model="ruleForm.ygdj.szc"></el-input>
......@@ -136,7 +136,7 @@
<el-row :gutter="10">
<el-col :span="14" v-if="ruleForm.qlxx">
<el-form-item :class="flag ? 'marginBot0' : ''" label="共有方式:">
<el-radio-group :disabled="$route.query.viewtype==1" v-model="ruleForm.slywxx.gyfs">
<el-radio-group :disabled="$route.query.viewtype == 1" v-model="ruleForm.slywxx.gyfs">
<el-radio label="0">单独所有</el-radio>
<el-radio label="1">共同共有</el-radio>
<el-radio label="2">按份所有</el-radio>
......@@ -160,7 +160,7 @@
<el-row :gutter="10">
<el-col>
<el-form-item :class="flag ? 'marginBot0' : ''" label="登记原因:" prop="djyy">
<el-input class="textArea" type="textarea" :disabled="$route.query.viewtype==1"
<el-input class="textArea" type="textarea" :disabled="$route.query.viewtype == 1"
v-model="ruleForm.ygdj.djyy">
</el-input>
</el-form-item>
......@@ -177,7 +177,7 @@
</template>
<script>
import InformationTable from "@/views/workflow/components/InformationTable";
import { Init, saveData } from "@/api/ygdjFlow.js";
import { Init, saveData } from "@/api/workflow/ygdjFlow.js";
import { mapGetters } from "vuex";
export default {
async created () {
......@@ -207,8 +207,8 @@ export default {
};
},
methods: {
onClick(){
this.$popup("房屋信息比对","ywbl/ygdj/slxxCompareDetai",
onClick () {
this.$popup("房屋信息比对", "ywbl/ygdj/slxxCompareDetai",
{
formData: {
bsmSldy: this.propsParam.bsmSldy,
......