2254e166 by 杨威

宗地和自然幢表单判断只有临时状态可以编辑

1 parent 262f684b
......@@ -48,11 +48,13 @@ table,td,tr,.el-col,.title{
border: none;
color: #606764;
overflow: visible;
cursor: text;
text-align: left;
text-indent: 20px;
padding: 0;
}
input:disabled{
cursor: not-allowed;
}
.formInput:focus{
border: 1px solid #A0C5F6!important;
}
......
......@@ -8,14 +8,19 @@
<el-row>
<el-col :span="16" class="fl">
<el-radio-group v-model="gyfs">
<el-radio :label="item.bsm" :key="item.bsm" v-for="item in $store.state.gyfsList">{{item.mc}}</el-radio>
<el-radio :label="item.bsm" :disabled="qszt!='0'" :key="item.bsm" v-for="item in $store.state.gyfsList">{{item.mc}}</el-radio>
</el-radio-group>
</el-col>
<el-col :span="4" class="fr">
<el-col :span="4" class="fr" v-show="qszt=='0'">
<span class="span" @click="addRow">新增</span>
<span class="span" @click="changeRow">修改</span>
<span class="span" @click="delRow">删除</span>
</el-col>
<el-col :span="4" class="fr" v-show="qszt!='0'">
<span class="noEdit" @click="addRow">新增</span>
<span class="noEdit" @click="changeRow">修改</span>
<span class="noEdit" @click="delRow">删除</span>
</el-col>
</el-row>
</td>
</tr>
......@@ -300,9 +305,9 @@
export default {
props: {
widtd: {
qszt: {
type: String,
default: "70%",
default: "0",
},
title: {
type: String,
......@@ -539,6 +544,11 @@
margin-right: 10px;
cursor: pointer;
}
.noEdit {
color:#606266;
margin-right: 10px;
cursor: not-allowed;
}
.el-radio {
margin-right: 20px !important;
}
......
......@@ -77,7 +77,7 @@
:default-expand-all="defaultExpandAll"
:multiple="multiple"
:placeholder="placeholder"
:disabled="disabled"
:disabled="formData.qszt!='0'"
:data="$store.state.tdytList"
:props="treeProps"
:check-strictly="checkStrictly"
......@@ -92,7 +92,7 @@
:default-expand-all="defaultExpandAll"
:multiple="multiple"
:placeholder="placeholder"
:disabled="disabled"
:disabled="formData.qszt!='0'"
:data="$store.state.tdytList"
:props="treeProps"
:check-strictly="checkStrictly"
......@@ -102,6 +102,7 @@
</li>
<li>
<el-date-picker
:disabled="formData.qszt!='0'"
v-model="childItem.tdsyqssj"
type="date"
value-format="yyyy-MM-dd"
......@@ -131,6 +132,7 @@
<li>
<input
type="text"
:disabled="formData.qszt!='0'"
placeholder="请输入"
v-model="childItem.pzytdm"
class="formInput"
......@@ -139,6 +141,7 @@
<li>
<input
type="text"
:disabled="formData.qszt!='0'"
placeholder="请输入"
v-model="childItem.sjytdm"
class="formInput"
......@@ -147,6 +150,7 @@
<li>
<input
type="text"
:disabled="formData.qszt!='0'"
placeholder="请输入"
v-model="childItem.syqx"
class="formInput"
......@@ -174,6 +178,7 @@
<ul>
<li>
<el-select
:disabled="formData.qszt!='0'"
class="formSelect percent30"
v-model="childItem.pzdjbsm"
>
......@@ -188,6 +193,7 @@
</li>
<li>
<el-select
:disabled="formData.qszt!='0'"
class="formSelect percent30"
v-model="childItem.sjdjbsm"
>
......@@ -202,6 +208,7 @@
</li>
<li>
<el-date-picker
:disabled="formData.qszt!='0'"
v-model="childItem.tdsyjssj"
type="date"
value-format="yyyy-MM-dd"
......@@ -216,10 +223,10 @@
<div class="title">
<el-select-tree
v-if="show"
:disabled="formData.qszt!='0'"
:default-expand-all="defaultExpandAll"
:multiple="multiple"
:placeholder="placeholder"
:disabled="disabled"
:data="$store.state.qlxzList"
:props="treeProps"
:check-strictly="checkStrictly"
......@@ -235,10 +242,12 @@
import { getDdicByMC } from "../../api/common";
export default {
props: {
// widtd: {
// type: String,
// default: "70%",
// },
formData: {
type: Object,
default: () => {
return {};
},
},
},
data() {
return {
......@@ -290,6 +299,9 @@ export default {
};
},
created() {},
mounted(){
console.log(this.formData,'formData');
},
methods: {
//外层操作
handleClick(ind, type) {
......