95524904 by xiaomiao

--no commit message

1 parent f02a1424
...@@ -22,6 +22,7 @@ const getters = { ...@@ -22,6 +22,7 @@ const getters = {
22 // workflow 22 // workflow
23 isRefresh: state => state.user.isRefresh, 23 isRefresh: state => state.user.isRefresh,
24 workFresh: state => state.user.workFresh, 24 workFresh: state => state.user.workFresh,
25 yjsqOptions: state => state.workflow.yjsqOptions 25 yjsqOptions: state => state.workflow.yjsqOptions,
26 dqhj: state => state.getdqhj.dqhj
26 } 27 }
27 export default getters 28 export default getters
......
1 const state = {
2 dqhj: "",
3 }
4
5 const mutations = {
6 SET_DQHJ: (state, data) => {
7 state.dqhj = data
8 }
9 }
10
11 const actions = {
12 setdqjh ({ commit }, data) {
13 commit('SET_DQHJ', data)
14 }
15 }
16
17 export default {
18 namespaced: true,
19 state,
20 mutations,
21 actions
22 }
...@@ -75,7 +75,7 @@ import { mapGetters } from "vuex"; ...@@ -75,7 +75,7 @@ import { mapGetters } from "vuex";
75 import { getNewDatesh } from "@/utils/util"; 75 import { getNewDatesh } from "@/utils/util";
76 export default { 76 export default {
77 computed: { 77 computed: {
78 ...mapGetters(["userData", "yjsqOptions", "userInfo"]), 78 ...mapGetters(["dqhj", "yjsqOptions", "userInfo"]),
79 }, 79 },
80 data() { 80 data() {
81 return { 81 return {
...@@ -104,12 +104,22 @@ export default { ...@@ -104,12 +104,22 @@ export default {
104 deep: true, 104 deep: true,
105 immediate: true, 105 immediate: true,
106 }, 106 },
107 dqhj: {
108 handler(val) {
109 if(this.$parent.dqhj){
110 this.getShList();
111 }
112 },
113 deep: true,
114 immediate: true,
115 },
116
107 }, 117 },
108 created() {}, 118 created() {},
109 mounted() { 119 mounted() {
110 this.propsParam = this.$attrs; 120 this.propsParam = this.$attrs;
111 this.viewEdit = this.$parent.currentSelectTab.ableOperation; 121 this.viewEdit = this.$parent.currentSelectTab.ableOperation;
112 this.getShList(); 122
113 123
114 switch (this.$parent.dqhj) { 124 switch (this.$parent.dqhj) {
115 case "cs": 125 case "cs":
...@@ -139,7 +149,7 @@ export default { ...@@ -139,7 +149,7 @@ export default {
139 formdata.append("bestepid", this.$route.query.bestepid); 149 formdata.append("bestepid", this.$route.query.bestepid);
140 150
141 getSpyjList(formdata).then((res) => { 151 getSpyjList(formdata).then((res) => {
142 this.$endLoading(); 152
143 if (res.code === 200 && res.result) { 153 if (res.code === 200 && res.result) {
144 this.$nextTick(() => { 154 this.$nextTick(() => {
145 this.tableData = res.result; 155 this.tableData = res.result;
...@@ -174,9 +184,20 @@ export default { ...@@ -174,9 +184,20 @@ export default {
174 item.show = false; 184 item.show = false;
175 } 185 }
176 }); 186 });
187 this.$endLoading();
177 }); 188 });
178 } 189 }
190
179 }); 191 });
192
193 },
194 /**
195 * @description: dataset
196 * @param {*} 数据处理
197 * @author: renchao
198 */
199 dataset(){
200
180 }, 201 },
181 /** 202 /**
182 * @description: judgment 203 * @description: judgment
...@@ -195,7 +216,7 @@ export default { ...@@ -195,7 +216,7 @@ export default {
195 item["czjg"] = "1"; 216 item["czjg"] = "1";
196 }); 217 });
197 var index = this.tableData.findIndex( 218 var index = this.tableData.findIndex(
198 (item) => item.shyj === null||item.shyj === "" 219 (item) => item.shyj ==null||item.shyj ==""
199 ); 220 );
200 if(index==-1){ 221 if(index==-1){
201 this.shows = true; 222 this.shows = true;
......
...@@ -60,6 +60,7 @@ export default { ...@@ -60,6 +60,7 @@ export default {
60 this.leftButtonList = res.result.button; 60 this.leftButtonList = res.result.button;
61 if (res.result.properties && res.result.properties.length) { 61 if (res.result.properties && res.result.properties.length) {
62 this.dqhj = res.result.properties[0].value 62 this.dqhj = res.result.properties[0].value
63 this.$store.dispatch('getdqhj/setdqjh', this.dqhj);
63 } 64 }
64 this.rightButtonList = res.result.operation; 65 this.rightButtonList = res.result.operation;
65 this.slsq = res.result.slsq 66 this.slsq = res.result.slsq
...@@ -220,7 +221,6 @@ export default { ...@@ -220,7 +221,6 @@ export default {
220 record(formdata).then((res) => { 221 record(formdata).then((res) => {
221 if (res.code === 200) { 222 if (res.code === 200) {
222 if (res.result.length === 1) { 223 if (res.result.length === 1) {
223 console.log(res.result, 'res.result');
224 res.result[0].state ? that.$message({ 224 res.result[0].state ? that.$message({
225 message: '登簿成功', 225 message: '登簿成功',
226 type: 'success' 226 type: 'success'
......
...@@ -174,7 +174,6 @@ ...@@ -174,7 +174,6 @@
174 <el-form-item label="共有方式:"> 174 <el-form-item label="共有方式:">
175 <el-radio-group 175 <el-radio-group
176 :disabled="!viewEdit" 176 :disabled="!viewEdit"
177 @change="showCZInfo"
178 v-model="ruleForm.sldy.gyfs" 177 v-model="ruleForm.sldy.gyfs"
179 > 178 >
180 <el-radio label="0">单独所有</el-radio> 179 <el-radio label="0">单独所有</el-radio>
...@@ -359,13 +358,7 @@ export default { ...@@ -359,13 +358,7 @@ export default {
359 this.czrOptions = this.ruleForm.qlrList; 358 this.czrOptions = this.ruleForm.qlrList;
360 this.key++; 359 this.key++;
361 }, 360 },
362 // /** 361
363 // * @description: showCZInfo
364 // * @author: renchao
365 // */
366 // showCZInfo() {
367 // console.log(this.ruleForm.slsq.gyfs);
368 // },
369 // 是否持证人变化 362 // 是否持证人变化
370 /** 363 /**
371 * @description: 是否持证人变化 364 * @description: 是否持证人变化
......
...@@ -151,7 +151,6 @@ ...@@ -151,7 +151,6 @@
151 <el-form-item label="共有方式:"> 151 <el-form-item label="共有方式:">
152 <el-radio-group 152 <el-radio-group
153 :disabled="!viewEdit" 153 :disabled="!viewEdit"
154 @change="showCZInfo"
155 v-model="ruleForm.sldyList[0].gyfs" 154 v-model="ruleForm.sldyList[0].gyfs"
156 > 155 >
157 <el-radio label="0">单独所有</el-radio> 156 <el-radio label="0">单独所有</el-radio>
...@@ -352,13 +351,8 @@ export default { ...@@ -352,13 +351,8 @@ export default {
352 this.ruleForm.qlrList = _.cloneDeep(val); 351 this.ruleForm.qlrList = _.cloneDeep(val);
353 this.czrOptions = this.ruleForm.qlrList; 352 this.czrOptions = this.ruleForm.qlrList;
354 }, 353 },
355 /** 354
356 * @description: showCZInfo 355
357 * @author: renchao
358 */
359 showCZInfo() {
360 // console.log(this.ruleForm.slsq.gyfs);
361 },
362 // 是否持证人变化 356 // 是否持证人变化
363 /** 357 /**
364 * @description: 是否持证人变化 358 * @description: 是否持证人变化
......