1b7ccc48 by 任超

style:地役权

2 parents 07053667 8aff5c97
......@@ -25,13 +25,13 @@
</el-col>
<el-col :span="8">
<el-form-item prop="DJDL" class="borderTopNone">
<el-form-item prop="DJLX" class="borderTopNone">
<span slot="label">
登记大类<br />
<p class="label-detail">(DJDL</p>
登记类型<br />
<p class="label-detail">(DJLX</p>
</span>
<el-select :disabled="$store.state.business.Edit" v-model="ruleForm.DJDL"
:placeholder="$store.state.business.Edit ? '' : '登记大类'">
<el-select :disabled="$store.state.business.Edit" v-model="ruleForm.DJLX"
:placeholder="$store.state.business.Edit ? '' : '登记类型'">
<el-option v-for="item in dicData['A21']" :key="item.DCODE" :label="item.DNAME" :value="item.DCODE">
</el-option>
</el-select>
......@@ -40,7 +40,7 @@
</el-row>
<el-row>
<el-col :span="8">
<!-- <el-col :span="8">
<el-form-item prop="DJXL">
<span slot="label">
登记小类: <br />
......@@ -49,7 +49,7 @@
<el-input :disabled="$store.state.business.Edit" v-model="ruleForm.DJXL"
:placeholder="$store.state.business.Edit ? '' : '登记小类'"></el-input>
</el-form-item>
</el-col>
</el-col> -->
<el-col :span="8">
<el-form-item prop="QXDM">
......@@ -68,24 +68,26 @@
申请证书版式: <br />
<p class="label-detail">(SQZSBS)</p>
</span>
<item-select :placeholder="$store.state.business.Edit ? '' : '申请证书版式'" v-model="ruleForm.SQZSBS"
selectType="A41" transformation />
<el-select :disabled="$store.state.business.Edit" v-model="ruleForm.SQZSBS" placeholder="申请证书版式">
<el-option v-for="item in dicData['A41']" :key="item.DCODE" :label="item.DNAME" :value="item.DCODE">
</el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
<!-- 申请分别持证 -->
<el-row>
<el-col :span="8">
<el-form-item prop="SQFBCZ" :rules="{ type: 'number' }">
<span slot="label">
申请分别持证: <br />
<p class="label-detail">(SQFBCZ)</p>
</span>
<item-select :placeholder="$store.state.business.Edit ? '' : '申请分别持证'" v-model="ruleForm.SQZSBS"
selectType="A6" transformation />
<el-select :disabled="$store.state.business.Edit" v-model="ruleForm.SQFBCZ" placeholder="申请分别持证">
<el-option v-for="item in dicData['A6']" :key="item.DCODE" :label="item.DNAME" :value="item.DCODE">
</el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<el-form-item prop="SLRY">
<span slot="label">
......@@ -109,9 +111,6 @@
</el-date-picker>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<el-form-item prop="ZL">
<span slot="label">
......@@ -122,7 +121,8 @@
:placeholder="$store.state.business.Edit ? '' : '坐落'"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<el-form-item prop="TZRXM">
<span slot="label">
......@@ -146,9 +146,6 @@
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<el-form-item prop="TZRDH">
<span slot="label">
......@@ -159,7 +156,8 @@
maxlength="11" placeholder="通知人电话" v-model="ruleForm.TZRDH"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<el-form-item prop="TZRYDDH">
<span slot="label">
......@@ -170,21 +168,17 @@
onkeyup="this.value=this.value.replace(/[^\d.]/g,'');" maxlength="11"></el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item prop="TZRDZYJ">
<span slot="label">
通知人电子邮件: <br />
<p class="label-detail">(TZRDZYJ)</p>
</span>
<el-input :disabled="$store.state.business.Edit" v-model="ruleForm.TZRDZYJ"
placeholder="通知人电子邮件"></el-input>
<el-input :disabled="$store.state.business.Edit" v-model="ruleForm.TZRDZYJ" placeholder="通知人电子邮件">
</el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<el-col :span="8">
<el-form-item prop="SFWTAJ">
<span slot="label">
是否问题案件: <br />
......@@ -196,7 +190,8 @@
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<el-form-item prop="JSSJ">
<span slot="label">
......@@ -208,7 +203,6 @@
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item prop="AJZT">
<span slot="label">
......@@ -221,9 +215,6 @@
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<el-form-item prop="BZ">
<span slot="label">
......@@ -240,67 +231,67 @@
</template>
<script>
// 登记受理申请信息
import business from '@/api/business'
import ruleMixin from '@/mixins/ruleMixin.js'
import business from "@/api/business";
import ruleMixin from "@/mixins/ruleMixin.js";
export default {
mixins: [ruleMixin],
props: {
bsmSjsb: {
type: String,
default: ''
default: "",
},
bsmYwsjb: {
type: String,
default: ''
}
default: "",
},
},
data () {
data() {
return {
ruleForm: {
YSDM: '',
YWH: '',
DJDL: '',
DJXL: '',
QXDM: '',
YSDM: "",
YWH: "",
DJDL: "",
DJXL: "",
QXDM: "",
SQZSBS: null,
SQFBCZ: null,
SLRY: '',
SLSJ: '',
ZL: '',
TZRXM: '',
TZFS: '',
TZRDH: '',
TZRYDDH: '',
TZRDZYJ: '',
SFWTAJ: '',
JSSJ: '',
AJZT: '',
BZ: ''
}
}
SLRY: "",
SLSJ: "",
ZL: "",
TZRXM: "",
TZFS: "",
TZRDH: "",
TZRYDDH: "",
TZRDZYJ: "",
SFWTAJ: "",
JSSJ: "",
AJZT: "",
BZ: "",
},
};
},
methods: {
async featchData () {
async featchData() {
try {
let { result: res } = await business.getDjtDjSlsqById(this.bsmSjsb)
this.ruleForm = res
let { result: res } = await business.getDjtDjSlsqById(this.bsmSjsb);
this.ruleForm = res;
//this.featchRule()
} catch (error) {
this.$refs.msg.messageShow()
this.$refs.msg.messageShow();
}
},
handleUpdateForm () {
handleUpdateForm() {
return new Promise(async (resolve) => {
try {
let res = await business.updateDjtDjSlsq(this.ruleForm)
resolve(res.code)
let res = await business.updateDjtDjSlsq(this.ruleForm);
resolve(res.code);
} catch (error) {
this.$refs.msg.messageShow()
this.$refs.msg.messageShow();
}
})
});
},
}
}
},
};
</script>
<style scoped lang="scss">
@import "./css/itemForm.scss";
......
......@@ -36,6 +36,10 @@ export default {
axisLabel: {
show: true,
color: "#ffff",
textStyle: {
fontWeight: "normal",
fontSize: "8",
},
},
axisTick: {
show: false,
......@@ -45,7 +49,7 @@ export default {
lineStyle: {
color: "rgba(95, 180, 237, 0.32)",
},
},
}
},
yAxis: {
splitLine: {
......
......@@ -3,48 +3,84 @@
</template>
<script>
import Chart from './chart.vue'
import Chart from "./chart.vue";
export default {
data () {
data() {
return {
cdata: {
category: [
"首次",
"转移",
"变更",
"注销",
"更正",
"异议",
"预告",
"查封",
"其他",
],
lineData: [
14715,
8444,
10415,
6061,
18092,
12728,
9045,
8348,
20008,
],
}
category: [],
lineData: [],
},
};
},
components: {
Chart,
},
mounted () {
created() {
this.queryClick();
},
mounted() {},
methods: {
}
queryClick() {
console.log("来了kkksxdx");
// getDataReportPage({ ...this.form, ...this.pageData }).then((res) => {
let data = {
success: true,
message: "操作成功!",
code: 200,
result: [
{
AREACODE: "转移登记",
ywtotal: "2",
},
{
AREACODE: "变更登记",
ywtotal: "4",
},
{
AREACODE: "注销登记",
ywtotal: "6",
},
{
AREACODE: "更正登记",
ywtotal: "2",
},
{
AREACODE: "首次登记",
ywtotal: "11",
},
{
AREACODE: "预告登记",
ywtotal: "5",
},
{
AREACODE: "补证",
ywtotal: "1",
},
{
AREACODE: "换证",
ywtotal: "2",
},
{
AREACODE: "查封登记",
ywtotal: "2",
},
],
timestamp: 1673856701381,
};
if (data.code === 200) {
data.result.filter((item) => {
return (
this.cdata.category.push(item.AREACODE),
this.cdata.lineData.push(item.ywtotal)
);
});
console.log("this.cdata", this.cdata);
}
// });
},
},
};
</script>
<style lang="scss" scoped>
</style>
<style lang="scss" scoped></style>
......
......@@ -48,7 +48,7 @@ export default {
}
.appMain {
height: calc(100vh - 94px) !important;
height: calc(100vh - 101px) !important;
box-sizing: border-box;
.app-main {
......
......@@ -24,4 +24,4 @@ export default {
width: 100%;
margin-right: 15px;
}
</style>
\ No newline at end of file
</style>
......
......@@ -44,4 +44,4 @@ $borderColor: #EBEEF5;
sideBarFontSize: $sideBarFontSize;
borderColor: $borderColor;
headerHeight: $headerHeight;
}
\ No newline at end of file
}
......
......@@ -27,8 +27,8 @@
<el-input v-model="form.CFWH" placeholder="查封文号"></el-input>
</el-form-item>
</el-col>
<el-col :span="4" class="from-clues-search-button">
<el-button type="primary" @click="handleSubmit">查询结果</el-button>
<el-col :span="4" class="btnColRight">
<btn nativeType="cx" @click="handleSubmit">查询结果</btn>
</el-col>
</el-row>
</el-form>
......@@ -151,4 +151,4 @@ export default {
</script>
<style scoped lang="scss">
@import "~@/styles/public.scss";
</style>
\ No newline at end of file
</style>
......
......@@ -22,8 +22,8 @@
</el-select>
</el-form-item>
</el-col>
<el-col :span="4" class="from-clues-search-button">
<el-button type="primary" @click="handleSubmit">查询结果</el-button>
<el-col :span="4" class="btnColRight">
<btn nativeType="cx" @click="handleSubmit">查询结果</btn>
</el-col>
</el-row>
</el-form>
......
......@@ -196,4 +196,4 @@ export default {
<style scoped lang="scss">
@import "~@/styles/public.scss";
@import "./index.scss";
</style>
\ No newline at end of file
</style>
......
......@@ -31,8 +31,8 @@
<el-input v-model="form.BDCDYH" placeholder="不动产单元号"></el-input>
</el-form-item>
</el-col>
<el-col :span="4" class="btnColRight">
<el-button type="primary" @click="handleSubmit">查询结果</el-button>
<el-col :span="4" class="btnColRight">
<btn nativeType="cx" @click="handleSubmit">查询结果</btn>
</el-col>
</el-row>
</el-form>
......@@ -191,4 +191,4 @@ export default {
</script>
<style scoped lang="scss">
@import "~@/styles/public.scss";
</style>
\ No newline at end of file
</style>
......
......@@ -22,8 +22,8 @@
<el-input v-model="form.BDCDYH" placeholder="不动产单元号"></el-input>
</el-form-item>
</el-col>
<el-col :span="9" class="btnColRight">
<el-button type="primary" @click="handleSubmit">查询结果</el-button>
<el-col :span="4" class="btnColRight">
<btn nativeType="cx" @click="handleSubmit">查询结果</btn>
</el-col>
</el-row>
</el-form>
......@@ -147,4 +147,4 @@ export default {
</script>
<style scoped lang="scss">
@import "~@/styles/public.scss";
</style>
\ No newline at end of file
</style>
......
......@@ -32,7 +32,7 @@
</el-form-item>
</el-col>
<el-col :span="4" class="btnColRight">
<el-button type="primary" @click="handleSubmit">查询结果</el-button>
<btn nativeType="cx" @click="handleSubmit">查询结果</btn>
</el-col>
</el-row>
</el-form>
......@@ -191,4 +191,4 @@ export default {
</script>
<style scoped lang="scss">
@import "~@/styles/public.scss";
</style>
\ No newline at end of file
</style>
......
......@@ -31,8 +31,8 @@
<el-input v-model="form.BDCDYH" placeholder="不动产单元号"></el-input>
</el-form-item>
</el-col>
<el-col :span="4" class="from-clues-search-button">
<el-button type="primary" @click="handleSubmit">查询结果</el-button>
<el-col :span="4" class="btnColRight">
<btn nativeType="cx" @click="handleSubmit">查询结果</btn>
</el-col>
</el-row>
</el-form>
......@@ -161,4 +161,4 @@ export default {
<style scoped lang="scss">
@import "~@/styles/public.scss";
@import "./index.scss";
</style>
\ No newline at end of file
</style>
......
......@@ -31,8 +31,8 @@
<el-input v-model="form.BDCDYH" placeholder="不动产单元号"></el-input>
</el-form-item>
</el-col>
<el-col :span="4" class="from-clues-search-button">
<el-button type="primary" @click="handleSubmit">查询结果</el-button>
<el-col :span="4" class="btnColRight">
<btn nativeType="cx" @click="handleSubmit">查询结果</btn>
</el-col>
</el-row>
</el-form>
......
......@@ -32,7 +32,7 @@
</el-form-item>
</el-col>
<el-col :span="4" class="btnColRight">
<el-button type="primary" @click="handleSubmit">查询结果</el-button>
<btn nativeType="cx" @click="handleSubmit">查询结果</btn>
</el-col>
</el-row>
</el-form>
......@@ -192,4 +192,4 @@ export default {
<style scoped lang="scss">
@import "~@/styles/public.scss";
@import "./index.scss";
</style>
\ No newline at end of file
</style>
......
......@@ -13,8 +13,8 @@
<el-input v-model="form.BDCDYH" placeholder="不动产单元号"></el-input>
</el-form-item>
</el-col>
<el-col :span="14" class="btnColRight">
<el-button type="primary" @click="handleSubmit">查询结果</el-button>
<el-col :span="4" class="btnColRight">
<btn nativeType="cx" @click="handleSubmit">查询结果</btn>
</el-col>
</el-row>
</el-form>
......@@ -135,4 +135,4 @@ export default {
<style scoped lang="scss">
@import "~@/styles/public.scss";
@import "./index.scss";
</style>
\ No newline at end of file
</style>
......
......@@ -31,8 +31,8 @@
<el-input v-model="form.BDCDYH" placeholder="不动产单元号"></el-input>
</el-form-item>
</el-col>
<el-col :span="4" class="from-clues-search-button">
<el-button type="primary" @click="handleSubmit">查询结果</el-button>
<el-col :span="4" class="btnColRight">
<btn nativeType="cx" @click="handleSubmit">查询结果</btn>
</el-col>
</el-row>
</el-form>
......@@ -161,4 +161,4 @@ export default {
<style scoped lang="scss">
@import "~@/styles/public.scss";
@import "./index.scss";
</style>
\ No newline at end of file
</style>
......
......@@ -31,8 +31,8 @@
<el-input v-model="form.BDCDYH" placeholder="不动产单元号"></el-input>
</el-form-item>
</el-col>
<el-col :span="3" class="from-clues-search-button">
<el-button type="primary" @click="handleSubmit">查询结果</el-button>
<el-col :span="4" class="btnColRight">
<btn nativeType="cx" @click="handleSubmit">查询结果</btn>
</el-col>
</el-row>
</el-form>
......
......@@ -31,8 +31,8 @@
<el-input v-model="form.BDCDYH" placeholder="不动产单元号"></el-input>
</el-form-item>
</el-col>
<el-col :span="4" class="from-clues-search-button">
<el-button type="primary" @click="handleSubmit">查询结果</el-button>
<el-col :span="4" class="btnColRight">
<btn nativeType="cx" @click="handleSubmit">查询结果</btn>
</el-col>
</el-row>
</el-form>
......@@ -159,4 +159,4 @@ export default {
</script>
<style scoped lang="scss">
@import "~@/styles/public.scss";
</style>
\ No newline at end of file
</style>
......
......@@ -13,8 +13,8 @@
<el-input v-model="form.BDCDYH" placeholder="不动产单元号"></el-input>
</el-form-item>
</el-col>
<el-col :span="14" class="btnColRight">
<el-button type="primary" @click="handleSubmit">查询结果</el-button>
<el-col :span="4" class="btnColRight">
<btn nativeType="cx" @click="handleSubmit">查询结果</btn>
</el-col>
</el-row>
</el-form>
......@@ -133,4 +133,4 @@ export default {
<style scoped lang="scss">
@import "~@/styles/public.scss";
@import "./index.scss";
</style>
\ No newline at end of file
</style>
......
......@@ -20,11 +20,11 @@
>
</el-date-picker>
</el-col>
<!-- 按钮操作 -->
<el-col :span="12" class="btnColRight">
<el-button type="default" @click="resetForm"> 重置 </el-button>
<el-button type="primary"> 查询 </el-button>
</el-col>
<!-- 操作按钮 -->
<el-col :span="3" class="btnColRight">
<btn nativeType="cz" @click="resetForm">重置</btn>
<btn nativeType="cx">查询</btn>
</el-col>
</el-row>
</el-form>
<!-- 表格 -->
......@@ -86,10 +86,10 @@ export default {
text: "汉中市接入数量与上报数量统计(单位:个)\n(2022年02月05日~2022年03月07日)",
left: "center",
textStyle: {
fontSize: 30,
fontSize: 20,
lineHeight: 30,
height: 60,
color: "#fff",
color: "#b6b5b5",
},
},
legend: {
......@@ -101,7 +101,7 @@ export default {
],
top: 80,
textStyle: {
fontSize: 24,
fontSize: 20,
lineHeight: 30,
height: 60,
color: "#777",
......@@ -111,7 +111,7 @@ export default {
show: true,
trigger: "axis",
textStyle: {
fontSize: 22 // 字体大小
fontSize: 20 // 字体大小
},
extraCssText: 'width:260px;height:200px;' // 背景色
},
......@@ -126,7 +126,7 @@ export default {
textStyle: {
show: true,
color: "#fff",
fontSize: "24",
fontSize: "20",
},
},
},
......@@ -138,7 +138,7 @@ export default {
textStyle: {
show: true,
color: "#fff",
fontSize: "24",
fontSize: "20",
},
},
},
......@@ -194,6 +194,7 @@ export default {
.form-clues-content {
flex: 1;
height: 100%;
color: #b6b5b5
}
}
</style>
......
......@@ -20,11 +20,11 @@
>
</el-date-picker>
</el-col>
<!-- 按钮操作 -->
<el-col :span="12" class="btnColRight">
<el-button type="default" @click="resetForm"> 重置 </el-button>
<el-button type="primary"> 查询 </el-button>
</el-col>
<!-- 操作按钮 -->
<el-col :span="3" class="btnColRight">
<btn nativeType="cz" @click="resetForm">重置</btn>
<btn nativeType="cx">查询</btn>
</el-col>
</el-row>
</el-form>
<!-- 表格 -->
......@@ -86,10 +86,10 @@ export default {
text: "汉中市接入数量与上报数量统计(单位:个)\n(2022年02月05日~2022年03月07日)",
left: "center",
textStyle: {
fontSize: 30,
fontSize: 20,
lineHeight: 30,
height: 60,
color: "#fff",
color: "#b6b5b5",
},
},
legend: {
......@@ -101,7 +101,7 @@ export default {
],
top: 80,
textStyle: {
fontSize: 24,
fontSize: 20,
lineHeight: 30,
height: 60,
color: "#777",
......@@ -111,7 +111,7 @@ export default {
show: true,
trigger: "axis",
textStyle: {
fontSize: 22 // 字体大小
fontSize: 20 // 字体大小
},
extraCssText: 'width:260px;height:200px;' // 背景色
},
......@@ -126,7 +126,7 @@ export default {
textStyle: {
show: true,
color: "#fff",
fontSize: "24",
fontSize: "20",
},
},
},
......@@ -138,7 +138,7 @@ export default {
textStyle: {
show: true,
color: "#fff",
fontSize: "24",
fontSize: "20",
},
},
},
......
......@@ -14,11 +14,11 @@
<el-input v-model="ruleForm.dname" @clear="queryClick" clearable placeholder="字典类型名称"></el-input>
</el-form-item>
</el-col>
<!-- 操作按钮 -->
<el-col :span="12" class="btnColRight">
<el-form-item>
<el-button type="primary" native-type="submit" icon="el-icon-search" @click="queryClick">查询</el-button>
<el-button icon="el-icon-refresh" @click="handleRefresh">刷新缓存</el-button>
</el-form-item>
<btn nativeType="cx" @click="queryClick">查询</btn>
<btn nativeType="sb" @click="handleRefresh">刷新缓存</btn>
</el-col>
</el-row>
</el-form>
......
......@@ -5,31 +5,47 @@
<el-row>
<el-col :span="6">
<el-form-item label="数据表名">
<el-input v-model="form.DATATABLE" placeholder="数据表名"></el-input>
<el-input
v-model="form.DATATABLE"
placeholder="数据表名"
></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="中文名称">
<el-input v-model="form.CHINESETABLE" placeholder="中文名称"></el-input>
<el-input
v-model="form.CHINESETABLE"
placeholder="中文名称"
></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="tab表头链接标识">
<el-input v-model="form.SOLEURL" placeholder="tab表头链接标识"></el-input>
<el-input
v-model="form.SOLEURL"
placeholder="tab表头链接标识"
></el-input>
</el-form-item>
</el-col>
<!-- 操作按钮 -->
<el-col :span="6" class="btnColRight">
<el-button @click="handleUpdateDic">刷新规则缓存</el-button>
<el-button type="primary" @click="handleSubmit">查询结果</el-button>
<btn nativeType="sb" @click="handleUpdateDic">刷新缓存</btn>
<btn nativeType="cx" @click="handleSubmit">查询结果</btn>
</el-col>
</el-row>
</el-form>
</div>
<div class="from-clues-content">
<lb-table :page-size="pageData.size" :current-page.sync="pageData.current" :total="pageData.total"
@size-change="handleSizeChange" @p-current-change="handleCurrentChange" :column="tableData.columns"
:data="tableData.data">
<lb-table
:page-size="pageData.size"
:current-page.sync="pageData.current"
:total="pageData.total"
@size-change="handleSizeChange"
@p-current-change="handleCurrentChange"
:column="tableData.columns"
:data="tableData.data"
>
</lb-table>
<message-tips ref="msg" :message="message" />
</div>
......@@ -39,145 +55,157 @@
<script>
// 字典
import data from "./data"
import tableMixin from '@/mixins/tableMixin.js'
import ruleConfig from '@/api/ruleConfig'
import editValidRule from '../components/editValidRule.vue'
import data from "./data";
import tableMixin from "@/mixins/tableMixin.js";
import ruleConfig from "@/api/ruleConfig";
import editValidRule from "../components/editValidRule.vue";
export default {
name: "dictionary-config",
mixins: [tableMixin],
components: {
editValidRule
editValidRule,
},
data () {
data() {
return {
message: '',
message: "",
form: {
DATATABLE: '',
CHINESETABLE: '',
SOLEURL: '',
currentPage: 1
DATATABLE: "",
CHINESETABLE: "",
SOLEURL: "",
currentPage: 1,
},
preContent: '',
preContent: "",
tableData: {
columns: [{
label: '序号',
type: 'index',
width: '50',
index: this.indexMethod,
}].concat(data.columns()).concat([
columns: [
{
label: "操作",
render: (h, scope) => {
return (
<div>
<el-button
type="text"
size="mini"
icon="el-icon-edit"
onClick={() => { this.handleEdit(scope.$index, scope.row) }}
>
编辑
</el-button>
label: "序号",
type: "index",
width: "50",
index: this.indexMethod,
},
]
.concat(data.columns())
.concat([
{
label: "操作",
render: (h, scope) => {
return (
<div>
<el-button
type="text"
size="mini"
icon="el-icon-edit"
onClick={() => {
this.handleEdit(scope.$index, scope.row);
}}
>
编辑
</el-button>
<el-button
type="text"
size="mini"
icon="el-icon-delete"
style="color:#F56C6C"
onClick={() => { this.handleDel(scope.$index, scope.row) }}
>
删除
</el-button>
</div>
);
<el-button
type="text"
size="mini"
icon="el-icon-delete"
style="color:#F56C6C"
onClick={() => {
this.handleDel(scope.$index, scope.row);
}}
>
删除
</el-button>
</div>
);
},
},
}
]),
data: []
]),
data: [],
},
pageData: {
total: 0,
pageSize: 15,
current: 1,
},
ruleData: null
}
ruleData: null,
};
},
methods: {
async featchData () {
async featchData() {
try {
this.form = Object.assign(this.form, this.formData)
let { result: { list, total, pages: pageSize, pageNum: current }
} = await ruleConfig.getSysYwsjbList(this.form)
this.tableData.data = list
this.form = Object.assign(this.form, this.formData);
let {
result: { list, total, pages: pageSize, pageNum: current },
} = await ruleConfig.getSysYwsjbList(this.form);
this.tableData.data = list;
this.pageData = {
pageSize,
current,
total
}
total,
};
} catch (error) {
this.message = error
this.$refs.msg.messageShow()
this.message = error;
this.$refs.msg.messageShow();
}
},
async handleEdit (index, row) {
async handleEdit(index, row) {
try {
let { result: res } = await ruleConfig.eidtConfigRule(row.BSM_YWSJB)
this.ruleData = res
this.$refs.validRule.isShow()
let { result: res } = await ruleConfig.eidtConfigRule(row.BSM_YWSJB);
this.ruleData = res;
this.$refs.validRule.isShow();
} catch (error) {
this.$alert(error, '提示', {
confirmButtonText: '确定',
type: 'error'
})
this.$alert(error, "提示", {
confirmButtonText: "确定",
type: "error",
});
}
},
handleDel (index, row) {
let _this = this
this.$confirm('此操作将进行删除校验规则, 是否继续?', '提示', {
cancelButtonText: '取消',
confirmButtonText: '确定',
type: 'warning'
}).then(async () => {
try {
let res = await ruleConfig.deleteSysYwsjbWithSysYwsjbFieldByBsmYwsjb(row.BSM_YWSJB)
if (res.code == 200) {
_this.$message({
type: 'success',
message: '删除成功!'
handleDel(index, row) {
let _this = this;
this.$confirm("此操作将进行删除校验规则, 是否继续?", "提示", {
cancelButtonText: "取消",
confirmButtonText: "确定",
type: "warning",
})
.then(async () => {
try {
let res =
await ruleConfig.deleteSysYwsjbWithSysYwsjbFieldByBsmYwsjb(
row.BSM_YWSJB
);
if (res.code == 200) {
_this.$message({
type: "success",
message: "删除成功!",
});
_this.featchData();
}
} catch (error) {
_this.$alert(error, "提示", {
confirmButtonText: "确定",
type: "error",
});
_this.featchData()
}
} catch (error) {
_this.$alert(error, '提示', {
confirmButtonText: '确定',
type: 'error'
})
}
}).catch(() => {
this.$message({
type: 'info',
message: '已取消删除'
})
.catch(() => {
this.$message({
type: "info",
message: "已取消删除",
});
});
});
},
handleUpdateDic () {
this.$store.dispatch('dictionaries/generateDic').then((res) => {
handleUpdateDic() {
this.$store.dispatch("dictionaries/generateDic").then((res) => {
if (res) {
this.$message({
message: '刷新成功!',
type: 'success'
})
message: "刷新成功!",
type: "success",
});
}
})
}
}
}
});
},
},
};
</script>
<style scoped lang="scss">
@import "~@/styles/public.scss";
@import "./index.scss";
</style>
......