liwei
e 7 months ago
parent 1ba5b5efd9
commit 4d17fe5189

@ -0,0 +1,44 @@
<template>
<div class="gImageView">
<el-image
v-if="url"
style="width: 60px; height: 68px"
:src="url"
:preview-src-list="[url]"
>
</el-image>
</div>
</template>
<script>
export default {
props: {
value: {
type: String,
default: () => {
return "";
},
},
},
data() {
return {
baseUrl: window.$SERVICE.BASEURL,
url: "",
};
},
watch: {
value: {
handler(val) {
console.log(val)
if (val) {
this.url = this.baseUrl + val;
} else {
this.url = "";
}
},
deep: true,
immediate: true,
},
},
};
</script>
<style lang="less"></style>

@ -5,6 +5,7 @@
:width="width" :width="width"
:before-close="handleClose" :before-close="handleClose"
:close-on-click-modal="false" :close-on-click-modal="false"
:class="{ pageNoAllowOpt: formDisabled }"
> >
<el-form <el-form
ref="relForm" ref="relForm"
@ -135,7 +136,10 @@
<el-button v-if="cancelBtn" @click="dialogVisible = false" <el-button v-if="cancelBtn" @click="dialogVisible = false"
>取消</el-button >取消</el-button
> >
<el-button v-if="submitBtn" type="primary" @click="submitForm" <el-button
v-if="submitBtn && !formDisabled"
type="primary"
@click="submitForm"
>确定</el-button >确定</el-button
> >
<el-button v-if="closeBtn" @click="dialogVisible = false"></el-button> <el-button v-if="closeBtn" @click="dialogVisible = false"></el-button>
@ -269,4 +273,20 @@ export default {
} }
} }
} }
.pageNoAllowOpt {
.el-textarea,
.el-select,
.el-input,
.el-btn,
.el-calendar,
.el-calendar-picker,
.el-checkbox-input,
.el-checkbox,
.el-checkbox-wrapper,
.el-input-number {
cursor: not-allowed;
-ms-pointer-events: none;
pointer-events: none;
}
}
</style> </style>

@ -1,57 +1,57 @@
import Vue from 'vue' import Vue from "vue";
import App from './App.vue' import App from "./App.vue";
import ElementUI from 'element-ui'; import ElementUI from "element-ui";
import HighchartsVue from 'highcharts-vue' import HighchartsVue from "highcharts-vue";
import highcharts from 'highcharts' import highcharts from "highcharts";
import highcharts3d from 'highcharts/highcharts-3d' import highcharts3d from "highcharts/highcharts-3d";
import 'element-ui/lib/theme-chalk/index.css'; import "element-ui/lib/theme-chalk/index.css";
import router from './router' import router from "./router";
import store from './store' import store from "./store";
import Message from './components/message'; import Message from "./components/message";
import erupload from "./components/upload"; import erupload from "./components/upload";
import lkyTable from "./components/publicModule/lkyTable" // 本组件样式包含普通表格、分页 import lkyTable from "./components/publicModule/lkyTable"; // 本组件样式包含普通表格、分页
import lkyPagination from "./components/publicModule/lkyPagination" // 本组件单独抽离分页样式 import lkyPagination from "./components/publicModule/lkyPagination"; // 本组件单独抽离分页样式
import "@/loveflow/assets/index.less" import "@/loveflow/assets/index.less";
import "@/loveflow/assets/reset.less" import "@/loveflow/assets/reset.less";
import "@/loveflow/assets/reset.scss" import "@/loveflow/assets/reset.scss";
import * as cusRule from '@/loveflow/rules' import * as cusRule from "@/loveflow/rules";
import { registerPlugins } from '@/loveflow/plugins/index' import { registerPlugins } from "@/loveflow/plugins/index";
import FormDialog from '@/loveflow/components/modal/formDialog.vue' import FormDialog from "@/loveflow/components/modal/formDialog.vue";
import gMainTable from '@/loveflow/components/data/table.vue' import gMainTable from "@/loveflow/components/data/table.vue";
import gScreenTable from '@/loveflow/components/data/screenTable.vue' import gScreenTable from "@/loveflow/components/data/screenTable.vue";
import gDict from '@/loveflow/components/data/dict.vue' import gDict from "@/loveflow/components/data/dict.vue";
import gTab from '@/loveflow/components/data/tabWrap.vue' import gTab from "@/loveflow/components/data/tabWrap.vue";
import gChart from '@/loveflow/components/echart/chart.vue' import gChart from "@/loveflow/components/echart/chart.vue";
import gImageView from "@/loveflow/components/data/imageView.vue";
import * as echarts from "echarts"; import * as echarts from "echarts";
Vue.prototype.$echarts = echarts; Vue.prototype.$echarts = echarts;
highcharts3d(highcharts) highcharts3d(highcharts);
Vue.prototype.$rules = cusRule Vue.prototype.$rules = cusRule;
registerPlugins(Vue) registerPlugins(Vue);
Vue.use(ElementUI); Vue.use(ElementUI);
Vue.use(Message); Vue.use(Message);
Vue.use(HighchartsVue) Vue.use(HighchartsVue);
Vue.component('erupload', erupload) Vue.component("erupload", erupload);
Vue.component('lkyTable', lkyTable) Vue.component("lkyTable", lkyTable);
Vue.component('lkyPagination',lkyPagination) Vue.component("lkyPagination", lkyPagination);
Vue.component('FormDialog', FormDialog) Vue.component("FormDialog", FormDialog);
Vue.component('gMainTable', gMainTable) Vue.component("gMainTable", gMainTable);
Vue.component('gScreenTable', gScreenTable) Vue.component("gScreenTable", gScreenTable);
Vue.component('gDict', gDict) Vue.component("gDict", gDict);
Vue.component('gTab', gTab) Vue.component("gTab", gTab);
Vue.component('gChart', gChart) Vue.component("gChart", gChart);
Vue.component("gImageView", gImageView);
const vm = new Vue({ const vm = new Vue({
el: '#app', el: "#app",
router, router,
store, store,
render: h => h(App) render: (h) => h(App),
}).$mount('#app') }).$mount("#app");
export default vm export default vm;

@ -56,7 +56,7 @@
v-if="item.auditState == '1'" v-if="item.auditState == '1'"
@click="examine(item)" @click="examine(item)"
> >
审核 回复
</div> </div>
<div class="optBtn" @click="checkDetail(item)"></div> <div class="optBtn" @click="checkDetail(item)"></div>
</div> </div>
@ -130,10 +130,10 @@ export default {
}, },
methods: { methods: {
checkDetail(obj) { checkDetail(obj) {
this.$refs.formDialog.openDialog("detail", obj); this.$refs.formDialog.openDialog("detail", obj, "业务咨询详情");
}, },
examine(obj) { examine(obj) {
this.$refs.formDialog.openDialog("other", obj, "业务咨询审核"); this.$refs.formDialog.openDialog("other", obj, "业务咨询回复");
}, },
reset() { reset() {
this.queryParam = {}; this.queryParam = {};

@ -49,13 +49,7 @@
</template> </template>
<template v-slot:optSlot="{ scope }"> <template v-slot:optSlot="{ scope }">
<el-image <gImageView :value="scope.row.picUrl"></gImageView>
v-if="scope.row.picUrl"
style="width: 60px; height: 68px"
:src="scope.row.picUrl"
:preview-src-list="[scope.row.picUrl]"
>
</el-image>
</template> </template>
</gMainTable> </gMainTable>
</div> </div>

@ -35,13 +35,7 @@
rowKey="id" rowKey="id"
> >
<template v-slot:photoSlot="{ scope }"> <template v-slot:photoSlot="{ scope }">
<el-image <gImageView :value="scope.row.picUrl"></gImageView>
v-if="scope.row.picUrl"
style="width: 60px; height: 68px"
:src="scope.row.picUrl"
:preview-src-list="[scope.row.picUrl]"
>
</el-image>
</template> </template>
<template v-slot:optSlot="{ scope }"> <template v-slot:optSlot="{ scope }">
<el-radio v-model="scope.row.auditResult" label="0"></el-radio> <el-radio v-model="scope.row.auditResult" label="0"></el-radio>

@ -56,7 +56,7 @@
v-if="item.auditState == '1'" v-if="item.auditState == '1'"
@click="examine(item)" @click="examine(item)"
> >
审核 回复
</div> </div>
<div class="optBtn" @click="checkDetail(item)"></div> <div class="optBtn" @click="checkDetail(item)"></div>
</div> </div>
@ -130,10 +130,10 @@ export default {
}, },
methods: { methods: {
checkDetail(obj) { checkDetail(obj) {
this.$refs.formDialog.openDialog("detail", obj); this.$refs.formDialog.openDialog("detail", obj, "法律咨询详情");
}, },
examine(obj) { examine(obj) {
this.$refs.formDialog.openDialog("other", obj, "法律咨询审核"); this.$refs.formDialog.openDialog("other", obj, "法律咨询回复");
}, },
reset() { reset() {
this.queryParam = {}; this.queryParam = {};

@ -49,13 +49,7 @@
</template> </template>
<template v-slot:optSlot="{ scope }"> <template v-slot:optSlot="{ scope }">
<el-image <gImageView :value="scope.row.picUrl"></gImageView>
v-if="scope.row.picUrl"
style="width: 60px; height: 68px"
:src="scope.row.picUrl"
:preview-src-list="[scope.row.picUrl]"
>
</el-image>
</template> </template>
</gMainTable> </gMainTable>
</div> </div>

@ -35,13 +35,14 @@
rowKey="id" rowKey="id"
> >
<template v-slot:photoSlot="{ scope }"> <template v-slot:photoSlot="{ scope }">
<el-image <!-- <el-image
v-if="scope.row.picUrl" v-if="scope.row.picUrl"
style="width: 60px; height: 68px" style="width: 60px; height: 68px"
:src="scope.row.picUrl" :src="scope.row.picUrl"
:preview-src-list="[scope.row.picUrl]" :preview-src-list="[scope.row.picUrl]"
> >
</el-image> </el-image> -->
<gImageView :value="scope.row.picUrl"></gImageView>
</template> </template>
<template v-slot:optSlot="{ scope }"> <template v-slot:optSlot="{ scope }">
<el-radio v-model="scope.row.auditResult" label="0"></el-radio> <el-radio v-model="scope.row.auditResult" label="0"></el-radio>

Loading…
Cancel
Save