e7243a9a by 田浩浩

11111

1 parent b7442b3d
......@@ -103,9 +103,8 @@
<lb-table :column="clxxCol" border heightNumSetting :pagination="false" :data="form.clxx">
</lb-table>
</el-collapse-item>
<el-collapse-item title="刷选条件设置" name="3">
<div v-if="form.ywDetail.sfsxql != '0'">
<div class="dyztsd-title">
<el-collapse-item title="刷选权利设置" name="3" v-if="form.ywDetail.sfsxql == '1'">
<div class="dyztsd-title">
<b>请勾选需要查询的权利信息</b>
<div>
<el-button type="text" @click="handleSelectall">选择全部 </el-button>
......@@ -118,32 +117,31 @@
<el-checkbox v-model="item.checked">{{ item.sxzdmc }}</el-checkbox>
</li>
</ul>
</div>
<b>限制办理状态</b>
</el-collapse-item>
<el-collapse-item title="办理状态设置" name="4">
<ul class="screen-list">
<li v-for="(item, index) in form.sxzt" :key="index">
<div class="screen-list-left">
<el-switch v-model="item.checked" @change="handleSelect(item)">
</el-switch>
{{ item.sxzdmc }}
</div>
<el-radio-group v-model="item.selected" :disabled="!item.checked">
<el-radio :label="obj.sxzdz" v-for="(obj, index) in item.children" :key="index">{{ obj.sxzdmc }}</el-radio>
</el-radio-group>
{{ item.sxzdmc }}
<el-radio-group v-model="item.selected" >
<el-radio label="1">禁止办理</el-radio>
<el-radio label="0">忽略</el-radio>
</el-radio-group>
</div>
</li>
</ul>
</el-collapse-item>
</el-collapse>
<div slot="footer" class="dialog-footer">
<el-button @click="cancelDialog">取 消</el-button>
<el-button type="primary" @click="cancelDialog">确 定</el-button>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submit">提 交</el-button>
<el-button @click="cancelDialog">取 消</el-button>
</div>
</el-dialog>
</template>
<script>
import { mapGetters } from 'vuex';
import { upward, down } from '@/utils/operation'
import { getDjlxInfo, getSqdjywDetail } from "@/api/system.js";
import { getDjlxInfo, getSqdjywDetail,saveSqdjyw } from "@/api/system.js";
export default {
//父组件 传 过来的 值
props: {
......@@ -401,6 +399,7 @@ export default {
this.tn = index;
this.getDetail(this.djlxList[index].bsmSqyw);
},
//获取业务具体明细内容
getDetail(bsmSqyw) {
getSqdjywDetail(bsmSqyw).then((res) => {
if (res.code === 200) {
......@@ -410,6 +409,19 @@ export default {
}
});
},
//提交保存数据
submit(){
let that = this;
saveSqdjyw(this.form).then(res => {
if (res.code == 200) {
that.$message({
message: '修改成功',
type: 'success'
})
// that.$emit('input', false)
}
})
},
//修改父组件传过来的值
cancelDialog() {
this.$emit("update:dialogVisible", false);
......@@ -453,4 +465,48 @@ export default {
background: $light-blue !important;
color: #fff;
}
.dyztsd-title {
@include flex;
align-items: center;
justify-content: space-between;
padding-left: 20px;
}
.qlxx-list {
@include flex;
flex-wrap: wrap;
padding-left: 20px;
li {
width: 25%;
margin-bottom: 15px;
}
}
.screen-list {
@include flex;
align-items: center;
flex-wrap: wrap;
border: 1px solid $borderColor;
border-bottom: none;
li {
@include flex;
align-items: center;
width: 25%;
line-height: 50px;
border-bottom: 1px solid $borderColor;
padding-left: 20px;
}
&-left {
margin-right: 20px;
width: 160px;
white-space: nowrap;
}
li:nth-child(odd) {
border-right: 1px solid $borderColor;
}
}
</style>
\ No newline at end of file
......