95524904 by xiaomiao

--no commit message

1 parent f02a1424
......@@ -22,6 +22,7 @@ const getters = {
// workflow
isRefresh: state => state.user.isRefresh,
workFresh: state => state.user.workFresh,
yjsqOptions: state => state.workflow.yjsqOptions
yjsqOptions: state => state.workflow.yjsqOptions,
dqhj: state => state.getdqhj.dqhj
}
export default getters
......
const state = {
dqhj: "",
}
const mutations = {
SET_DQHJ: (state, data) => {
state.dqhj = data
}
}
const actions = {
setdqjh ({ commit }, data) {
commit('SET_DQHJ', data)
}
}
export default {
namespaced: true,
state,
mutations,
actions
}
......@@ -75,7 +75,7 @@ import { mapGetters } from "vuex";
import { getNewDatesh } from "@/utils/util";
export default {
computed: {
...mapGetters(["userData", "yjsqOptions", "userInfo"]),
...mapGetters(["dqhj", "yjsqOptions", "userInfo"]),
},
data() {
return {
......@@ -104,12 +104,22 @@ export default {
deep: true,
immediate: true,
},
dqhj: {
handler(val) {
if(this.$parent.dqhj){
this.getShList();
}
},
deep: true,
immediate: true,
},
},
created() {},
mounted() {
this.propsParam = this.$attrs;
this.viewEdit = this.$parent.currentSelectTab.ableOperation;
this.getShList();
switch (this.$parent.dqhj) {
case "cs":
......@@ -139,7 +149,7 @@ export default {
formdata.append("bestepid", this.$route.query.bestepid);
getSpyjList(formdata).then((res) => {
this.$endLoading();
if (res.code === 200 && res.result) {
this.$nextTick(() => {
this.tableData = res.result;
......@@ -174,10 +184,21 @@ export default {
item.show = false;
}
});
this.$endLoading();
});
}
});
},
/**
* @description: dataset
* @param {*} 数据处理
* @author: renchao
*/
dataset(){
},
/**
* @description: judgment
* @param {*} obj
......@@ -195,7 +216,7 @@ export default {
item["czjg"] = "1";
});
var index = this.tableData.findIndex(
(item) => item.shyj === null||item.shyj === ""
(item) => item.shyj ==null||item.shyj ==""
);
if(index==-1){
this.shows = true;
......
......@@ -60,6 +60,7 @@ export default {
this.leftButtonList = res.result.button;
if (res.result.properties && res.result.properties.length) {
this.dqhj = res.result.properties[0].value
this.$store.dispatch('getdqhj/setdqjh', this.dqhj);
}
this.rightButtonList = res.result.operation;
this.slsq = res.result.slsq
......@@ -220,7 +221,6 @@ export default {
record(formdata).then((res) => {
if (res.code === 200) {
if (res.result.length === 1) {
console.log(res.result, 'res.result');
res.result[0].state ? that.$message({
message: '登簿成功',
type: 'success'
......
......@@ -174,7 +174,6 @@
<el-form-item label="共有方式:">
<el-radio-group
:disabled="!viewEdit"
@change="showCZInfo"
v-model="ruleForm.sldy.gyfs"
>
<el-radio label="0">单独所有</el-radio>
......@@ -359,13 +358,7 @@ export default {
this.czrOptions = this.ruleForm.qlrList;
this.key++;
},
// /**
// * @description: showCZInfo
// * @author: renchao
// */
// showCZInfo() {
// console.log(this.ruleForm.slsq.gyfs);
// },
// 是否持证人变化
/**
* @description: 是否持证人变化
......
......@@ -151,7 +151,6 @@
<el-form-item label="共有方式:">
<el-radio-group
:disabled="!viewEdit"
@change="showCZInfo"
v-model="ruleForm.sldyList[0].gyfs"
>
<el-radio label="0">单独所有</el-radio>
......@@ -352,13 +351,8 @@ export default {
this.ruleForm.qlrList = _.cloneDeep(val);
this.czrOptions = this.ruleForm.qlrList;
},
/**
* @description: showCZInfo
* @author: renchao
*/
showCZInfo() {
// console.log(this.ruleForm.slsq.gyfs);
},
// 是否持证人变化
/**
* @description: 是否持证人变化
......